diff --git a/CHANGELOG.md b/CHANGELOG.md index 3daa4c3c0..8881b6ff8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +6.1.0 (202X-XX-XX) +--------------------------------------------- +- [#527](https://github.com/dropbox/dropbox-sdk-java/pull/527) Adds nullability annotations to data models for improved interop with Kotlin 6.0.0 (2023-11-30) --------------------------------------------- diff --git a/android/dependencies/releaseRuntimeClasspath.txt b/android/dependencies/releaseRuntimeClasspath.txt index 54dcdd824..a2cb92815 100644 --- a/android/dependencies/releaseRuntimeClasspath.txt +++ b/android/dependencies/releaseRuntimeClasspath.txt @@ -1,6 +1,7 @@ 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 diff --git a/core/build.gradle b/core/build.gradle index 0ec477091..152dcd6de 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -56,6 +56,7 @@ sourceSets.main.java.srcDir(versionWriterTask) dependencies { api(dropboxJavaSdkLibs.jackson.core) + api(dropboxJavaSdkLibs.jsr305) compileOnly dropboxJavaSdkLibs.appengine.api compileOnly dropboxJavaSdkLibs.jakarta.servlet.api 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 index a1553c86e..d63262dde 100644 --- 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 @@ -16,9 +16,12 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + class SetProfilePhotoArg { // struct account.SetProfilePhotoArg (account.stone) + @Nonnull protected final PhotoSourceArg photo; /** @@ -29,7 +32,7 @@ class SetProfilePhotoArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SetProfilePhotoArg(PhotoSourceArg photo) { + public SetProfilePhotoArg(@Nonnull PhotoSourceArg photo) { if (photo == null) { throw new IllegalArgumentException("Required value for 'photo' is null"); } @@ -41,6 +44,7 @@ public SetProfilePhotoArg(PhotoSourceArg photo) { * * @return value for this field, never {@code null}. */ + @Nonnull public PhotoSourceArg getPhoto() { return photo; } 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 index b8a08f040..ec27dcf32 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class SetProfilePhotoResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SetProfilePhotoResult(String profilePhotoUrl) { + public SetProfilePhotoResult(@Nonnull String profilePhotoUrl) { if (profilePhotoUrl == null) { throw new IllegalArgumentException("Required value for 'profilePhotoUrl' is null"); } @@ -41,6 +44,7 @@ public SetProfilePhotoResult(String profilePhotoUrl) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getProfilePhotoUrl() { return profilePhotoUrl; } 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 index 3214602a3..037c6dcd7 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -34,7 +37,7 @@ public class PollArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PollArg(String asyncJobId) { + public PollArg(@Nonnull String asyncJobId) { if (asyncJobId == null) { throw new IllegalArgumentException("Required value for 'asyncJobId' is null"); } @@ -50,6 +53,7 @@ public PollArg(String asyncJobId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAsyncJobId() { return asyncJobId; } 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 index ca532491e..87f4b13e2 100644 --- 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 @@ -16,12 +16,15 @@ 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; @@ -36,7 +39,7 @@ public class RateLimitError { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RateLimitError(RateLimitReason reason, long retryAfter) { + public RateLimitError(@Nonnull RateLimitReason reason, long retryAfter) { if (reason == null) { throw new IllegalArgumentException("Required value for 'reason' is null"); } @@ -55,7 +58,7 @@ public RateLimitError(RateLimitReason reason, long retryAfter) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RateLimitError(RateLimitReason reason) { + public RateLimitError(@Nonnull RateLimitReason reason) { this(reason, 1L); } @@ -64,6 +67,7 @@ public RateLimitError(RateLimitReason reason) { * * @return value for this field, never {@code null}. */ + @Nonnull public RateLimitReason getReason() { return reason; } 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 index 3f11bb976..dc8ec7775 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -32,7 +36,7 @@ class TokenFromOAuth1Arg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TokenFromOAuth1Arg(String oauth1Token, String oauth1TokenSecret) { + public TokenFromOAuth1Arg(@Nonnull String oauth1Token, @Nonnull String oauth1TokenSecret) { if (oauth1Token == null) { throw new IllegalArgumentException("Required value for 'oauth1Token' is null"); } @@ -54,6 +58,7 @@ public TokenFromOAuth1Arg(String oauth1Token, String oauth1TokenSecret) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOauth1Token() { return oauth1Token; } @@ -63,6 +68,7 @@ public String getOauth1Token() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOauth1TokenSecret() { return oauth1TokenSecret; } 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 index 9b25d0e4b..3dc911d6f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class TokenFromOAuth1Result { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TokenFromOAuth1Result(String oauth2Token) { + public TokenFromOAuth1Result(@Nonnull String oauth2Token) { if (oauth2Token == null) { throw new IllegalArgumentException("Required value for 'oauth2Token' is null"); } @@ -44,6 +47,7 @@ public TokenFromOAuth1Result(String oauth2Token) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOauth2Token() { return oauth2Token; } 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 index 4d7587b2a..912b95893 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class TokenScopeError { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TokenScopeError(String requiredScope) { + public TokenScopeError(@Nonnull String requiredScope) { if (requiredScope == null) { throw new IllegalArgumentException("Required value for 'requiredScope' is null"); } @@ -41,6 +44,7 @@ public TokenScopeError(String requiredScope) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getRequiredScope() { return requiredScope; } 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 index 5843874ce..6345fdbc4 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ class EchoArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EchoArg(String query) { + public EchoArg(@Nonnull String query) { if (query == null) { throw new IllegalArgumentException("Required value for 'query' is null"); } @@ -58,6 +61,7 @@ public EchoArg() { * @return value for this field, or {@code null} if not present. Defaults to * "". */ + @Nonnull public String getQuery() { return query; } 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 index 3df9d89fc..e9150eb82 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class EchoResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EchoResult(String result) { + public EchoResult(@Nonnull String result) { if (result == null) { throw new IllegalArgumentException("Required value for 'result' is null"); } @@ -55,6 +58,7 @@ public EchoResult() { * @return value for this field, or {@code null} if not present. Defaults to * "". */ + @Nonnull public String getResult() { return result; } 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 index 0e48974b6..37541cba2 100644 --- 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 @@ -17,13 +17,17 @@ 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; /** @@ -40,7 +44,7 @@ public class RootInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RootInfo(String rootNamespaceId, String homeNamespaceId) { + public RootInfo(@Nonnull String rootNamespaceId, @Nonnull String homeNamespaceId) { if (rootNamespaceId == null) { throw new IllegalArgumentException("Required value for 'rootNamespaceId' is null"); } @@ -65,6 +69,7 @@ public RootInfo(String rootNamespaceId, String homeNamespaceId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getRootNamespaceId() { return rootNamespaceId; } @@ -74,6 +79,7 @@ public String getRootNamespaceId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getHomeNamespaceId() { return homeNamespaceId; } 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 index c30cb3203..a0c418163 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -42,7 +45,7 @@ public class TeamRootInfo extends RootInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamRootInfo(String rootNamespaceId, String homeNamespaceId, String homePath) { + 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"); @@ -58,6 +61,7 @@ public TeamRootInfo(String rootNamespaceId, String homeNamespaceId, String homeP * * @return value for this field, never {@code null}. */ + @Nonnull public String getRootNamespaceId() { return rootNamespaceId; } @@ -67,6 +71,7 @@ public String getRootNamespaceId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getHomeNamespaceId() { return homeNamespaceId; } @@ -76,6 +81,7 @@ public String getHomeNamespaceId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getHomePath() { return homePath; } 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 index 1bb35eaf1..e74644ba7 100644 --- 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 @@ -16,6 +16,8 @@ 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. @@ -39,7 +41,7 @@ public class UserRootInfo extends RootInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserRootInfo(String rootNamespaceId, String homeNamespaceId) { + public UserRootInfo(@Nonnull String rootNamespaceId, @Nonnull String homeNamespaceId) { super(rootNamespaceId, homeNamespaceId); } @@ -51,6 +53,7 @@ public UserRootInfo(String rootNamespaceId, String homeNamespaceId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getRootNamespaceId() { return rootNamespaceId; } @@ -60,6 +63,7 @@ public String getRootNamespaceId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getHomeNamespaceId() { return homeNamespaceId; } 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 index b06f6da3e..b46746a7e 100644 --- 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 @@ -17,9 +17,12 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + class DeleteManualContactsArg { // struct contacts.DeleteManualContactsArg (contacts.stone) + @Nonnull protected final List emailAddresses; /** @@ -30,7 +33,7 @@ class DeleteManualContactsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteManualContactsArg(List emailAddresses) { + public DeleteManualContactsArg(@Nonnull List emailAddresses) { if (emailAddresses == null) { throw new IllegalArgumentException("Required value for 'emailAddresses' is null"); } @@ -53,6 +56,7 @@ public DeleteManualContactsArg(List emailAddresses) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEmailAddresses() { return emailAddresses; } 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 index 9097d6289..b1cec8176 100644 --- 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 @@ -18,10 +18,14 @@ 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; /** @@ -37,7 +41,7 @@ public class AddPropertiesArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddPropertiesArg(String path, List propertyGroups) { + public AddPropertiesArg(@Nonnull String path, @Nonnull List propertyGroups) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -61,6 +65,7 @@ public AddPropertiesArg(String path, List propertyGroups) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -71,6 +76,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getPropertyGroups() { return propertyGroups; } 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 index 3c5030d5f..3f455e477 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.List; +import javax.annotation.Nonnull; + public class AddTemplateArg extends PropertyGroupTemplate { // struct file_properties.AddTemplateArg (file_properties.stone) @@ -33,7 +35,7 @@ public class AddTemplateArg extends PropertyGroupTemplate { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddTemplateArg(String name, String description, List fields) { + public AddTemplateArg(@Nonnull String name, @Nonnull String description, @Nonnull List fields) { super(name, description, fields); } @@ -42,6 +44,7 @@ public AddTemplateArg(String name, String description, List getFields() { return fields; } 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 index c4fb3526f..58736c68a 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -34,7 +37,7 @@ public class AddTemplateResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddTemplateResult(String templateId) { + public AddTemplateResult(@Nonnull String templateId) { if (templateId == null) { throw new IllegalArgumentException("Required value for 'templateId' is null"); } @@ -55,6 +58,7 @@ public AddTemplateResult(String templateId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTemplateId() { return templateId; } 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 index 53b28238e..9777ba3bc 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -34,7 +37,7 @@ public class GetTemplateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTemplateArg(String templateId) { + public GetTemplateArg(@Nonnull String templateId) { if (templateId == null) { throw new IllegalArgumentException("Required value for 'templateId' is null"); } @@ -55,6 +58,7 @@ public GetTemplateArg(String templateId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTemplateId() { return templateId; } 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 index 674abc896..c63de38fa 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.List; +import javax.annotation.Nonnull; + public class GetTemplateResult extends PropertyGroupTemplate { // struct file_properties.GetTemplateResult (file_properties.stone) @@ -33,7 +35,7 @@ public class GetTemplateResult extends PropertyGroupTemplate { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTemplateResult(String name, String description, List fields) { + public GetTemplateResult(@Nonnull String name, @Nonnull String description, @Nonnull List fields) { super(name, description, fields); } @@ -42,6 +44,7 @@ public GetTemplateResult(String name, String description, List getFields() { return fields; } 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 index 3e409c591..f0ad6fd44 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -34,7 +37,7 @@ public class ListTemplateResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListTemplateResult(List templateIds) { + public ListTemplateResult(@Nonnull List templateIds) { if (templateIds == null) { throw new IllegalArgumentException("Required value for 'templateIds' is null"); } @@ -60,6 +63,7 @@ public ListTemplateResult(List templateIds) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getTemplateIds() { return templateIds; } 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 index c76a60093..52c538056 100644 --- 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 @@ -18,10 +18,14 @@ 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; /** @@ -37,7 +41,7 @@ public class OverwritePropertyGroupArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OverwritePropertyGroupArg(String path, List propertyGroups) { + public OverwritePropertyGroupArg(@Nonnull String path, @Nonnull List propertyGroups) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -64,6 +68,7 @@ public OverwritePropertyGroupArg(String path, List propertyGroups * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -74,6 +79,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getPropertyGroups() { return propertyGroups; } 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 index 309a73cdd..6af039254 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -33,7 +37,7 @@ class PropertiesSearchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertiesSearchArg(List queries, TemplateFilter templateFilter) { + public PropertiesSearchArg(@Nonnull List queries, @Nonnull TemplateFilter templateFilter) { if (queries == null) { throw new IllegalArgumentException("Required value for 'queries' is null"); } @@ -63,7 +67,7 @@ public PropertiesSearchArg(List queries, TemplateFilter t * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertiesSearchArg(List queries) { + public PropertiesSearchArg(@Nonnull List queries) { this(queries, TemplateFilter.FILTER_NONE); } @@ -72,6 +76,7 @@ public PropertiesSearchArg(List queries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getQueries() { return queries; } @@ -83,6 +88,7 @@ public List getQueries() { * @return value for this field, or {@code null} if not present. Defaults to * TemplateFilter.FILTER_NONE. */ + @Nonnull public TemplateFilter getTemplateFilter() { return templateFilter; } 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 index 45de280a6..4b3b8aed0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -32,7 +35,7 @@ class PropertiesSearchContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertiesSearchContinueArg(String cursor) { + public PropertiesSearchContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -50,6 +53,7 @@ public PropertiesSearchContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 47a400219..4ecd4f6cc 100644 --- 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 @@ -17,12 +17,17 @@ 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; /** @@ -38,7 +43,7 @@ public class PropertiesSearchMatch { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertiesSearchMatch(String id, String path, boolean isDeleted, List propertyGroups) { + 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"); } @@ -67,6 +72,7 @@ public PropertiesSearchMatch(String id, String path, boolean isDeleted, List getPropertyGroups() { return propertyGroups; } 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 index 84d9d0c9b..1215abc30 100644 --- 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 @@ -16,11 +16,16 @@ 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; /** @@ -35,7 +40,7 @@ public class PropertiesSearchQuery { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertiesSearchQuery(String query, PropertiesSearchMode mode, LogicalOperator logicalOperator) { + public PropertiesSearchQuery(@Nonnull String query, @Nonnull PropertiesSearchMode mode, @Nonnull LogicalOperator logicalOperator) { if (query == null) { throw new IllegalArgumentException("Required value for 'query' is null"); } @@ -63,7 +68,7 @@ public PropertiesSearchQuery(String query, PropertiesSearchMode mode, LogicalOpe * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertiesSearchQuery(String query, PropertiesSearchMode mode) { + public PropertiesSearchQuery(@Nonnull String query, @Nonnull PropertiesSearchMode mode) { this(query, mode, LogicalOperator.OR_OPERATOR); } @@ -72,6 +77,7 @@ public PropertiesSearchQuery(String query, PropertiesSearchMode mode) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getQuery() { return query; } @@ -81,6 +87,7 @@ public String getQuery() { * * @return value for this field, never {@code null}. */ + @Nonnull public PropertiesSearchMode getMode() { return mode; } @@ -91,6 +98,7 @@ public PropertiesSearchMode getMode() { * @return value for this field, or {@code null} if not present. Defaults to * LogicalOperator.OR_OPERATOR. */ + @Nonnull public LogicalOperator getLogicalOperator() { return logicalOperator; } 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 index 554cf1a2c..3732cfdc1 100644 --- 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 @@ -17,10 +17,15 @@ 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; /** @@ -35,7 +40,7 @@ public class PropertiesSearchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertiesSearchResult(List matches, String cursor) { + public PropertiesSearchResult(@Nonnull List matches, @Nullable String cursor) { if (matches == null) { throw new IllegalArgumentException("Required value for 'matches' is null"); } @@ -64,7 +69,7 @@ public PropertiesSearchResult(List matches, String cursor * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertiesSearchResult(List matches) { + public PropertiesSearchResult(@Nonnull List matches) { this(matches, null); } @@ -73,6 +78,7 @@ public PropertiesSearchResult(List matches) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMatches() { return matches; } @@ -85,6 +91,7 @@ public List getMatches() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index e6cc0f74e..2cdb9bb18 100644 --- 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 @@ -16,6 +16,8 @@ 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}. @@ -23,7 +25,9 @@ public class PropertyField { // struct file_properties.PropertyField (file_properties.stone) + @Nonnull protected final String name; + @Nonnull protected final String value; /** @@ -38,7 +42,7 @@ public class PropertyField { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertyField(String name, String value) { + public PropertyField(@Nonnull String name, @Nonnull String value) { if (name == null) { throw new IllegalArgumentException("Required value for 'name' is null"); } @@ -55,6 +59,7 @@ public PropertyField(String name, String value) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -65,6 +70,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getValue() { 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 index d1c73a233..1be32394a 100644 --- 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 @@ -16,6 +16,8 @@ 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}. @@ -23,8 +25,11 @@ 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; /** @@ -42,7 +47,7 @@ public class PropertyFieldTemplate { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertyFieldTemplate(String name, String description, PropertyType type) { + public PropertyFieldTemplate(@Nonnull String name, @Nonnull String description, @Nonnull PropertyType type) { if (name == null) { throw new IllegalArgumentException("Required value for 'name' is null"); } @@ -63,6 +68,7 @@ public PropertyFieldTemplate(String name, String description, PropertyType type) * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -73,6 +79,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } @@ -83,6 +90,7 @@ public String getDescription() { * * @return value for this field, never {@code null}. */ + @Nonnull public PropertyType getType() { return type; } 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 index 6555a7a07..4fae6cc08 100644 --- 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 @@ -18,6 +18,8 @@ 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 @@ -27,7 +29,9 @@ public class PropertyGroup { // struct file_properties.PropertyGroup (file_properties.stone) + @Nonnull protected final String templateId; + @Nonnull protected final List fields; /** @@ -46,7 +50,7 @@ public class PropertyGroup { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertyGroup(String templateId, List fields) { + public PropertyGroup(@Nonnull String templateId, @Nonnull List fields) { if (templateId == null) { throw new IllegalArgumentException("Required value for 'templateId' is null"); } @@ -73,6 +77,7 @@ public PropertyGroup(String templateId, List fields) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTemplateId() { return templateId; } @@ -83,6 +88,7 @@ public String getTemplateId() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getFields() { return fields; } 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 index 3bac283e5..295cfb2b7 100644 --- 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 @@ -17,14 +17,19 @@ 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; /** @@ -41,7 +46,7 @@ public class PropertyGroupTemplate { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertyGroupTemplate(String name, String description, List fields) { + public PropertyGroupTemplate(@Nonnull String name, @Nonnull String description, @Nonnull List fields) { if (name == null) { throw new IllegalArgumentException("Required value for 'name' is null"); } @@ -66,6 +71,7 @@ public PropertyGroupTemplate(String name, String description, List getFields() { return fields; } 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 index 26edf7b64..05db47b06 100644 --- 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 @@ -18,11 +18,17 @@ 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; /** @@ -42,7 +48,7 @@ public class PropertyGroupUpdate { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertyGroupUpdate(String templateId, List addOrUpdateFields, List removeFields) { + public PropertyGroupUpdate(@Nonnull String templateId, @Nullable List addOrUpdateFields, @Nullable List removeFields) { if (templateId == null) { throw new IllegalArgumentException("Required value for 'templateId' is null"); } @@ -83,7 +89,7 @@ public PropertyGroupUpdate(String templateId, List addOrUpdateFie * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PropertyGroupUpdate(String templateId) { + public PropertyGroupUpdate(@Nonnull String templateId) { this(templateId, null, null); } @@ -92,6 +98,7 @@ public PropertyGroupUpdate(String templateId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTemplateId() { return templateId; } @@ -103,6 +110,7 @@ public String getTemplateId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getAddOrUpdateFields() { return addOrUpdateFields; } @@ -112,6 +120,7 @@ public List getAddOrUpdateFields() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getRemoveFields() { return removeFields; } 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 index c5af4a0d0..76de9d617 100644 --- 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 @@ -18,10 +18,14 @@ 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; /** @@ -38,7 +42,7 @@ public class RemovePropertiesArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RemovePropertiesArg(String path, List propertyTemplateIds) { + public RemovePropertiesArg(@Nonnull String path, @Nonnull List propertyTemplateIds) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -68,6 +72,7 @@ public RemovePropertiesArg(String path, List propertyTemplateIds) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -79,6 +84,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getPropertyTemplateIds() { return propertyTemplateIds; } 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 index 6c9fbcbab..7566c7f55 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -34,7 +37,7 @@ class RemoveTemplateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RemoveTemplateArg(String templateId) { + public RemoveTemplateArg(@Nonnull String templateId) { if (templateId == null) { throw new IllegalArgumentException("Required value for 'templateId' is null"); } @@ -55,6 +58,7 @@ public RemoveTemplateArg(String templateId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTemplateId() { return templateId; } 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 index 16fa5e5a3..d8bc936b1 100644 --- 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 @@ -18,10 +18,14 @@ 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; /** @@ -35,7 +39,7 @@ public class UpdatePropertiesArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UpdatePropertiesArg(String path, List updatePropertyGroups) { + public UpdatePropertiesArg(@Nonnull String path, @Nonnull List updatePropertyGroups) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -59,6 +63,7 @@ public UpdatePropertiesArg(String path, List updateProperty * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -68,6 +73,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getUpdatePropertyGroups() { return updatePropertyGroups; } 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 index 76304ecb9..66397e4a5 100644 --- 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 @@ -18,12 +18,19 @@ 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; /** @@ -47,7 +54,7 @@ public class UpdateTemplateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UpdateTemplateArg(String templateId, String name, String description, List addFields) { + 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"); } @@ -85,7 +92,7 @@ public UpdateTemplateArg(String templateId, String name, String description, Lis * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UpdateTemplateArg(String templateId) { + public UpdateTemplateArg(@Nonnull String templateId) { this(templateId, null, null, null); } @@ -97,6 +104,7 @@ public UpdateTemplateArg(String templateId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTemplateId() { return templateId; } @@ -106,6 +114,7 @@ public String getTemplateId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getName() { return name; } @@ -116,6 +125,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDescription() { return description; } @@ -126,6 +136,7 @@ public String getDescription() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getAddFields() { return addFields; } 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 index a81946596..4304a41dd 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -34,7 +37,7 @@ public class UpdateTemplateResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UpdateTemplateResult(String templateId) { + public UpdateTemplateResult(@Nonnull String templateId) { if (templateId == null) { throw new IllegalArgumentException("Required value for 'templateId' is null"); } @@ -55,6 +58,7 @@ public UpdateTemplateResult(String templateId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTemplateId() { return templateId; } 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 index 4fc50f66d..9ea61cc7a 100644 --- 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 @@ -17,16 +17,23 @@ 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; /** @@ -51,7 +58,7 @@ class CreateFileRequestArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateFileRequestArgs(String title, String destination, FileRequestDeadline deadline, boolean open, String description) { + 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"); } @@ -86,7 +93,7 @@ public CreateFileRequestArgs(String title, String destination, FileRequestDeadli * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateFileRequestArgs(String title, String destination) { + public CreateFileRequestArgs(@Nonnull String title, @Nonnull String destination) { this(title, destination, null, true, null); } @@ -95,6 +102,7 @@ public CreateFileRequestArgs(String title, String destination) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTitle() { return title; } @@ -106,6 +114,7 @@ public String getTitle() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDestination() { return destination; } @@ -116,6 +125,7 @@ public String getDestination() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileRequestDeadline getDeadline() { return deadline; } @@ -137,6 +147,7 @@ public boolean getOpen() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDescription() { return description; } 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 index f91f959ae..94cb8f089 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class DeleteAllClosedFileRequestsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteAllClosedFileRequestsResult(List fileRequests) { + public DeleteAllClosedFileRequestsResult(@Nonnull List fileRequests) { if (fileRequests == null) { throw new IllegalArgumentException("Required value for 'fileRequests' is null"); } @@ -51,6 +54,7 @@ public DeleteAllClosedFileRequestsResult(List fileRequests) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getFileRequests() { return fileRequests; } 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 index fa7fd4c30..ba2e25759 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ class DeleteFileRequestArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteFileRequestArgs(List ids) { + public DeleteFileRequestArgs(@Nonnull List ids) { if (ids == null) { throw new IllegalArgumentException("Required value for 'ids' is null"); } @@ -57,6 +60,7 @@ public DeleteFileRequestArgs(List ids) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getIds() { return ids; } 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 index 885220931..c10507a32 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class DeleteFileRequestsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteFileRequestsResult(List fileRequests) { + public DeleteFileRequestsResult(@Nonnull List fileRequests) { if (fileRequests == null) { throw new IllegalArgumentException("Required value for 'fileRequests' is null"); } @@ -51,6 +54,7 @@ public DeleteFileRequestsResult(List fileRequests) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getFileRequests() { return fileRequests; } 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 index d67986bee..366922d0d 100644 --- 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 @@ -19,6 +19,9 @@ 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. @@ -26,14 +29,21 @@ 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; /** @@ -66,7 +76,7 @@ public class FileRequest { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequest(String id, String url, String title, Date created, boolean isOpen, long fileCount, String destination, FileRequestDeadline deadline, String description) { + 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"); } @@ -128,7 +138,7 @@ public FileRequest(String id, String url, String title, Date created, boolean is * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequest(String id, String url, String title, Date created, boolean isOpen, long fileCount) { + 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); } @@ -137,6 +147,7 @@ public FileRequest(String id, String url, String title, Date created, boolean is * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -146,6 +157,7 @@ public String getId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -155,6 +167,7 @@ public String getUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTitle() { return title; } @@ -164,6 +177,7 @@ public String getTitle() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getCreated() { return created; } @@ -194,6 +208,7 @@ public long getFileCount() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDestination() { return destination; } @@ -204,6 +219,7 @@ public String getDestination() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileRequestDeadline getDeadline() { return deadline; } @@ -213,6 +229,7 @@ public FileRequestDeadline getDeadline() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDescription() { return description; } 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 index a76137ae3..d4be1046b 100644 --- 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 @@ -18,10 +18,15 @@ 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; /** @@ -34,7 +39,7 @@ public class FileRequestDeadline { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestDeadline(Date deadline, GracePeriod allowLateUploads) { + public FileRequestDeadline(@Nonnull Date deadline, @Nullable GracePeriod allowLateUploads) { if (deadline == null) { throw new IllegalArgumentException("Required value for 'deadline' is null"); } @@ -53,7 +58,7 @@ public FileRequestDeadline(Date deadline, GracePeriod allowLateUploads) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestDeadline(Date deadline) { + public FileRequestDeadline(@Nonnull Date deadline) { this(deadline, null); } @@ -62,6 +67,7 @@ public FileRequestDeadline(Date deadline) { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getDeadline() { return deadline; } @@ -72,6 +78,7 @@ public Date getDeadline() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GracePeriod getAllowLateUploads() { return allowLateUploads; } 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 index cdd8a4a4e..008dc15f0 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -35,7 +38,7 @@ class GetFileRequestArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetFileRequestArgs(String id) { + public GetFileRequestArgs(@Nonnull String id) { if (id == null) { throw new IllegalArgumentException("Required value for 'id' is null"); } @@ -53,6 +56,7 @@ public GetFileRequestArgs(String id) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } 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 index d8c5d4cc6..be56e51ae 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ class ListFileRequestsContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFileRequestsContinueArg(String cursor) { + public ListFileRequestsContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -42,6 +45,7 @@ public ListFileRequestsContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 4429085da..811d1e9ac 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -35,7 +38,7 @@ public class ListFileRequestsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFileRequestsResult(List fileRequests) { + public ListFileRequestsResult(@Nonnull List fileRequests) { if (fileRequests == null) { throw new IllegalArgumentException("Required value for 'fileRequests' is null"); } @@ -53,6 +56,7 @@ public ListFileRequestsResult(List fileRequests) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getFileRequests() { return fileRequests; } 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 index d758fc893..2805ae76c 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + /** * Result for {@link DbxUserFileRequestsRequests#listV2(long)} and {@link * DbxUserFileRequestsRequests#listContinue(String)}. @@ -24,7 +26,9 @@ public class ListFileRequestsV2Result { // struct file_requests.ListFileRequestsV2Result (file_requests.stone) + @Nonnull protected final List fileRequests; + @Nonnull protected final String cursor; protected final boolean hasMore; @@ -45,7 +49,7 @@ public class ListFileRequestsV2Result { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFileRequestsV2Result(List fileRequests, String cursor, boolean hasMore) { + public ListFileRequestsV2Result(@Nonnull List fileRequests, @Nonnull String cursor, boolean hasMore) { if (fileRequests == null) { throw new IllegalArgumentException("Required value for 'fileRequests' is null"); } @@ -68,6 +72,7 @@ public ListFileRequestsV2Result(List fileRequests, String cursor, b * * @return value for this field, never {@code null}. */ + @Nonnull public List getFileRequests() { return fileRequests; } @@ -79,6 +84,7 @@ public List getFileRequests() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 86ab78d0f..7dd221e44 100644 --- 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 @@ -17,17 +17,26 @@ 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; /** @@ -54,7 +63,7 @@ class UpdateFileRequestArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UpdateFileRequestArgs(String id, String title, String destination, UpdateFileRequestDeadline deadline, Boolean open, String description) { + 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"); } @@ -97,7 +106,7 @@ public UpdateFileRequestArgs(String id, String title, String destination, Update * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UpdateFileRequestArgs(String id) { + public UpdateFileRequestArgs(@Nonnull String id) { this(id, null, null, UpdateFileRequestDeadline.NO_UPDATE, null, null); } @@ -106,6 +115,7 @@ public UpdateFileRequestArgs(String id) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -115,6 +125,7 @@ public String getId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTitle() { return title; } @@ -126,6 +137,7 @@ public String getTitle() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDestination() { return destination; } @@ -137,6 +149,7 @@ public String getDestination() { * @return value for this field, or {@code null} if not present. Defaults to * UpdateFileRequestDeadline.NO_UPDATE. */ + @Nonnull public UpdateFileRequestDeadline getDeadline() { return deadline; } @@ -146,6 +159,7 @@ public UpdateFileRequestDeadline getDeadline() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getOpen() { return open; } @@ -155,6 +169,7 @@ public Boolean getOpen() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDescription() { return description; } 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 index 737391957..8d74af774 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -35,7 +39,7 @@ class AddTagArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddTagArg(String path, String tagText) { + public AddTagArg(@Nonnull String path, @Nonnull String tagText) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -63,6 +67,7 @@ public AddTagArg(String path, String tagText) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -73,6 +78,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTagText() { return tagText; } 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 index eb8c8cc1e..0c331b085 100644 --- 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 @@ -19,9 +19,13 @@ 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; /** @@ -50,7 +54,7 @@ class AlphaGetMetadataArg extends GetMetadataArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AlphaGetMetadataArg(String path, boolean includeMediaInfo, boolean includeDeleted, boolean includeHasExplicitSharedMembers, TemplateFilterBase includePropertyGroups, List includePropertyTemplates) { + 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) { @@ -80,7 +84,7 @@ public AlphaGetMetadataArg(String path, boolean includeMediaInfo, boolean includ * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AlphaGetMetadataArg(String path) { + public AlphaGetMetadataArg(@Nonnull String path) { this(path, false, false, false, null, null); } @@ -89,6 +93,7 @@ public AlphaGetMetadataArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -132,6 +137,7 @@ public boolean getIncludeHasExplicitSharedMembers() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TemplateFilterBase getIncludePropertyGroups() { return includePropertyGroups; } @@ -142,6 +148,7 @@ public TemplateFilterBase getIncludePropertyGroups() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getIncludePropertyTemplates() { return includePropertyTemplates; } 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 index 0d8fd1ccd..c59c4b4c5 100644 --- 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 @@ -21,14 +21,21 @@ 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; @@ -66,7 +73,7 @@ public class CommitInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CommitInfo(String path, WriteMode mode, boolean autorename, Date clientModified, boolean mute, List propertyGroups, boolean strictConflict) { + 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"); } @@ -104,7 +111,7 @@ public CommitInfo(String path, WriteMode mode, boolean autorename, Date clientMo * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CommitInfo(String path) { + public CommitInfo(@Nonnull String path) { this(path, WriteMode.ADD, false, null, false, null, false); } @@ -113,6 +120,7 @@ public CommitInfo(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -123,6 +131,7 @@ public String getPath() { * @return value for this field, or {@code null} if not present. Defaults to * WriteMode.ADD. */ + @Nonnull public WriteMode getMode() { return mode; } @@ -147,6 +156,7 @@ public boolean getAutorename() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getClientModified() { return clientModified; } @@ -169,6 +179,7 @@ public boolean getMute() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getPropertyGroups() { return propertyGroups; } 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 index 3d9195592..5747c8080 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -32,7 +36,7 @@ public class ContentSyncSetting { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ContentSyncSetting(String id, SyncSetting syncSetting) { + public ContentSyncSetting(@Nonnull String id, @Nonnull SyncSetting syncSetting) { if (id == null) { throw new IllegalArgumentException("Required value for 'id' is null"); } @@ -54,6 +58,7 @@ public ContentSyncSetting(String id, SyncSetting syncSetting) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -63,6 +68,7 @@ public String getId() { * * @return value for this field, never {@code null}. */ + @Nonnull public SyncSetting getSyncSetting() { return syncSetting; } 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 index 909e3382e..6428b7484 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -32,7 +36,7 @@ public class ContentSyncSettingArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ContentSyncSettingArg(String id, SyncSettingArg syncSetting) { + public ContentSyncSettingArg(@Nonnull String id, @Nonnull SyncSettingArg syncSetting) { if (id == null) { throw new IllegalArgumentException("Required value for 'id' is null"); } @@ -54,6 +58,7 @@ public ContentSyncSettingArg(String id, SyncSettingArg syncSetting) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -63,6 +68,7 @@ public String getId() { * * @return value for this field, never {@code null}. */ + @Nonnull public SyncSettingArg getSyncSetting() { return syncSetting; } 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 index 7a3ca3bd8..9d36b6767 100644 --- 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 @@ -17,9 +17,12 @@ 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; @@ -33,7 +36,7 @@ class CreateFolderArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateFolderArg(String path, boolean autorename) { + public CreateFolderArg(@Nonnull String path, boolean autorename) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -55,7 +58,7 @@ public CreateFolderArg(String path, boolean autorename) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateFolderArg(String path) { + public CreateFolderArg(@Nonnull String path) { this(path, false); } @@ -64,6 +67,7 @@ public CreateFolderArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } 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 index ce88bdf04..083b10c77 100644 --- 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 @@ -17,9 +17,12 @@ 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; @@ -39,7 +42,7 @@ class CreateFolderBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateFolderBatchArg(List paths, boolean autorename, boolean forceAsync) { + public CreateFolderBatchArg(@Nonnull List paths, boolean autorename, boolean forceAsync) { if (paths == null) { throw new IllegalArgumentException("Required value for 'paths' is null"); } @@ -72,7 +75,7 @@ public CreateFolderBatchArg(List paths, boolean autorename, boolean forc * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateFolderBatchArg(List paths) { + public CreateFolderBatchArg(@Nonnull List paths) { this(paths, false, false); } @@ -82,6 +85,7 @@ public CreateFolderBatchArg(List paths) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getPaths() { return paths; } 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 index 7c6f1e19d..5626b1ca0 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -32,7 +35,7 @@ public class CreateFolderBatchResult extends FileOpsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateFolderBatchResult(List entries) { + public CreateFolderBatchResult(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -50,6 +53,7 @@ public CreateFolderBatchResult(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index 36f6d6819..77da3b525 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class CreateFolderEntryResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateFolderEntryResult(FolderMetadata metadata) { + public CreateFolderEntryResult(@Nonnull FolderMetadata metadata) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -41,6 +44,7 @@ public CreateFolderEntryResult(FolderMetadata metadata) { * * @return value for this field, never {@code null}. */ + @Nonnull public FolderMetadata getMetadata() { return metadata; } 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 index c154c1daf..9dadcda95 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class CreateFolderResult extends FileOpsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateFolderResult(FolderMetadata metadata) { + public CreateFolderResult(@Nonnull FolderMetadata metadata) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -41,6 +44,7 @@ public CreateFolderResult(FolderMetadata metadata) { * * @return value for this field, never {@code null}. */ + @Nonnull public FolderMetadata getMetadata() { return metadata; } 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 index 33526ce49..cdca20c2f 100644 --- 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 @@ -17,10 +17,15 @@ 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; /** @@ -35,7 +40,7 @@ public class DeleteArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteArg(String path, String parentRev) { + public DeleteArg(@Nonnull String path, @Nullable String parentRev) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -66,7 +71,7 @@ public DeleteArg(String path, String parentRev) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteArg(String path) { + public DeleteArg(@Nonnull String path) { this(path, null); } @@ -75,6 +80,7 @@ public DeleteArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -85,6 +91,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentRev() { return parentRev; } 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 index 6776face8..f2fb30b42 100644 --- 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 @@ -17,9 +17,12 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + class DeleteBatchArg { // struct files.DeleteBatchArg (files.stone) + @Nonnull protected final List entries; /** @@ -30,7 +33,7 @@ class DeleteBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteBatchArg(List entries) { + public DeleteBatchArg(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -49,6 +52,7 @@ public DeleteBatchArg(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index dfc6baa40..6b3f2e797 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -32,7 +35,7 @@ public class DeleteBatchResult extends FileOpsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteBatchResult(List entries) { + public DeleteBatchResult(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -50,6 +53,7 @@ public DeleteBatchResult(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index 6df1fbd7b..d6f3c2a4c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class DeleteBatchResultData { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteBatchResultData(Metadata metadata) { + public DeleteBatchResultData(@Nonnull Metadata metadata) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -41,6 +44,7 @@ public DeleteBatchResultData(Metadata metadata) { * * @return value for this field, never {@code null}. */ + @Nonnull public Metadata getMetadata() { return metadata; } 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 index b8395b8d8..f5a3c89f0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class DeleteResult extends FileOpsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteResult(Metadata metadata) { + public DeleteResult(@Nonnull Metadata metadata) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -41,6 +44,7 @@ public DeleteResult(Metadata metadata) { * * @return value for this field, never {@code null}. */ + @Nonnull public Metadata getMetadata() { return metadata; } 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 index 4531a3b66..d1bf351b3 100644 --- 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 @@ -15,6 +15,9 @@ 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. @@ -51,7 +54,7 @@ public class DeletedMetadata extends Metadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeletedMetadata(String name, String pathLower, String pathDisplay, String parentSharedFolderId, String previewUrl) { + public DeletedMetadata(@Nonnull String name, @Nullable String pathLower, @Nullable String pathDisplay, @Nullable String parentSharedFolderId, @Nullable String previewUrl) { super(name, pathLower, pathDisplay, parentSharedFolderId, previewUrl); } @@ -67,7 +70,7 @@ public DeletedMetadata(String name, String pathLower, String pathDisplay, String * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeletedMetadata(String name) { + public DeletedMetadata(@Nonnull String name) { this(name, null, null, null, null); } @@ -77,6 +80,7 @@ public DeletedMetadata(String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -87,6 +91,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathLower() { return pathLower; } @@ -102,6 +107,7 @@ public String getPathLower() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathDisplay() { return pathDisplay; } @@ -112,6 +118,7 @@ public String getPathDisplay() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentSharedFolderId() { return parentSharedFolderId; } @@ -121,6 +128,7 @@ public String getParentSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviewUrl() { return previewUrl; } 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 index d54eb3816..db4cc8ed0 100644 --- 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 @@ -17,10 +17,15 @@ 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; /** @@ -35,7 +40,7 @@ class DownloadArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DownloadArg(String path, String rev) { + public DownloadArg(@Nonnull String path, @Nullable String rev) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -66,7 +71,7 @@ public DownloadArg(String path, String rev) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DownloadArg(String path) { + public DownloadArg(@Nonnull String path) { this(path, null); } @@ -75,6 +80,7 @@ public DownloadArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -85,6 +91,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getRev() { return rev; } 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 index e27b10d11..ead067f0a 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ class DownloadZipArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DownloadZipArg(String path) { + public DownloadZipArg(@Nonnull String path) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -46,6 +49,7 @@ public DownloadZipArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } 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 index c10eb1334..137eaed3e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DownloadZipResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DownloadZipResult(FolderMetadata metadata) { + public DownloadZipResult(@Nonnull FolderMetadata metadata) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -39,6 +42,7 @@ public DownloadZipResult(FolderMetadata metadata) { * * @return value for this field, never {@code null}. */ + @Nonnull public FolderMetadata getMetadata() { return metadata; } 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 index 75a46d1fb..0add14b9a 100644 --- 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 @@ -17,10 +17,15 @@ 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; /** @@ -38,7 +43,7 @@ public class ExportArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExportArg(String path, String exportFormat) { + public ExportArg(@Nonnull String path, @Nullable String exportFormat) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -61,7 +66,7 @@ public ExportArg(String path, String exportFormat) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExportArg(String path) { + public ExportArg(@Nonnull String path) { this(path, null); } @@ -70,6 +75,7 @@ public ExportArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -82,6 +88,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getExportFormat() { return exportFormat; } 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 index 4a2ef9b46..eea8b9c11 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -40,7 +45,7 @@ public class ExportInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExportInfo(String exportAs, List exportOptions) { + public ExportInfo(@Nullable String exportAs, @Nullable List exportOptions) { this.exportAs = exportAs; if (exportOptions != null) { for (String x : exportOptions) { @@ -66,6 +71,7 @@ public ExportInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getExportAs() { return exportAs; } @@ -76,6 +82,7 @@ public String getExportAs() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getExportOptions() { return exportOptions; } 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 index ff1ddcfef..84b9dc312 100644 --- 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 @@ -16,12 +16,18 @@ 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; /** @@ -44,7 +50,7 @@ public class ExportMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExportMetadata(String name, long size, String exportHash, Long paperRevision) { + 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"); } @@ -74,7 +80,7 @@ public ExportMetadata(String name, long size, String exportHash, Long paperRevis * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExportMetadata(String name, long size) { + public ExportMetadata(@Nonnull String name, long size) { this(name, size, null, null); } @@ -84,6 +90,7 @@ public ExportMetadata(String name, long size) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -106,6 +113,7 @@ public long getSize() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getExportHash() { return exportHash; } @@ -117,6 +125,7 @@ public String getExportHash() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getPaperRevision() { return paperRevision; } 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 index 7e2cc6223..b109571c9 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -32,7 +36,7 @@ public class ExportResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExportResult(ExportMetadata exportMetadata, FileMetadata fileMetadata) { + public ExportResult(@Nonnull ExportMetadata exportMetadata, @Nonnull FileMetadata fileMetadata) { if (exportMetadata == null) { throw new IllegalArgumentException("Required value for 'exportMetadata' is null"); } @@ -48,6 +52,7 @@ public ExportResult(ExportMetadata exportMetadata, FileMetadata fileMetadata) { * * @return value for this field, never {@code null}. */ + @Nonnull public ExportMetadata getExportMetadata() { return exportMetadata; } @@ -57,6 +62,7 @@ public ExportMetadata getExportMetadata() { * * @return value for this field, never {@code null}. */ + @Nonnull public FileMetadata getFileMetadata() { return fileMetadata; } 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 index b4fe4d9d1..6ec395eb1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileLock { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLock(FileLockContent content) { + public FileLock(@Nonnull FileLockContent content) { if (content == null) { throw new IllegalArgumentException("Required value for 'content' is null"); } @@ -40,6 +43,7 @@ public FileLock(FileLockContent content) { * * @return value for this field, never {@code null}. */ + @Nonnull public FileLockContent getContent() { return content; } 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 index 5aa0c6621..97f1cdc28 100644 --- 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 @@ -18,12 +18,19 @@ 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; /** @@ -39,7 +46,7 @@ public class FileLockMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLockMetadata(Boolean isLockholder, String lockholderName, String lockholderAccountId, Date created) { + public FileLockMetadata(@Nullable Boolean isLockholder, @Nullable String lockholderName, @Nullable String lockholderAccountId, @Nullable Date created) { this.isLockholder = isLockholder; this.lockholderName = lockholderName; if (lockholderAccountId != null) { @@ -68,6 +75,7 @@ public FileLockMetadata() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsLockholder() { return isLockholder; } @@ -77,6 +85,7 @@ public Boolean getIsLockholder() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getLockholderName() { return lockholderName; } @@ -86,6 +95,7 @@ public String getLockholderName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getLockholderAccountId() { return lockholderAccountId; } @@ -95,6 +105,7 @@ public String getLockholderAccountId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getCreated() { return created; } 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 index 1e22329fc..27aadd676 100644 --- 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 @@ -21,22 +21,37 @@ 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; /** @@ -110,7 +125,7 @@ public class FileMetadata extends Metadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileMetadata(String name, String id, Date clientModified, Date serverModified, String rev, long size, String pathLower, String pathDisplay, String parentSharedFolderId, String previewUrl, MediaInfo mediaInfo, SymlinkInfo symlinkInfo, FileSharingInfo sharingInfo, boolean isDownloadable, ExportInfo exportInfo, List propertyGroups, Boolean hasExplicitSharedMembers, String contentHash, FileLockMetadata fileLockInfo) { + 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"); @@ -190,7 +205,7 @@ public FileMetadata(String name, String id, Date clientModified, Date serverModi * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileMetadata(String name, String id, Date clientModified, Date serverModified, String rev, long size) { + 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); } @@ -200,6 +215,7 @@ public FileMetadata(String name, String id, Date clientModified, Date serverModi * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -209,6 +225,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -222,6 +239,7 @@ public String getId() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getClientModified() { return clientModified; } @@ -231,6 +249,7 @@ public Date getClientModified() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getServerModified() { return serverModified; } @@ -242,6 +261,7 @@ public Date getServerModified() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getRev() { return rev; } @@ -261,6 +281,7 @@ public long getSize() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathLower() { return pathLower; } @@ -276,6 +297,7 @@ public String getPathLower() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathDisplay() { return pathDisplay; } @@ -286,6 +308,7 @@ public String getPathDisplay() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentSharedFolderId() { return parentSharedFolderId; } @@ -295,6 +318,7 @@ public String getParentSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviewUrl() { return previewUrl; } @@ -308,6 +332,7 @@ public String getPreviewUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MediaInfo getMediaInfo() { return mediaInfo; } @@ -317,6 +342,7 @@ public MediaInfo getMediaInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SymlinkInfo getSymlinkInfo() { return symlinkInfo; } @@ -326,6 +352,7 @@ public SymlinkInfo getSymlinkInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileSharingInfo getSharingInfo() { return sharingInfo; } @@ -346,6 +373,7 @@ public boolean getIsDownloadable() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ExportInfo getExportInfo() { return exportInfo; } @@ -356,6 +384,7 @@ public ExportInfo getExportInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getPropertyGroups() { return propertyGroups; } @@ -370,6 +399,7 @@ public List getPropertyGroups() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getHasExplicitSharedMembers() { return hasExplicitSharedMembers; } @@ -382,6 +412,7 @@ public Boolean getHasExplicitSharedMembers() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getContentHash() { return contentHash; } @@ -391,6 +422,7 @@ public String getContentHash() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileLockMetadata getFileLockInfo() { return fileLockInfo; } 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 index cafdab3db..bc87d3e43 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -40,7 +45,7 @@ public class FileSharingInfo extends SharingInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileSharingInfo(boolean readOnly, String parentSharedFolderId, String modifiedBy) { + public FileSharingInfo(boolean readOnly, @Nonnull String parentSharedFolderId, @Nullable String modifiedBy) { super(readOnly); if (parentSharedFolderId == null) { throw new IllegalArgumentException("Required value for 'parentSharedFolderId' is null"); @@ -73,7 +78,7 @@ public FileSharingInfo(boolean readOnly, String parentSharedFolderId, String mod * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileSharingInfo(boolean readOnly, String parentSharedFolderId) { + public FileSharingInfo(boolean readOnly, @Nonnull String parentSharedFolderId) { this(readOnly, parentSharedFolderId, null); } @@ -91,6 +96,7 @@ public boolean getReadOnly() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getParentSharedFolderId() { return parentSharedFolderId; } @@ -101,6 +107,7 @@ public String getParentSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getModifiedBy() { return modifiedBy; } 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 index 137b9da0b..ec9cfc498 100644 --- 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 @@ -18,12 +18,19 @@ 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; /** @@ -62,7 +69,7 @@ public class FolderMetadata extends Metadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderMetadata(String name, String id, String pathLower, String pathDisplay, String parentSharedFolderId, String previewUrl, String sharedFolderId, FolderSharingInfo sharingInfo, List propertyGroups) { + 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"); @@ -101,7 +108,7 @@ public FolderMetadata(String name, String id, String pathLower, String pathDispl * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderMetadata(String name, String id) { + public FolderMetadata(@Nonnull String name, @Nonnull String id) { this(name, id, null, null, null, null, null, null, null); } @@ -111,6 +118,7 @@ public FolderMetadata(String name, String id) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -120,6 +128,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -130,6 +139,7 @@ public String getId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathLower() { return pathLower; } @@ -145,6 +155,7 @@ public String getPathLower() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathDisplay() { return pathDisplay; } @@ -155,6 +166,7 @@ public String getPathDisplay() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentSharedFolderId() { return parentSharedFolderId; } @@ -164,6 +176,7 @@ public String getParentSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviewUrl() { return previewUrl; } @@ -173,6 +186,7 @@ public String getPreviewUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedFolderId() { return sharedFolderId; } @@ -183,6 +197,7 @@ public String getSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FolderSharingInfo getSharingInfo() { return sharingInfo; } @@ -195,6 +210,7 @@ public FolderSharingInfo getSharingInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getPropertyGroups() { return propertyGroups; } 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 index b07a9d7fa..60717e24d 100644 --- 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 @@ -16,6 +16,9 @@ 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. @@ -23,7 +26,9 @@ 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; @@ -52,7 +57,7 @@ public class FolderSharingInfo extends SharingInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderSharingInfo(boolean readOnly, String parentSharedFolderId, String sharedFolderId, boolean traverseOnly, boolean noAccess) { + 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)) { @@ -97,6 +102,7 @@ public boolean getReadOnly() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentSharedFolderId() { return parentSharedFolderId; } @@ -107,6 +113,7 @@ public String getParentSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedFolderId() { return sharedFolderId; } 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 index 423d614d3..24c0bb5f8 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -32,7 +35,7 @@ class GetCopyReferenceArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetCopyReferenceArg(String path) { + public GetCopyReferenceArg(@Nonnull String path) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -47,6 +50,7 @@ public GetCopyReferenceArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } 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 index 19987c394..5506af418 100644 --- 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 @@ -18,11 +18,16 @@ 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; /** @@ -38,7 +43,7 @@ public class GetCopyReferenceResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetCopyReferenceResult(Metadata metadata, String copyReference, Date expires) { + public GetCopyReferenceResult(@Nonnull Metadata metadata, @Nonnull String copyReference, @Nonnull Date expires) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -58,6 +63,7 @@ public GetCopyReferenceResult(Metadata metadata, String copyReference, Date expi * * @return value for this field, never {@code null}. */ + @Nonnull public Metadata getMetadata() { return metadata; } @@ -67,6 +73,7 @@ public Metadata getMetadata() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCopyReference() { return copyReference; } @@ -78,6 +85,7 @@ public String getCopyReference() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getExpires() { return expires; } 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 index c51a2480c..594103f13 100644 --- 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 @@ -18,13 +18,18 @@ 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; /** @@ -50,7 +55,7 @@ class GetMetadataArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetMetadataArg(String path, boolean includeMediaInfo, boolean includeDeleted, boolean includeHasExplicitSharedMembers, TemplateFilterBase includePropertyGroups) { + 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"); } @@ -76,7 +81,7 @@ public GetMetadataArg(String path, boolean includeMediaInfo, boolean includeDele * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetMetadataArg(String path) { + public GetMetadataArg(@Nonnull String path) { this(path, false, false, false, null); } @@ -85,6 +90,7 @@ public GetMetadataArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -128,6 +134,7 @@ public boolean getIncludeHasExplicitSharedMembers() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TemplateFilterBase getIncludePropertyGroups() { return includePropertyGroups; } 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 index b495c37b7..3db504215 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class GetTagsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTagsArg(List paths) { + public GetTagsArg(@Nonnull List paths) { if (paths == null) { throw new IllegalArgumentException("Required value for 'paths' is null"); } @@ -50,6 +53,7 @@ public GetTagsArg(List paths) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getPaths() { return paths; } 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 index ca4d94150..d7f89e6d0 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class GetTagsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTagsResult(List pathsToTags) { + public GetTagsResult(@Nonnull List pathsToTags) { if (pathsToTags == null) { throw new IllegalArgumentException("Required value for 'pathsToTags' is null"); } @@ -47,6 +50,7 @@ public GetTagsResult(List pathsToTags) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getPathsToTags() { return pathsToTags; } 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 index 9520c8e63..bdcf6bccc 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -32,7 +35,7 @@ class GetTemporaryLinkArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTemporaryLinkArg(String path) { + public GetTemporaryLinkArg(@Nonnull String path) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -47,6 +50,7 @@ public GetTemporaryLinkArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } 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 index eaf0e128d..ec7af910b 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -31,7 +35,7 @@ public class GetTemporaryLinkResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTemporaryLinkResult(FileMetadata metadata, String link) { + public GetTemporaryLinkResult(@Nonnull FileMetadata metadata, @Nonnull String link) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -47,6 +51,7 @@ public GetTemporaryLinkResult(FileMetadata metadata, String link) { * * @return value for this field, never {@code null}. */ + @Nonnull public FileMetadata getMetadata() { return metadata; } @@ -56,6 +61,7 @@ public FileMetadata getMetadata() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLink() { return link; } 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 index bbdd95e83..ff1894730 100644 --- 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 @@ -16,9 +16,12 @@ 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; @@ -35,7 +38,7 @@ class GetTemporaryUploadLinkArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTemporaryUploadLinkArg(CommitInfo commitInfo, double duration) { + public GetTemporaryUploadLinkArg(@Nonnull CommitInfo commitInfo, double duration) { if (commitInfo == null) { throw new IllegalArgumentException("Required value for 'commitInfo' is null"); } @@ -61,7 +64,7 @@ public GetTemporaryUploadLinkArg(CommitInfo commitInfo, double duration) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTemporaryUploadLinkArg(CommitInfo commitInfo) { + public GetTemporaryUploadLinkArg(@Nonnull CommitInfo commitInfo) { this(commitInfo, 14400.0); } @@ -72,6 +75,7 @@ public GetTemporaryUploadLinkArg(CommitInfo commitInfo) { * * @return value for this field, never {@code null}. */ + @Nonnull public CommitInfo getCommitInfo() { return commitInfo; } 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 index 5b3bf4bd3..4b0141532 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class GetTemporaryUploadLinkResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTemporaryUploadLinkResult(String link) { + public GetTemporaryUploadLinkResult(@Nonnull String link) { if (link == null) { throw new IllegalArgumentException("Required value for 'link' is null"); } @@ -42,6 +45,7 @@ public GetTemporaryUploadLinkResult(String link) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLink() { return link; } 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 index 18657b99b..3f4f5c681 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ class GetThumbnailBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetThumbnailBatchArg(List entries) { + public GetThumbnailBatchArg(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -51,6 +54,7 @@ public GetThumbnailBatchArg(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index 6410ff499..0f87418ca 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class GetThumbnailBatchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetThumbnailBatchResult(List entries) { + public GetThumbnailBatchResult(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -47,6 +50,7 @@ public GetThumbnailBatchResult(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index 068cb4a78..478b1b4c8 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -31,7 +35,7 @@ public class GetThumbnailBatchResultData { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetThumbnailBatchResultData(FileMetadata metadata, String thumbnail) { + public GetThumbnailBatchResultData(@Nonnull FileMetadata metadata, @Nonnull String thumbnail) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -46,6 +50,7 @@ public GetThumbnailBatchResultData(FileMetadata metadata, String thumbnail) { * * @return value for this field, never {@code null}. */ + @Nonnull public FileMetadata getMetadata() { return metadata; } @@ -55,6 +60,7 @@ public FileMetadata getMetadata() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getThumbnail() { return thumbnail; } 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 index 64962cd7d..c230b6582 100644 --- 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 @@ -16,9 +16,12 @@ 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; @@ -31,7 +34,7 @@ public class HighlightSpan { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public HighlightSpan(String highlightStr, boolean isHighlighted) { + public HighlightSpan(@Nonnull String highlightStr, boolean isHighlighted) { if (highlightStr == null) { throw new IllegalArgumentException("Required value for 'highlightStr' is null"); } @@ -44,6 +47,7 @@ public HighlightSpan(String highlightStr, boolean isHighlighted) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getHighlightStr() { return highlightStr; } 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 index 8eb9f7b4f..e78a3986a 100644 --- 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 @@ -18,17 +18,24 @@ 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; @@ -71,7 +78,7 @@ class ListFolderArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderArg(String path, boolean recursive, boolean includeMediaInfo, boolean includeDeleted, boolean includeHasExplicitSharedMembers, boolean includeMountedFolders, Long limit, SharedLink sharedLink, TemplateFilterBase includePropertyGroups, boolean includeNonDownloadableFiles) { + 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"); } @@ -109,7 +116,7 @@ public ListFolderArg(String path, boolean recursive, boolean includeMediaInfo, b * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderArg(String path) { + public ListFolderArg(@Nonnull String path) { this(path, false, false, false, false, true, null, null, null, true); } @@ -118,6 +125,7 @@ public ListFolderArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -184,6 +192,7 @@ public boolean getIncludeMountedFolders() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getLimit() { return limit; } @@ -196,6 +205,7 @@ public Long getLimit() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedLink getSharedLink() { return sharedLink; } @@ -207,6 +217,7 @@ public SharedLink getSharedLink() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TemplateFilterBase getIncludePropertyGroups() { return includePropertyGroups; } 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 index 2ec7d9b1f..b749430d0 100644 --- 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 @@ -16,9 +16,12 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + class ListFolderContinueArg { // struct files.ListFolderContinueArg (files.stone) + @Nonnull protected final String cursor; /** @@ -31,7 +34,7 @@ class ListFolderContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderContinueArg(String cursor) { + public ListFolderContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -48,6 +51,7 @@ public ListFolderContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 548f9d581..720657cf9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -31,7 +34,7 @@ public class ListFolderGetLatestCursorResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderGetLatestCursorResult(String cursor) { + public ListFolderGetLatestCursorResult(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -48,6 +51,7 @@ public ListFolderGetLatestCursorResult(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 67f7272d5..2dcd12d51 100644 --- 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 @@ -16,9 +16,12 @@ 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; @@ -40,7 +43,7 @@ class ListFolderLongpollArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderLongpollArg(String cursor, long timeout) { + public ListFolderLongpollArg(@Nonnull String cursor, long timeout) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -72,7 +75,7 @@ public ListFolderLongpollArg(String cursor, long timeout) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderLongpollArg(String cursor) { + public ListFolderLongpollArg(@Nonnull String cursor) { this(cursor, 30L); } @@ -84,6 +87,7 @@ public ListFolderLongpollArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index cced05e0f..975f5edea 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -31,7 +35,7 @@ public class ListFolderLongpollResult { * calling {@link DbxUserFilesRequests#listFolderLongpoll(String,long)} * again. */ - public ListFolderLongpollResult(boolean changes, Long backoff) { + public ListFolderLongpollResult(boolean changes, @Nullable Long backoff) { this.changes = changes; this.backoff = backoff; } @@ -65,6 +69,7 @@ public boolean getChanges() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getBackoff() { return backoff; } 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 index 8e45e68ff..7f89084a5 100644 --- 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 @@ -17,10 +17,14 @@ 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; @@ -39,7 +43,7 @@ public class ListFolderResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderResult(List entries, String cursor, boolean hasMore) { + public ListFolderResult(@Nonnull List entries, @Nonnull String cursor, boolean hasMore) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -64,6 +68,7 @@ public ListFolderResult(List entries, String cursor, boolean hasMore) * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } @@ -75,6 +80,7 @@ public List getEntries() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 96355170a..23292e7e3 100644 --- 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 @@ -17,10 +17,14 @@ 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; @@ -39,7 +43,7 @@ class ListRevisionsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListRevisionsArg(String path, ListRevisionsMode mode, long limit) { + public ListRevisionsArg(@Nonnull String path, @Nonnull ListRevisionsMode mode, long limit) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -72,7 +76,7 @@ public ListRevisionsArg(String path, ListRevisionsMode mode, long limit) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListRevisionsArg(String path) { + public ListRevisionsArg(@Nonnull String path) { this(path, ListRevisionsMode.PATH, 10L); } @@ -81,6 +85,7 @@ public ListRevisionsArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -92,6 +97,7 @@ public String getPath() { * @return value for this field, or {@code null} if not present. Defaults to * ListRevisionsMode.PATH. */ + @Nonnull public ListRevisionsMode getMode() { return mode; } 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 index 8d6349d10..5427bae20 100644 --- 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 @@ -19,11 +19,16 @@ 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; /** @@ -38,7 +43,7 @@ public class ListRevisionsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListRevisionsResult(boolean isDeleted, List entries, Date serverDeleted) { + public ListRevisionsResult(boolean isDeleted, @Nonnull List entries, @Nullable Date serverDeleted) { this.isDeleted = isDeleted; this.serverDeleted = LangUtil.truncateMillis(serverDeleted); if (entries == null) { @@ -66,7 +71,7 @@ public ListRevisionsResult(boolean isDeleted, List entries, Date s * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListRevisionsResult(boolean isDeleted, List entries) { + public ListRevisionsResult(boolean isDeleted, @Nonnull List entries) { this(isDeleted, entries, null); } @@ -86,6 +91,7 @@ public boolean getIsDeleted() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } @@ -95,6 +101,7 @@ public List getEntries() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getServerDeleted() { return serverDeleted; } 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 index 7c08de63b..d3b43bffa 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LockConflictError { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LockConflictError(FileLock lock) { + public LockConflictError(@Nonnull FileLock lock) { if (lock == null) { throw new IllegalArgumentException("Required value for 'lock' is null"); } @@ -40,6 +43,7 @@ public LockConflictError(FileLock lock) { * * @return value for this field, never {@code null}. */ + @Nonnull public FileLock getLock() { return lock; } 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 index 15eb5d1cf..a8aa36464 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ public class LockFileArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LockFileArg(String path) { + public LockFileArg(@Nonnull String path) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -46,6 +49,7 @@ public LockFileArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } 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 index 91eaa4eae..e738dbb56 100644 --- 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 @@ -17,9 +17,12 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + class LockFileBatchArg { // struct files.LockFileBatchArg (files.stone) + @Nonnull protected final List entries; /** @@ -32,7 +35,7 @@ class LockFileBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LockFileBatchArg(List entries) { + public LockFileBatchArg(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -51,6 +54,7 @@ public LockFileBatchArg(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index d9f3f5435..4402f5255 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -32,7 +35,7 @@ public class LockFileBatchResult extends FileOpsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LockFileBatchResult(List entries) { + public LockFileBatchResult(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -51,6 +54,7 @@ public LockFileBatchResult(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index 5675e6b30..4c59159e3 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -31,7 +35,7 @@ public class LockFileResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LockFileResult(Metadata metadata, FileLock lock) { + public LockFileResult(@Nonnull Metadata metadata, @Nonnull FileLock lock) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -47,6 +51,7 @@ public LockFileResult(Metadata metadata, FileLock lock) { * * @return value for this field, never {@code null}. */ + @Nonnull public Metadata getMetadata() { return metadata; } @@ -56,6 +61,7 @@ public Metadata getMetadata() { * * @return value for this field, never {@code null}. */ + @Nonnull public FileLock getLock() { return lock; } 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 index a31d0a0eb..b248c3bee 100644 --- 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 @@ -18,14 +18,20 @@ 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; /** @@ -38,7 +44,7 @@ public class MediaMetadata { * @param location The GPS coordinate of the photo/video. * @param timeTaken The timestamp when the photo/video is taken. */ - public MediaMetadata(Dimensions dimensions, GpsCoordinates location, Date timeTaken) { + public MediaMetadata(@Nullable Dimensions dimensions, @Nullable GpsCoordinates location, @Nullable Date timeTaken) { this.dimensions = dimensions; this.location = location; this.timeTaken = LangUtil.truncateMillis(timeTaken); @@ -58,6 +64,7 @@ public MediaMetadata() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Dimensions getDimensions() { return dimensions; } @@ -67,6 +74,7 @@ public Dimensions getDimensions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GpsCoordinates getLocation() { return location; } @@ -76,6 +84,7 @@ public GpsCoordinates getLocation() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getTimeTaken() { return timeTaken; } 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 index abc3bc797..0faa78533 100644 --- 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 @@ -16,16 +16,24 @@ 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; /** @@ -55,7 +63,7 @@ public class Metadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Metadata(String name, String pathLower, String pathDisplay, String parentSharedFolderId, String previewUrl) { + 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"); } @@ -82,7 +90,7 @@ public Metadata(String name, String pathLower, String pathDisplay, String parent * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Metadata(String name) { + public Metadata(@Nonnull String name) { this(name, null, null, null, null); } @@ -92,6 +100,7 @@ public Metadata(String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -102,6 +111,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathLower() { return pathLower; } @@ -117,6 +127,7 @@ public String getPathLower() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathDisplay() { return pathDisplay; } @@ -127,6 +138,7 @@ public String getPathDisplay() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentSharedFolderId() { return parentSharedFolderId; } @@ -136,6 +148,7 @@ public String getParentSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviewUrl() { return previewUrl; } 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 index a9f8dc388..589d68822 100644 --- 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 @@ -17,12 +17,19 @@ 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; /** @@ -43,7 +50,7 @@ public class MinimalFileLinkMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MinimalFileLinkMetadata(String url, String rev, String id, String path) { + 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"); } @@ -81,7 +88,7 @@ public MinimalFileLinkMetadata(String url, String rev, String id, String path) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MinimalFileLinkMetadata(String url, String rev) { + public MinimalFileLinkMetadata(@Nonnull String url, @Nonnull String rev) { this(url, rev, null, null); } @@ -90,6 +97,7 @@ public MinimalFileLinkMetadata(String url, String rev) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -101,6 +109,7 @@ public String getUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getRev() { return rev; } @@ -110,6 +119,7 @@ public String getRev() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getId() { return id; } @@ -121,6 +131,7 @@ public String getId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPath() { return path; } 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 index 3c5444b07..faf5f12f8 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + class MoveBatchArg extends RelocationBatchArgBase { // struct files.MoveBatchArg (files.stone) @@ -39,7 +41,7 @@ class MoveBatchArg extends RelocationBatchArgBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MoveBatchArg(List entries, boolean autorename, boolean allowOwnershipTransfer) { + public MoveBatchArg(@Nonnull List entries, boolean autorename, boolean allowOwnershipTransfer) { super(entries, autorename); this.allowOwnershipTransfer = allowOwnershipTransfer; } @@ -57,7 +59,7 @@ public MoveBatchArg(List entries, boolean autorename, boolean al * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MoveBatchArg(List entries) { + public MoveBatchArg(@Nonnull List entries) { this(entries, false, false); } @@ -67,6 +69,7 @@ public MoveBatchArg(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index 9e3b0f219..8f7edde56 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -35,7 +39,7 @@ class PaperCreateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperCreateArg(String path, ImportFormat importFormat) { + public PaperCreateArg(@Nonnull String path, @Nonnull ImportFormat importFormat) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -56,6 +60,7 @@ public PaperCreateArg(String path, ImportFormat importFormat) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -65,6 +70,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public ImportFormat getImportFormat() { return importFormat; } 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 index 6c8e6887d..dd5b03b38 100644 --- 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 @@ -17,11 +17,16 @@ 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; @@ -38,7 +43,7 @@ public class PaperCreateResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperCreateResult(String url, String resultPath, String fileId, long paperRevision) { + 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"); } @@ -65,6 +70,7 @@ public PaperCreateResult(String url, String resultPath, String fileId, long pape * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -74,6 +80,7 @@ public String getUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getResultPath() { return resultPath; } @@ -83,6 +90,7 @@ public String getResultPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFileId() { return fileId; } 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 index 13ee93b18..1b66e1921 100644 --- 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 @@ -17,12 +17,19 @@ 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; /** @@ -42,7 +49,7 @@ class PaperUpdateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperUpdateArg(String path, ImportFormat importFormat, PaperDocUpdatePolicy docUpdatePolicy, Long paperRevision) { + 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"); } @@ -78,7 +85,7 @@ public PaperUpdateArg(String path, ImportFormat importFormat, PaperDocUpdatePoli * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperUpdateArg(String path, ImportFormat importFormat, PaperDocUpdatePolicy docUpdatePolicy) { + public PaperUpdateArg(@Nonnull String path, @Nonnull ImportFormat importFormat, @Nonnull PaperDocUpdatePolicy docUpdatePolicy) { this(path, importFormat, docUpdatePolicy, null); } @@ -88,6 +95,7 @@ public PaperUpdateArg(String path, ImportFormat importFormat, PaperDocUpdatePoli * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -97,6 +105,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public ImportFormat getImportFormat() { return importFormat; } @@ -106,6 +115,7 @@ public ImportFormat getImportFormat() { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperDocUpdatePolicy getDocUpdatePolicy() { return docUpdatePolicy; } @@ -117,6 +127,7 @@ public PaperDocUpdatePolicy getDocUpdatePolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getPaperRevision() { return paperRevision; } 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 index ed584cf82..7b75018a8 100644 --- 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 @@ -18,10 +18,14 @@ 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; /** @@ -34,7 +38,7 @@ public class PathToTags { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PathToTags(String path, List tags) { + public PathToTags(@Nonnull String path, @Nonnull List tags) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -58,6 +62,7 @@ public PathToTags(String path, List tags) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -67,6 +72,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getTags() { return tags; } 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 index 25410d7cd..b641a6f4e 100644 --- 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 @@ -17,6 +17,9 @@ import java.io.IOException; import java.util.Date; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Metadata for a photo. */ @@ -34,7 +37,7 @@ public class PhotoMetadata extends MediaMetadata { * @param location The GPS coordinate of the photo/video. * @param timeTaken The timestamp when the photo/video is taken. */ - public PhotoMetadata(Dimensions dimensions, GpsCoordinates location, Date timeTaken) { + public PhotoMetadata(@Nullable Dimensions dimensions, @Nullable GpsCoordinates location, @Nullable Date timeTaken) { super(dimensions, location, timeTaken); } @@ -52,6 +55,7 @@ public PhotoMetadata() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Dimensions getDimensions() { return dimensions; } @@ -61,6 +65,7 @@ public Dimensions getDimensions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GpsCoordinates getLocation() { return location; } @@ -70,6 +75,7 @@ public GpsCoordinates getLocation() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getTimeTaken() { return timeTaken; } 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 index d279e232b..83ec438e7 100644 --- 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 @@ -17,10 +17,15 @@ 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; /** @@ -35,7 +40,7 @@ class PreviewArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PreviewArg(String path, String rev) { + public PreviewArg(@Nonnull String path, @Nullable String rev) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -66,7 +71,7 @@ public PreviewArg(String path, String rev) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PreviewArg(String path) { + public PreviewArg(@Nonnull String path) { this(path, null); } @@ -75,6 +80,7 @@ public PreviewArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -85,6 +91,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getRev() { return rev; } 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 index 7f270a34c..a09eb6e85 100644 --- 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 @@ -16,10 +16,15 @@ 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; /** @@ -33,7 +38,7 @@ public class PreviewResult { * as an argument. Will be populated if the endpoint is called using a * shared link (SharedLinkFileInfo). */ - public PreviewResult(FileMetadata fileMetadata, MinimalFileLinkMetadata linkMetadata) { + public PreviewResult(@Nullable FileMetadata fileMetadata, @Nullable MinimalFileLinkMetadata linkMetadata) { this.fileMetadata = fileMetadata; this.linkMetadata = linkMetadata; } @@ -53,6 +58,7 @@ public PreviewResult() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileMetadata getFileMetadata() { return fileMetadata; } @@ -64,6 +70,7 @@ public FileMetadata getFileMetadata() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MinimalFileLinkMetadata getLinkMetadata() { return linkMetadata; } 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 index aa5c4840d..166ad2154 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.regex.Pattern; +import javax.annotation.Nonnull; + class RelocationArg extends RelocationPath { // struct files.RelocationArg (files.stone) @@ -44,7 +46,7 @@ class RelocationArg extends RelocationPath { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationArg(String fromPath, String toPath, boolean allowSharedFolder, boolean autorename, boolean allowOwnershipTransfer) { + public RelocationArg(@Nonnull String fromPath, @Nonnull String toPath, boolean allowSharedFolder, boolean autorename, boolean allowOwnershipTransfer) { super(fromPath, toPath); this.allowSharedFolder = allowSharedFolder; this.autorename = autorename; @@ -66,7 +68,7 @@ public RelocationArg(String fromPath, String toPath, boolean allowSharedFolder, * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationArg(String fromPath, String toPath) { + public RelocationArg(@Nonnull String fromPath, @Nonnull String toPath) { this(fromPath, toPath, false, false, false); } @@ -75,6 +77,7 @@ public RelocationArg(String fromPath, String toPath) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFromPath() { return fromPath; } @@ -84,6 +87,7 @@ public String getFromPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getToPath() { return toPath; } 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 index 94a9889af..8599c194d 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + class RelocationBatchArg extends RelocationBatchArgBase { // struct files.RelocationBatchArg (files.stone) @@ -41,7 +43,7 @@ class RelocationBatchArg extends RelocationBatchArgBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationBatchArg(List entries, boolean autorename, boolean allowSharedFolder, boolean allowOwnershipTransfer) { + public RelocationBatchArg(@Nonnull List entries, boolean autorename, boolean allowSharedFolder, boolean allowOwnershipTransfer) { super(entries, autorename); this.allowSharedFolder = allowSharedFolder; this.allowOwnershipTransfer = allowOwnershipTransfer; @@ -60,7 +62,7 @@ public RelocationBatchArg(List entries, boolean autorename, bool * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationBatchArg(List entries) { + public RelocationBatchArg(@Nonnull List entries) { this(entries, false, false, false); } @@ -70,6 +72,7 @@ public RelocationBatchArg(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index 96e1802ec..0de8db2ce 100644 --- 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 @@ -17,9 +17,12 @@ 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; @@ -35,7 +38,7 @@ class RelocationBatchArgBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationBatchArgBase(List entries, boolean autorename) { + public RelocationBatchArgBase(@Nonnull List entries, boolean autorename) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -67,7 +70,7 @@ public RelocationBatchArgBase(List entries, boolean autorename) * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationBatchArgBase(List entries) { + public RelocationBatchArgBase(@Nonnull List entries) { this(entries, false); } @@ -77,6 +80,7 @@ public RelocationBatchArgBase(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index b7a23e9bf..06d28a0b4 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class RelocationBatchResult extends FileOpsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationBatchResult(List entries) { + public RelocationBatchResult(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -46,6 +49,7 @@ public RelocationBatchResult(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index 10c8a5e67..954e56791 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class RelocationBatchResultData { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationBatchResultData(Metadata metadata) { + public RelocationBatchResultData(@Nonnull Metadata metadata) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -41,6 +44,7 @@ public RelocationBatchResultData(Metadata metadata) { * * @return value for this field, never {@code null}. */ + @Nonnull public Metadata getMetadata() { return metadata; } 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 index 553b2f0a6..69baca3fd 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -33,7 +36,7 @@ public class RelocationBatchV2Result extends FileOpsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationBatchV2Result(List entries) { + public RelocationBatchV2Result(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -52,6 +55,7 @@ public RelocationBatchV2Result(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index af6fed36a..7fe9500a0 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -35,7 +39,7 @@ public class RelocationPath { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationPath(String fromPath, String toPath) { + public RelocationPath(@Nonnull String fromPath, @Nonnull String toPath) { if (fromPath == null) { throw new IllegalArgumentException("Required value for 'fromPath' is null"); } @@ -57,6 +61,7 @@ public RelocationPath(String fromPath, String toPath) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFromPath() { return fromPath; } @@ -66,6 +71,7 @@ public String getFromPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getToPath() { return toPath; } 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 index 561cf812c..9ce205120 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class RelocationResult extends FileOpsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelocationResult(Metadata metadata) { + public RelocationResult(@Nonnull Metadata metadata) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -41,6 +44,7 @@ public RelocationResult(Metadata metadata) { * * @return value for this field, never {@code null}. */ + @Nonnull public Metadata getMetadata() { return metadata; } 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 index 95b46cec8..4ecd1386f 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -34,7 +38,7 @@ class RemoveTagArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RemoveTagArg(String path, String tagText) { + public RemoveTagArg(@Nonnull String path, @Nonnull String tagText) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -62,6 +66,7 @@ public RemoveTagArg(String path, String tagText) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -71,6 +76,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTagText() { return tagText; } 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 index de034ea6b..dcee11dd9 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -33,7 +37,7 @@ class RestoreArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RestoreArg(String path, String rev) { + public RestoreArg(@Nonnull String path, @Nonnull String rev) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -58,6 +62,7 @@ public RestoreArg(String path, String rev) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -67,6 +72,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getRev() { return rev; } 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 index 5fb85af23..1f9250dd5 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -34,7 +38,7 @@ class SaveCopyReferenceArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SaveCopyReferenceArg(String copyReference, String path) { + public SaveCopyReferenceArg(@Nonnull String copyReference, @Nonnull String path) { if (copyReference == null) { throw new IllegalArgumentException("Required value for 'copyReference' is null"); } @@ -54,6 +58,7 @@ public SaveCopyReferenceArg(String copyReference, String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCopyReference() { return copyReference; } @@ -63,6 +68,7 @@ public String getCopyReference() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } 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 index 3e69e1e68..9455df7b8 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class SaveCopyReferenceResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SaveCopyReferenceResult(Metadata metadata) { + public SaveCopyReferenceResult(@Nonnull Metadata metadata) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -41,6 +44,7 @@ public SaveCopyReferenceResult(Metadata metadata) { * * @return value for this field, never {@code null}. */ + @Nonnull public Metadata getMetadata() { return metadata; } 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 index 339a0abb8..73d36ac5f 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -32,7 +36,7 @@ class SaveUrlArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SaveUrlArg(String path, String url) { + public SaveUrlArg(@Nonnull String path, @Nonnull String url) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -51,6 +55,7 @@ public SaveUrlArg(String path, String url) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -60,6 +65,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } 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 index 76443dbf8..fd62b4ff3 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -49,7 +54,7 @@ class SearchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchArg(String path, String query, long start, long maxResults, SearchMode mode) { + 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"); } @@ -98,7 +103,7 @@ public SearchArg(String path, String query, long start, long maxResults, SearchM * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchArg(String path, String query) { + public SearchArg(@Nonnull String path, @Nonnull String query) { this(path, query, 0L, 100L, SearchMode.FILENAME); } @@ -107,6 +112,7 @@ public SearchArg(String path, String query) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -119,6 +125,7 @@ public String getPath() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getQuery() { return query; } @@ -151,6 +158,7 @@ public long getMaxResults() { * @return value for this field, or {@code null} if not present. Defaults to * SearchMode.FILENAME. */ + @Nonnull public SearchMode getMode() { return mode; } 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 index b6e6867e7..b22783ab6 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -31,7 +35,7 @@ public class SearchMatch { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchMatch(SearchMatchType matchType, Metadata metadata) { + public SearchMatch(@Nonnull SearchMatchType matchType, @Nonnull Metadata metadata) { if (matchType == null) { throw new IllegalArgumentException("Required value for 'matchType' is null"); } @@ -47,6 +51,7 @@ public SearchMatch(SearchMatchType matchType, Metadata metadata) { * * @return value for this field, never {@code null}. */ + @Nonnull public SearchMatchType getMatchType() { return matchType; } @@ -56,6 +61,7 @@ public SearchMatchType getMatchType() { * * @return value for this field, never {@code null}. */ + @Nonnull public Metadata getMetadata() { return metadata; } 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 index 39c26126f..bd9e33a8a 100644 --- 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 @@ -17,11 +17,17 @@ 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; /** @@ -38,7 +44,7 @@ public class SearchMatchV2 { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchMatchV2(MetadataV2 metadata, SearchMatchTypeV2 matchType, List highlightSpans) { + public SearchMatchV2(@Nonnull MetadataV2 metadata, @Nullable SearchMatchTypeV2 matchType, @Nullable List highlightSpans) { if (metadata == null) { throw new IllegalArgumentException("Required value for 'metadata' is null"); } @@ -65,7 +71,7 @@ public SearchMatchV2(MetadataV2 metadata, SearchMatchTypeV2 matchType, List getHighlightSpans() { return highlightSpans; } 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 index 287e774b9..cf881862e 100644 --- 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 @@ -17,16 +17,25 @@ 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; /** @@ -55,7 +64,7 @@ public class SearchOptions { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchOptions(String path, long maxResults, SearchOrderBy orderBy, FileStatus fileStatus, boolean filenameOnly, List fileExtensions, List fileCategories, String accountId) { + 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"); @@ -117,6 +126,7 @@ public SearchOptions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPath() { return path; } @@ -137,6 +147,7 @@ public long getMaxResults() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SearchOrderBy getOrderBy() { return orderBy; } @@ -147,6 +158,7 @@ public SearchOrderBy getOrderBy() { * @return value for this field, or {@code null} if not present. Defaults to * FileStatus.ACTIVE. */ + @Nonnull public FileStatus getFileStatus() { return fileStatus; } @@ -167,6 +179,7 @@ public boolean getFilenameOnly() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getFileExtensions() { return fileExtensions; } @@ -177,6 +190,7 @@ public List getFileExtensions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getFileCategories() { return fileCategories; } @@ -186,6 +200,7 @@ public List getFileCategories() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAccountId() { return accountId; } 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 index 10b2a7a39..6da8ac9a8 100644 --- 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 @@ -17,9 +17,12 @@ 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; @@ -38,7 +41,7 @@ public class SearchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchResult(List matches, boolean more, long start) { + public SearchResult(@Nonnull List matches, boolean more, long start) { if (matches == null) { throw new IllegalArgumentException("Required value for 'matches' is null"); } @@ -57,6 +60,7 @@ public SearchResult(List matches, boolean more, long start) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMatches() { return matches; } 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 index bfd269713..559033fcb 100644 --- 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 @@ -16,12 +16,19 @@ 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; /** @@ -39,7 +46,7 @@ class SearchV2Arg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchV2Arg(String query, SearchOptions options, SearchMatchFieldOptions matchFieldOptions, Boolean includeHighlights) { + 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"); } @@ -64,7 +71,7 @@ public SearchV2Arg(String query, SearchOptions options, SearchMatchFieldOptions * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchV2Arg(String query) { + public SearchV2Arg(@Nonnull String query) { this(query, null, null, null); } @@ -74,6 +81,7 @@ public SearchV2Arg(String query) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getQuery() { return query; } @@ -83,6 +91,7 @@ public String getQuery() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SearchOptions getOptions() { return options; } @@ -92,6 +101,7 @@ public SearchOptions getOptions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SearchMatchFieldOptions getMatchFieldOptions() { return matchFieldOptions; } @@ -101,6 +111,7 @@ public SearchMatchFieldOptions getMatchFieldOptions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIncludeHighlights() { return includeHighlights; } 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 index e34b67d60..823997a38 100644 --- 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 @@ -16,9 +16,12 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + class SearchV2ContinueArg { // struct files.SearchV2ContinueArg (files.stone) + @Nonnull protected final String cursor; /** @@ -30,7 +33,7 @@ class SearchV2ContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchV2ContinueArg(String cursor) { + public SearchV2ContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -47,6 +50,7 @@ public SearchV2ContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index cfadbfa3d..559ab427a 100644 --- 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 @@ -17,11 +17,16 @@ 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; /** @@ -38,7 +43,7 @@ public class SearchV2Result { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchV2Result(List matches, boolean hasMore, String cursor) { + public SearchV2Result(@Nonnull List matches, boolean hasMore, @Nullable String cursor) { if (matches == null) { throw new IllegalArgumentException("Required value for 'matches' is null"); } @@ -71,7 +76,7 @@ public SearchV2Result(List matches, boolean hasMore, String curso * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SearchV2Result(List matches, boolean hasMore) { + public SearchV2Result(@Nonnull List matches, boolean hasMore) { this(matches, hasMore, null); } @@ -80,6 +85,7 @@ public SearchV2Result(List matches, boolean hasMore) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMatches() { return matches; } @@ -102,6 +108,7 @@ public boolean getHasMore() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index 7ac328720..af65e6e3f 100644 --- 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 @@ -16,10 +16,15 @@ 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; /** @@ -30,7 +35,7 @@ public class SharedLink { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLink(String url, String password) { + public SharedLink(@Nonnull String url, @Nullable String password) { if (url == null) { throw new IllegalArgumentException("Required value for 'url' is null"); } @@ -48,7 +53,7 @@ public SharedLink(String url, String password) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLink(String url) { + public SharedLink(@Nonnull String url) { this(url, null); } @@ -57,6 +62,7 @@ public SharedLink(String url) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -66,6 +72,7 @@ public String getUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPassword() { return password; } 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 index f94cfe977..4fed33361 100644 --- 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 @@ -16,11 +16,17 @@ 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; /** @@ -40,7 +46,7 @@ public class SharedLinkFileInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkFileInfo(String url, String path, String password) { + public SharedLinkFileInfo(@Nonnull String url, @Nullable String path, @Nullable String password) { if (url == null) { throw new IllegalArgumentException("Required value for 'url' is null"); } @@ -62,7 +68,7 @@ public SharedLinkFileInfo(String url, String path, String password) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkFileInfo(String url) { + public SharedLinkFileInfo(@Nonnull String url) { this(url, null, null); } @@ -73,6 +79,7 @@ public SharedLinkFileInfo(String url) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -83,6 +90,7 @@ public String getUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPath() { return path; } @@ -93,6 +101,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPassword() { return password; } 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 index f7c68b5c1..61accce72 100644 --- 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 @@ -18,11 +18,17 @@ 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; /** @@ -37,7 +43,7 @@ public class SingleUserLock { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SingleUserLock(Date created, String lockHolderAccountId, String lockHolderTeamId) { + public SingleUserLock(@Nonnull Date created, @Nonnull String lockHolderAccountId, @Nullable String lockHolderTeamId) { if (created == null) { throw new IllegalArgumentException("Required value for 'created' is null"); } @@ -68,7 +74,7 @@ public SingleUserLock(Date created, String lockHolderAccountId, String lockHolde * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SingleUserLock(Date created, String lockHolderAccountId) { + public SingleUserLock(@Nonnull Date created, @Nonnull String lockHolderAccountId) { this(created, lockHolderAccountId, null); } @@ -77,6 +83,7 @@ public SingleUserLock(Date created, String lockHolderAccountId) { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getCreated() { return created; } @@ -86,6 +93,7 @@ public Date getCreated() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLockHolderAccountId() { return lockHolderAccountId; } @@ -95,6 +103,7 @@ public String getLockHolderAccountId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getLockHolderTeamId() { return lockHolderTeamId; } 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 index e2b59093e..2c1a0639e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class SymlinkInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SymlinkInfo(String target) { + public SymlinkInfo(@Nonnull String target) { if (target == null) { throw new IllegalArgumentException("Required value for 'target' is null"); } @@ -41,6 +44,7 @@ public SymlinkInfo(String target) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTarget() { return target; } 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 index 81478b079..28ebc8265 100644 --- 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 @@ -17,12 +17,18 @@ 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; /** @@ -43,7 +49,7 @@ public class ThumbnailArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ThumbnailArg(String path, ThumbnailFormat format, ThumbnailSize size, ThumbnailMode mode) { + 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"); } @@ -78,7 +84,7 @@ public ThumbnailArg(String path, ThumbnailFormat format, ThumbnailSize size, Thu * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ThumbnailArg(String path) { + public ThumbnailArg(@Nonnull String path) { this(path, ThumbnailFormat.JPEG, ThumbnailSize.W64H64, ThumbnailMode.STRICT); } @@ -87,6 +93,7 @@ public ThumbnailArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -99,6 +106,7 @@ public String getPath() { * @return value for this field, or {@code null} if not present. Defaults to * ThumbnailFormat.JPEG. */ + @Nonnull public ThumbnailFormat getFormat() { return format; } @@ -109,6 +117,7 @@ public ThumbnailFormat getFormat() { * @return value for this field, or {@code null} if not present. Defaults to * ThumbnailSize.W64H64. */ + @Nonnull public ThumbnailSize getSize() { return size; } @@ -119,6 +128,7 @@ public ThumbnailSize getSize() { * @return value for this field, or {@code null} if not present. Defaults to * ThumbnailMode.STRICT. */ + @Nonnull public ThumbnailMode getMode() { return mode; } 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 index e9473bbf7..c28ef44d1 100644 --- 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 @@ -16,12 +16,18 @@ 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; /** @@ -42,7 +48,7 @@ class ThumbnailV2Arg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ThumbnailV2Arg(PathOrLink resource, ThumbnailFormat format, ThumbnailSize size, ThumbnailMode mode) { + 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"); } @@ -74,7 +80,7 @@ public ThumbnailV2Arg(PathOrLink resource, ThumbnailFormat format, ThumbnailSize * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ThumbnailV2Arg(PathOrLink resource) { + public ThumbnailV2Arg(@Nonnull PathOrLink resource) { this(resource, ThumbnailFormat.JPEG, ThumbnailSize.W64H64, ThumbnailMode.STRICT); } @@ -85,6 +91,7 @@ public ThumbnailV2Arg(PathOrLink resource) { * * @return value for this field, never {@code null}. */ + @Nonnull public PathOrLink getResource() { return resource; } @@ -97,6 +104,7 @@ public PathOrLink getResource() { * @return value for this field, or {@code null} if not present. Defaults to * ThumbnailFormat.JPEG. */ + @Nonnull public ThumbnailFormat getFormat() { return format; } @@ -107,6 +115,7 @@ public ThumbnailFormat getFormat() { * @return value for this field, or {@code null} if not present. Defaults to * ThumbnailSize.W64H64. */ + @Nonnull public ThumbnailSize getSize() { return size; } @@ -117,6 +126,7 @@ public ThumbnailSize getSize() { * @return value for this field, or {@code null} if not present. Defaults to * ThumbnailMode.STRICT. */ + @Nonnull public ThumbnailMode getMode() { return mode; } 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 index 62a0f334f..d593fdca8 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ public class UnlockFileArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UnlockFileArg(String path) { + public UnlockFileArg(@Nonnull String path) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -46,6 +49,7 @@ public UnlockFileArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } 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 index a559d2a93..af8c5b9ba 100644 --- 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 @@ -17,9 +17,12 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + class UnlockFileBatchArg { // struct files.UnlockFileBatchArg (files.stone) + @Nonnull protected final List entries; /** @@ -32,7 +35,7 @@ class UnlockFileBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UnlockFileBatchArg(List entries) { + public UnlockFileBatchArg(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -50,6 +53,7 @@ public UnlockFileBatchArg(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index bebe6c18a..428108ac9 100644 --- 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 @@ -21,9 +21,13 @@ 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; /** @@ -66,7 +70,7 @@ class UploadArg extends CommitInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadArg(String path, WriteMode mode, boolean autorename, Date clientModified, boolean mute, List propertyGroups, boolean strictConflict, String contentHash) { + 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) { @@ -91,7 +95,7 @@ public UploadArg(String path, WriteMode mode, boolean autorename, Date clientMod * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadArg(String path) { + public UploadArg(@Nonnull String path) { this(path, WriteMode.ADD, false, null, false, null, false, null); } @@ -100,6 +104,7 @@ public UploadArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -110,6 +115,7 @@ public String getPath() { * @return value for this field, or {@code null} if not present. Defaults to * WriteMode.ADD. */ + @Nonnull public WriteMode getMode() { return mode; } @@ -134,6 +140,7 @@ public boolean getAutorename() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getClientModified() { return clientModified; } @@ -156,6 +163,7 @@ public boolean getMute() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getPropertyGroups() { return propertyGroups; } @@ -184,6 +192,7 @@ public boolean getStrictConflict() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getContentHash() { return contentHash; } 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 index 9247360f9..8a57b4c5c 100644 --- 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 @@ -16,11 +16,16 @@ 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; /** @@ -43,7 +48,7 @@ class UploadSessionAppendArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionAppendArg(UploadSessionCursor cursor, boolean close, String contentHash) { + public UploadSessionAppendArg(@Nonnull UploadSessionCursor cursor, boolean close, @Nullable String contentHash) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -71,7 +76,7 @@ public UploadSessionAppendArg(UploadSessionCursor cursor, boolean close, String * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionAppendArg(UploadSessionCursor cursor) { + public UploadSessionAppendArg(@Nonnull UploadSessionCursor cursor) { this(cursor, false, null); } @@ -80,6 +85,7 @@ public UploadSessionAppendArg(UploadSessionCursor cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public UploadSessionCursor getCursor() { return cursor; } @@ -106,6 +112,7 @@ public boolean getClose() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getContentHash() { return contentHash; } 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 index ca7edb096..51d575e9d 100644 --- 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 @@ -16,9 +16,12 @@ 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; @@ -33,7 +36,7 @@ public class UploadSessionCursor { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionCursor(String sessionId, long offset) { + public UploadSessionCursor(@Nonnull String sessionId, long offset) { if (sessionId == null) { throw new IllegalArgumentException("Required value for 'sessionId' is null"); } @@ -47,6 +50,7 @@ public UploadSessionCursor(String sessionId, long offset) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSessionId() { return sessionId; } 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 index fbf4fe572..3d5d98cf4 100644 --- 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 @@ -16,11 +16,17 @@ 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; /** @@ -39,7 +45,7 @@ public class UploadSessionFinishArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionFinishArg(UploadSessionCursor cursor, CommitInfo commit, String contentHash) { + public UploadSessionFinishArg(@Nonnull UploadSessionCursor cursor, @Nonnull CommitInfo commit, @Nullable String contentHash) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -72,7 +78,7 @@ public UploadSessionFinishArg(UploadSessionCursor cursor, CommitInfo commit, Str * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionFinishArg(UploadSessionCursor cursor, CommitInfo commit) { + public UploadSessionFinishArg(@Nonnull UploadSessionCursor cursor, @Nonnull CommitInfo commit) { this(cursor, commit, null); } @@ -81,6 +87,7 @@ public UploadSessionFinishArg(UploadSessionCursor cursor, CommitInfo commit) { * * @return value for this field, never {@code null}. */ + @Nonnull public UploadSessionCursor getCursor() { return cursor; } @@ -90,6 +97,7 @@ public UploadSessionCursor getCursor() { * * @return value for this field, never {@code null}. */ + @Nonnull public CommitInfo getCommit() { return commit; } @@ -103,6 +111,7 @@ public CommitInfo getCommit() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getContentHash() { return contentHash; } 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 index 2c0df4291..ee1170768 100644 --- 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 @@ -17,9 +17,12 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + class UploadSessionFinishBatchArg { // struct files.UploadSessionFinishBatchArg (files.stone) + @Nonnull protected final List entries; /** @@ -31,7 +34,7 @@ class UploadSessionFinishBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionFinishBatchArg(List entries) { + public UploadSessionFinishBatchArg(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -51,6 +54,7 @@ public UploadSessionFinishBatchArg(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index 82916aa9f..beb7505b3 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -32,7 +35,7 @@ public class UploadSessionFinishBatchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionFinishBatchResult(List entries) { + public UploadSessionFinishBatchResult(@Nonnull List entries) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -51,6 +54,7 @@ public UploadSessionFinishBatchResult(List * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } 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 index bd20fb0ad..0278f2bfe 100644 --- 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 @@ -16,11 +16,16 @@ 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; /** @@ -43,7 +48,7 @@ class UploadSessionStartArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionStartArg(boolean close, UploadSessionType sessionType, String contentHash) { + public UploadSessionStartArg(boolean close, @Nullable UploadSessionType sessionType, @Nullable String contentHash) { this.close = close; this.sessionType = sessionType; if (contentHash != null) { @@ -85,6 +90,7 @@ public boolean getClose() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UploadSessionType getSessionType() { return sessionType; } @@ -98,6 +104,7 @@ public UploadSessionType getSessionType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getContentHash() { return contentHash; } 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 index 72c8f8ee5..d05f512f0 100644 --- 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 @@ -16,9 +16,13 @@ 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; @@ -32,7 +36,7 @@ class UploadSessionStartBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionStartBatchArg(long numSessions, UploadSessionType sessionType) { + public UploadSessionStartBatchArg(long numSessions, @Nullable UploadSessionType sessionType) { this.sessionType = sessionType; if (numSessions < 1L) { throw new IllegalArgumentException("Number 'numSessions' is smaller than 1L"); @@ -73,6 +77,7 @@ public long getNumSessions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UploadSessionType getSessionType() { return sessionType; } 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 index 54b7b9e57..eb822d673 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -34,7 +37,7 @@ public class UploadSessionStartBatchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionStartBatchResult(List sessionIds) { + public UploadSessionStartBatchResult(@Nonnull List sessionIds) { if (sessionIds == null) { throw new IllegalArgumentException("Required value for 'sessionIds' is null"); } @@ -55,6 +58,7 @@ public UploadSessionStartBatchResult(List sessionIds) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSessionIds() { return sessionIds; } 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 index 95b91e1c1..2c069a8fb 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -33,7 +36,7 @@ public class UploadSessionStartResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadSessionStartResult(String sessionId) { + public UploadSessionStartResult(@Nonnull String sessionId) { if (sessionId == null) { throw new IllegalArgumentException("Required value for 'sessionId' is null"); } @@ -48,6 +51,7 @@ public UploadSessionStartResult(String sessionId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSessionId() { return sessionId; } 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 index 56e248cf6..b67110a97 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -35,7 +39,7 @@ public class UploadWriteFailed { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UploadWriteFailed(WriteError reason, String uploadSessionId) { + public UploadWriteFailed(@Nonnull WriteError reason, @Nonnull String uploadSessionId) { if (reason == null) { throw new IllegalArgumentException("Required value for 'reason' is null"); } @@ -51,6 +55,7 @@ public UploadWriteFailed(WriteError reason, String uploadSessionId) { * * @return value for this field, never {@code null}. */ + @Nonnull public WriteError getReason() { return reason; } @@ -63,6 +68,7 @@ public WriteError getReason() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUploadSessionId() { return uploadSessionId; } 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 index 3d764297f..00bd70adb 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class UserGeneratedTag { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserGeneratedTag(String tagText) { + public UserGeneratedTag(@Nonnull String tagText) { if (tagText == null) { throw new IllegalArgumentException("Required value for 'tagText' is null"); } @@ -50,6 +53,7 @@ public UserGeneratedTag(String tagText) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTagText() { return tagText; } 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 index 3c084a34f..453a940e6 100644 --- 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 @@ -18,12 +18,16 @@ 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; /** @@ -37,7 +41,7 @@ public class VideoMetadata extends MediaMetadata { * @param timeTaken The timestamp when the photo/video is taken. * @param duration The duration of the video in milliseconds. */ - public VideoMetadata(Dimensions dimensions, GpsCoordinates location, Date timeTaken, Long duration) { + public VideoMetadata(@Nullable Dimensions dimensions, @Nullable GpsCoordinates location, @Nullable Date timeTaken, @Nullable Long duration) { super(dimensions, location, timeTaken); this.duration = duration; } @@ -56,6 +60,7 @@ public VideoMetadata() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Dimensions getDimensions() { return dimensions; } @@ -65,6 +70,7 @@ public Dimensions getDimensions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GpsCoordinates getLocation() { return location; } @@ -74,6 +80,7 @@ public GpsCoordinates getLocation() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getTimeTaken() { return timeTaken; } @@ -83,6 +90,7 @@ public Date getTimeTaken() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getDuration() { return duration; } 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 index eacbac8b8..200af93f3 100644 --- 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 @@ -16,14 +16,23 @@ 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; /** @@ -43,7 +52,7 @@ public class UserInfoResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserInfoResult(String familyName, String givenName, String email, Boolean emailVerified, String iss, String sub) { + 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; @@ -72,6 +81,7 @@ public UserInfoResult() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFamilyName() { return familyName; } @@ -81,6 +91,7 @@ public String getFamilyName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getGivenName() { return givenName; } @@ -90,6 +101,7 @@ public String getGivenName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getEmail() { return email; } @@ -99,6 +111,7 @@ public String getEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getEmailVerified() { return emailVerified; } @@ -109,6 +122,7 @@ public Boolean getEmailVerified() { * @return value for this field, or {@code null} if not present. Defaults to * "". */ + @Nonnull public String getIss() { return iss; } @@ -120,6 +134,7 @@ public String getIss() { * @return value for this field, or {@code null} if not present. Defaults to * "". */ + @Nonnull public String getSub() { return sub; } 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 index 31b1d3793..80e3aa222 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -33,7 +37,7 @@ public class AddMember { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddMember(MemberSelector member, PaperDocPermissionLevel permissionLevel) { + public AddMember(@Nonnull MemberSelector member, @Nonnull PaperDocPermissionLevel permissionLevel) { if (permissionLevel == null) { throw new IllegalArgumentException("Required value for 'permissionLevel' is null"); } @@ -55,7 +59,7 @@ public AddMember(MemberSelector member, PaperDocPermissionLevel permissionLevel) * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddMember(MemberSelector member) { + public AddMember(@Nonnull MemberSelector member) { this(member, PaperDocPermissionLevel.EDIT); } @@ -65,6 +69,7 @@ public AddMember(MemberSelector member) { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSelector getMember() { return member; } @@ -75,6 +80,7 @@ public MemberSelector getMember() { * @return value for this field, or {@code null} if not present. Defaults to * PaperDocPermissionLevel.EDIT. */ + @Nonnull public PaperDocPermissionLevel getPermissionLevel() { return permissionLevel; } 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 index 762e96bc1..d5f4bd566 100644 --- 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 @@ -17,10 +17,15 @@ 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; @@ -40,7 +45,7 @@ class AddPaperDocUser extends RefPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddPaperDocUser(String docId, List members, String customMessage, boolean quiet) { + 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"); @@ -71,7 +76,7 @@ public AddPaperDocUser(String docId, List members, String customMessa * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddPaperDocUser(String docId, List members) { + public AddPaperDocUser(@Nonnull String docId, @Nonnull List members) { this(docId, members, null, false); } @@ -80,6 +85,7 @@ public AddPaperDocUser(String docId, List members) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } @@ -90,6 +96,7 @@ public String getDocId() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembers() { return members; } @@ -100,6 +107,7 @@ public List getMembers() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCustomMessage() { return customMessage; } 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 index b8ff18750..d7b7ed2d4 100644 --- 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 @@ -17,6 +17,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + /** * Per-member result for {@link * DbxUserPaperRequests#docsUsersAdd(String,java.util.List)}. @@ -24,7 +26,9 @@ public class AddPaperDocUserMemberResult { // struct paper.AddPaperDocUserMemberResult (paper.stone) + @Nonnull protected final MemberSelector member; + @Nonnull protected final AddPaperDocUserResult result; /** @@ -38,7 +42,7 @@ public class AddPaperDocUserMemberResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddPaperDocUserMemberResult(MemberSelector member, AddPaperDocUserResult result) { + public AddPaperDocUserMemberResult(@Nonnull MemberSelector member, @Nonnull AddPaperDocUserResult result) { if (member == null) { throw new IllegalArgumentException("Required value for 'member' is null"); } @@ -54,6 +58,7 @@ public AddPaperDocUserMemberResult(MemberSelector member, AddPaperDocUserResult * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSelector getMember() { return member; } @@ -63,6 +68,7 @@ public MemberSelector getMember() { * * @return value for this field, never {@code null}. */ + @Nonnull public AddPaperDocUserResult getResult() { return result; } 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 index 563877103..c4b5bbe70 100644 --- 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 @@ -18,10 +18,15 @@ 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; /** @@ -45,7 +50,7 @@ public class Cursor { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Cursor(String value, Date expiration) { + public Cursor(@Nonnull String value, @Nullable Date expiration) { if (value == null) { throw new IllegalArgumentException("Required value for 'value' is null"); } @@ -63,7 +68,7 @@ public Cursor(String value, Date expiration) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Cursor(String value) { + public Cursor(@Nonnull String value) { this(value, null); } @@ -72,6 +77,7 @@ public Cursor(String value) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getValue() { return value; } @@ -93,6 +99,7 @@ public String getValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpiration() { return expiration; } 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 index c4831ef07..a70005f4e 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class Folder { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Folder(String id, String name) { + public Folder(@Nonnull String id, @Nonnull String name) { if (id == null) { throw new IllegalArgumentException("Required value for 'id' is null"); } @@ -51,6 +55,7 @@ public Folder(String id, String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -60,6 +65,7 @@ public String getId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } 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 index 40eec7004..076b75bcb 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -40,7 +45,7 @@ public class FoldersContainingPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FoldersContainingPaperDoc(FolderSharingPolicyType folderSharingPolicyType, List folders) { + public FoldersContainingPaperDoc(@Nullable FolderSharingPolicyType folderSharingPolicyType, @Nullable List folders) { this.folderSharingPolicyType = folderSharingPolicyType; if (folders != null) { for (Folder x : folders) { @@ -66,6 +71,7 @@ public FoldersContainingPaperDoc() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FolderSharingPolicyType getFolderSharingPolicyType() { return folderSharingPolicyType; } @@ -75,6 +81,7 @@ public FolderSharingPolicyType getFolderSharingPolicyType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getFolders() { return folders; } 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 index 1a475962f..e6bd63004 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -33,7 +37,7 @@ public class InviteeInfoWithPermissionLevel { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public InviteeInfoWithPermissionLevel(InviteeInfo invitee, PaperDocPermissionLevel permissionLevel) { + public InviteeInfoWithPermissionLevel(@Nonnull InviteeInfo invitee, @Nonnull PaperDocPermissionLevel permissionLevel) { if (invitee == null) { throw new IllegalArgumentException("Required value for 'invitee' is null"); } @@ -49,6 +53,7 @@ public InviteeInfoWithPermissionLevel(InviteeInfo invitee, PaperDocPermissionLev * * @return value for this field, never {@code null}. */ + @Nonnull public InviteeInfo getInvitee() { return invitee; } @@ -58,6 +63,7 @@ public InviteeInfo getInvitee() { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperDocPermissionLevel getPermissionLevel() { return permissionLevel; } 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 index 8d2ed076a..98194fe41 100644 --- 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 @@ -16,11 +16,16 @@ 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; @@ -42,7 +47,7 @@ class ListPaperDocsArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListPaperDocsArgs(ListPaperDocsFilterBy filterBy, ListPaperDocsSortBy sortBy, ListPaperDocsSortOrder sortOrder, int limit) { + 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"); } @@ -79,6 +84,7 @@ public ListPaperDocsArgs() { * @return value for this field, or {@code null} if not present. Defaults to * ListPaperDocsFilterBy.DOCS_ACCESSED. */ + @Nonnull public ListPaperDocsFilterBy getFilterBy() { return filterBy; } @@ -89,6 +95,7 @@ public ListPaperDocsFilterBy getFilterBy() { * @return value for this field, or {@code null} if not present. Defaults to * ListPaperDocsSortBy.ACCESSED. */ + @Nonnull public ListPaperDocsSortBy getSortBy() { return sortBy; } @@ -99,6 +106,7 @@ public ListPaperDocsSortBy getSortBy() { * @return value for this field, or {@code null} if not present. Defaults to * ListPaperDocsSortOrder.ASCENDING. */ + @Nonnull public ListPaperDocsSortOrder getSortOrder() { return sortOrder; } 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 index a500a074f..ada82663a 100644 --- 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 @@ -16,9 +16,12 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + class ListPaperDocsContinueArgs { // struct paper.ListPaperDocsContinueArgs (paper.stone) + @Nonnull protected final String cursor; /** @@ -31,7 +34,7 @@ class ListPaperDocsContinueArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListPaperDocsContinueArgs(String cursor) { + public ListPaperDocsContinueArgs(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -44,6 +47,7 @@ public ListPaperDocsContinueArgs(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 10d06073b..bb364f1d5 100644 --- 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 @@ -17,10 +17,14 @@ 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; @@ -46,7 +50,7 @@ public class ListPaperDocsResponse { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListPaperDocsResponse(List docIds, Cursor cursor, boolean hasMore) { + public ListPaperDocsResponse(@Nonnull List docIds, @Nonnull Cursor cursor, boolean hasMore) { if (docIds == null) { throw new IllegalArgumentException("Required value for 'docIds' is null"); } @@ -70,6 +74,7 @@ public ListPaperDocsResponse(List docIds, Cursor cursor, boolean hasMore * * @return value for this field, never {@code null}. */ + @Nonnull public List getDocIds() { return docIds; } @@ -82,6 +87,7 @@ public List getDocIds() { * * @return value for this field, never {@code null}. */ + @Nonnull public Cursor getCursor() { return cursor; } 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 index b73d9db4c..4d8751321 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + class ListUsersOnFolderArgs extends RefPaperDoc { // struct paper.ListUsersOnFolderArgs (paper.stone) @@ -32,7 +34,7 @@ class ListUsersOnFolderArgs extends RefPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListUsersOnFolderArgs(String docId, int limit) { + public ListUsersOnFolderArgs(@Nonnull String docId, int limit) { super(docId); if (limit < 1) { throw new IllegalArgumentException("Number 'limit' is smaller than 1"); @@ -53,7 +55,7 @@ public ListUsersOnFolderArgs(String docId, int limit) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListUsersOnFolderArgs(String docId) { + public ListUsersOnFolderArgs(@Nonnull String docId) { this(docId, 1000); } @@ -62,6 +64,7 @@ public ListUsersOnFolderArgs(String docId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } 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 index 610c2ebbc..a94b07c20 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -32,7 +35,7 @@ class ListUsersOnFolderContinueArgs extends RefPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListUsersOnFolderContinueArgs(String docId, String cursor) { + public ListUsersOnFolderContinueArgs(@Nonnull String docId, @Nonnull String cursor) { super(docId); if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); @@ -45,6 +48,7 @@ public ListUsersOnFolderContinueArgs(String docId, String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } @@ -57,6 +61,7 @@ public String getDocId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 23f9a5ace..5d5bdf2ea 100644 --- 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 @@ -19,11 +19,16 @@ 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; @@ -49,7 +54,7 @@ public class ListUsersOnFolderResponse { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListUsersOnFolderResponse(List invitees, List users, Cursor cursor, boolean hasMore) { + 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"); } @@ -80,6 +85,7 @@ public ListUsersOnFolderResponse(List invitees, List user * * @return value for this field, never {@code null}. */ + @Nonnull public List getInvitees() { return invitees; } @@ -89,6 +95,7 @@ public List getInvitees() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getUsers() { return users; } @@ -102,6 +109,7 @@ public List getUsers() { * * @return value for this field, never {@code null}. */ + @Nonnull public Cursor getCursor() { return cursor; } 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 index 86a37da2b..58521bc5b 100644 --- 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 @@ -16,10 +16,13 @@ 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; /** @@ -37,7 +40,7 @@ class ListUsersOnPaperDocArgs extends RefPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListUsersOnPaperDocArgs(String docId, int limit, UserOnPaperDocFilter filterBy) { + public ListUsersOnPaperDocArgs(@Nonnull String docId, int limit, @Nonnull UserOnPaperDocFilter filterBy) { super(docId); if (limit < 1) { throw new IllegalArgumentException("Number 'limit' is smaller than 1"); @@ -62,7 +65,7 @@ public ListUsersOnPaperDocArgs(String docId, int limit, UserOnPaperDocFilter fil * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListUsersOnPaperDocArgs(String docId) { + public ListUsersOnPaperDocArgs(@Nonnull String docId) { this(docId, 1000, UserOnPaperDocFilter.SHARED); } @@ -71,6 +74,7 @@ public ListUsersOnPaperDocArgs(String docId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } @@ -93,6 +97,7 @@ public int getLimit() { * @return value for this field, or {@code null} if not present. Defaults to * UserOnPaperDocFilter.SHARED. */ + @Nonnull public UserOnPaperDocFilter getFilterBy() { return filterBy; } 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 index f4493293f..026c7b9dd 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -32,7 +35,7 @@ class ListUsersOnPaperDocContinueArgs extends RefPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListUsersOnPaperDocContinueArgs(String docId, String cursor) { + public ListUsersOnPaperDocContinueArgs(@Nonnull String docId, @Nonnull String cursor) { super(docId); if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); @@ -45,6 +48,7 @@ public ListUsersOnPaperDocContinueArgs(String docId, String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } @@ -57,6 +61,7 @@ public String getDocId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 890a83318..f913a3a44 100644 --- 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 @@ -18,12 +18,18 @@ 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; @@ -53,7 +59,7 @@ public class ListUsersOnPaperDocResponse { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListUsersOnPaperDocResponse(List invitees, List users, UserInfo docOwner, Cursor cursor, boolean hasMore) { + 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"); } @@ -89,6 +95,7 @@ public ListUsersOnPaperDocResponse(List invitees * * @return value for this field, never {@code null}. */ + @Nonnull public List getInvitees() { return invitees; } @@ -99,6 +106,7 @@ public List getInvitees() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getUsers() { return users; } @@ -108,6 +116,7 @@ public List getUsers() { * * @return value for this field, never {@code null}. */ + @Nonnull public UserInfo getDocOwner() { return docOwner; } @@ -120,6 +129,7 @@ public UserInfo getDocOwner() { * * @return value for this field, never {@code null}. */ + @Nonnull public Cursor getCursor() { return cursor; } 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 index fb7b432d8..5b4efd089 100644 --- 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 @@ -16,10 +16,15 @@ 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; /** @@ -33,7 +38,7 @@ class PaperDocCreateArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocCreateArgs(ImportFormat importFormat, String parentFolderId) { + public PaperDocCreateArgs(@Nonnull ImportFormat importFormat, @Nullable String parentFolderId) { this.parentFolderId = parentFolderId; if (importFormat == null) { throw new IllegalArgumentException("Required value for 'importFormat' is null"); @@ -52,7 +57,7 @@ public PaperDocCreateArgs(ImportFormat importFormat, String parentFolderId) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocCreateArgs(ImportFormat importFormat) { + public PaperDocCreateArgs(@Nonnull ImportFormat importFormat) { this(importFormat, null); } @@ -61,6 +66,7 @@ public PaperDocCreateArgs(ImportFormat importFormat) { * * @return value for this field, never {@code null}. */ + @Nonnull public ImportFormat getImportFormat() { return importFormat; } @@ -71,6 +77,7 @@ public ImportFormat getImportFormat() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentFolderId() { return parentFolderId; } 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 index 92f414d27..f7655657d 100644 --- 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 @@ -16,11 +16,15 @@ 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; /** @@ -33,7 +37,7 @@ public class PaperDocCreateUpdateResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocCreateUpdateResult(String docId, long revision, String title) { + public PaperDocCreateUpdateResult(@Nonnull String docId, long revision, @Nonnull String title) { if (docId == null) { throw new IllegalArgumentException("Required value for 'docId' is null"); } @@ -50,6 +54,7 @@ public PaperDocCreateUpdateResult(String docId, long revision, String title) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } @@ -68,6 +73,7 @@ public long getRevision() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTitle() { return title; } 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 index c06da3bf6..408a60fe0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ class PaperDocExport extends RefPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocExport(String docId, ExportFormat exportFormat) { + public PaperDocExport(@Nonnull String docId, @Nonnull ExportFormat exportFormat) { super(docId); if (exportFormat == null) { throw new IllegalArgumentException("Required value for 'exportFormat' is null"); @@ -42,6 +45,7 @@ public PaperDocExport(String docId, ExportFormat exportFormat) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } @@ -50,6 +54,7 @@ public String getDocId() { * * @return value for this field, never {@code null}. */ + @Nonnull public ExportFormat getExportFormat() { return exportFormat; } 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 index 701b27a95..ef29047cb 100644 --- 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 @@ -16,12 +16,17 @@ 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; /** @@ -37,7 +42,7 @@ public class PaperDocExportResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocExportResult(String owner, String title, long revision, String mimeType) { + 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"); } @@ -58,6 +63,7 @@ public PaperDocExportResult(String owner, String title, long revision, String mi * * @return value for this field, never {@code null}. */ + @Nonnull public String getOwner() { return owner; } @@ -67,6 +73,7 @@ public String getOwner() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTitle() { return title; } @@ -86,6 +93,7 @@ public long getRevision() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getMimeType() { return mimeType; } 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 index 4848527be..ed62fb9a8 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -30,7 +33,7 @@ class PaperDocSharingPolicy extends RefPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocSharingPolicy(String docId, SharingPolicy sharingPolicy) { + public PaperDocSharingPolicy(@Nonnull String docId, @Nonnull SharingPolicy sharingPolicy) { super(docId); if (sharingPolicy == null) { throw new IllegalArgumentException("Required value for 'sharingPolicy' is null"); @@ -43,6 +46,7 @@ public PaperDocSharingPolicy(String docId, SharingPolicy sharingPolicy) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } @@ -52,6 +56,7 @@ public String getDocId() { * * @return value for this field, never {@code null}. */ + @Nonnull public SharingPolicy getSharingPolicy() { return sharingPolicy; } 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 index 5a16a1f97..ce9862139 100644 --- 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 @@ -16,11 +16,15 @@ 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; /** @@ -37,7 +41,7 @@ class PaperDocUpdateArgs extends RefPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocUpdateArgs(String docId, PaperDocUpdatePolicy docUpdatePolicy, long revision, ImportFormat importFormat) { + 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"); @@ -55,6 +59,7 @@ public PaperDocUpdateArgs(String docId, PaperDocUpdatePolicy docUpdatePolicy, lo * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } @@ -64,6 +69,7 @@ public String getDocId() { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperDocUpdatePolicy getDocUpdatePolicy() { return docUpdatePolicy; } @@ -83,6 +89,7 @@ public long getRevision() { * * @return value for this field, never {@code null}. */ + @Nonnull public ImportFormat getImportFormat() { return importFormat; } 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 index bba1f8ed2..3edd45cb2 100644 --- 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 @@ -16,11 +16,17 @@ 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; /** @@ -41,7 +47,7 @@ class PaperFolderCreateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderCreateArg(String name, String parentFolderId, Boolean isTeamFolder) { + public PaperFolderCreateArg(@Nonnull String name, @Nullable String parentFolderId, @Nullable Boolean isTeamFolder) { if (name == null) { throw new IllegalArgumentException("Required value for 'name' is null"); } @@ -60,7 +66,7 @@ public PaperFolderCreateArg(String name, String parentFolderId, Boolean isTeamFo * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderCreateArg(String name) { + public PaperFolderCreateArg(@Nonnull String name) { this(name, null, null); } @@ -69,6 +75,7 @@ public PaperFolderCreateArg(String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -80,6 +87,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentFolderId() { return parentFolderId; } @@ -93,6 +101,7 @@ public String getParentFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsTeamFolder() { return isTeamFolder; } 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 index 8ca76c185..f1e22cb15 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class PaperFolderCreateResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderCreateResult(String folderId) { + public PaperFolderCreateResult(@Nonnull String folderId) { if (folderId == null) { throw new IllegalArgumentException("Required value for 'folderId' is null"); } @@ -41,6 +44,7 @@ public PaperFolderCreateResult(String folderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFolderId() { return folderId; } 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 index d8c963ed7..9d48c2263 100644 --- 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 @@ -16,9 +16,12 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + class RefPaperDoc { // struct paper.RefPaperDoc (paper.stone) + @Nonnull protected final String docId; /** @@ -28,7 +31,7 @@ class RefPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RefPaperDoc(String docId) { + public RefPaperDoc(@Nonnull String docId) { if (docId == null) { throw new IllegalArgumentException("Required value for 'docId' is null"); } @@ -40,6 +43,7 @@ public RefPaperDoc(String docId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } 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 index 59b849e87..330e4f39a 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ class RemovePaperDocUser extends RefPaperDoc { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RemovePaperDocUser(String docId, MemberSelector member) { + public RemovePaperDocUser(@Nonnull String docId, @Nonnull MemberSelector member) { super(docId); if (member == null) { throw new IllegalArgumentException("Required value for 'member' is null"); @@ -44,6 +47,7 @@ public RemovePaperDocUser(String docId, MemberSelector member) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } @@ -54,6 +58,7 @@ public String getDocId() { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSelector getMember() { return member; } 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 index 60c657298..ef30bef0d 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SharingPolicy { * @param teamSharingPolicy This value applies to the team members only. * The value is null for all personal accounts. */ - public SharingPolicy(SharingPublicPolicyType publicSharingPolicy, SharingTeamPolicyType teamSharingPolicy) { + public SharingPolicy(@Nullable SharingPublicPolicyType publicSharingPolicy, @Nullable SharingTeamPolicyType teamSharingPolicy) { this.publicSharingPolicy = publicSharingPolicy; this.teamSharingPolicy = teamSharingPolicy; } @@ -54,6 +59,7 @@ public SharingPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharingPublicPolicyType getPublicSharingPolicy() { return publicSharingPolicy; } @@ -64,6 +70,7 @@ public SharingPublicPolicyType getPublicSharingPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharingTeamPolicyType getTeamSharingPolicy() { return teamSharingPolicy; } 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 index 9f93b044f..e92fce5c6 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -32,7 +36,7 @@ public class UserInfoWithPermissionLevel { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserInfoWithPermissionLevel(UserInfo user, PaperDocPermissionLevel permissionLevel) { + public UserInfoWithPermissionLevel(@Nonnull UserInfo user, @Nonnull PaperDocPermissionLevel permissionLevel) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -48,6 +52,7 @@ public UserInfoWithPermissionLevel(UserInfo user, PaperDocPermissionLevel permis * * @return value for this field, never {@code null}. */ + @Nonnull public UserInfo getUser() { return user; } @@ -57,6 +62,7 @@ public UserInfo getUser() { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperDocPermissionLevel getPermissionLevel() { return permissionLevel; } 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 index 150ac732c..5382e9a46 100644 --- 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 @@ -17,9 +17,12 @@ 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; @@ -35,7 +38,7 @@ public class SecondaryEmail { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryEmail(String email, boolean isVerified) { + public SecondaryEmail(@Nonnull String email, boolean isVerified) { if (email == null) { throw new IllegalArgumentException("Required value for 'email' is null"); } @@ -54,6 +57,7 @@ public SecondaryEmail(String email, boolean isVerified) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEmail() { return email; } 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 index 3d43789c5..9101a9a94 100644 --- 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 @@ -18,16 +18,23 @@ 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; @@ -57,7 +64,7 @@ class AddFileMemberArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddFileMemberArgs(String file, List members, String customMessage, boolean quiet, AccessLevel accessLevel, boolean addMessageAsComment) { + 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"); } @@ -103,7 +110,7 @@ public AddFileMemberArgs(String file, List members, String custo * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddFileMemberArgs(String file, List members) { + public AddFileMemberArgs(@Nonnull String file, @Nonnull List members) { this(file, members, null, false, AccessLevel.VIEWER, false); } @@ -112,6 +119,7 @@ public AddFileMemberArgs(String file, List members) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFile() { return file; } @@ -123,6 +131,7 @@ public String getFile() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembers() { return members; } @@ -132,6 +141,7 @@ public List getMembers() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCustomMessage() { return customMessage; } @@ -154,6 +164,7 @@ public boolean getQuiet() { * @return value for this field, or {@code null} if not present. Defaults to * AccessLevel.VIEWER. */ + @Nonnull public AccessLevel getAccessLevel() { return accessLevel; } 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 index da2209fce..7d34f8ff1 100644 --- 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 @@ -18,12 +18,18 @@ 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; /** @@ -43,7 +49,7 @@ class AddFolderMemberArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddFolderMemberArg(String sharedFolderId, List members, boolean quiet, String customMessage) { + 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"); } @@ -83,7 +89,7 @@ public AddFolderMemberArg(String sharedFolderId, List members, boolea * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddFolderMemberArg(String sharedFolderId, List members) { + public AddFolderMemberArg(@Nonnull String sharedFolderId, @Nonnull List members) { this(sharedFolderId, members, false, null); } @@ -92,6 +98,7 @@ public AddFolderMemberArg(String sharedFolderId, List members) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } @@ -102,6 +109,7 @@ public String getSharedFolderId() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembers() { return members; } @@ -122,6 +130,7 @@ public boolean getQuiet() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCustomMessage() { return customMessage; } 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 index edc198275..400423828 100644 --- 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 @@ -16,6 +16,8 @@ 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. @@ -23,7 +25,9 @@ public class AddMember { // struct sharing.AddMember (sharing_folders.stone) + @Nonnull protected final MemberSelector member; + @Nonnull protected final AccessLevel accessLevel; /** @@ -39,7 +43,7 @@ public class AddMember { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddMember(MemberSelector member, AccessLevel accessLevel) { + public AddMember(@Nonnull MemberSelector member, @Nonnull AccessLevel accessLevel) { if (member == null) { throw new IllegalArgumentException("Required value for 'member' is null"); } @@ -62,7 +66,7 @@ public AddMember(MemberSelector member, AccessLevel accessLevel) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddMember(MemberSelector member) { + public AddMember(@Nonnull MemberSelector member) { this(member, AccessLevel.VIEWER); } @@ -71,6 +75,7 @@ public AddMember(MemberSelector member) { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSelector getMember() { return member; } @@ -82,6 +87,7 @@ public MemberSelector getMember() { * @return value for this field, or {@code null} if not present. Defaults to * AccessLevel.VIEWER. */ + @Nonnull public AccessLevel getAccessLevel() { return accessLevel; } 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 index 13ad0e3bf..1649ed8ae 100644 --- 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 @@ -16,6 +16,8 @@ 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. @@ -23,6 +25,7 @@ public class AudienceExceptionContentInfo { // struct sharing.AudienceExceptionContentInfo (shared_content_links.stone) + @Nonnull protected final String name; /** @@ -35,7 +38,7 @@ public class AudienceExceptionContentInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AudienceExceptionContentInfo(String name) { + public AudienceExceptionContentInfo(@Nonnull String name) { if (name == null) { throw new IllegalArgumentException("Required value for 'name' is null"); } @@ -47,6 +50,7 @@ public AudienceExceptionContentInfo(String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } 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 index 550938077..ce96b6f26 100644 --- 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 @@ -17,6 +17,8 @@ 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 @@ -26,6 +28,7 @@ public class AudienceExceptions { // struct sharing.AudienceExceptions (shared_content_links.stone) protected final long count; + @Nonnull protected final List exceptions; /** @@ -41,7 +44,7 @@ public class AudienceExceptions { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AudienceExceptions(long count, List exceptions) { + public AudienceExceptions(long count, @Nonnull List exceptions) { this.count = count; if (exceptions == null) { throw new IllegalArgumentException("Required value for 'exceptions' is null"); @@ -69,6 +72,7 @@ public long getCount() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getExceptions() { return exceptions; } 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 index e8ea6d835..be6864d78 100644 --- 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 @@ -17,6 +17,8 @@ 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. @@ -24,8 +26,11 @@ 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; /** @@ -41,7 +46,7 @@ public class AudienceRestrictingSharedFolder { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AudienceRestrictingSharedFolder(String sharedFolderId, String name, LinkAudience audience) { + public AudienceRestrictingSharedFolder(@Nonnull String sharedFolderId, @Nonnull String name, @Nonnull LinkAudience audience) { if (sharedFolderId == null) { throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); } @@ -64,6 +69,7 @@ public AudienceRestrictingSharedFolder(String sharedFolderId, String name, LinkA * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } @@ -73,6 +79,7 @@ public String getSharedFolderId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -82,6 +89,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkAudience getAudience() { return audience; } 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 index 2cad98cb6..9234fbe8c 100644 --- 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 @@ -17,6 +17,9 @@ import java.io.IOException; import java.util.Date; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Metadata for a collection-based shared link. */ @@ -35,7 +38,7 @@ public class CollectionLinkMetadata extends LinkMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CollectionLinkMetadata(String url, Visibility visibility, Date expires) { + public CollectionLinkMetadata(@Nonnull String url, @Nonnull Visibility visibility, @Nullable Date expires) { super(url, visibility, expires); } @@ -50,7 +53,7 @@ public CollectionLinkMetadata(String url, Visibility visibility, Date expires) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CollectionLinkMetadata(String url, Visibility visibility) { + public CollectionLinkMetadata(@Nonnull String url, @Nonnull Visibility visibility) { this(url, visibility, null); } @@ -59,6 +62,7 @@ public CollectionLinkMetadata(String url, Visibility visibility) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -68,6 +72,7 @@ public String getUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public Visibility getVisibility() { return visibility; } @@ -77,6 +82,7 @@ public Visibility getVisibility() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpires() { return expires; } 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 index efa2803f6..8b45799f2 100644 --- 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 @@ -16,11 +16,16 @@ 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; /** @@ -36,7 +41,7 @@ class CreateSharedLinkArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateSharedLinkArg(String path, boolean shortUrl, PendingUploadMode pendingUpload) { + public CreateSharedLinkArg(@Nonnull String path, boolean shortUrl, @Nullable PendingUploadMode pendingUpload) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -55,7 +60,7 @@ public CreateSharedLinkArg(String path, boolean shortUrl, PendingUploadMode pend * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateSharedLinkArg(String path) { + public CreateSharedLinkArg(@Nonnull String path) { this(path, false, null); } @@ -64,6 +69,7 @@ public CreateSharedLinkArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -84,6 +90,7 @@ public boolean getShortUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PendingUploadMode getPendingUpload() { return pendingUpload; } 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 index 8541c95d5..5e37f9ee0 100644 --- 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 @@ -17,10 +17,15 @@ 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; /** @@ -34,7 +39,7 @@ class CreateSharedLinkWithSettingsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateSharedLinkWithSettingsArg(String path, SharedLinkSettings settings) { + public CreateSharedLinkWithSettingsArg(@Nonnull String path, @Nullable SharedLinkSettings settings) { if (path == null) { throw new IllegalArgumentException("Required value for 'path' is null"); } @@ -57,7 +62,7 @@ public CreateSharedLinkWithSettingsArg(String path, SharedLinkSettings settings) * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateSharedLinkWithSettingsArg(String path) { + public CreateSharedLinkWithSettingsArg(@Nonnull String path) { this(path, null); } @@ -66,6 +71,7 @@ public CreateSharedLinkWithSettingsArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -75,6 +81,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedLinkSettings getSettings() { return settings; } 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 index 7a484a1f7..6c3d7e2fa 100644 --- 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 @@ -18,6 +18,9 @@ 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. @@ -55,7 +58,7 @@ public class ExpectedSharedContentLinkMetadata extends SharedContentLinkMetadata * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExpectedSharedContentLinkMetadata(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected, AccessLevel accessLevel, AudienceRestrictingSharedFolder audienceRestrictingSharedFolder, Date expiry) { + 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); } @@ -81,7 +84,7 @@ public ExpectedSharedContentLinkMetadata(List audienceOptions, Lin * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExpectedSharedContentLinkMetadata(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected) { + public ExpectedSharedContentLinkMetadata(@Nonnull List audienceOptions, @Nonnull LinkAudience currentAudience, @Nonnull List linkPermissions, boolean passwordProtected) { this(audienceOptions, currentAudience, linkPermissions, passwordProtected, null, null, null); } @@ -93,6 +96,7 @@ public ExpectedSharedContentLinkMetadata(List audienceOptions, Lin * * @return value for this field, never {@code null}. */ + @Nonnull public List getAudienceOptions() { return audienceOptions; } @@ -102,6 +106,7 @@ public List getAudienceOptions() { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkAudience getCurrentAudience() { return currentAudience; } @@ -111,6 +116,7 @@ public LinkAudience getCurrentAudience() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLinkPermissions() { return linkPermissions; } @@ -129,6 +135,7 @@ public boolean getPasswordProtected() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccessLevel getAccessLevel() { return accessLevel; } @@ -139,6 +146,7 @@ public AccessLevel getAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder() { return audienceRestrictingSharedFolder; } @@ -149,6 +157,7 @@ public AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpiry() { return expiry; } 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 index 97b0925e9..486039f9f 100644 --- 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 @@ -20,14 +20,20 @@ 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; @@ -73,7 +79,7 @@ public class FileLinkMetadata extends SharedLinkMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLinkMetadata(String url, String name, LinkPermissions linkPermissions, Date clientModified, Date serverModified, String rev, long size, String id, Date expires, String pathLower, TeamMemberInfo teamMemberInfo, Team contentOwnerTeamInfo) { + 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"); @@ -123,7 +129,7 @@ public FileLinkMetadata(String url, String name, LinkPermissions linkPermissions * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLinkMetadata(String url, String name, LinkPermissions linkPermissions, Date clientModified, Date serverModified, String rev, long size) { + 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); } @@ -132,6 +138,7 @@ public FileLinkMetadata(String url, String name, LinkPermissions linkPermissions * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -141,6 +148,7 @@ public String getUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -150,6 +158,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkPermissions getLinkPermissions() { return linkPermissions; } @@ -163,6 +172,7 @@ public LinkPermissions getLinkPermissions() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getClientModified() { return clientModified; } @@ -172,6 +182,7 @@ public Date getClientModified() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getServerModified() { return serverModified; } @@ -183,6 +194,7 @@ public Date getServerModified() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getRev() { return rev; } @@ -201,6 +213,7 @@ public long getSize() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getId() { return id; } @@ -210,6 +223,7 @@ public String getId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpires() { return expires; } @@ -221,6 +235,7 @@ public Date getExpires() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathLower() { return pathLower; } @@ -231,6 +246,7 @@ public String getPathLower() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TeamMemberInfo getTeamMemberInfo() { return teamMemberInfo; } @@ -242,6 +258,7 @@ public TeamMemberInfo getTeamMemberInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Team getContentOwnerTeamInfo() { return contentOwnerTeamInfo; } 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 index 77910d8c0..7b8e311ba 100644 --- 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 @@ -17,6 +17,9 @@ 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)}. @@ -24,9 +27,13 @@ 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; /** @@ -48,7 +55,7 @@ public class FileMemberActionResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileMemberActionResult(MemberSelector member, FileMemberActionIndividualResult result, String sckeySha1, List invitationSignature) { + 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"); } @@ -81,7 +88,7 @@ public FileMemberActionResult(MemberSelector member, FileMemberActionIndividualR * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileMemberActionResult(MemberSelector member, FileMemberActionIndividualResult result) { + public FileMemberActionResult(@Nonnull MemberSelector member, @Nonnull FileMemberActionIndividualResult result) { this(member, result, null, null); } @@ -90,6 +97,7 @@ public FileMemberActionResult(MemberSelector member, FileMemberActionIndividualR * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSelector getMember() { return member; } @@ -99,6 +107,7 @@ public MemberSelector getMember() { * * @return value for this field, never {@code null}. */ + @Nonnull public FileMemberActionIndividualResult getResult() { return result; } @@ -108,6 +117,7 @@ public FileMemberActionIndividualResult getResult() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSckeySha1() { return sckeySha1; } @@ -119,6 +129,7 @@ public String getSckeySha1() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getInvitationSignature() { return invitationSignature; } 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 index 868c17504..ad7400e07 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -38,7 +43,7 @@ public class FilePermission { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FilePermission(FileAction action, boolean allow, PermissionDeniedReason reason) { + public FilePermission(@Nonnull FileAction action, boolean allow, @Nullable PermissionDeniedReason reason) { if (action == null) { throw new IllegalArgumentException("Required value for 'action' is null"); } @@ -59,7 +64,7 @@ public FilePermission(FileAction action, boolean allow, PermissionDeniedReason r * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FilePermission(FileAction action, boolean allow) { + public FilePermission(@Nonnull FileAction action, boolean allow) { this(action, allow, null); } @@ -68,6 +73,7 @@ public FilePermission(FileAction action, boolean allow) { * * @return value for this field, never {@code null}. */ + @Nonnull public FileAction getAction() { return action; } @@ -87,6 +93,7 @@ public boolean getAllow() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PermissionDeniedReason getReason() { return reason; } 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 index 6faa592f3..6fcbacf91 100644 --- 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 @@ -18,6 +18,9 @@ import java.io.IOException; import java.util.Date; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * The metadata of a folder shared link. */ @@ -54,7 +57,7 @@ public class FolderLinkMetadata extends SharedLinkMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderLinkMetadata(String url, String name, LinkPermissions linkPermissions, String id, Date expires, String pathLower, TeamMemberInfo teamMemberInfo, Team contentOwnerTeamInfo) { + 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); } @@ -72,7 +75,7 @@ public FolderLinkMetadata(String url, String name, LinkPermissions linkPermissio * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderLinkMetadata(String url, String name, LinkPermissions linkPermissions) { + public FolderLinkMetadata(@Nonnull String url, @Nonnull String name, @Nonnull LinkPermissions linkPermissions) { this(url, name, linkPermissions, null, null, null, null, null); } @@ -81,6 +84,7 @@ public FolderLinkMetadata(String url, String name, LinkPermissions linkPermissio * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -90,6 +94,7 @@ public String getUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -99,6 +104,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkPermissions getLinkPermissions() { return linkPermissions; } @@ -108,6 +114,7 @@ public LinkPermissions getLinkPermissions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getId() { return id; } @@ -117,6 +124,7 @@ public String getId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpires() { return expires; } @@ -128,6 +136,7 @@ public Date getExpires() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathLower() { return pathLower; } @@ -138,6 +147,7 @@ public String getPathLower() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TeamMemberInfo getTeamMemberInfo() { return teamMemberInfo; } @@ -149,6 +159,7 @@ public TeamMemberInfo getTeamMemberInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Team getContentOwnerTeamInfo() { return contentOwnerTeamInfo; } 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 index 91f3a16f2..206c0c042 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -38,7 +43,7 @@ public class FolderPermission { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderPermission(FolderAction action, boolean allow, PermissionDeniedReason reason) { + public FolderPermission(@Nonnull FolderAction action, boolean allow, @Nullable PermissionDeniedReason reason) { if (action == null) { throw new IllegalArgumentException("Required value for 'action' is null"); } @@ -59,7 +64,7 @@ public FolderPermission(FolderAction action, boolean allow, PermissionDeniedReas * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderPermission(FolderAction action, boolean allow) { + public FolderPermission(@Nonnull FolderAction action, boolean allow) { this(action, allow, null); } @@ -68,6 +73,7 @@ public FolderPermission(FolderAction action, boolean allow) { * * @return value for this field, never {@code null}. */ + @Nonnull public FolderAction getAction() { return action; } @@ -87,6 +93,7 @@ public boolean getAllow() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PermissionDeniedReason getReason() { return reason; } 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 index a746d18aa..09f71fa86 100644 --- 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 @@ -16,16 +16,24 @@ 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; /** @@ -54,7 +62,7 @@ public class FolderPolicy { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy, MemberPolicy memberPolicy, MemberPolicy resolvedMemberPolicy, ViewerInfoPolicy viewerInfoPolicy) { + 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) { @@ -82,7 +90,7 @@ public FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLink * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy) { + public FolderPolicy(@Nonnull AclUpdatePolicy aclUpdatePolicy, @Nonnull SharedLinkPolicy sharedLinkPolicy) { this(aclUpdatePolicy, sharedLinkPolicy, null, null, null); } @@ -91,6 +99,7 @@ public FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLink * * @return value for this field, never {@code null}. */ + @Nonnull public AclUpdatePolicy getAclUpdatePolicy() { return aclUpdatePolicy; } @@ -100,6 +109,7 @@ public AclUpdatePolicy getAclUpdatePolicy() { * * @return value for this field, never {@code null}. */ + @Nonnull public SharedLinkPolicy getSharedLinkPolicy() { return sharedLinkPolicy; } @@ -111,6 +121,7 @@ public SharedLinkPolicy getSharedLinkPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MemberPolicy getMemberPolicy() { return memberPolicy; } @@ -123,6 +134,7 @@ public MemberPolicy getMemberPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MemberPolicy getResolvedMemberPolicy() { return resolvedMemberPolicy; } @@ -132,6 +144,7 @@ public MemberPolicy getResolvedMemberPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ViewerInfoPolicy getViewerInfoPolicy() { return viewerInfoPolicy; } 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 index 12dcf5152..b7fb3500a 100644 --- 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 @@ -18,13 +18,18 @@ 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; /** @@ -42,7 +47,7 @@ class GetFileMetadataArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetFileMetadataArg(String file, List actions) { + public GetFileMetadataArg(@Nonnull String file, @Nullable List actions) { if (file == null) { throw new IllegalArgumentException("Required value for 'file' is null"); } @@ -75,7 +80,7 @@ public GetFileMetadataArg(String file, List actions) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetFileMetadataArg(String file) { + public GetFileMetadataArg(@Nonnull String file) { this(file, null); } @@ -84,6 +89,7 @@ public GetFileMetadataArg(String file) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFile() { return file; } @@ -95,6 +101,7 @@ public String getFile() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActions() { return actions; } 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 index 22ec2e565..b39769bc7 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -41,7 +46,7 @@ class GetFileMetadataBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetFileMetadataBatchArg(List files, List actions) { + public GetFileMetadataBatchArg(@Nonnull List files, @Nullable List actions) { if (files == null) { throw new IllegalArgumentException("Required value for 'files' is null"); } @@ -82,7 +87,7 @@ public GetFileMetadataBatchArg(List files, List actions) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetFileMetadataBatchArg(List files) { + public GetFileMetadataBatchArg(@Nonnull List files) { this(files, null); } @@ -91,6 +96,7 @@ public GetFileMetadataBatchArg(List files) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getFiles() { return files; } @@ -102,6 +108,7 @@ public List getFiles() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActions() { return actions; } 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 index 9dfa8f78b..c2b859e3a 100644 --- 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 @@ -17,6 +17,8 @@ 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)}. @@ -24,7 +26,9 @@ public class GetFileMetadataBatchResult { // struct sharing.GetFileMetadataBatchResult (sharing_files.stone) + @Nonnull protected final String file; + @Nonnull protected final GetFileMetadataIndividualResult result; /** @@ -43,7 +47,7 @@ public class GetFileMetadataBatchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetFileMetadataBatchResult(String file, GetFileMetadataIndividualResult result) { + public GetFileMetadataBatchResult(@Nonnull String file, @Nonnull GetFileMetadataIndividualResult result) { if (file == null) { throw new IllegalArgumentException("Required value for 'file' is null"); } @@ -67,6 +71,7 @@ public GetFileMetadataBatchResult(String file, GetFileMetadataIndividualResult r * * @return value for this field, never {@code null}. */ + @Nonnull public String getFile() { return file; } @@ -76,6 +81,7 @@ public String getFile() { * * @return value for this field, never {@code null}. */ + @Nonnull public GetFileMetadataIndividualResult getResult() { return result; } 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 index 63f9eea6f..11fe3aac8 100644 --- 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 @@ -18,10 +18,15 @@ 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; /** @@ -37,7 +42,7 @@ class GetMetadataArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetMetadataArgs(String sharedFolderId, List actions) { + public GetMetadataArgs(@Nonnull String sharedFolderId, @Nullable List actions) { if (sharedFolderId == null) { throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); } @@ -66,7 +71,7 @@ public GetMetadataArgs(String sharedFolderId, List actions) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetMetadataArgs(String sharedFolderId) { + public GetMetadataArgs(@Nonnull String sharedFolderId) { this(sharedFolderId, null); } @@ -75,6 +80,7 @@ public GetMetadataArgs(String sharedFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } @@ -87,6 +93,7 @@ public String getSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActions() { return actions; } 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 index 38f91a1db..8ac3a14a3 100644 --- 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 @@ -16,11 +16,17 @@ 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; /** @@ -38,7 +44,7 @@ class GetSharedLinkMetadataArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetSharedLinkMetadataArg(String url, String path, String linkPassword) { + public GetSharedLinkMetadataArg(@Nonnull String url, @Nullable String path, @Nullable String linkPassword) { if (url == null) { throw new IllegalArgumentException("Required value for 'url' is null"); } @@ -62,7 +68,7 @@ public GetSharedLinkMetadataArg(String url, String path, String linkPassword) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetSharedLinkMetadataArg(String url) { + public GetSharedLinkMetadataArg(@Nonnull String url) { this(url, null, null); } @@ -71,6 +77,7 @@ public GetSharedLinkMetadataArg(String url) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -82,6 +89,7 @@ public String getUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPath() { return path; } @@ -91,6 +99,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getLinkPassword() { return linkPassword; } 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 index e07d97dae..2fb069d76 100644 --- 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 @@ -16,9 +16,13 @@ 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; /** @@ -26,7 +30,7 @@ class GetSharedLinksArg { * @param path See {@link DbxUserSharingRequests#getSharedLinks(String)} * description. */ - public GetSharedLinksArg(String path) { + public GetSharedLinksArg(@Nullable String path) { this.path = path; } @@ -44,6 +48,7 @@ public GetSharedLinksArg() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPath() { return path; } 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 index d4cad8aaf..846a7915a 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class GetSharedLinksResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetSharedLinksResult(List links) { + public GetSharedLinksResult(@Nonnull List links) { if (links == null) { throw new IllegalArgumentException("Required value for 'links' is null"); } @@ -47,6 +50,7 @@ public GetSharedLinksResult(List links) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLinks() { return links; } 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 index 6a02649a8..ab4629a04 100644 --- 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 @@ -19,6 +19,9 @@ 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. @@ -26,6 +29,7 @@ public class GroupInfo extends GroupSummary { // struct sharing.GroupInfo (sharing_folders.stone) + @Nonnull protected final GroupType groupType; protected final boolean isMember; protected final boolean isOwner; @@ -53,7 +57,7 @@ public class GroupInfo extends GroupSummary { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupInfo(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam, String groupExternalId, Long memberCount) { + 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"); @@ -82,7 +86,7 @@ public GroupInfo(String groupName, String groupId, GroupManagementType groupMana * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupInfo(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam) { + 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); } @@ -90,6 +94,7 @@ public GroupInfo(String groupName, String groupId, GroupManagementType groupMana * * @return value for this field, never {@code null}. */ + @Nonnull public String getGroupName() { return groupName; } @@ -98,6 +103,7 @@ public String getGroupName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getGroupId() { return groupId; } @@ -107,6 +113,7 @@ public String getGroupId() { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupManagementType getGroupManagementType() { return groupManagementType; } @@ -116,6 +123,7 @@ public GroupManagementType getGroupManagementType() { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupType getGroupType() { return groupType; } @@ -153,6 +161,7 @@ public boolean getSameTeam() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getGroupExternalId() { return groupExternalId; } @@ -162,6 +171,7 @@ public String getGroupExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getMemberCount() { return memberCount; } 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 index ec94d3db9..f8774b768 100644 --- 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 @@ -17,12 +17,16 @@ 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; /** @@ -45,7 +49,7 @@ public class GroupMembershipInfo extends MembershipInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMembershipInfo(AccessLevel accessType, GroupInfo group, List permissions, String initials, boolean isInherited) { + 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"); @@ -67,7 +71,7 @@ public GroupMembershipInfo(AccessLevel accessType, GroupInfo group, List getPermissions() { return permissions; } @@ -105,6 +112,7 @@ public List getPermissions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getInitials() { return initials; } 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 index 54fe78631..960fae046 100644 --- 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 @@ -16,10 +16,15 @@ 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; /** @@ -33,7 +38,7 @@ public class InsufficientPlan { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public InsufficientPlan(String message, String upsellUrl) { + public InsufficientPlan(@Nonnull String message, @Nullable String upsellUrl) { if (message == null) { throw new IllegalArgumentException("Required value for 'message' is null"); } @@ -52,7 +57,7 @@ public InsufficientPlan(String message, String upsellUrl) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public InsufficientPlan(String message) { + public InsufficientPlan(@Nonnull String message) { this(message, null); } @@ -62,6 +67,7 @@ public InsufficientPlan(String message) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getMessage() { return message; } @@ -73,6 +79,7 @@ public String getMessage() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getUpsellUrl() { return upsellUrl; } 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 index 8aa641c0d..84f63b0f8 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -46,7 +51,7 @@ public class InviteeMembershipInfo extends MembershipInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public InviteeMembershipInfo(AccessLevel accessType, InviteeInfo invitee, List permissions, String initials, boolean isInherited, UserInfo user) { + 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"); @@ -68,7 +73,7 @@ public InviteeMembershipInfo(AccessLevel accessType, InviteeInfo invitee, List getPermissions() { return permissions; } @@ -106,6 +114,7 @@ public List getPermissions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getInitials() { return initials; } @@ -125,6 +134,7 @@ public boolean getIsInherited() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserInfo getUser() { return user; } 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 index ed49d91ea..7d4cf998f 100644 --- 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 @@ -16,11 +16,16 @@ 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; /** @@ -36,7 +41,7 @@ public class LinkAudienceOption { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LinkAudienceOption(LinkAudience audience, boolean allowed, LinkAudienceDisallowedReason disallowedReason) { + public LinkAudienceOption(@Nonnull LinkAudience audience, boolean allowed, @Nullable LinkAudienceDisallowedReason disallowedReason) { if (audience == null) { throw new IllegalArgumentException("Required value for 'audience' is null"); } @@ -58,7 +63,7 @@ public LinkAudienceOption(LinkAudience audience, boolean allowed, LinkAudienceDi * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LinkAudienceOption(LinkAudience audience, boolean allowed) { + public LinkAudienceOption(@Nonnull LinkAudience audience, boolean allowed) { this(audience, allowed, null); } @@ -67,6 +72,7 @@ public LinkAudienceOption(LinkAudience audience, boolean allowed) { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkAudience getAudience() { return audience; } @@ -87,6 +93,7 @@ public boolean getAllowed() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkAudienceDisallowedReason getDisallowedReason() { return disallowedReason; } 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 index 5e3eaf1eb..81dbba114 100644 --- 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 @@ -18,6 +18,9 @@ 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}. @@ -25,8 +28,11 @@ public class LinkMetadata { // struct sharing.LinkMetadata (shared_links.stone) + @Nonnull protected final String url; + @Nonnull protected final Visibility visibility; + @Nullable protected final Date expires; /** @@ -41,7 +47,7 @@ public class LinkMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LinkMetadata(String url, Visibility visibility, Date expires) { + public LinkMetadata(@Nonnull String url, @Nonnull Visibility visibility, @Nullable Date expires) { if (url == null) { throw new IllegalArgumentException("Required value for 'url' is null"); } @@ -65,7 +71,7 @@ public LinkMetadata(String url, Visibility visibility, Date expires) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LinkMetadata(String url, Visibility visibility) { + public LinkMetadata(@Nonnull String url, @Nonnull Visibility visibility) { this(url, visibility, null); } @@ -74,6 +80,7 @@ public LinkMetadata(String url, Visibility visibility) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -83,6 +90,7 @@ public String getUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public Visibility getVisibility() { return visibility; } @@ -92,6 +100,7 @@ public Visibility getVisibility() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpires() { return expires; } 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 index 4758dc613..8da894b22 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -34,7 +39,7 @@ public class LinkPermission { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LinkPermission(LinkAction action, boolean allow, PermissionDeniedReason reason) { + public LinkPermission(@Nonnull LinkAction action, boolean allow, @Nullable PermissionDeniedReason reason) { if (action == null) { throw new IllegalArgumentException("Required value for 'action' is null"); } @@ -53,7 +58,7 @@ public LinkPermission(LinkAction action, boolean allow, PermissionDeniedReason r * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LinkPermission(LinkAction action, boolean allow) { + public LinkPermission(@Nonnull LinkAction action, boolean allow) { this(action, allow, null); } @@ -61,6 +66,7 @@ public LinkPermission(LinkAction action, boolean allow) { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkAction getAction() { return action; } @@ -77,6 +83,7 @@ public boolean getAllow() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PermissionDeniedReason getReason() { return reason; } 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 index dd70facdc..117a0902f 100644 --- 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 @@ -17,15 +17,24 @@ 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; @@ -34,10 +43,15 @@ public class LinkPermissions { 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; /** @@ -105,7 +119,7 @@ public class LinkPermissions { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LinkPermissions(boolean canRevoke, List visibilityPolicies, boolean canSetExpiry, boolean canRemoveExpiry, boolean allowDownload, boolean canAllowDownload, boolean canDisallowDownload, boolean allowComments, boolean teamRestrictsComments, ResolvedVisibility resolvedVisibility, RequestedVisibility requestedVisibility, SharedLinkAccessFailureReason revokeFailureReason, LinkAudience effectiveAudience, LinkAccessLevel linkAccessLevel, List audienceOptions, Boolean canSetPassword, Boolean canRemovePassword, Boolean requirePassword, Boolean canUseExtendedSharingControls) { + 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; @@ -171,7 +185,7 @@ public LinkPermissions(boolean canRevoke, List visibilityPolic * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LinkPermissions(boolean canRevoke, List visibilityPolicies, boolean canSetExpiry, boolean canRemoveExpiry, boolean allowDownload, boolean canAllowDownload, boolean canDisallowDownload, boolean allowComments, boolean teamRestrictsComments) { + 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); } @@ -189,6 +203,7 @@ public boolean getCanRevoke() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getVisibilityPolicies() { return visibilityPolicies; } @@ -270,6 +285,7 @@ public boolean getTeamRestrictsComments() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ResolvedVisibility getResolvedVisibility() { return resolvedVisibility; } @@ -284,6 +300,7 @@ public ResolvedVisibility getResolvedVisibility() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public RequestedVisibility getRequestedVisibility() { return requestedVisibility; } @@ -294,6 +311,7 @@ public RequestedVisibility getRequestedVisibility() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedLinkAccessFailureReason getRevokeFailureReason() { return revokeFailureReason; } @@ -304,6 +322,7 @@ public SharedLinkAccessFailureReason getRevokeFailureReason() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkAudience getEffectiveAudience() { return effectiveAudience; } @@ -320,6 +339,7 @@ public LinkAudience getEffectiveAudience() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkAccessLevel getLinkAccessLevel() { return linkAccessLevel; } @@ -330,6 +350,7 @@ public LinkAccessLevel getLinkAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getAudienceOptions() { return audienceOptions; } @@ -339,6 +360,7 @@ public List getAudienceOptions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getCanSetPassword() { return canSetPassword; } @@ -348,6 +370,7 @@ public Boolean getCanSetPassword() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getCanRemovePassword() { return canRemovePassword; } @@ -357,6 +380,7 @@ public Boolean getCanRemovePassword() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getRequirePassword() { return requirePassword; } @@ -367,6 +391,7 @@ public Boolean getRequirePassword() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getCanUseExtendedSharingControls() { return canUseExtendedSharingControls; } 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 index 5126e40da..f50cbbfc7 100644 --- 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 @@ -16,15 +16,22 @@ 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; /** @@ -39,7 +46,7 @@ public class LinkSettings { * @param expiry An expiry timestamp to set on a link. * @param password The password for the link. */ - public LinkSettings(AccessLevel accessLevel, LinkAudience audience, LinkExpiry expiry, LinkPassword password) { + public LinkSettings(@Nullable AccessLevel accessLevel, @Nullable LinkAudience audience, @Nullable LinkExpiry expiry, @Nullable LinkPassword password) { this.accessLevel = accessLevel; this.audience = audience; this.expiry = expiry; @@ -61,6 +68,7 @@ public LinkSettings() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccessLevel getAccessLevel() { return accessLevel; } @@ -70,6 +78,7 @@ public AccessLevel getAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkAudience getAudience() { return audience; } @@ -79,6 +88,7 @@ public LinkAudience getAudience() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkExpiry getExpiry() { return expiry; } @@ -88,6 +98,7 @@ public LinkExpiry getExpiry() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkPassword getPassword() { return password; } 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 index 92fb52491..9a40807a4 100644 --- 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 @@ -18,13 +18,18 @@ 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; @@ -50,7 +55,7 @@ class ListFileMembersArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFileMembersArg(String file, List actions, boolean includeInherited, long limit) { + public ListFileMembersArg(@Nonnull String file, @Nullable List actions, boolean includeInherited, long limit) { if (file == null) { throw new IllegalArgumentException("Required value for 'file' is null"); } @@ -92,7 +97,7 @@ public ListFileMembersArg(String file, List actions, boolean inclu * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFileMembersArg(String file) { + public ListFileMembersArg(@Nonnull String file) { this(file, null, true, 100L); } @@ -101,6 +106,7 @@ public ListFileMembersArg(String file) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFile() { return file; } @@ -110,6 +116,7 @@ public String getFile() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActions() { return actions; } 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 index adbce1bdf..fe794e1d0 100644 --- 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 @@ -17,12 +17,15 @@ 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; @@ -38,7 +41,7 @@ class ListFileMembersBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFileMembersBatchArg(List files, long limit) { + public ListFileMembersBatchArg(@Nonnull List files, long limit) { if (files == null) { throw new IllegalArgumentException("Required value for 'files' is null"); } @@ -75,7 +78,7 @@ public ListFileMembersBatchArg(List files, long limit) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFileMembersBatchArg(List files) { + public ListFileMembersBatchArg(@Nonnull List files) { this(files, 10L); } @@ -84,6 +87,7 @@ public ListFileMembersBatchArg(List files) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getFiles() { return files; } 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 index 481a7ee3c..b930363a4 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.regex.Pattern; +import javax.annotation.Nonnull; + /** * Per-file result for {@link * DbxUserSharingRequests#listFileMembersBatch(java.util.List,long)}. @@ -24,7 +26,9 @@ public class ListFileMembersBatchResult { // struct sharing.ListFileMembersBatchResult (sharing_files.stone) + @Nonnull protected final String file; + @Nonnull protected final ListFileMembersIndividualResult result; /** @@ -41,7 +45,7 @@ public class ListFileMembersBatchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFileMembersBatchResult(String file, ListFileMembersIndividualResult result) { + public ListFileMembersBatchResult(@Nonnull String file, @Nonnull ListFileMembersIndividualResult result) { if (file == null) { throw new IllegalArgumentException("Required value for 'file' is null"); } @@ -63,6 +67,7 @@ public ListFileMembersBatchResult(String file, ListFileMembersIndividualResult r * * @return value for this field, never {@code null}. */ + @Nonnull public String getFile() { return file; } @@ -72,6 +77,7 @@ public String getFile() { * * @return value for this field, never {@code null}. */ + @Nonnull public ListFileMembersIndividualResult getResult() { return result; } 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 index b647b270f..cd8d4762f 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -37,7 +40,7 @@ class ListFileMembersContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFileMembersContinueArg(String cursor) { + public ListFileMembersContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -52,6 +55,7 @@ public ListFileMembersContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 266a468a6..499c9790d 100644 --- 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 @@ -16,9 +16,12 @@ 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; @@ -31,7 +34,7 @@ public class ListFileMembersCountResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFileMembersCountResult(SharedFileMembers members, long memberCount) { + public ListFileMembersCountResult(@Nonnull SharedFileMembers members, long memberCount) { if (members == null) { throw new IllegalArgumentException("Required value for 'members' is null"); } @@ -44,6 +47,7 @@ public ListFileMembersCountResult(SharedFileMembers members, long memberCount) { * * @return value for this field, never {@code null}. */ + @Nonnull public SharedFileMembers getMembers() { return members; } 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 index 221268406..fc8bc6368 100644 --- 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 @@ -17,6 +17,9 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Arguments for {@link DbxUserSharingRequests#listReceivedFiles}. */ @@ -24,6 +27,7 @@ class ListFilesArg { // struct sharing.ListFilesArg (sharing_files.stone) protected final long limit; + @Nullable protected final List actions; /** @@ -44,7 +48,7 @@ class ListFilesArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFilesArg(long limit, List actions) { + public ListFilesArg(long limit, @Nullable List actions) { if (limit < 1L) { throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); } @@ -89,6 +93,7 @@ public long getLimit() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActions() { return actions; } 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 index 06c4c472e..3a395ef4d 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + /** * Arguments for {@link * DbxUserSharingRequests#listReceivedFilesContinue(String)}. @@ -23,6 +25,7 @@ class ListFilesContinueArg { // struct sharing.ListFilesContinueArg (sharing_files.stone) + @Nonnull protected final String cursor; /** @@ -35,7 +38,7 @@ class ListFilesContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFilesContinueArg(String cursor) { + public ListFilesContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -47,6 +50,7 @@ public ListFilesContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 56377d0c8..fd0d923c0 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class ListFilesResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFilesResult(List entries, String cursor) { + public ListFilesResult(@Nonnull List entries, @Nullable String cursor) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -60,7 +65,7 @@ public ListFilesResult(List entries, String cursor) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFilesResult(List entries) { + public ListFilesResult(@Nonnull List entries) { this(entries, null); } @@ -69,6 +74,7 @@ public ListFilesResult(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } @@ -78,6 +84,7 @@ public List getEntries() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index 3f2de6484..5492998b4 100644 --- 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 @@ -18,9 +18,13 @@ 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; /** @@ -40,7 +44,7 @@ class ListFolderMembersArgs extends ListFolderMembersCursorArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderMembersArgs(String sharedFolderId, List actions, long limit) { + 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"); @@ -62,7 +66,7 @@ public ListFolderMembersArgs(String sharedFolderId, List actions, * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderMembersArgs(String sharedFolderId) { + public ListFolderMembersArgs(@Nonnull String sharedFolderId) { this(sharedFolderId, null, 1000L); } @@ -71,6 +75,7 @@ public ListFolderMembersArgs(String sharedFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } @@ -82,6 +87,7 @@ public String getSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActions() { return actions; } 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 index d0cc66292..3d66b9cd2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -31,7 +34,7 @@ class ListFolderMembersContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderMembersContinueArg(String cursor) { + public ListFolderMembersContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -45,6 +48,7 @@ public ListFolderMembersContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 632f1d2b0..e6ad93eb9 100644 --- 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 @@ -17,9 +17,13 @@ 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; @@ -38,7 +42,7 @@ class ListFolderMembersCursorArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFolderMembersCursorArg(List actions, long limit) { + public ListFolderMembersCursorArg(@Nullable List actions, long limit) { if (actions != null) { for (MemberAction x : actions) { if (x == null) { @@ -72,6 +76,7 @@ public ListFolderMembersCursorArg() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActions() { return actions; } 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 index 0c2a55d9c..78025351c 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -38,7 +42,7 @@ class ListFoldersArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFoldersArgs(long limit, List actions) { + public ListFoldersArgs(long limit, @Nullable List actions) { if (limit < 1L) { throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); } @@ -83,6 +87,7 @@ public long getLimit() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActions() { return actions; } 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 index b67f6e532..8ea931ab4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ class ListFoldersContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFoldersContinueArg(String cursor) { + public ListFoldersContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -42,6 +45,7 @@ public ListFoldersContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 293f985e2..980433803 100644 --- 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 @@ -17,6 +17,9 @@ 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 @@ -26,7 +29,9 @@ public class ListFoldersResult { // struct sharing.ListFoldersResult (sharing_folders.stone) + @Nonnull protected final List entries; + @Nullable protected final String cursor; /** @@ -48,7 +53,7 @@ public class ListFoldersResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFoldersResult(List entries, String cursor) { + public ListFoldersResult(@Nonnull List entries, @Nullable String cursor) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -76,7 +81,7 @@ public ListFoldersResult(List entries, String cursor) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListFoldersResult(List entries) { + public ListFoldersResult(@Nonnull List entries) { this(entries, null); } @@ -85,6 +90,7 @@ public ListFoldersResult(List entries) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } @@ -98,6 +104,7 @@ public List getEntries() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index 8b325b852..3ae63219b 100644 --- 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 @@ -16,11 +16,17 @@ 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; /** @@ -38,7 +44,7 @@ class ListSharedLinksArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListSharedLinksArg(String path, String cursor, Boolean directOnly) { + 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"); @@ -63,6 +69,7 @@ public ListSharedLinksArg() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPath() { return path; } @@ -73,6 +80,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } @@ -82,6 +90,7 @@ public String getCursor() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getDirectOnly() { return directOnly; } 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 index 48c395637..1beb08008 100644 --- 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 @@ -17,11 +17,16 @@ 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; /** @@ -38,7 +43,7 @@ public class ListSharedLinksResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListSharedLinksResult(List links, boolean hasMore, String cursor) { + public ListSharedLinksResult(@Nonnull List links, boolean hasMore, @Nullable String cursor) { if (links == null) { throw new IllegalArgumentException("Required value for 'links' is null"); } @@ -66,7 +71,7 @@ public ListSharedLinksResult(List links, boolean hasMore, St * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListSharedLinksResult(List links, boolean hasMore) { + public ListSharedLinksResult(@Nonnull List links, boolean hasMore) { this(links, hasMore, null); } @@ -75,6 +80,7 @@ public ListSharedLinksResult(List links, boolean hasMore) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLinks() { return links; } @@ -96,6 +102,7 @@ public boolean getHasMore() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index 8c3b08586..e18e81969 100644 --- 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 @@ -17,6 +17,9 @@ 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. @@ -24,8 +27,11 @@ public class MemberAccessLevelResult { // struct sharing.MemberAccessLevelResult (sharing_folders.stone) + @Nullable protected final AccessLevel accessLevel; + @Nullable protected final String warning; + @Nullable protected final List accessDetails; /** @@ -46,7 +52,7 @@ public class MemberAccessLevelResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAccessLevelResult(AccessLevel accessLevel, String warning, List accessDetails) { + public MemberAccessLevelResult(@Nullable AccessLevel accessLevel, @Nullable String warning, @Nullable List accessDetails) { this.accessLevel = accessLevel; this.warning = warning; if (accessDetails != null) { @@ -75,6 +81,7 @@ public MemberAccessLevelResult() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccessLevel getAccessLevel() { return accessLevel; } @@ -85,6 +92,7 @@ public AccessLevel getAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getWarning() { return warning; } @@ -96,6 +104,7 @@ public String getWarning() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getAccessDetails() { return accessDetails; } 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 index 27e24d05e..c2e4c7e78 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -38,7 +43,7 @@ public class MemberPermission { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberPermission(MemberAction action, boolean allow, PermissionDeniedReason reason) { + public MemberPermission(@Nonnull MemberAction action, boolean allow, @Nullable PermissionDeniedReason reason) { if (action == null) { throw new IllegalArgumentException("Required value for 'action' is null"); } @@ -59,7 +64,7 @@ public MemberPermission(MemberAction action, boolean allow, PermissionDeniedReas * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberPermission(MemberAction action, boolean allow) { + public MemberPermission(@Nonnull MemberAction action, boolean allow) { this(action, allow, null); } @@ -68,6 +73,7 @@ public MemberPermission(MemberAction action, boolean allow) { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberAction getAction() { return action; } @@ -87,6 +93,7 @@ public boolean getAllow() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PermissionDeniedReason getReason() { return reason; } 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 index 44748d57e..80742dca6 100644 --- 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 @@ -17,14 +17,20 @@ 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; @@ -46,7 +52,7 @@ public class MembershipInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembershipInfo(AccessLevel accessType, List permissions, String initials, boolean isInherited) { + 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"); } @@ -75,7 +81,7 @@ public MembershipInfo(AccessLevel accessType, List permissions * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembershipInfo(AccessLevel accessType) { + public MembershipInfo(@Nonnull AccessLevel accessType) { this(accessType, null, null, false); } @@ -85,6 +91,7 @@ public MembershipInfo(AccessLevel accessType) { * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getAccessType() { return accessType; } @@ -95,6 +102,7 @@ public AccessLevel getAccessType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getPermissions() { return permissions; } @@ -104,6 +112,7 @@ public List getPermissions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getInitials() { return initials; } 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 index fda0fda19..52c20b713 100644 --- 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 @@ -16,10 +16,14 @@ 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; @@ -35,7 +39,7 @@ class ModifySharedLinkSettingsArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ModifySharedLinkSettingsArgs(String url, SharedLinkSettings settings, boolean removeExpiration) { + public ModifySharedLinkSettingsArgs(@Nonnull String url, @Nonnull SharedLinkSettings settings, boolean removeExpiration) { if (url == null) { throw new IllegalArgumentException("Required value for 'url' is null"); } @@ -60,7 +64,7 @@ public ModifySharedLinkSettingsArgs(String url, SharedLinkSettings settings, boo * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ModifySharedLinkSettingsArgs(String url, SharedLinkSettings settings) { + public ModifySharedLinkSettingsArgs(@Nonnull String url, @Nonnull SharedLinkSettings settings) { this(url, settings, false); } @@ -69,6 +73,7 @@ public ModifySharedLinkSettingsArgs(String url, SharedLinkSettings settings) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -78,6 +83,7 @@ public String getUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public SharedLinkSettings getSettings() { return settings; } 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 index 11197e0c6..c3bde1a65 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class MountFolderArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MountFolderArg(String sharedFolderId) { + public MountFolderArg(@Nonnull String sharedFolderId) { if (sharedFolderId == null) { throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); } @@ -45,6 +48,7 @@ public MountFolderArg(String sharedFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } 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 index 5064f0675..79670d76b 100644 --- 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 @@ -18,15 +18,21 @@ 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; /** @@ -43,7 +49,7 @@ public class ParentFolderAccessInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ParentFolderAccessInfo(String folderName, String sharedFolderId, List permissions, String path) { + 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"); } @@ -75,6 +81,7 @@ public ParentFolderAccessInfo(String folderName, String sharedFolderId, List getPermissions() { return permissions; } @@ -103,6 +112,7 @@ public List getPermissions() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } 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 index 4ff0b55bd..8354d90ab 100644 --- 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 @@ -18,12 +18,16 @@ 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; /** @@ -38,7 +42,7 @@ public class PathLinkMetadata extends LinkMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PathLinkMetadata(String url, Visibility visibility, String path, Date expires) { + 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"); @@ -58,7 +62,7 @@ public PathLinkMetadata(String url, Visibility visibility, String path, Date exp * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PathLinkMetadata(String url, Visibility visibility, String path) { + public PathLinkMetadata(@Nonnull String url, @Nonnull Visibility visibility, @Nonnull String path) { this(url, visibility, path, null); } @@ -67,6 +71,7 @@ public PathLinkMetadata(String url, Visibility visibility, String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -76,6 +81,7 @@ public String getUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public Visibility getVisibility() { return visibility; } @@ -85,6 +91,7 @@ public Visibility getVisibility() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -94,6 +101,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpires() { return expires; } 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 index 4f26d5028..794731b5b 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ class RelinquishFileMembershipArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelinquishFileMembershipArg(String file) { + public RelinquishFileMembershipArg(@Nonnull String file) { if (file == null) { throw new IllegalArgumentException("Required value for 'file' is null"); } @@ -49,6 +52,7 @@ public RelinquishFileMembershipArg(String file) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFile() { return file; } 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 index 119f99a94..0b91e0b8c 100644 --- 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 @@ -17,9 +17,12 @@ 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; @@ -34,7 +37,7 @@ class RelinquishFolderMembershipArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelinquishFolderMembershipArg(String sharedFolderId, boolean leaveACopy) { + public RelinquishFolderMembershipArg(@Nonnull String sharedFolderId, boolean leaveACopy) { if (sharedFolderId == null) { throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); } @@ -56,7 +59,7 @@ public RelinquishFolderMembershipArg(String sharedFolderId, boolean leaveACopy) * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RelinquishFolderMembershipArg(String sharedFolderId) { + public RelinquishFolderMembershipArg(@Nonnull String sharedFolderId) { this(sharedFolderId, false); } @@ -65,6 +68,7 @@ public RelinquishFolderMembershipArg(String sharedFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } 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 index 844d1cd9e..712b91716 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.regex.Pattern; +import javax.annotation.Nonnull; + /** * Arguments for {@link * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. @@ -24,7 +26,9 @@ class RemoveFileMemberArg { // struct sharing.RemoveFileMemberArg (sharing_files.stone) + @Nonnull protected final String file; + @Nonnull protected final MemberSelector member; /** @@ -43,7 +47,7 @@ class RemoveFileMemberArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RemoveFileMemberArg(String file, MemberSelector member) { + public RemoveFileMemberArg(@Nonnull String file, @Nonnull MemberSelector member) { if (file == null) { throw new IllegalArgumentException("Required value for 'file' is null"); } @@ -65,6 +69,7 @@ public RemoveFileMemberArg(String file, MemberSelector member) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFile() { return file; } @@ -76,6 +81,7 @@ public String getFile() { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSelector getMember() { return member; } 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 index 6f844c492..6cc267b4f 100644 --- 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 @@ -17,10 +17,14 @@ 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; @@ -39,7 +43,7 @@ class RemoveFolderMemberArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RemoveFolderMemberArg(String sharedFolderId, MemberSelector member, boolean leaveACopy) { + public RemoveFolderMemberArg(@Nonnull String sharedFolderId, @Nonnull MemberSelector member, boolean leaveACopy) { if (sharedFolderId == null) { throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); } @@ -59,6 +63,7 @@ public RemoveFolderMemberArg(String sharedFolderId, MemberSelector member, boole * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } @@ -68,6 +73,7 @@ public String getSharedFolderId() { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSelector getMember() { return member; } 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 index 027672432..53f818d65 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ class RevokeSharedLinkArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RevokeSharedLinkArg(String url) { + public RevokeSharedLinkArg(@Nonnull String url) { if (url == null) { throw new IllegalArgumentException("Required value for 'url' is null"); } @@ -40,6 +43,7 @@ public RevokeSharedLinkArg(String url) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } 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 index 04ec1659e..9da7d5b82 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -33,7 +37,7 @@ class SetAccessInheritanceArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SetAccessInheritanceArg(String sharedFolderId, AccessInheritance accessInheritance) { + public SetAccessInheritanceArg(@Nonnull String sharedFolderId, @Nonnull AccessInheritance accessInheritance) { if (accessInheritance == null) { throw new IllegalArgumentException("Required value for 'accessInheritance' is null"); } @@ -58,7 +62,7 @@ public SetAccessInheritanceArg(String sharedFolderId, AccessInheritance accessIn * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SetAccessInheritanceArg(String sharedFolderId) { + public SetAccessInheritanceArg(@Nonnull String sharedFolderId) { this(sharedFolderId, AccessInheritance.INHERIT); } @@ -67,6 +71,7 @@ public SetAccessInheritanceArg(String sharedFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } @@ -77,6 +82,7 @@ public String getSharedFolderId() { * @return value for this field, or {@code null} if not present. Defaults to * AccessInheritance.INHERIT. */ + @Nonnull public AccessInheritance getAccessInheritance() { return accessInheritance; } 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 index 3ba6d76e0..770462eb0 100644 --- 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 @@ -18,10 +18,15 @@ 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; /** @@ -53,7 +58,7 @@ class ShareFolderArg extends ShareFolderArgBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShareFolderArg(String path, AclUpdatePolicy aclUpdatePolicy, boolean forceAsync, MemberPolicy memberPolicy, SharedLinkPolicy sharedLinkPolicy, ViewerInfoPolicy viewerInfoPolicy, AccessInheritance accessInheritance, List actions, LinkSettings linkSettings) { + 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) { @@ -78,7 +83,7 @@ public ShareFolderArg(String path, AclUpdatePolicy aclUpdatePolicy, boolean forc * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShareFolderArg(String path) { + public ShareFolderArg(@Nonnull String path) { this(path, null, false, null, null, null, AccessInheritance.INHERIT, null, null); } @@ -88,6 +93,7 @@ public ShareFolderArg(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -97,6 +103,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AclUpdatePolicy getAclUpdatePolicy() { return aclUpdatePolicy; } @@ -117,6 +124,7 @@ public boolean getForceAsync() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MemberPolicy getMemberPolicy() { return memberPolicy; } @@ -128,6 +136,7 @@ public MemberPolicy getMemberPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedLinkPolicy getSharedLinkPolicy() { return sharedLinkPolicy; } @@ -137,6 +146,7 @@ public SharedLinkPolicy getSharedLinkPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ViewerInfoPolicy getViewerInfoPolicy() { return viewerInfoPolicy; } @@ -147,6 +157,7 @@ public ViewerInfoPolicy getViewerInfoPolicy() { * @return value for this field, or {@code null} if not present. Defaults to * AccessInheritance.INHERIT. */ + @Nonnull public AccessInheritance getAccessInheritance() { return accessInheritance; } @@ -159,6 +170,7 @@ public AccessInheritance getAccessInheritance() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActions() { return actions; } @@ -168,6 +180,7 @@ public List getActions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkSettings getLinkSettings() { return linkSettings; } 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 index c29a3d62f..f56556cad 100644 --- 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 @@ -17,15 +17,24 @@ 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; /** @@ -51,7 +60,7 @@ class ShareFolderArgBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShareFolderArgBase(String path, AclUpdatePolicy aclUpdatePolicy, boolean forceAsync, MemberPolicy memberPolicy, SharedLinkPolicy sharedLinkPolicy, ViewerInfoPolicy viewerInfoPolicy, AccessInheritance accessInheritance) { + 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; @@ -82,7 +91,7 @@ public ShareFolderArgBase(String path, AclUpdatePolicy aclUpdatePolicy, boolean * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShareFolderArgBase(String path) { + public ShareFolderArgBase(@Nonnull String path) { this(path, null, false, null, null, null, AccessInheritance.INHERIT); } @@ -92,6 +101,7 @@ public ShareFolderArgBase(String path) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPath() { return path; } @@ -101,6 +111,7 @@ public String getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AclUpdatePolicy getAclUpdatePolicy() { return aclUpdatePolicy; } @@ -121,6 +132,7 @@ public boolean getForceAsync() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MemberPolicy getMemberPolicy() { return memberPolicy; } @@ -132,6 +144,7 @@ public MemberPolicy getMemberPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedLinkPolicy getSharedLinkPolicy() { return sharedLinkPolicy; } @@ -141,6 +154,7 @@ public SharedLinkPolicy getSharedLinkPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ViewerInfoPolicy getViewerInfoPolicy() { return viewerInfoPolicy; } @@ -151,6 +165,7 @@ public ViewerInfoPolicy getViewerInfoPolicy() { * @return value for this field, or {@code null} if not present. Defaults to * AccessInheritance.INHERIT. */ + @Nonnull public AccessInheritance getAccessInheritance() { return accessInheritance; } 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 index 444e522b5..0c617a2b7 100644 --- 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 @@ -19,13 +19,18 @@ 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; /** @@ -61,7 +66,7 @@ public class SharedContentLinkMetadata extends SharedContentLinkMetadataBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentLinkMetadata(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected, String url, AccessLevel accessLevel, AudienceRestrictingSharedFolder audienceRestrictingSharedFolder, Date expiry, AudienceExceptions audienceExceptions) { + 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) { @@ -92,7 +97,7 @@ public SharedContentLinkMetadata(List audienceOptions, LinkAudienc * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentLinkMetadata(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected, String url) { + 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); } @@ -104,6 +109,7 @@ public SharedContentLinkMetadata(List audienceOptions, LinkAudienc * * @return value for this field, never {@code null}. */ + @Nonnull public List getAudienceOptions() { return audienceOptions; } @@ -113,6 +119,7 @@ public List getAudienceOptions() { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkAudience getCurrentAudience() { return currentAudience; } @@ -122,6 +129,7 @@ public LinkAudience getCurrentAudience() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLinkPermissions() { return linkPermissions; } @@ -140,6 +148,7 @@ public boolean getPasswordProtected() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -149,6 +158,7 @@ public String getUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccessLevel getAccessLevel() { return accessLevel; } @@ -159,6 +169,7 @@ public AccessLevel getAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder() { return audienceRestrictingSharedFolder; } @@ -169,6 +180,7 @@ public AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpiry() { return expiry; } @@ -180,6 +192,7 @@ public Date getExpiry() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AudienceExceptions getAudienceExceptions() { return audienceExceptions; } 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 index 7290f7372..14067092a 100644 --- 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 @@ -19,14 +19,23 @@ 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; @@ -56,7 +65,7 @@ public class SharedContentLinkMetadataBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentLinkMetadataBase(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected, AccessLevel accessLevel, AudienceRestrictingSharedFolder audienceRestrictingSharedFolder, Date expiry) { + 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"); @@ -106,7 +115,7 @@ public SharedContentLinkMetadataBase(List audienceOptions, LinkAud * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentLinkMetadataBase(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected) { + public SharedContentLinkMetadataBase(@Nonnull List audienceOptions, @Nonnull LinkAudience currentAudience, @Nonnull List linkPermissions, boolean passwordProtected) { this(audienceOptions, currentAudience, linkPermissions, passwordProtected, null, null, null); } @@ -118,6 +127,7 @@ public SharedContentLinkMetadataBase(List audienceOptions, LinkAud * * @return value for this field, never {@code null}. */ + @Nonnull public List getAudienceOptions() { return audienceOptions; } @@ -127,6 +137,7 @@ public List getAudienceOptions() { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkAudience getCurrentAudience() { return currentAudience; } @@ -136,6 +147,7 @@ public LinkAudience getCurrentAudience() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLinkPermissions() { return linkPermissions; } @@ -154,6 +166,7 @@ public boolean getPasswordProtected() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccessLevel getAccessLevel() { return accessLevel; } @@ -164,6 +177,7 @@ public AccessLevel getAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder() { return audienceRestrictingSharedFolder; } @@ -174,6 +188,7 @@ public AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpiry() { return expiry; } 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 index 4dc2cfe43..32d4b20c9 100644 --- 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 @@ -17,6 +17,9 @@ 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 @@ -27,9 +30,13 @@ 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; /** @@ -54,7 +61,7 @@ public class SharedFileMembers { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFileMembers(List users, List groups, List invitees, String cursor) { + 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"); } @@ -105,7 +112,7 @@ public SharedFileMembers(List users, List users, List groups, List invitees) { + public SharedFileMembers(@Nonnull List users, @Nonnull List groups, @Nonnull List invitees) { this(users, groups, invitees, null); } @@ -114,6 +121,7 @@ public SharedFileMembers(List users, List getUsers() { return users; } @@ -123,6 +131,7 @@ public List getUsers() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getGroups() { return groups; } @@ -133,6 +142,7 @@ public List getGroups() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getInvitees() { return invitees; } @@ -145,6 +155,7 @@ public List getInvitees() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index 0dd526d9a..9881761dd 100644 --- 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 @@ -21,25 +21,42 @@ 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; /** @@ -92,7 +109,7 @@ public class SharedFileMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFileMetadata(String id, String name, FolderPolicy policy, String previewUrl, AccessLevel accessType, ExpectedSharedContentLinkMetadata expectedLinkMetadata, SharedContentLinkMetadata linkMetadata, List ownerDisplayNames, Team ownerTeam, String parentSharedFolderId, String pathDisplay, String pathLower, List permissions, Date timeInvited) { + 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"); @@ -162,7 +179,7 @@ public SharedFileMetadata(String id, String name, FolderPolicy policy, String pr * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFileMetadata(String id, String name, FolderPolicy policy, String previewUrl) { + 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); } @@ -171,6 +188,7 @@ public SharedFileMetadata(String id, String name, FolderPolicy policy, String pr * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -180,6 +198,7 @@ public String getId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -189,6 +208,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public FolderPolicy getPolicy() { return policy; } @@ -198,6 +218,7 @@ public FolderPolicy getPolicy() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviewUrl() { return previewUrl; } @@ -207,6 +228,7 @@ public String getPreviewUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccessLevel getAccessType() { return accessType; } @@ -218,6 +240,7 @@ public AccessLevel getAccessType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ExpectedSharedContentLinkMetadata getExpectedLinkMetadata() { return expectedLinkMetadata; } @@ -228,6 +251,7 @@ public ExpectedSharedContentLinkMetadata getExpectedLinkMetadata() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedContentLinkMetadata getLinkMetadata() { return linkMetadata; } @@ -239,6 +263,7 @@ public SharedContentLinkMetadata getLinkMetadata() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getOwnerDisplayNames() { return ownerDisplayNames; } @@ -249,6 +274,7 @@ public List getOwnerDisplayNames() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Team getOwnerTeam() { return ownerTeam; } @@ -259,6 +285,7 @@ public Team getOwnerTeam() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentSharedFolderId() { return parentSharedFolderId; } @@ -271,6 +298,7 @@ public String getParentSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathDisplay() { return pathDisplay; } @@ -280,6 +308,7 @@ public String getPathDisplay() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathLower() { return pathLower; } @@ -293,6 +322,7 @@ public String getPathLower() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getPermissions() { return permissions; } @@ -305,6 +335,7 @@ public List getPermissions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getTimeInvited() { return timeInvited; } 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 index 9d6259c51..12792dffc 100644 --- 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 @@ -17,15 +17,22 @@ 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; /** @@ -45,7 +52,7 @@ public class SharedFolderMembers { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderMembers(List users, List groups, List invitees, String cursor) { + 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"); } @@ -91,7 +98,7 @@ public SharedFolderMembers(List users, List users, List groups, List invitees) { + public SharedFolderMembers(@Nonnull List users, @Nonnull List groups, @Nonnull List invitees) { this(users, groups, invitees, null); } @@ -100,6 +107,7 @@ public SharedFolderMembers(List users, List getUsers() { return users; } @@ -109,6 +117,7 @@ public List getUsers() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getGroups() { return groups; } @@ -118,6 +127,7 @@ public List getGroups() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getInvitees() { return invitees; } @@ -130,6 +140,7 @@ public List getInvitees() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index d28fd1957..3c5909c4f 100644 --- 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 @@ -21,19 +21,30 @@ 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; /** @@ -84,7 +95,7 @@ public class SharedFolderMetadata extends SharedFolderMetadataBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderMetadata(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, String name, FolderPolicy policy, String previewUrl, String sharedFolderId, Date timeInvited, List ownerDisplayNames, Team ownerTeam, String parentSharedFolderId, String pathDisplay, String pathLower, String parentFolderName, SharedContentLinkMetadata linkMetadata, List permissions, AccessInheritance accessInheritance) { + 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) { @@ -149,7 +160,7 @@ public SharedFolderMetadata(AccessLevel accessType, boolean isInsideTeamFolder, * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderMetadata(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, String name, FolderPolicy policy, String previewUrl, String sharedFolderId, Date timeInvited) { + 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); } @@ -158,6 +169,7 @@ public SharedFolderMetadata(AccessLevel accessType, boolean isInsideTeamFolder, * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getAccessType() { return accessType; } @@ -186,6 +198,7 @@ public boolean getIsTeamFolder() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -195,6 +208,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public FolderPolicy getPolicy() { return policy; } @@ -204,6 +218,7 @@ public FolderPolicy getPolicy() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviewUrl() { return previewUrl; } @@ -213,6 +228,7 @@ public String getPreviewUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } @@ -223,6 +239,7 @@ public String getSharedFolderId() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getTimeInvited() { return timeInvited; } @@ -234,6 +251,7 @@ public Date getTimeInvited() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getOwnerDisplayNames() { return ownerDisplayNames; } @@ -244,6 +262,7 @@ public List getOwnerDisplayNames() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Team getOwnerTeam() { return ownerTeam; } @@ -254,6 +273,7 @@ public Team getOwnerTeam() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentSharedFolderId() { return parentSharedFolderId; } @@ -263,6 +283,7 @@ public String getParentSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathDisplay() { return pathDisplay; } @@ -273,6 +294,7 @@ public String getPathDisplay() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathLower() { return pathLower; } @@ -282,6 +304,7 @@ public String getPathLower() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentFolderName() { return parentFolderName; } @@ -293,6 +316,7 @@ public String getParentFolderName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedContentLinkMetadata getLinkMetadata() { return linkMetadata; } @@ -303,6 +327,7 @@ public SharedContentLinkMetadata getLinkMetadata() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getPermissions() { return permissions; } @@ -313,6 +338,7 @@ public List getPermissions() { * @return value for this field, or {@code null} if not present. Defaults to * AccessInheritance.INHERIT. */ + @Nonnull public AccessInheritance getAccessInheritance() { return accessInheritance; } 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 index d879ec355..6441f60e1 100644 --- 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 @@ -18,20 +18,30 @@ 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; /** @@ -64,7 +74,7 @@ public class SharedFolderMetadataBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderMetadataBase(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, List ownerDisplayNames, Team ownerTeam, String parentSharedFolderId, String pathDisplay, String pathLower, String parentFolderName) { + 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"); } @@ -106,7 +116,7 @@ public SharedFolderMetadataBase(AccessLevel accessType, boolean isInsideTeamFold * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderMetadataBase(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder) { + public SharedFolderMetadataBase(@Nonnull AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder) { this(accessType, isInsideTeamFolder, isTeamFolder, null, null, null, null, null, null); } @@ -115,6 +125,7 @@ public SharedFolderMetadataBase(AccessLevel accessType, boolean isInsideTeamFold * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getAccessType() { return accessType; } @@ -145,6 +156,7 @@ public boolean getIsTeamFolder() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getOwnerDisplayNames() { return ownerDisplayNames; } @@ -155,6 +167,7 @@ public List getOwnerDisplayNames() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Team getOwnerTeam() { return ownerTeam; } @@ -165,6 +178,7 @@ public Team getOwnerTeam() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentSharedFolderId() { return parentSharedFolderId; } @@ -174,6 +188,7 @@ public String getParentSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathDisplay() { return pathDisplay; } @@ -184,6 +199,7 @@ public String getPathDisplay() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathLower() { return pathLower; } @@ -193,6 +209,7 @@ public String getPathLower() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getParentFolderName() { return parentFolderName; } 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 index 0323dea91..3da679438 100644 --- 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 @@ -19,19 +19,30 @@ 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; /** @@ -63,7 +74,7 @@ public class SharedLinkMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkMetadata(String url, String name, LinkPermissions linkPermissions, String id, Date expires, String pathLower, TeamMemberInfo teamMemberInfo, Team contentOwnerTeamInfo) { + 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"); } @@ -102,7 +113,7 @@ public SharedLinkMetadata(String url, String name, LinkPermissions linkPermissio * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkMetadata(String url, String name, LinkPermissions linkPermissions) { + public SharedLinkMetadata(@Nonnull String url, @Nonnull String name, @Nonnull LinkPermissions linkPermissions) { this(url, name, linkPermissions, null, null, null, null, null); } @@ -111,6 +122,7 @@ public SharedLinkMetadata(String url, String name, LinkPermissions linkPermissio * * @return value for this field, never {@code null}. */ + @Nonnull public String getUrl() { return url; } @@ -120,6 +132,7 @@ public String getUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -129,6 +142,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkPermissions getLinkPermissions() { return linkPermissions; } @@ -138,6 +152,7 @@ public LinkPermissions getLinkPermissions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getId() { return id; } @@ -147,6 +162,7 @@ public String getId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpires() { return expires; } @@ -158,6 +174,7 @@ public Date getExpires() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPathLower() { return pathLower; } @@ -168,6 +185,7 @@ public String getPathLower() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TeamMemberInfo getTeamMemberInfo() { return teamMemberInfo; } @@ -179,6 +197,7 @@ public TeamMemberInfo getTeamMemberInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Team getContentOwnerTeamInfo() { return contentOwnerTeamInfo; } 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 index e5bdebc1f..7e94ee6ab 100644 --- 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 @@ -18,15 +18,25 @@ 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; /** @@ -53,7 +63,7 @@ public class SharedLinkSettings { * @param allowDownload Boolean flag to allow or not download capabilities * for shared links. */ - public SharedLinkSettings(Boolean requirePassword, String linkPassword, Date expires, LinkAudience audience, RequestedLinkAccessLevel access, RequestedVisibility requestedVisibility, Boolean allowDownload) { + 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); @@ -77,6 +87,7 @@ public SharedLinkSettings() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getRequirePassword() { return requirePassword; } @@ -87,6 +98,7 @@ public Boolean getRequirePassword() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getLinkPassword() { return linkPassword; } @@ -96,6 +108,7 @@ public String getLinkPassword() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpires() { return expires; } @@ -109,6 +122,7 @@ public Date getExpires() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkAudience getAudience() { return audience; } @@ -119,6 +133,7 @@ public LinkAudience getAudience() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public RequestedLinkAccessLevel getAccess() { return access; } @@ -129,6 +144,7 @@ public RequestedLinkAccessLevel getAccess() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public RequestedVisibility getRequestedVisibility() { return requestedVisibility; } @@ -138,6 +154,7 @@ public RequestedVisibility getRequestedVisibility() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getAllowDownload() { return allowDownload; } 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 index 24e03b9f2..0fde23875 100644 --- 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 @@ -17,14 +17,20 @@ 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; /** @@ -40,7 +46,7 @@ public class TeamMemberInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberInfo(Team teamInfo, String displayName, String memberId) { + public TeamMemberInfo(@Nonnull Team teamInfo, @Nonnull String displayName, @Nullable String memberId) { if (teamInfo == null) { throw new IllegalArgumentException("Required value for 'teamInfo' is null"); } @@ -65,7 +71,7 @@ public TeamMemberInfo(Team teamInfo, String displayName, String memberId) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberInfo(Team teamInfo, String displayName) { + public TeamMemberInfo(@Nonnull Team teamInfo, @Nonnull String displayName) { this(teamInfo, displayName, null); } @@ -74,6 +80,7 @@ public TeamMemberInfo(Team teamInfo, String displayName) { * * @return value for this field, never {@code null}. */ + @Nonnull public Team getTeamInfo() { return teamInfo; } @@ -83,6 +90,7 @@ public Team getTeamInfo() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDisplayName() { return displayName; } @@ -93,6 +101,7 @@ public String getDisplayName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberId() { return memberId; } 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 index 8d5e288d7..707625f3e 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -33,7 +37,7 @@ class TransferFolderArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TransferFolderArg(String sharedFolderId, String toDropboxId) { + public TransferFolderArg(@Nonnull String sharedFolderId, @Nonnull String toDropboxId) { if (sharedFolderId == null) { throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); } @@ -55,6 +59,7 @@ public TransferFolderArg(String sharedFolderId, String toDropboxId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } @@ -64,6 +69,7 @@ public String getSharedFolderId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getToDropboxId() { return toDropboxId; } 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 index 50867dee8..a87286da1 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class UnmountFolderArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UnmountFolderArg(String sharedFolderId) { + public UnmountFolderArg(@Nonnull String sharedFolderId) { if (sharedFolderId == null) { throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); } @@ -45,6 +48,7 @@ public UnmountFolderArg(String sharedFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } 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 index 21cd5e712..bc61538f1 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -35,7 +38,7 @@ class UnshareFileArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UnshareFileArg(String file) { + public UnshareFileArg(@Nonnull String file) { if (file == null) { throw new IllegalArgumentException("Required value for 'file' is null"); } @@ -53,6 +56,7 @@ public UnshareFileArg(String file) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFile() { return file; } 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 index d37274483..84af030d6 100644 --- 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 @@ -17,9 +17,12 @@ 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; @@ -35,7 +38,7 @@ class UnshareFolderArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UnshareFolderArg(String sharedFolderId, boolean leaveACopy) { + public UnshareFolderArg(@Nonnull String sharedFolderId, boolean leaveACopy) { if (sharedFolderId == null) { throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); } @@ -57,7 +60,7 @@ public UnshareFolderArg(String sharedFolderId, boolean leaveACopy) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UnshareFolderArg(String sharedFolderId) { + public UnshareFolderArg(@Nonnull String sharedFolderId) { this(sharedFolderId, false); } @@ -66,6 +69,7 @@ public UnshareFolderArg(String sharedFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } 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 index f2b2054e3..7a108bfd1 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.regex.Pattern; +import javax.annotation.Nonnull; + /** * Arguments for {@link * DbxUserSharingRequests#updateFileMember(String,MemberSelector,AccessLevel)}. @@ -24,8 +26,11 @@ class UpdateFileMemberArgs { // struct sharing.UpdateFileMemberArgs (sharing_files.stone) + @Nonnull protected final String file; + @Nonnull protected final MemberSelector member; + @Nonnull protected final AccessLevel accessLevel; /** @@ -44,7 +49,7 @@ class UpdateFileMemberArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UpdateFileMemberArgs(String file, MemberSelector member, AccessLevel accessLevel) { + public UpdateFileMemberArgs(@Nonnull String file, @Nonnull MemberSelector member, @Nonnull AccessLevel accessLevel) { if (file == null) { throw new IllegalArgumentException("Required value for 'file' is null"); } @@ -70,6 +75,7 @@ public UpdateFileMemberArgs(String file, MemberSelector member, AccessLevel acce * * @return value for this field, never {@code null}. */ + @Nonnull public String getFile() { return file; } @@ -79,6 +85,7 @@ public String getFile() { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSelector getMember() { return member; } @@ -88,6 +95,7 @@ public MemberSelector getMember() { * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getAccessLevel() { return accessLevel; } 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 index afe4b0980..38ba42515 100644 --- 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 @@ -17,11 +17,16 @@ 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; /** @@ -38,7 +43,7 @@ class UpdateFolderMemberArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UpdateFolderMemberArg(String sharedFolderId, MemberSelector member, AccessLevel accessLevel) { + public UpdateFolderMemberArg(@Nonnull String sharedFolderId, @Nonnull MemberSelector member, @Nonnull AccessLevel accessLevel) { if (sharedFolderId == null) { throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); } @@ -61,6 +66,7 @@ public UpdateFolderMemberArg(String sharedFolderId, MemberSelector member, Acces * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } @@ -71,6 +77,7 @@ public String getSharedFolderId() { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSelector getMember() { return member; } @@ -81,6 +88,7 @@ public MemberSelector getMember() { * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getAccessLevel() { return accessLevel; } 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 index c8e04c12c..326b7384f 100644 --- 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 @@ -18,18 +18,28 @@ 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; /** @@ -59,7 +69,7 @@ class UpdateFolderPolicyArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UpdateFolderPolicyArg(String sharedFolderId, MemberPolicy memberPolicy, AclUpdatePolicy aclUpdatePolicy, ViewerInfoPolicy viewerInfoPolicy, SharedLinkPolicy sharedLinkPolicy, LinkSettings linkSettings, List actions) { + 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"); } @@ -93,7 +103,7 @@ public UpdateFolderPolicyArg(String sharedFolderId, MemberPolicy memberPolicy, A * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UpdateFolderPolicyArg(String sharedFolderId) { + public UpdateFolderPolicyArg(@Nonnull String sharedFolderId) { this(sharedFolderId, null, null, null, null, null, null); } @@ -102,6 +112,7 @@ public UpdateFolderPolicyArg(String sharedFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedFolderId() { return sharedFolderId; } @@ -112,6 +123,7 @@ public String getSharedFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MemberPolicy getMemberPolicy() { return memberPolicy; } @@ -121,6 +133,7 @@ public MemberPolicy getMemberPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AclUpdatePolicy getAclUpdatePolicy() { return aclUpdatePolicy; } @@ -130,6 +143,7 @@ public AclUpdatePolicy getAclUpdatePolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ViewerInfoPolicy getViewerInfoPolicy() { return viewerInfoPolicy; } @@ -141,6 +155,7 @@ public ViewerInfoPolicy getViewerInfoPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedLinkPolicy getSharedLinkPolicy() { return sharedLinkPolicy; } @@ -150,6 +165,7 @@ public SharedLinkPolicy getSharedLinkPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkSettings getLinkSettings() { return linkSettings; } @@ -162,6 +178,7 @@ public LinkSettings getLinkSettings() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActions() { return actions; } 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 index e30ef5feb..96664e5d3 100644 --- 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 @@ -20,6 +20,9 @@ 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. @@ -27,7 +30,9 @@ public class UserFileMembershipInfo extends UserMembershipInfo { // struct sharing.UserFileMembershipInfo (sharing_files.stone) + @Nullable protected final Date timeLastSeen; + @Nullable protected final PlatformType platformType; /** @@ -56,7 +61,7 @@ public class UserFileMembershipInfo extends UserMembershipInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserFileMembershipInfo(AccessLevel accessType, UserInfo user, List permissions, String initials, boolean isInherited, Date timeLastSeen, PlatformType platformType) { + 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; @@ -77,7 +82,7 @@ public UserFileMembershipInfo(AccessLevel accessType, UserInfo user, List getPermissions() { return permissions; } @@ -115,6 +123,7 @@ public List getPermissions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getInitials() { return initials; } @@ -136,6 +145,7 @@ public boolean getIsInherited() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getTimeLastSeen() { return timeLastSeen; } @@ -145,6 +155,7 @@ public Date getTimeLastSeen() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PlatformType getPlatformType() { return platformType; } 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 index 600db3933..778955d90 100644 --- 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 @@ -16,6 +16,9 @@ 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 @@ -25,10 +28,14 @@ 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; /** @@ -50,7 +57,7 @@ public class UserInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserInfo(String accountId, String email, String displayName, boolean sameTeam, String teamMemberId) { + 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"); } @@ -92,7 +99,7 @@ public UserInfo(String accountId, String email, String displayName, boolean same * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserInfo(String accountId, String email, String displayName, boolean sameTeam) { + public UserInfo(@Nonnull String accountId, @Nonnull String email, @Nonnull String displayName, boolean sameTeam) { this(accountId, email, displayName, sameTeam, null); } @@ -101,6 +108,7 @@ public UserInfo(String accountId, String email, String displayName, boolean same * * @return value for this field, never {@code null}. */ + @Nonnull public String getAccountId() { return accountId; } @@ -110,6 +118,7 @@ public String getAccountId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEmail() { return email; } @@ -119,6 +128,7 @@ public String getEmail() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDisplayName() { return displayName; } @@ -138,6 +148,7 @@ public boolean getSameTeam() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTeamMemberId() { return teamMemberId; } 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 index 89484d58e..21418038a 100644 --- 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 @@ -17,12 +17,16 @@ 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; /** @@ -45,7 +49,7 @@ public class UserMembershipInfo extends MembershipInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserMembershipInfo(AccessLevel accessType, UserInfo user, List permissions, String initials, boolean isInherited) { + 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"); @@ -67,7 +71,7 @@ public UserMembershipInfo(AccessLevel accessType, UserInfo user, List getPermissions() { return permissions; } @@ -105,6 +112,7 @@ public List getPermissions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getInitials() { return initials; } 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 index c56ab182d..6a560945a 100644 --- 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 @@ -16,12 +16,18 @@ 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; /** @@ -42,7 +48,7 @@ public class VisibilityPolicy { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public VisibilityPolicy(RequestedVisibility policy, AlphaResolvedVisibility resolvedPolicy, boolean allowed, VisibilityPolicyDisallowedReason disallowedReason) { + 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"); } @@ -73,7 +79,7 @@ public VisibilityPolicy(RequestedVisibility policy, AlphaResolvedVisibility reso * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public VisibilityPolicy(RequestedVisibility policy, AlphaResolvedVisibility resolvedPolicy, boolean allowed) { + public VisibilityPolicy(@Nonnull RequestedVisibility policy, @Nonnull AlphaResolvedVisibility resolvedPolicy, boolean allowed) { this(policy, resolvedPolicy, allowed, null); } @@ -82,6 +88,7 @@ public VisibilityPolicy(RequestedVisibility policy, AlphaResolvedVisibility reso * * @return value for this field, never {@code null}. */ + @Nonnull public RequestedVisibility getPolicy() { return policy; } @@ -94,6 +101,7 @@ public RequestedVisibility getPolicy() { * * @return value for this field, never {@code null}. */ + @Nonnull public AlphaResolvedVisibility getResolvedPolicy() { return resolvedPolicy; } @@ -114,6 +122,7 @@ public boolean getAllowed() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public VisibilityPolicyDisallowedReason getDisallowedReason() { return disallowedReason; } 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 index 973870bea..75b9ae51a 100644 --- 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 @@ -18,15 +18,22 @@ 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; /** @@ -52,7 +59,7 @@ public class ActiveWebSession extends DeviceSession { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ActiveWebSession(String sessionId, String userAgent, String os, String browser, String ipAddress, String country, Date created, Date updated, Date expires) { + 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"); @@ -85,7 +92,7 @@ public ActiveWebSession(String sessionId, String userAgent, String os, String br * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ActiveWebSession(String sessionId, String userAgent, String os, String browser) { + public ActiveWebSession(@Nonnull String sessionId, @Nonnull String userAgent, @Nonnull String os, @Nonnull String browser) { this(sessionId, userAgent, os, browser, null, null, null, null, null); } @@ -94,6 +101,7 @@ public ActiveWebSession(String sessionId, String userAgent, String os, String br * * @return value for this field, never {@code null}. */ + @Nonnull public String getSessionId() { return sessionId; } @@ -103,6 +111,7 @@ public String getSessionId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUserAgent() { return userAgent; } @@ -112,6 +121,7 @@ public String getUserAgent() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOs() { return os; } @@ -121,6 +131,7 @@ public String getOs() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBrowser() { return browser; } @@ -130,6 +141,7 @@ public String getBrowser() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getIpAddress() { return ipAddress; } @@ -139,6 +151,7 @@ public String getIpAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCountry() { return country; } @@ -148,6 +161,7 @@ public String getCountry() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getCreated() { return created; } @@ -157,6 +171,7 @@ public Date getCreated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getUpdated() { return updated; } @@ -166,6 +181,7 @@ public Date getUpdated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getExpires() { return expires; } 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 index 1773955c8..8ede2fcd3 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class AddSecondaryEmailsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddSecondaryEmailsArg(List newSecondaryEmails) { + public AddSecondaryEmailsArg(@Nonnull List newSecondaryEmails) { if (newSecondaryEmails == null) { throw new IllegalArgumentException("Required value for 'newSecondaryEmails' is null"); } @@ -47,6 +50,7 @@ public AddSecondaryEmailsArg(List newSecondaryEmails) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getNewSecondaryEmails() { return newSecondaryEmails; } 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 index eb486f90e..103cbb73a 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class AddSecondaryEmailsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AddSecondaryEmailsResult(List results) { + public AddSecondaryEmailsResult(@Nonnull List results) { if (results == null) { throw new IllegalArgumentException("Required value for 'results' is null"); } @@ -47,6 +50,7 @@ public AddSecondaryEmailsResult(List results) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getResults() { return results; } 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 index 99b5bd1b4..0d054a2b8 100644 --- 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 @@ -18,16 +18,24 @@ 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; @@ -48,7 +56,7 @@ public class ApiApp { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ApiApp(String appId, String appName, boolean isAppFolder, String publisher, String publisherUrl, Date linked) { + 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"); } @@ -76,7 +84,7 @@ public ApiApp(String appId, String appName, boolean isAppFolder, String publishe * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ApiApp(String appId, String appName, boolean isAppFolder) { + public ApiApp(@Nonnull String appId, @Nonnull String appName, boolean isAppFolder) { this(appId, appName, isAppFolder, null, null, null); } @@ -85,6 +93,7 @@ public ApiApp(String appId, String appName, boolean isAppFolder) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAppId() { return appId; } @@ -94,6 +103,7 @@ public String getAppId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAppName() { return appName; } @@ -112,6 +122,7 @@ public boolean getIsAppFolder() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPublisher() { return publisher; } @@ -121,6 +132,7 @@ public String getPublisher() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPublisherUrl() { return publisherUrl; } @@ -130,6 +142,7 @@ public String getPublisherUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getLinked() { return linked; } 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 index 4fe81a01f..6203abeb4 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class BaseDfbReport { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BaseDfbReport(String startDate) { + public BaseDfbReport(@Nonnull String startDate) { if (startDate == null) { throw new IllegalArgumentException("Required value for 'startDate' is null"); } @@ -45,6 +48,7 @@ public BaseDfbReport(String startDate) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getStartDate() { return startDate; } 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 index 726cd72ab..f7dcdb6b2 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class CustomQuotaUsersArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CustomQuotaUsersArg(List users) { + public CustomQuotaUsersArg(@Nonnull List users) { if (users == null) { throw new IllegalArgumentException("Required value for 'users' is null"); } @@ -47,6 +50,7 @@ public CustomQuotaUsersArg(List users) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getUsers() { return users; } 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 index 899ef8e24..bc0252cef 100644 --- 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 @@ -18,13 +18,18 @@ 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; /** @@ -37,7 +42,7 @@ class DateRange { * None or too long ago, this field will be set to 6 months ago. * @param endDate Optional ending date (exclusive). */ - public DateRange(Date startDate, Date endDate) { + public DateRange(@Nullable Date startDate, @Nullable Date endDate) { this.startDate = LangUtil.truncateMillis(startDate); this.endDate = LangUtil.truncateMillis(endDate); } @@ -57,6 +62,7 @@ public DateRange() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getStartDate() { return startDate; } @@ -66,6 +72,7 @@ public Date getStartDate() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getEndDate() { return endDate; } 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 index 89c10894b..97c4a2932 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class DeleteSecondaryEmailsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteSecondaryEmailsArg(List emailsToDelete) { + public DeleteSecondaryEmailsArg(@Nonnull List emailsToDelete) { if (emailsToDelete == null) { throw new IllegalArgumentException("Required value for 'emailsToDelete' is null"); } @@ -47,6 +50,7 @@ public DeleteSecondaryEmailsArg(List emailsToDelete) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEmailsToDelete() { return emailsToDelete; } 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 index 397e83cfd..8ef12dab0 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class DeleteSecondaryEmailsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteSecondaryEmailsResult(List results) { + public DeleteSecondaryEmailsResult(@Nonnull List results) { if (results == null) { throw new IllegalArgumentException("Required value for 'results' is null"); } @@ -46,6 +49,7 @@ public DeleteSecondaryEmailsResult(List results) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getResults() { return results; } 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 index 7cd26df4c..57d3f7a58 100644 --- 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 @@ -18,15 +18,22 @@ 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; @@ -55,7 +62,7 @@ public class DesktopClientSession extends DeviceSession { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DesktopClientSession(String sessionId, String hostName, DesktopPlatform clientType, String clientVersion, String platform, boolean isDeleteOnUnlinkSupported, String ipAddress, String country, Date created, Date updated) { + 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"); @@ -95,7 +102,7 @@ public DesktopClientSession(String sessionId, String hostName, DesktopPlatform c * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DesktopClientSession(String sessionId, String hostName, DesktopPlatform clientType, String clientVersion, String platform, boolean isDeleteOnUnlinkSupported) { + 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); } @@ -104,6 +111,7 @@ public DesktopClientSession(String sessionId, String hostName, DesktopPlatform c * * @return value for this field, never {@code null}. */ + @Nonnull public String getSessionId() { return sessionId; } @@ -113,6 +121,7 @@ public String getSessionId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getHostName() { return hostName; } @@ -122,6 +131,7 @@ public String getHostName() { * * @return value for this field, never {@code null}. */ + @Nonnull public DesktopPlatform getClientType() { return clientType; } @@ -131,6 +141,7 @@ public DesktopPlatform getClientType() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getClientVersion() { return clientVersion; } @@ -140,6 +151,7 @@ public String getClientVersion() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPlatform() { return platform; } @@ -158,6 +170,7 @@ public boolean getIsDeleteOnUnlinkSupported() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getIpAddress() { return ipAddress; } @@ -167,6 +180,7 @@ public String getIpAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCountry() { return country; } @@ -176,6 +190,7 @@ public String getCountry() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getCreated() { return created; } @@ -185,6 +200,7 @@ public Date getCreated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getUpdated() { return updated; } 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 index e346a6360..b6d2cafad 100644 --- 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 @@ -18,13 +18,21 @@ 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; /** @@ -41,7 +49,7 @@ public class DeviceSession { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceSession(String sessionId, String ipAddress, String country, Date created, Date updated) { + 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"); } @@ -62,7 +70,7 @@ public DeviceSession(String sessionId, String ipAddress, String country, Date cr * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceSession(String sessionId) { + public DeviceSession(@Nonnull String sessionId) { this(sessionId, null, null, null, null); } @@ -71,6 +79,7 @@ public DeviceSession(String sessionId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSessionId() { return sessionId; } @@ -80,6 +89,7 @@ public String getSessionId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getIpAddress() { return ipAddress; } @@ -89,6 +99,7 @@ public String getIpAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCountry() { return country; } @@ -98,6 +109,7 @@ public String getCountry() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getCreated() { return created; } @@ -107,6 +119,7 @@ public Date getCreated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getUpdated() { return updated; } 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 index 25e978bbe..9248dcc54 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -31,7 +35,7 @@ public class DeviceSessionArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceSessionArg(String sessionId, String teamMemberId) { + public DeviceSessionArg(@Nonnull String sessionId, @Nonnull String teamMemberId) { if (sessionId == null) { throw new IllegalArgumentException("Required value for 'sessionId' is null"); } @@ -47,6 +51,7 @@ public DeviceSessionArg(String sessionId, String teamMemberId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSessionId() { return sessionId; } @@ -56,6 +61,7 @@ public String getSessionId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } 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 index a9d43da1c..bf4d7d078 100644 --- 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 @@ -17,6 +17,8 @@ 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 @@ -25,12 +27,19 @@ 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; /** @@ -60,7 +69,7 @@ public class DevicesActive { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DevicesActive(List windows, List macos, List linux, List ios, List android, List other, List total) { + 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"); } @@ -131,6 +140,7 @@ public DevicesActive(List windows, List macos, List linux, Lis * * @return value for this field, never {@code null}. */ + @Nonnull public List getWindows() { return windows; } @@ -140,6 +150,7 @@ public List getWindows() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMacos() { return macos; } @@ -149,6 +160,7 @@ public List getMacos() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLinux() { return linux; } @@ -158,6 +170,7 @@ public List getLinux() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getIos() { return ios; } @@ -167,6 +180,7 @@ public List getIos() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getAndroid() { return android; } @@ -177,6 +191,7 @@ public List getAndroid() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getOther() { return other; } @@ -186,6 +201,7 @@ public List getOther() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getTotal() { return total; } 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 index 086db4d56..545ad8f4c 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ class ExcludedUsersListContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExcludedUsersListContinueArg(String cursor) { + public ExcludedUsersListContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -45,6 +48,7 @@ public ExcludedUsersListContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 599c6f9a2..1a05bd210 100644 --- 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 @@ -17,13 +17,18 @@ 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; @@ -43,7 +48,7 @@ public class ExcludedUsersListResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExcludedUsersListResult(List users, boolean hasMore, String cursor) { + public ExcludedUsersListResult(@Nonnull List users, boolean hasMore, @Nullable String cursor) { if (users == null) { throw new IllegalArgumentException("Required value for 'users' is null"); } @@ -72,7 +77,7 @@ public ExcludedUsersListResult(List users, boolean hasMore, Strin * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExcludedUsersListResult(List users, boolean hasMore) { + public ExcludedUsersListResult(@Nonnull List users, boolean hasMore) { this(users, hasMore, null); } @@ -80,6 +85,7 @@ public ExcludedUsersListResult(List users, boolean hasMore) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getUsers() { return users; } @@ -103,6 +109,7 @@ public boolean getHasMore() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index 9c40e0770..98d0b68aa 100644 --- 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 @@ -17,6 +17,9 @@ 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 @@ -25,6 +28,7 @@ class ExcludedUsersUpdateArg { // struct team.ExcludedUsersUpdateArg (team_member_space_limits.stone) + @Nullable protected final List users; /** @@ -38,7 +42,7 @@ class ExcludedUsersUpdateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExcludedUsersUpdateArg(List users) { + public ExcludedUsersUpdateArg(@Nullable List users) { if (users != null) { for (UserSelectorArg x : users) { if (x == null) { @@ -65,6 +69,7 @@ public ExcludedUsersUpdateArg() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getUsers() { return users; } 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 index 6574728b0..dfabda2f0 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ExcludedUsersUpdateResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExcludedUsersUpdateResult(ExcludedUsersUpdateStatus status) { + public ExcludedUsersUpdateResult(@Nonnull ExcludedUsersUpdateStatus status) { if (status == null) { throw new IllegalArgumentException("Required value for 'status' is null"); } @@ -44,6 +47,7 @@ public ExcludedUsersUpdateResult(ExcludedUsersUpdateStatus status) { * * @return value for this field, never {@code null}. */ + @Nonnull public ExcludedUsersUpdateStatus getStatus() { return status; } 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 index 060991a3b..50461ff7b 100644 --- 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 @@ -17,9 +17,12 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + class FeaturesGetValuesBatchArg { // struct team.FeaturesGetValuesBatchArg (team.stone) + @Nonnull protected final List features; /** @@ -31,7 +34,7 @@ class FeaturesGetValuesBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FeaturesGetValuesBatchArg(List features) { + public FeaturesGetValuesBatchArg(@Nonnull List features) { if (features == null) { throw new IllegalArgumentException("Required value for 'features' is null"); } @@ -49,6 +52,7 @@ public FeaturesGetValuesBatchArg(List features) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getFeatures() { return features; } 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 index c1e5a9b5f..0e82bd606 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class FeaturesGetValuesBatchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FeaturesGetValuesBatchResult(List values) { + public FeaturesGetValuesBatchResult(@Nonnull List values) { if (values == null) { throw new IllegalArgumentException("Required value for 'values' is null"); } @@ -46,6 +49,7 @@ public FeaturesGetValuesBatchResult(List values) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getValues() { return values; } 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 index c0b21ecf8..c1e08f497 100644 --- 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 @@ -17,6 +17,8 @@ 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 @@ -25,19 +27,33 @@ 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; /** @@ -90,7 +106,7 @@ public class GetActivityReport extends BaseDfbReport { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetActivityReport(String startDate, List adds, List edits, List deletes, List activeUsers28Day, List activeUsers7Day, List activeUsers1Day, List activeSharedFolders28Day, List activeSharedFolders7Day, List activeSharedFolders1Day, List sharedLinksCreated, List sharedLinksViewedByTeam, List sharedLinksViewedByOutsideUser, List sharedLinksViewedByNotLoggedIn, List sharedLinksViewedTotal) { + 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"); @@ -225,6 +241,7 @@ public GetActivityReport(String startDate, List adds, List edits, Li * * @return value for this field, never {@code null}. */ + @Nonnull public String getStartDate() { return startDate; } @@ -234,6 +251,7 @@ public String getStartDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getAdds() { return adds; } @@ -244,6 +262,7 @@ public List getAdds() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEdits() { return edits; } @@ -253,6 +272,7 @@ public List getEdits() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getDeletes() { return deletes; } @@ -262,6 +282,7 @@ public List getDeletes() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getActiveUsers28Day() { return activeUsers28Day; } @@ -271,6 +292,7 @@ public List getActiveUsers28Day() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getActiveUsers7Day() { return activeUsers7Day; } @@ -280,6 +302,7 @@ public List getActiveUsers7Day() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getActiveUsers1Day() { return activeUsers1Day; } @@ -290,6 +313,7 @@ public List getActiveUsers1Day() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getActiveSharedFolders28Day() { return activeSharedFolders28Day; } @@ -300,6 +324,7 @@ public List getActiveSharedFolders28Day() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getActiveSharedFolders7Day() { return activeSharedFolders7Day; } @@ -309,6 +334,7 @@ public List getActiveSharedFolders7Day() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getActiveSharedFolders1Day() { return activeSharedFolders1Day; } @@ -318,6 +344,7 @@ public List getActiveSharedFolders1Day() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSharedLinksCreated() { return sharedLinksCreated; } @@ -328,6 +355,7 @@ public List getSharedLinksCreated() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSharedLinksViewedByTeam() { return sharedLinksViewedByTeam; } @@ -338,6 +366,7 @@ public List getSharedLinksViewedByTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSharedLinksViewedByOutsideUser() { return sharedLinksViewedByOutsideUser; } @@ -348,6 +377,7 @@ public List getSharedLinksViewedByOutsideUser() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSharedLinksViewedByNotLoggedIn() { return sharedLinksViewedByNotLoggedIn; } @@ -357,6 +387,7 @@ public List getSharedLinksViewedByNotLoggedIn() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSharedLinksViewedTotal() { return sharedLinksViewedTotal; } 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 index 04ad7bd38..b36a6595d 100644 --- 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 @@ -16,6 +16,8 @@ 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 @@ -25,8 +27,11 @@ 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; /** @@ -47,7 +52,7 @@ public class GetDevicesReport extends BaseDfbReport { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetDevicesReport(String startDate, DevicesActive active1Day, DevicesActive active7Day, DevicesActive active28Day) { + 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"); @@ -68,6 +73,7 @@ public GetDevicesReport(String startDate, DevicesActive active1Day, DevicesActiv * * @return value for this field, never {@code null}. */ + @Nonnull public String getStartDate() { return startDate; } @@ -77,6 +83,7 @@ public String getStartDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public DevicesActive getActive1Day() { return active1Day; } @@ -86,6 +93,7 @@ public DevicesActive getActive1Day() { * * @return value for this field, never {@code null}. */ + @Nonnull public DevicesActive getActive7Day() { return active7Day; } @@ -95,6 +103,7 @@ public DevicesActive getActive7Day() { * * @return value for this field, never {@code null}. */ + @Nonnull public DevicesActive getActive28Day() { return active28Day; } 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 index 5b57804cf..60d28b37b 100644 --- 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 @@ -17,6 +17,8 @@ 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 @@ -25,10 +27,15 @@ 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; /** @@ -54,7 +61,7 @@ public class GetMembershipReport extends BaseDfbReport { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetMembershipReport(String startDate, List teamSize, List pendingInvites, List membersJoined, List suspendedMembers, List licenses) { + 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"); @@ -108,6 +115,7 @@ public GetMembershipReport(String startDate, List teamSize, List pen * * @return value for this field, never {@code null}. */ + @Nonnull public String getStartDate() { return startDate; } @@ -117,6 +125,7 @@ public String getStartDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getTeamSize() { return teamSize; } @@ -126,6 +135,7 @@ public List getTeamSize() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getPendingInvites() { return pendingInvites; } @@ -135,6 +145,7 @@ public List getPendingInvites() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembersJoined() { return membersJoined; } @@ -144,6 +155,7 @@ public List getMembersJoined() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSuspendedMembers() { return suspendedMembers; } @@ -153,6 +165,7 @@ public List getSuspendedMembers() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLicenses() { return licenses; } 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 index dbdcb00ad..941e19cd9 100644 --- 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 @@ -17,6 +17,8 @@ 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 @@ -25,10 +27,15 @@ 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; /** @@ -61,7 +68,7 @@ public class GetStorageReport extends BaseDfbReport { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetStorageReport(String startDate, List totalUsage, List sharedUsage, List unsharedUsage, List sharedFolders, List> memberStorageMap) { + 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"); @@ -120,6 +127,7 @@ public GetStorageReport(String startDate, List totalUsage, List shar * * @return value for this field, never {@code null}. */ + @Nonnull public String getStartDate() { return startDate; } @@ -129,6 +137,7 @@ public String getStartDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getTotalUsage() { return totalUsage; } @@ -139,6 +148,7 @@ public List getTotalUsage() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSharedUsage() { return sharedUsage; } @@ -149,6 +159,7 @@ public List getSharedUsage() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getUnsharedUsage() { return unsharedUsage; } @@ -159,6 +170,7 @@ public List getUnsharedUsage() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSharedFolders() { return sharedFolders; } @@ -173,6 +185,7 @@ public List getSharedFolders() { * * @return value for this field, never {@code null}. */ + @Nonnull public List> getMemberStorageMap() { return memberStorageMap; } 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 index a41725643..2f6995bba 100644 --- 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 @@ -17,12 +17,18 @@ 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; /** @@ -39,7 +45,7 @@ class GroupCreateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupCreateArg(String groupName, boolean addCreatorAsOwner, String groupExternalId, GroupManagementType groupManagementType) { + 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"); } @@ -59,7 +65,7 @@ public GroupCreateArg(String groupName, boolean addCreatorAsOwner, String groupE * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupCreateArg(String groupName) { + public GroupCreateArg(@Nonnull String groupName) { this(groupName, false, null, null); } @@ -68,6 +74,7 @@ public GroupCreateArg(String groupName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getGroupName() { return groupName; } @@ -88,6 +95,7 @@ public boolean getAddCreatorAsOwner() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getGroupExternalId() { return groupExternalId; } @@ -98,6 +106,7 @@ public String getGroupExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GroupManagementType getGroupManagementType() { return groupManagementType; } 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 index cd3f58a61..1cf90718a 100644 --- 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 @@ -19,12 +19,16 @@ 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; @@ -49,7 +53,7 @@ public class GroupFullInfo extends GroupSummary { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupFullInfo(String groupName, String groupId, GroupManagementType groupManagementType, long created, String groupExternalId, Long memberCount, List members) { + 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) { @@ -77,7 +81,7 @@ public GroupFullInfo(String groupName, String groupId, GroupManagementType group * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupFullInfo(String groupName, String groupId, GroupManagementType groupManagementType, long created) { + public GroupFullInfo(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType, long created) { this(groupName, groupId, groupManagementType, created, null, null, null); } @@ -85,6 +89,7 @@ public GroupFullInfo(String groupName, String groupId, GroupManagementType group * * @return value for this field, never {@code null}. */ + @Nonnull public String getGroupName() { return groupName; } @@ -93,6 +98,7 @@ public String getGroupName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getGroupId() { return groupId; } @@ -102,6 +108,7 @@ public String getGroupId() { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupManagementType getGroupManagementType() { return groupManagementType; } @@ -122,6 +129,7 @@ public long getCreated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getGroupExternalId() { return groupExternalId; } @@ -131,6 +139,7 @@ public String getGroupExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getMemberCount() { return memberCount; } @@ -140,6 +149,7 @@ public Long getMemberCount() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getMembers() { return members; } 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 index 52409267e..1c591c989 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class GroupMemberInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMemberInfo(MemberProfile profile, GroupAccessType accessType) { + public GroupMemberInfo(@Nonnull MemberProfile profile, @Nonnull GroupAccessType accessType) { if (profile == null) { throw new IllegalArgumentException("Required value for 'profile' is null"); } @@ -51,6 +55,7 @@ public GroupMemberInfo(MemberProfile profile, GroupAccessType accessType) { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberProfile getProfile() { return profile; } @@ -60,6 +65,7 @@ public MemberProfile getProfile() { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupAccessType getAccessType() { return accessType; } 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 index c8ba8ccb4..93a7740bd 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -37,7 +41,7 @@ class GroupMemberSelector { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMemberSelector(GroupSelector group, UserSelectorArg user) { + public GroupMemberSelector(@Nonnull GroupSelector group, @Nonnull UserSelectorArg user) { if (group == null) { throw new IllegalArgumentException("Required value for 'group' is null"); } @@ -53,6 +57,7 @@ public GroupMemberSelector(GroupSelector group, UserSelectorArg user) { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupSelector getGroup() { return group; } @@ -64,6 +69,7 @@ public GroupSelector getGroup() { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } 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 index 1536fcbad..33a35f0c5 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -36,7 +40,7 @@ class GroupMembersAddArg extends IncludeMembersArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMembersAddArg(GroupSelector group, List members, boolean returnMembers) { + public GroupMembersAddArg(@Nonnull GroupSelector group, @Nonnull List members, boolean returnMembers) { super(returnMembers); if (group == null) { throw new IllegalArgumentException("Required value for 'group' is null"); @@ -66,7 +70,7 @@ public GroupMembersAddArg(GroupSelector group, List members, boole * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMembersAddArg(GroupSelector group, List members) { + public GroupMembersAddArg(@Nonnull GroupSelector group, @Nonnull List members) { this(group, members, true); } @@ -75,6 +79,7 @@ public GroupMembersAddArg(GroupSelector group, List members) { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupSelector getGroup() { return group; } @@ -84,6 +89,7 @@ public GroupSelector getGroup() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembers() { return members; } 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 index 3f955940c..5738d95e5 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + /** * Result returned by {@link * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,java.util.List,boolean)} @@ -25,7 +27,9 @@ public class GroupMembersChangeResult { // struct team.GroupMembersChangeResult (team_groups.stone) + @Nonnull protected final GroupFullInfo groupInfo; + @Nonnull protected final String asyncJobId; /** @@ -45,7 +49,7 @@ public class GroupMembersChangeResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMembersChangeResult(GroupFullInfo groupInfo, String asyncJobId) { + public GroupMembersChangeResult(@Nonnull GroupFullInfo groupInfo, @Nonnull String asyncJobId) { if (groupInfo == null) { throw new IllegalArgumentException("Required value for 'groupInfo' is null"); } @@ -64,6 +68,7 @@ public GroupMembersChangeResult(GroupFullInfo groupInfo, String asyncJobId) { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupFullInfo getGroupInfo() { return groupInfo; } @@ -76,6 +81,7 @@ public GroupFullInfo getGroupInfo() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAsyncJobId() { return asyncJobId; } 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 index c85d60e0c..07708bae8 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -36,7 +40,7 @@ class GroupMembersRemoveArg extends IncludeMembersArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMembersRemoveArg(GroupSelector group, List users, boolean returnMembers) { + public GroupMembersRemoveArg(@Nonnull GroupSelector group, @Nonnull List users, boolean returnMembers) { super(returnMembers); if (group == null) { throw new IllegalArgumentException("Required value for 'group' is null"); @@ -66,7 +70,7 @@ public GroupMembersRemoveArg(GroupSelector group, List users, b * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMembersRemoveArg(GroupSelector group, List users) { + public GroupMembersRemoveArg(@Nonnull GroupSelector group, @Nonnull List users) { this(group, users, true); } @@ -75,6 +79,7 @@ public GroupMembersRemoveArg(GroupSelector group, List users) { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupSelector getGroup() { return group; } @@ -84,6 +89,7 @@ public GroupSelector getGroup() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getUsers() { return users; } 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 index 86df3b781..5b59336aa 100644 --- 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 @@ -16,9 +16,12 @@ 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; @@ -38,7 +41,7 @@ class GroupMembersSetAccessTypeArg extends GroupMemberSelector { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMembersSetAccessTypeArg(GroupSelector group, UserSelectorArg user, GroupAccessType accessType, boolean returnMembers) { + 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"); @@ -63,7 +66,7 @@ public GroupMembersSetAccessTypeArg(GroupSelector group, UserSelectorArg user, G * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMembersSetAccessTypeArg(GroupSelector group, UserSelectorArg user, GroupAccessType accessType) { + public GroupMembersSetAccessTypeArg(@Nonnull GroupSelector group, @Nonnull UserSelectorArg user, @Nonnull GroupAccessType accessType) { this(group, user, accessType, true); } @@ -72,6 +75,7 @@ public GroupMembersSetAccessTypeArg(GroupSelector group, UserSelectorArg user, G * * @return value for this field, never {@code null}. */ + @Nonnull public GroupSelector getGroup() { return group; } @@ -83,6 +87,7 @@ public GroupSelector getGroup() { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } @@ -92,6 +97,7 @@ public UserSelectorArg getUser() { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupAccessType getAccessType() { return accessType; } 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 index fb378228f..218d8917e 100644 --- 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 @@ -17,12 +17,19 @@ 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; /** @@ -45,7 +52,7 @@ class GroupUpdateArgs extends IncludeMembersArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupUpdateArgs(GroupSelector group, boolean returnMembers, String newGroupName, String newGroupExternalId, GroupManagementType newGroupManagementType) { + 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"); @@ -66,7 +73,7 @@ public GroupUpdateArgs(GroupSelector group, boolean returnMembers, String newGro * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupUpdateArgs(GroupSelector group) { + public GroupUpdateArgs(@Nonnull GroupSelector group) { this(group, true, null, null, null); } @@ -75,6 +82,7 @@ public GroupUpdateArgs(GroupSelector group) { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupSelector getGroup() { return group; } @@ -96,6 +104,7 @@ public boolean getReturnMembers() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewGroupName() { return newGroupName; } @@ -107,6 +116,7 @@ public String getNewGroupName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewGroupExternalId() { return newGroupExternalId; } @@ -116,6 +126,7 @@ public String getNewGroupExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GroupManagementType getNewGroupManagementType() { return newGroupManagementType; } 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 index bfbb5a529..ac50ca976 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ class GroupsListContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupsListContinueArg(String cursor) { + public GroupsListContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -41,6 +44,7 @@ public GroupsListContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 272b83224..d9c21461b 100644 --- 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 @@ -18,10 +18,14 @@ 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; @@ -39,7 +43,7 @@ public class GroupsListResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupsListResult(List groups, String cursor, boolean hasMore) { + public GroupsListResult(@Nonnull List groups, @Nonnull String cursor, boolean hasMore) { if (groups == null) { throw new IllegalArgumentException("Required value for 'groups' is null"); } @@ -60,6 +64,7 @@ public GroupsListResult(List groups, String cursor, boolean hasMor * * @return value for this field, never {@code null}. */ + @Nonnull public List getGroups() { return groups; } @@ -71,6 +76,7 @@ public List getGroups() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 14aae6bdd..79c9b2276 100644 --- 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 @@ -16,9 +16,12 @@ 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; @@ -32,7 +35,7 @@ class GroupsMembersListArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupsMembersListArg(GroupSelector group, long limit) { + public GroupsMembersListArg(@Nonnull GroupSelector group, long limit) { if (group == null) { throw new IllegalArgumentException("Required value for 'group' is null"); } @@ -57,7 +60,7 @@ public GroupsMembersListArg(GroupSelector group, long limit) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupsMembersListArg(GroupSelector group) { + public GroupsMembersListArg(@Nonnull GroupSelector group) { this(group, 1000L); } @@ -66,6 +69,7 @@ public GroupsMembersListArg(GroupSelector group) { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupSelector getGroup() { return group; } 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 index 7f66cf984..207d4499a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ class GroupsMembersListContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupsMembersListContinueArg(String cursor) { + public GroupsMembersListContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -41,6 +44,7 @@ public GroupsMembersListContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index ae2e291a9..b775b7efa 100644 --- 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 @@ -17,10 +17,14 @@ 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; @@ -39,7 +43,7 @@ public class GroupsMembersListResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupsMembersListResult(List members, String cursor, boolean hasMore) { + public GroupsMembersListResult(@Nonnull List members, @Nonnull String cursor, boolean hasMore) { if (members == null) { throw new IllegalArgumentException("Required value for 'members' is null"); } @@ -60,6 +64,7 @@ public GroupsMembersListResult(List members, String cursor, boo * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembers() { return members; } @@ -71,6 +76,7 @@ public List getMembers() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 25f8b62bb..5b5a54669 100644 --- 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 @@ -19,18 +19,29 @@ 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; /** @@ -63,7 +74,7 @@ public class LegalHoldHeldRevisionMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldHeldRevisionMetadata(String newFilename, String originalRevisionId, String originalFilePath, Date serverModified, String authorMemberId, TeamMemberStatus authorMemberStatus, String authorEmail, String fileType, long size, String contentHash) { + 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"); } @@ -129,6 +140,7 @@ public LegalHoldHeldRevisionMetadata(String newFilename, String originalRevision * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewFilename() { return newFilename; } @@ -138,6 +150,7 @@ public String getNewFilename() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalRevisionId() { return originalRevisionId; } @@ -147,6 +160,7 @@ public String getOriginalRevisionId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFilePath() { return originalFilePath; } @@ -156,6 +170,7 @@ public String getOriginalFilePath() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getServerModified() { return serverModified; } @@ -165,6 +180,7 @@ public Date getServerModified() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAuthorMemberId() { return authorMemberId; } @@ -174,6 +190,7 @@ public String getAuthorMemberId() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMemberStatus getAuthorMemberStatus() { return authorMemberStatus; } @@ -183,6 +200,7 @@ public TeamMemberStatus getAuthorMemberStatus() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAuthorEmail() { return authorEmail; } @@ -192,6 +210,7 @@ public String getAuthorEmail() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFileType() { return fileType; } @@ -213,6 +232,7 @@ public long getSize() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getContentHash() { return contentHash; } 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 index bb5600d4f..493e1036d 100644 --- 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 @@ -19,16 +19,27 @@ 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; /** @@ -52,7 +63,7 @@ public class LegalHoldPolicy { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldPolicy(String id, String name, MembersInfo members, LegalHoldStatus status, Date startDate, String description, Date activationTime, Date endDate) { + 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"); } @@ -107,7 +118,7 @@ public LegalHoldPolicy(String id, String name, MembersInfo members, LegalHoldSta * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldPolicy(String id, String name, MembersInfo members, LegalHoldStatus status, Date startDate) { + 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); } @@ -116,6 +127,7 @@ public LegalHoldPolicy(String id, String name, MembersInfo members, LegalHoldSta * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -125,6 +137,7 @@ public String getId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -134,6 +147,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public MembersInfo getMembers() { return members; } @@ -143,6 +157,7 @@ public MembersInfo getMembers() { * * @return value for this field, never {@code null}. */ + @Nonnull public LegalHoldStatus getStatus() { return status; } @@ -152,6 +167,7 @@ public LegalHoldStatus getStatus() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getStartDate() { return startDate; } @@ -161,6 +177,7 @@ public Date getStartDate() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDescription() { return description; } @@ -170,6 +187,7 @@ public String getDescription() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getActivationTime() { return activationTime; } @@ -179,6 +197,7 @@ public Date getActivationTime() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getEndDate() { return endDate; } 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 index 32a5419dc..2a9387bfa 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class LegalHoldsGetPolicyArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsGetPolicyArg(String id) { + public LegalHoldsGetPolicyArg(@Nonnull String id) { if (id == null) { throw new IllegalArgumentException("Required value for 'id' is null"); } @@ -45,6 +48,7 @@ public LegalHoldsGetPolicyArg(String id) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } 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 index 35d08ba65..00223d82a 100644 --- 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 @@ -17,10 +17,15 @@ 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; @@ -40,7 +45,7 @@ public class LegalHoldsListHeldRevisionResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsListHeldRevisionResult(List entries, boolean hasMore, String cursor) { + public LegalHoldsListHeldRevisionResult(@Nonnull List entries, boolean hasMore, @Nullable String cursor) { if (entries == null) { throw new IllegalArgumentException("Required value for 'entries' is null"); } @@ -73,7 +78,7 @@ public LegalHoldsListHeldRevisionResult(List entr * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsListHeldRevisionResult(List entries, boolean hasMore) { + public LegalHoldsListHeldRevisionResult(@Nonnull List entries, boolean hasMore) { this(entries, hasMore, null); } @@ -82,6 +87,7 @@ public LegalHoldsListHeldRevisionResult(List entr * * @return value for this field, never {@code null}. */ + @Nonnull public List getEntries() { return entries; } @@ -104,6 +110,7 @@ public boolean getHasMore() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index c3f0582df..2b88c6231 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class LegalHoldsListHeldRevisionsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsListHeldRevisionsArg(String id) { + public LegalHoldsListHeldRevisionsArg(@Nonnull String id) { if (id == null) { throw new IllegalArgumentException("Required value for 'id' is null"); } @@ -45,6 +48,7 @@ public LegalHoldsListHeldRevisionsArg(String id) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } 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 index 82040b1a7..7bb2beb8e 100644 --- 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 @@ -17,10 +17,15 @@ 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; /** @@ -34,7 +39,7 @@ class LegalHoldsListHeldRevisionsContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsListHeldRevisionsContinueArg(String id, String cursor) { + public LegalHoldsListHeldRevisionsContinueArg(@Nonnull String id, @Nullable String cursor) { if (id == null) { throw new IllegalArgumentException("Required value for 'id' is null"); } @@ -61,7 +66,7 @@ public LegalHoldsListHeldRevisionsContinueArg(String id, String cursor) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsListHeldRevisionsContinueArg(String id) { + public LegalHoldsListHeldRevisionsContinueArg(@Nonnull String id) { this(id, null); } @@ -70,6 +75,7 @@ public LegalHoldsListHeldRevisionsContinueArg(String id) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -81,6 +87,7 @@ public String getId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index fc0972c08..c8bc3b522 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class LegalHoldsListPoliciesResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsListPoliciesResult(List policies) { + public LegalHoldsListPoliciesResult(@Nonnull List policies) { if (policies == null) { throw new IllegalArgumentException("Required value for 'policies' is null"); } @@ -46,6 +49,7 @@ public LegalHoldsListPoliciesResult(List policies) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getPolicies() { return policies; } 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 index 36028827c..9bb2b8f6e 100644 --- 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 @@ -19,13 +19,21 @@ 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; /** @@ -44,7 +52,7 @@ class LegalHoldsPolicyCreateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsPolicyCreateArg(String name, List members, String description, Date startDate, Date endDate) { + 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"); } @@ -84,7 +92,7 @@ public LegalHoldsPolicyCreateArg(String name, List members, String descr * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsPolicyCreateArg(String name, List members) { + public LegalHoldsPolicyCreateArg(@Nonnull String name, @Nonnull List members) { this(name, members, null, null, null); } @@ -93,6 +101,7 @@ public LegalHoldsPolicyCreateArg(String name, List members) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -102,6 +111,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembers() { return members; } @@ -111,6 +121,7 @@ public List getMembers() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDescription() { return description; } @@ -120,6 +131,7 @@ public String getDescription() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getStartDate() { return startDate; } @@ -129,6 +141,7 @@ public Date getStartDate() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getEndDate() { return endDate; } 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 index 41bd5c894..5961989da 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class LegalHoldsPolicyReleaseArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsPolicyReleaseArg(String id) { + public LegalHoldsPolicyReleaseArg(@Nonnull String id) { if (id == null) { throw new IllegalArgumentException("Required value for 'id' is null"); } @@ -45,6 +48,7 @@ public LegalHoldsPolicyReleaseArg(String id) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } 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 index 506cb9744..d1aab6c59 100644 --- 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 @@ -18,12 +18,19 @@ 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; /** @@ -41,7 +48,7 @@ class LegalHoldsPolicyUpdateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsPolicyUpdateArg(String id, String name, String description, List members) { + 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"); } @@ -82,7 +89,7 @@ public LegalHoldsPolicyUpdateArg(String id, String name, String description, Lis * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsPolicyUpdateArg(String id) { + public LegalHoldsPolicyUpdateArg(@Nonnull String id) { this(id, null, null, null); } @@ -91,6 +98,7 @@ public LegalHoldsPolicyUpdateArg(String id) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -100,6 +108,7 @@ public String getId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getName() { return name; } @@ -109,6 +118,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDescription() { return description; } @@ -118,6 +128,7 @@ public String getDescription() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getMembers() { return members; } 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 index 942eaf3a9..4cbb0edae 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ class ListMemberAppsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListMemberAppsArg(String teamMemberId) { + public ListMemberAppsArg(@Nonnull String teamMemberId) { if (teamMemberId == null) { throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); } @@ -40,6 +43,7 @@ public ListMemberAppsArg(String teamMemberId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } 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 index 9e7807b29..4a1de69ee 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ public class ListMemberAppsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListMemberAppsResult(List linkedApiApps) { + public ListMemberAppsResult(@Nonnull List linkedApiApps) { if (linkedApiApps == null) { throw new IllegalArgumentException("Required value for 'linkedApiApps' is null"); } @@ -48,6 +51,7 @@ public ListMemberAppsResult(List linkedApiApps) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLinkedApiApps() { return linkedApiApps; } 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 index eb29e7cb8..729405857 100644 --- 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 @@ -16,9 +16,12 @@ 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; @@ -39,7 +42,7 @@ class ListMemberDevicesArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListMemberDevicesArg(String teamMemberId, boolean includeWebSessions, boolean includeDesktopClients, boolean includeMobileClients) { + public ListMemberDevicesArg(@Nonnull String teamMemberId, boolean includeWebSessions, boolean includeDesktopClients, boolean includeMobileClients) { if (teamMemberId == null) { throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); } @@ -59,7 +62,7 @@ public ListMemberDevicesArg(String teamMemberId, boolean includeWebSessions, boo * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListMemberDevicesArg(String teamMemberId) { + public ListMemberDevicesArg(@Nonnull String teamMemberId) { this(teamMemberId, true, true, true); } @@ -68,6 +71,7 @@ public ListMemberDevicesArg(String teamMemberId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } 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 index d326b9c7c..6fff73a9e 100644 --- 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 @@ -17,11 +17,17 @@ 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; /** @@ -38,7 +44,7 @@ public class ListMemberDevicesResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListMemberDevicesResult(List activeWebSessions, List desktopClientSessions, List mobileClientSessions) { + public ListMemberDevicesResult(@Nullable List activeWebSessions, @Nullable List desktopClientSessions, @Nullable List mobileClientSessions) { if (activeWebSessions != null) { for (ActiveWebSession x : activeWebSessions) { if (x == null) { @@ -79,6 +85,7 @@ public ListMemberDevicesResult() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getActiveWebSessions() { return activeWebSessions; } @@ -88,6 +95,7 @@ public List getActiveWebSessions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getDesktopClientSessions() { return desktopClientSessions; } @@ -97,6 +105,7 @@ public List getDesktopClientSessions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getMobileClientSessions() { return mobileClientSessions; } 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 index 266e93dff..2ee8359ed 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Arguments for {@link * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. @@ -23,6 +26,7 @@ class ListMembersAppsArg { // struct team.ListMembersAppsArg (team_linked_apps.stone) + @Nullable protected final String cursor; /** @@ -35,7 +39,7 @@ class ListMembersAppsArg { * a cursor, the following requests should include the received cursors * in order to receive the next sub list of the team applications. */ - public ListMembersAppsArg(String cursor) { + public ListMembersAppsArg(@Nullable String cursor) { this.cursor = cursor; } @@ -58,6 +62,7 @@ public ListMembersAppsArg() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index d60c92aa3..99f0266ff 100644 --- 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 @@ -17,6 +17,9 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Information returned by {@link * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. @@ -24,8 +27,10 @@ public class ListMembersAppsResult { // struct team.ListMembersAppsResult (team_linked_apps.stone) + @Nonnull protected final List apps; protected final boolean hasMore; + @Nullable protected final String cursor; /** @@ -45,7 +50,7 @@ public class ListMembersAppsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListMembersAppsResult(List apps, boolean hasMore, String cursor) { + public ListMembersAppsResult(@Nonnull List apps, boolean hasMore, @Nullable String cursor) { if (apps == null) { throw new IllegalArgumentException("Required value for 'apps' is null"); } @@ -75,7 +80,7 @@ public ListMembersAppsResult(List apps, boolean hasMore, Strin * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListMembersAppsResult(List apps, boolean hasMore) { + public ListMembersAppsResult(@Nonnull List apps, boolean hasMore) { this(apps, hasMore, null); } @@ -84,6 +89,7 @@ public ListMembersAppsResult(List apps, boolean hasMore) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getApps() { return apps; } @@ -106,6 +112,7 @@ public boolean getHasMore() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index d4ea170a9..8bf1c4dae 100644 --- 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 @@ -16,9 +16,13 @@ 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; @@ -40,7 +44,7 @@ class ListMembersDevicesArg { * @param includeMobileClients Whether to list mobile clients of the team * members. */ - public ListMembersDevicesArg(String cursor, boolean includeWebSessions, boolean includeDesktopClients, boolean includeMobileClients) { + public ListMembersDevicesArg(@Nullable String cursor, boolean includeWebSessions, boolean includeDesktopClients, boolean includeMobileClients) { this.cursor = cursor; this.includeWebSessions = includeWebSessions; this.includeDesktopClients = includeDesktopClients; @@ -65,6 +69,7 @@ public ListMembersDevicesArg() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index da7c043c4..85b86420d 100644 --- 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 @@ -17,11 +17,16 @@ 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; /** @@ -38,7 +43,7 @@ public class ListMembersDevicesResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListMembersDevicesResult(List devices, boolean hasMore, String cursor) { + public ListMembersDevicesResult(@Nonnull List devices, boolean hasMore, @Nullable String cursor) { if (devices == null) { throw new IllegalArgumentException("Required value for 'devices' is null"); } @@ -66,7 +71,7 @@ public ListMembersDevicesResult(List devices, boolean hasMore, St * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListMembersDevicesResult(List devices, boolean hasMore) { + public ListMembersDevicesResult(@Nonnull List devices, boolean hasMore) { this(devices, hasMore, null); } @@ -75,6 +80,7 @@ public ListMembersDevicesResult(List devices, boolean hasMore) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getDevices() { return devices; } @@ -96,6 +102,7 @@ public boolean getHasMore() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index de296d8e0..a60fe1800 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Arguments for {@link * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. @@ -23,6 +26,7 @@ class ListTeamAppsArg { // struct team.ListTeamAppsArg (team_linked_apps.stone) + @Nullable protected final String cursor; /** @@ -35,7 +39,7 @@ class ListTeamAppsArg { * cursor, the following requests should include the received cursors in * order to receive the next sub list of the team applications. */ - public ListTeamAppsArg(String cursor) { + public ListTeamAppsArg(@Nullable String cursor) { this.cursor = cursor; } @@ -58,6 +62,7 @@ public ListTeamAppsArg() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index 1096b9d16..823f483bc 100644 --- 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 @@ -17,6 +17,9 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Information returned by {@link * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. @@ -24,8 +27,10 @@ public class ListTeamAppsResult { // struct team.ListTeamAppsResult (team_linked_apps.stone) + @Nonnull protected final List apps; protected final boolean hasMore; + @Nullable protected final String cursor; /** @@ -45,7 +50,7 @@ public class ListTeamAppsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListTeamAppsResult(List apps, boolean hasMore, String cursor) { + public ListTeamAppsResult(@Nonnull List apps, boolean hasMore, @Nullable String cursor) { if (apps == null) { throw new IllegalArgumentException("Required value for 'apps' is null"); } @@ -75,7 +80,7 @@ public ListTeamAppsResult(List apps, boolean hasMore, String c * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListTeamAppsResult(List apps, boolean hasMore) { + public ListTeamAppsResult(@Nonnull List apps, boolean hasMore) { this(apps, hasMore, null); } @@ -84,6 +89,7 @@ public ListTeamAppsResult(List apps, boolean hasMore) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getApps() { return apps; } @@ -106,6 +112,7 @@ public boolean getHasMore() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index f935a9133..34d270c74 100644 --- 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 @@ -16,9 +16,13 @@ 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; @@ -40,7 +44,7 @@ class ListTeamDevicesArg { * @param includeMobileClients Whether to list mobile clients of the team * members. */ - public ListTeamDevicesArg(String cursor, boolean includeWebSessions, boolean includeDesktopClients, boolean includeMobileClients) { + public ListTeamDevicesArg(@Nullable String cursor, boolean includeWebSessions, boolean includeDesktopClients, boolean includeMobileClients) { this.cursor = cursor; this.includeWebSessions = includeWebSessions; this.includeDesktopClients = includeDesktopClients; @@ -65,6 +69,7 @@ public ListTeamDevicesArg() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index 8a13156fd..d7097f399 100644 --- 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 @@ -17,11 +17,16 @@ 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; /** @@ -38,7 +43,7 @@ public class ListTeamDevicesResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListTeamDevicesResult(List devices, boolean hasMore, String cursor) { + public ListTeamDevicesResult(@Nonnull List devices, boolean hasMore, @Nullable String cursor) { if (devices == null) { throw new IllegalArgumentException("Required value for 'devices' is null"); } @@ -66,7 +71,7 @@ public ListTeamDevicesResult(List devices, boolean hasMore, Strin * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ListTeamDevicesResult(List devices, boolean hasMore) { + public ListTeamDevicesResult(@Nonnull List devices, boolean hasMore) { this(devices, hasMore, null); } @@ -75,6 +80,7 @@ public ListTeamDevicesResult(List devices, boolean hasMore) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getDevices() { return devices; } @@ -95,6 +101,7 @@ public boolean getHasMore() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCursor() { return cursor; } 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 index d52b60836..7c7a7a886 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class MemberAccess { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAccess(UserSelectorArg user, GroupAccessType accessType) { + public MemberAccess(@Nonnull UserSelectorArg user, @Nonnull GroupAccessType accessType) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -50,6 +54,7 @@ public MemberAccess(UserSelectorArg user, GroupAccessType accessType) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } @@ -59,6 +64,7 @@ public UserSelectorArg getUser() { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupAccessType getAccessType() { return accessType; } 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 index ff188cd11..11372172c 100644 --- 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 @@ -17,9 +17,13 @@ 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; /** @@ -48,7 +52,7 @@ public class MemberAddArg extends MemberAddArgBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAddArg(String memberEmail, String memberGivenName, String memberSurname, String memberExternalId, String memberPersistentId, boolean sendWelcomeEmail, Boolean isDirectoryRestricted, AdminTier role) { + 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"); @@ -69,7 +73,7 @@ public MemberAddArg(String memberEmail, String memberGivenName, String memberSur * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAddArg(String memberEmail) { + public MemberAddArg(@Nonnull String memberEmail) { this(memberEmail, null, null, null, null, true, null, AdminTier.MEMBER_ONLY); } @@ -77,6 +81,7 @@ public MemberAddArg(String memberEmail) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getMemberEmail() { return memberEmail; } @@ -86,6 +91,7 @@ public String getMemberEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberGivenName() { return memberGivenName; } @@ -95,6 +101,7 @@ public String getMemberGivenName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberSurname() { return memberSurname; } @@ -104,6 +111,7 @@ public String getMemberSurname() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberExternalId() { return memberExternalId; } @@ -114,6 +122,7 @@ public String getMemberExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberPersistentId() { return memberPersistentId; } @@ -136,6 +145,7 @@ public boolean getSendWelcomeEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsDirectoryRestricted() { return isDirectoryRestricted; } @@ -145,6 +155,7 @@ public Boolean getIsDirectoryRestricted() { * @return value for this field, or {@code null} if not present. Defaults to * AdminTier.MEMBER_ONLY. */ + @Nonnull public AdminTier getRole() { return role; } 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 index dec358de1..83319bd28 100644 --- 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 @@ -17,15 +17,24 @@ 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; /** @@ -53,7 +62,7 @@ public class MemberAddArgBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAddArgBase(String memberEmail, String memberGivenName, String memberSurname, String memberExternalId, String memberPersistentId, boolean sendWelcomeEmail, Boolean isDirectoryRestricted) { + 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"); } @@ -106,7 +115,7 @@ public MemberAddArgBase(String memberEmail, String memberGivenName, String membe * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAddArgBase(String memberEmail) { + public MemberAddArgBase(@Nonnull String memberEmail) { this(memberEmail, null, null, null, null, true, null); } @@ -114,6 +123,7 @@ public MemberAddArgBase(String memberEmail) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getMemberEmail() { return memberEmail; } @@ -123,6 +133,7 @@ public String getMemberEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberGivenName() { return memberGivenName; } @@ -132,6 +143,7 @@ public String getMemberGivenName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberSurname() { return memberSurname; } @@ -141,6 +153,7 @@ public String getMemberSurname() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberExternalId() { return memberExternalId; } @@ -151,6 +164,7 @@ public String getMemberExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberPersistentId() { return memberPersistentId; } @@ -173,6 +187,7 @@ public boolean getSendWelcomeEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsDirectoryRestricted() { return isDirectoryRestricted; } 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 index 767fb486c..c4b021a28 100644 --- 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 @@ -18,9 +18,13 @@ 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; /** @@ -50,7 +54,7 @@ public class MemberAddV2Arg extends MemberAddArgBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAddV2Arg(String memberEmail, String memberGivenName, String memberSurname, String memberExternalId, String memberPersistentId, boolean sendWelcomeEmail, Boolean isDirectoryRestricted, List roleIds) { + 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) { @@ -84,7 +88,7 @@ public MemberAddV2Arg(String memberEmail, String memberGivenName, String memberS * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAddV2Arg(String memberEmail) { + public MemberAddV2Arg(@Nonnull String memberEmail) { this(memberEmail, null, null, null, null, true, null, null); } @@ -92,6 +96,7 @@ public MemberAddV2Arg(String memberEmail) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getMemberEmail() { return memberEmail; } @@ -101,6 +106,7 @@ public String getMemberEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberGivenName() { return memberGivenName; } @@ -110,6 +116,7 @@ public String getMemberGivenName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberSurname() { return memberSurname; } @@ -119,6 +126,7 @@ public String getMemberSurname() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberExternalId() { return memberExternalId; } @@ -129,6 +137,7 @@ public String getMemberExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberPersistentId() { return memberPersistentId; } @@ -151,6 +160,7 @@ public boolean getSendWelcomeEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsDirectoryRestricted() { return isDirectoryRestricted; } @@ -159,6 +169,7 @@ public Boolean getIsDirectoryRestricted() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getRoleIds() { return roleIds; } 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 index 0e515fdd3..a0a6d1469 100644 --- 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 @@ -17,15 +17,22 @@ 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; /** @@ -45,7 +52,7 @@ public class MemberDevices { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberDevices(String teamMemberId, List webSessions, List desktopClients, List mobileClients) { + 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"); } @@ -86,7 +93,7 @@ public MemberDevices(String teamMemberId, List webSessions, Li * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberDevices(String teamMemberId) { + public MemberDevices(@Nonnull String teamMemberId) { this(teamMemberId, null, null, null); } @@ -95,6 +102,7 @@ public MemberDevices(String teamMemberId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } @@ -104,6 +112,7 @@ public String getTeamMemberId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getWebSessions() { return webSessions; } @@ -113,6 +122,7 @@ public List getWebSessions() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getDesktopClients() { return desktopClients; } @@ -122,6 +132,7 @@ public List getDesktopClients() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getMobileClients() { return mobileClients; } 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 index 3ee9460bb..9e791b90d 100644 --- 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 @@ -17,13 +17,17 @@ 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; /** @@ -37,7 +41,7 @@ public class MemberLinkedApps { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberLinkedApps(String teamMemberId, List linkedApiApps) { + public MemberLinkedApps(@Nonnull String teamMemberId, @Nonnull List linkedApiApps) { if (teamMemberId == null) { throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); } @@ -58,6 +62,7 @@ public MemberLinkedApps(String teamMemberId, List linkedApiApps) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } @@ -67,6 +72,7 @@ public String getTeamMemberId() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLinkedApiApps() { return linkedApiApps; } 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 index 55be7cd5c..5886f60b3 100644 --- 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 @@ -21,26 +21,43 @@ 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; /** @@ -86,7 +103,7 @@ public class MemberProfile { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberProfile(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, String externalId, String accountId, List secondaryEmails, Date invitedOn, Date joinedOn, Date suspendedOn, String persistentId, Boolean isDirectoryRestricted, String profilePhotoUrl) { + 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"); } @@ -155,7 +172,7 @@ public MemberProfile(String teamMemberId, String email, boolean emailVerified, T * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberProfile(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType) { + 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); } @@ -164,6 +181,7 @@ public MemberProfile(String teamMemberId, String email, boolean emailVerified, T * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } @@ -173,6 +191,7 @@ public String getTeamMemberId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEmail() { return email; } @@ -191,6 +210,7 @@ public boolean getEmailVerified() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMemberStatus getStatus() { return status; } @@ -200,6 +220,7 @@ public TeamMemberStatus getStatus() { * * @return value for this field, never {@code null}. */ + @Nonnull public Name getName() { return name; } @@ -210,6 +231,7 @@ public Name getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMembershipType getMembershipType() { return membershipType; } @@ -221,6 +243,7 @@ public TeamMembershipType getMembershipType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getExternalId() { return externalId; } @@ -230,6 +253,7 @@ public String getExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAccountId() { return accountId; } @@ -239,6 +263,7 @@ public String getAccountId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getSecondaryEmails() { return secondaryEmails; } @@ -249,6 +274,7 @@ public List getSecondaryEmails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getInvitedOn() { return invitedOn; } @@ -258,6 +284,7 @@ public Date getInvitedOn() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getJoinedOn() { return joinedOn; } @@ -269,6 +296,7 @@ public Date getJoinedOn() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getSuspendedOn() { return suspendedOn; } @@ -279,6 +307,7 @@ public Date getSuspendedOn() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPersistentId() { return persistentId; } @@ -288,6 +317,7 @@ public String getPersistentId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsDirectoryRestricted() { return isDirectoryRestricted; } @@ -297,6 +327,7 @@ public Boolean getIsDirectoryRestricted() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getProfilePhotoUrl() { return profilePhotoUrl; } 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 index a943f4d9c..b4e133950 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ class MembersAddArg extends MembersAddArgBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersAddArg(List newMembers, boolean forceAsync) { + public MembersAddArg(@Nonnull List newMembers, boolean forceAsync) { super(forceAsync); if (newMembers == null) { throw new IllegalArgumentException("Required value for 'newMembers' is null"); @@ -55,7 +58,7 @@ public MembersAddArg(List newMembers, boolean forceAsync) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersAddArg(List newMembers) { + public MembersAddArg(@Nonnull List newMembers) { this(newMembers, false); } @@ -64,6 +67,7 @@ public MembersAddArg(List newMembers) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getNewMembers() { return newMembers; } 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 index c7a2d1e37..6eed9acfb 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ class MembersAddV2Arg extends MembersAddArgBase { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersAddV2Arg(List newMembers, boolean forceAsync) { + public MembersAddV2Arg(@Nonnull List newMembers, boolean forceAsync) { super(forceAsync); if (newMembers == null) { throw new IllegalArgumentException("Required value for 'newMembers' is null"); @@ -55,7 +58,7 @@ public MembersAddV2Arg(List newMembers, boolean forceAsync) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersAddV2Arg(List newMembers) { + public MembersAddV2Arg(@Nonnull List newMembers) { this(newMembers, false); } @@ -64,6 +67,7 @@ public MembersAddV2Arg(List newMembers) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getNewMembers() { return newMembers; } 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 index 965c9a675..8d294f792 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -34,7 +38,7 @@ class MembersDataTransferArg extends MembersDeactivateBaseArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersDataTransferArg(UserSelectorArg user, UserSelectorArg transferDestId, UserSelectorArg transferAdminId) { + 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"); @@ -51,6 +55,7 @@ public MembersDataTransferArg(UserSelectorArg user, UserSelectorArg transferDest * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } @@ -60,6 +65,7 @@ public UserSelectorArg getUser() { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getTransferDestId() { return transferDestId; } @@ -69,6 +75,7 @@ public UserSelectorArg getTransferDestId() { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getTransferAdminId() { return transferAdminId; } 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 index 3a61c0e02..3c1e5a01e 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + class MembersDeactivateArg extends MembersDeactivateBaseArg { // struct team.MembersDeactivateArg (team_members.stone) @@ -31,7 +33,7 @@ class MembersDeactivateArg extends MembersDeactivateBaseArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersDeactivateArg(UserSelectorArg user, boolean wipeData) { + public MembersDeactivateArg(@Nonnull UserSelectorArg user, boolean wipeData) { super(user); this.wipeData = wipeData; } @@ -47,7 +49,7 @@ public MembersDeactivateArg(UserSelectorArg user, boolean wipeData) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersDeactivateArg(UserSelectorArg user) { + public MembersDeactivateArg(@Nonnull UserSelectorArg user) { this(user, true); } @@ -56,6 +58,7 @@ public MembersDeactivateArg(UserSelectorArg user) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } 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 index e0df34a8f..99244f839 100644 --- 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 @@ -16,6 +16,8 @@ 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. @@ -23,6 +25,7 @@ class MembersDeactivateBaseArg { // struct team.MembersDeactivateBaseArg (team_members.stone) + @Nonnull protected final UserSelectorArg user; /** @@ -35,7 +38,7 @@ class MembersDeactivateBaseArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersDeactivateBaseArg(UserSelectorArg user) { + public MembersDeactivateBaseArg(@Nonnull UserSelectorArg user) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -47,6 +50,7 @@ public MembersDeactivateBaseArg(UserSelectorArg user) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } 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 index 4cbd436c7..50ac84452 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ class MembersDeleteProfilePhotoArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersDeleteProfilePhotoArg(UserSelectorArg user) { + public MembersDeleteProfilePhotoArg(@Nonnull UserSelectorArg user) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -41,6 +44,7 @@ public MembersDeleteProfilePhotoArg(UserSelectorArg user) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } 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 index 9bdf19773..53b8986b0 100644 --- 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 @@ -17,6 +17,8 @@ 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)}. @@ -24,6 +26,7 @@ public class MembersGetAvailableTeamMemberRolesResult { // struct team.MembersGetAvailableTeamMemberRolesResult (team_members.stone) + @Nonnull protected final List roles; /** @@ -36,7 +39,7 @@ public class MembersGetAvailableTeamMemberRolesResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersGetAvailableTeamMemberRolesResult(List roles) { + public MembersGetAvailableTeamMemberRolesResult(@Nonnull List roles) { if (roles == null) { throw new IllegalArgumentException("Required value for 'roles' is null"); } @@ -53,6 +56,7 @@ public MembersGetAvailableTeamMemberRolesResult(List roles) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getRoles() { return roles; } 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 index 937b2a6b8..a91a8e024 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class MembersGetInfoArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersGetInfoArgs(List members) { + public MembersGetInfoArgs(@Nonnull List members) { if (members == null) { throw new IllegalArgumentException("Required value for 'members' is null"); } @@ -47,6 +50,7 @@ public MembersGetInfoArgs(List members) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembers() { return members; } 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 index 84fecc924..1a1ae8dea 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class MembersGetInfoV2Arg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersGetInfoV2Arg(List members) { + public MembersGetInfoV2Arg(@Nonnull List members) { if (members == null) { throw new IllegalArgumentException("Required value for 'members' is null"); } @@ -47,6 +50,7 @@ public MembersGetInfoV2Arg(List members) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembers() { return members; } 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 index 07b37e18c..75cc9a311 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class MembersGetInfoV2Result { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersGetInfoV2Result(List membersInfo) { + public MembersGetInfoV2Result(@Nonnull List membersInfo) { if (membersInfo == null) { throw new IllegalArgumentException("Required value for 'membersInfo' is null"); } @@ -47,6 +50,7 @@ public MembersGetInfoV2Result(List membersInfo) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembersInfo() { return membersInfo; } 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 index bfffe5f76..0e34e6a8d 100644 --- 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 @@ -17,9 +17,12 @@ 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; @@ -33,7 +36,7 @@ public class MembersInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersInfo(List teamMemberIds, long permanentlyDeletedUsers) { + public MembersInfo(@Nonnull List teamMemberIds, long permanentlyDeletedUsers) { if (teamMemberIds == null) { throw new IllegalArgumentException("Required value for 'teamMemberIds' is null"); } @@ -51,6 +54,7 @@ public MembersInfo(List teamMemberIds, long permanentlyDeletedUsers) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getTeamMemberIds() { return teamMemberIds; } 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 index 01052b052..b2bbb12aa 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ class MembersListContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersListContinueArg(String cursor) { + public MembersListContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -41,6 +44,7 @@ public MembersListContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index c5ced41c6..cbe9da626 100644 --- 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 @@ -17,10 +17,14 @@ 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; @@ -38,7 +42,7 @@ public class MembersListResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersListResult(List members, String cursor, boolean hasMore) { + public MembersListResult(@Nonnull List members, @Nonnull String cursor, boolean hasMore) { if (members == null) { throw new IllegalArgumentException("Required value for 'members' is null"); } @@ -60,6 +64,7 @@ public MembersListResult(List members, String cursor, boolean ha * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembers() { return members; } @@ -71,6 +76,7 @@ public List getMembers() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index f12160c42..b1758996c 100644 --- 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 @@ -17,10 +17,14 @@ 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; @@ -38,7 +42,7 @@ public class MembersListV2Result { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersListV2Result(List members, String cursor, boolean hasMore) { + public MembersListV2Result(@Nonnull List members, @Nonnull String cursor, boolean hasMore) { if (members == null) { throw new IllegalArgumentException("Required value for 'members' is null"); } @@ -60,6 +64,7 @@ public MembersListV2Result(List members, String cursor, boolea * * @return value for this field, never {@code null}. */ + @Nonnull public List getMembers() { return members; } @@ -71,6 +76,7 @@ public List getMembers() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 09edb1fc7..4985311cd 100644 --- 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 @@ -16,6 +16,8 @@ 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. @@ -23,6 +25,7 @@ class MembersRecoverArg { // struct team.MembersRecoverArg (team_members.stone) + @Nonnull protected final UserSelectorArg user; /** @@ -34,7 +37,7 @@ class MembersRecoverArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersRecoverArg(UserSelectorArg user) { + public MembersRecoverArg(@Nonnull UserSelectorArg user) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -46,6 +49,7 @@ public MembersRecoverArg(UserSelectorArg user) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } 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 index 970ff4f54..16b7e3c2d 100644 --- 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 @@ -16,10 +16,15 @@ 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; @@ -57,7 +62,7 @@ class MembersRemoveArg extends MembersDeactivateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersRemoveArg(UserSelectorArg user, boolean wipeData, UserSelectorArg transferDestId, UserSelectorArg transferAdminId, boolean keepAccount, boolean retainTeamShares) { + 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; @@ -76,7 +81,7 @@ public MembersRemoveArg(UserSelectorArg user, boolean wipeData, UserSelectorArg * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersRemoveArg(UserSelectorArg user) { + public MembersRemoveArg(@Nonnull UserSelectorArg user) { this(user, true, null, null, false, false); } @@ -85,6 +90,7 @@ public MembersRemoveArg(UserSelectorArg user) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } @@ -106,6 +112,7 @@ public boolean getWipeData() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserSelectorArg getTransferDestId() { return transferDestId; } @@ -117,6 +124,7 @@ public UserSelectorArg getTransferDestId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserSelectorArg getTransferAdminId() { return transferAdminId; } 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 index 0c0e59d95..f4b9dd9a9 100644 --- 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 @@ -17,6 +17,9 @@ 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. @@ -24,7 +27,9 @@ class MembersSetPermissions2Arg { // struct team.MembersSetPermissions2Arg (team_members.stone) + @Nonnull protected final UserSelectorArg user; + @Nullable protected final List newRoles; /** @@ -40,7 +45,7 @@ class MembersSetPermissions2Arg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersSetPermissions2Arg(UserSelectorArg user, List newRoles) { + public MembersSetPermissions2Arg(@Nonnull UserSelectorArg user, @Nullable List newRoles) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -76,7 +81,7 @@ public MembersSetPermissions2Arg(UserSelectorArg user, List newRoles) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersSetPermissions2Arg(UserSelectorArg user) { + public MembersSetPermissions2Arg(@Nonnull UserSelectorArg user) { this(user, null); } @@ -85,6 +90,7 @@ public MembersSetPermissions2Arg(UserSelectorArg user) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } @@ -95,6 +101,7 @@ public UserSelectorArg getUser() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getNewRoles() { return newRoles; } 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 index c1624c14c..5340f0c11 100644 --- 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 @@ -17,10 +17,15 @@ 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; /** @@ -33,7 +38,7 @@ public class MembersSetPermissions2Result { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersSetPermissions2Result(String teamMemberId, List roles) { + public MembersSetPermissions2Result(@Nonnull String teamMemberId, @Nullable List roles) { if (teamMemberId == null) { throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); } @@ -59,7 +64,7 @@ public MembersSetPermissions2Result(String teamMemberId, List ro * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersSetPermissions2Result(String teamMemberId) { + public MembersSetPermissions2Result(@Nonnull String teamMemberId) { this(teamMemberId, null); } @@ -68,6 +73,7 @@ public MembersSetPermissions2Result(String teamMemberId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } @@ -77,6 +83,7 @@ public String getTeamMemberId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getRoles() { return roles; } 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 index 6e8ab4007..191db6157 100644 --- 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 @@ -16,6 +16,8 @@ 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. @@ -23,7 +25,9 @@ class MembersSetPermissionsArg { // struct team.MembersSetPermissionsArg (team_members.stone) + @Nonnull protected final UserSelectorArg user; + @Nonnull protected final AdminTier newRole; /** @@ -37,7 +41,7 @@ class MembersSetPermissionsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersSetPermissionsArg(UserSelectorArg user, AdminTier newRole) { + public MembersSetPermissionsArg(@Nonnull UserSelectorArg user, @Nonnull AdminTier newRole) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -53,6 +57,7 @@ public MembersSetPermissionsArg(UserSelectorArg user, AdminTier newRole) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } @@ -62,6 +67,7 @@ public UserSelectorArg getUser() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminTier getNewRole() { return newRole; } 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 index f2058a0d7..0d9f787ac 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -31,7 +35,7 @@ public class MembersSetPermissionsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersSetPermissionsResult(String teamMemberId, AdminTier role) { + public MembersSetPermissionsResult(@Nonnull String teamMemberId, @Nonnull AdminTier role) { if (teamMemberId == null) { throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); } @@ -47,6 +51,7 @@ public MembersSetPermissionsResult(String teamMemberId, AdminTier role) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } @@ -56,6 +61,7 @@ public String getTeamMemberId() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminTier getRole() { return role; } 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 index ed5804737..e5101f3ca 100644 --- 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 @@ -16,6 +16,9 @@ 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, @@ -24,12 +27,19 @@ 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; /** @@ -59,7 +69,7 @@ class MembersSetProfileArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersSetProfileArg(UserSelectorArg user, String newEmail, String newExternalId, String newGivenName, String newSurname, String newPersistentId, Boolean newIsDirectoryRestricted) { + 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"); } @@ -114,7 +124,7 @@ public MembersSetProfileArg(UserSelectorArg user, String newEmail, String newExt * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersSetProfileArg(UserSelectorArg user) { + public MembersSetProfileArg(@Nonnull UserSelectorArg user) { this(user, null, null, null, null, null, null); } @@ -123,6 +133,7 @@ public MembersSetProfileArg(UserSelectorArg user) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } @@ -132,6 +143,7 @@ public UserSelectorArg getUser() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewEmail() { return newEmail; } @@ -141,6 +153,7 @@ public String getNewEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewExternalId() { return newExternalId; } @@ -150,6 +163,7 @@ public String getNewExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewGivenName() { return newGivenName; } @@ -159,6 +173,7 @@ public String getNewGivenName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewSurname() { return newSurname; } @@ -169,6 +184,7 @@ public String getNewSurname() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewPersistentId() { return newPersistentId; } @@ -178,6 +194,7 @@ public String getNewPersistentId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getNewIsDirectoryRestricted() { return newIsDirectoryRestricted; } 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 index 6ac1b2077..7171c02a5 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -33,7 +37,7 @@ class MembersSetProfilePhotoArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersSetProfilePhotoArg(UserSelectorArg user, PhotoSourceArg photo) { + public MembersSetProfilePhotoArg(@Nonnull UserSelectorArg user, @Nonnull PhotoSourceArg photo) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -49,6 +53,7 @@ public MembersSetProfilePhotoArg(UserSelectorArg user, PhotoSourceArg photo) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } @@ -58,6 +63,7 @@ public UserSelectorArg getUser() { * * @return value for this field, never {@code null}. */ + @Nonnull public PhotoSourceArg getPhoto() { return photo; } 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 index 2705a31d6..fabdafd21 100644 --- 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 @@ -16,6 +16,8 @@ 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. @@ -23,6 +25,7 @@ class MembersUnsuspendArg { // struct team.MembersUnsuspendArg (team_members.stone) + @Nonnull protected final UserSelectorArg user; /** @@ -34,7 +37,7 @@ class MembersUnsuspendArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MembersUnsuspendArg(UserSelectorArg user) { + public MembersUnsuspendArg(@Nonnull UserSelectorArg user) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -46,6 +49,7 @@ public MembersUnsuspendArg(UserSelectorArg user) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } 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 index e7f5819f3..fa58727c5 100644 --- 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 @@ -18,16 +18,24 @@ 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; /** @@ -51,7 +59,7 @@ public class MobileClientSession extends DeviceSession { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MobileClientSession(String sessionId, String deviceName, MobileClientPlatform clientType, String ipAddress, String country, Date created, Date updated, String clientVersion, String osVersion, String lastCarrier) { + 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"); @@ -78,7 +86,7 @@ public MobileClientSession(String sessionId, String deviceName, MobileClientPlat * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MobileClientSession(String sessionId, String deviceName, MobileClientPlatform clientType) { + public MobileClientSession(@Nonnull String sessionId, @Nonnull String deviceName, @Nonnull MobileClientPlatform clientType) { this(sessionId, deviceName, clientType, null, null, null, null, null, null, null); } @@ -87,6 +95,7 @@ public MobileClientSession(String sessionId, String deviceName, MobileClientPlat * * @return value for this field, never {@code null}. */ + @Nonnull public String getSessionId() { return sessionId; } @@ -96,6 +105,7 @@ public String getSessionId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDeviceName() { return deviceName; } @@ -105,6 +115,7 @@ public String getDeviceName() { * * @return value for this field, never {@code null}. */ + @Nonnull public MobileClientPlatform getClientType() { return clientType; } @@ -114,6 +125,7 @@ public MobileClientPlatform getClientType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getIpAddress() { return ipAddress; } @@ -123,6 +135,7 @@ public String getIpAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCountry() { return country; } @@ -132,6 +145,7 @@ public String getCountry() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getCreated() { return created; } @@ -141,6 +155,7 @@ public Date getCreated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getUpdated() { return updated; } @@ -150,6 +165,7 @@ public Date getUpdated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getClientVersion() { return clientVersion; } @@ -159,6 +175,7 @@ public String getClientVersion() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getOsVersion() { return osVersion; } @@ -168,6 +185,7 @@ public String getOsVersion() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getLastCarrier() { return lastCarrier; } 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 index 2d02f33ae..5756a9b4b 100644 --- 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 @@ -17,15 +17,22 @@ 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; /** @@ -42,7 +49,7 @@ public class NamespaceMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NamespaceMetadata(String name, String namespaceId, NamespaceType namespaceType, String teamMemberId) { + 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"); } @@ -75,7 +82,7 @@ public NamespaceMetadata(String name, String namespaceId, NamespaceType namespac * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NamespaceMetadata(String name, String namespaceId, NamespaceType namespaceType) { + public NamespaceMetadata(@Nonnull String name, @Nonnull String namespaceId, @Nonnull NamespaceType namespaceType) { this(name, namespaceId, namespaceType, null); } @@ -84,6 +91,7 @@ public NamespaceMetadata(String name, String namespaceId, NamespaceType namespac * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -93,6 +101,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNamespaceId() { return namespaceId; } @@ -102,6 +111,7 @@ public String getNamespaceId() { * * @return value for this field, never {@code null}. */ + @Nonnull public NamespaceType getNamespaceType() { return namespaceType; } @@ -112,6 +122,7 @@ public NamespaceType getNamespaceType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTeamMemberId() { return teamMemberId; } 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 index c51237b3f..28e84810b 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ class ResendVerificationEmailArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ResendVerificationEmailArg(List emailsToResend) { + public ResendVerificationEmailArg(@Nonnull List emailsToResend) { if (emailsToResend == null) { throw new IllegalArgumentException("Required value for 'emailsToResend' is null"); } @@ -48,6 +51,7 @@ public ResendVerificationEmailArg(List emailsToResend) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEmailsToResend() { return emailsToResend; } 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 index 9433f07e4..979903f72 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class ResendVerificationEmailResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ResendVerificationEmailResult(List results) { + public ResendVerificationEmailResult(@Nonnull List results) { if (results == null) { throw new IllegalArgumentException("Required value for 'results' is null"); } @@ -50,6 +53,7 @@ public ResendVerificationEmailResult(List results) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getResults() { return results; } 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 index d37386210..11f7d3b03 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + public class RevokeDesktopClientArg extends DeviceSessionArg { // struct team.RevokeDesktopClientArg (team_devices.stone) @@ -33,7 +35,7 @@ public class RevokeDesktopClientArg extends DeviceSessionArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RevokeDesktopClientArg(String sessionId, String teamMemberId, boolean deleteOnUnlink) { + public RevokeDesktopClientArg(@Nonnull String sessionId, @Nonnull String teamMemberId, boolean deleteOnUnlink) { super(sessionId, teamMemberId); this.deleteOnUnlink = deleteOnUnlink; } @@ -50,7 +52,7 @@ public RevokeDesktopClientArg(String sessionId, String teamMemberId, boolean del * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RevokeDesktopClientArg(String sessionId, String teamMemberId) { + public RevokeDesktopClientArg(@Nonnull String sessionId, @Nonnull String teamMemberId) { this(sessionId, teamMemberId, false); } @@ -59,6 +61,7 @@ public RevokeDesktopClientArg(String sessionId, String teamMemberId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSessionId() { return sessionId; } @@ -68,6 +71,7 @@ public String getSessionId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } 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 index bf6c63b60..67eb01dff 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class RevokeDeviceSessionBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RevokeDeviceSessionBatchArg(List revokeDevices) { + public RevokeDeviceSessionBatchArg(@Nonnull List revokeDevices) { if (revokeDevices == null) { throw new IllegalArgumentException("Required value for 'revokeDevices' is null"); } @@ -46,6 +49,7 @@ public RevokeDeviceSessionBatchArg(List revokeDevices) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getRevokeDevices() { return revokeDevices; } 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 index a3341341e..215a52c9b 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class RevokeDeviceSessionBatchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RevokeDeviceSessionBatchResult(List revokeDevicesStatus) { + public RevokeDeviceSessionBatchResult(@Nonnull List revokeDevicesStatus) { if (revokeDevicesStatus == null) { throw new IllegalArgumentException("Required value for 'revokeDevicesStatus' is null"); } @@ -46,6 +49,7 @@ public RevokeDeviceSessionBatchResult(List revokeDevi * * @return value for this field, never {@code null}. */ + @Nonnull public List getRevokeDevicesStatus() { return revokeDevicesStatus; } 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 index ae7dc85bd..371f553f9 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -27,7 +31,7 @@ public class RevokeDeviceSessionStatus { * @param success Result of the revoking request. * @param errorType The error cause in case of a failure. */ - public RevokeDeviceSessionStatus(boolean success, RevokeDeviceSessionError errorType) { + public RevokeDeviceSessionStatus(boolean success, @Nullable RevokeDeviceSessionError errorType) { this.success = success; this.errorType = errorType; } @@ -57,6 +61,7 @@ public boolean getSuccess() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public RevokeDeviceSessionError getErrorType() { return errorType; } 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 index 231d03cb8..b0a9de3af 100644 --- 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 @@ -16,10 +16,14 @@ 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; @@ -34,7 +38,7 @@ public class RevokeLinkedApiAppArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RevokeLinkedApiAppArg(String appId, String teamMemberId, boolean keepAppFolder) { + public RevokeLinkedApiAppArg(@Nonnull String appId, @Nonnull String teamMemberId, boolean keepAppFolder) { if (appId == null) { throw new IllegalArgumentException("Required value for 'appId' is null"); } @@ -58,7 +62,7 @@ public RevokeLinkedApiAppArg(String appId, String teamMemberId, boolean keepAppF * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RevokeLinkedApiAppArg(String appId, String teamMemberId) { + public RevokeLinkedApiAppArg(@Nonnull String appId, @Nonnull String teamMemberId) { this(appId, teamMemberId, true); } @@ -67,6 +71,7 @@ public RevokeLinkedApiAppArg(String appId, String teamMemberId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAppId() { return appId; } @@ -76,6 +81,7 @@ public String getAppId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } 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 index cca9f1c6b..18e5e367d 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class RevokeLinkedApiAppBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RevokeLinkedApiAppBatchArg(List revokeLinkedApp) { + public RevokeLinkedApiAppBatchArg(@Nonnull List revokeLinkedApp) { if (revokeLinkedApp == null) { throw new IllegalArgumentException("Required value for 'revokeLinkedApp' is null"); } @@ -46,6 +49,7 @@ public RevokeLinkedApiAppBatchArg(List revokeLinkedApp) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getRevokeLinkedApp() { return revokeLinkedApp; } 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 index d3d18ab32..31e8cccd6 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class RevokeLinkedAppBatchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RevokeLinkedAppBatchResult(List revokeLinkedAppStatus) { + public RevokeLinkedAppBatchResult(@Nonnull List revokeLinkedAppStatus) { if (revokeLinkedAppStatus == null) { throw new IllegalArgumentException("Required value for 'revokeLinkedAppStatus' is null"); } @@ -46,6 +49,7 @@ public RevokeLinkedAppBatchResult(List revokeLinkedAppSta * * @return value for this field, never {@code null}. */ + @Nonnull public List getRevokeLinkedAppStatus() { return revokeLinkedAppStatus; } 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 index 695d3b500..8ddc09af1 100644 --- 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 @@ -16,10 +16,14 @@ 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; /** @@ -27,7 +31,7 @@ public class RevokeLinkedAppStatus { * @param success Result of the revoking request. * @param errorType The error cause in case of a failure. */ - public RevokeLinkedAppStatus(boolean success, RevokeLinkedAppError errorType) { + public RevokeLinkedAppStatus(boolean success, @Nullable RevokeLinkedAppError errorType) { this.success = success; this.errorType = errorType; } @@ -57,6 +61,7 @@ public boolean getSuccess() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public RevokeLinkedAppError getErrorType() { return errorType; } 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 index 976b7ae54..1a529c1c9 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class SetCustomQuotaArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SetCustomQuotaArg(List usersAndQuotas) { + public SetCustomQuotaArg(@Nonnull List usersAndQuotas) { if (usersAndQuotas == null) { throw new IllegalArgumentException("Required value for 'usersAndQuotas' is null"); } @@ -47,6 +50,7 @@ public SetCustomQuotaArg(List usersAndQuotas) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getUsersAndQuotas() { return usersAndQuotas; } 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 index 08ef08e88..9d01cdef1 100644 --- 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 @@ -17,6 +17,9 @@ 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. @@ -24,7 +27,9 @@ class SharingAllowlistAddArgs { // struct team.SharingAllowlistAddArgs (team_sharing_allowlist.stone) + @Nullable protected final List domains; + @Nullable protected final List emails; /** @@ -42,7 +47,7 @@ class SharingAllowlistAddArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingAllowlistAddArgs(List domains, List emails) { + public SharingAllowlistAddArgs(@Nullable List domains, @Nullable List emails) { if (domains != null) { for (String x : domains) { if (x == null) { @@ -76,6 +81,7 @@ public SharingAllowlistAddArgs() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getDomains() { return domains; } @@ -85,6 +91,7 @@ public List getDomains() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getEmails() { return emails; } 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 index d5b6d632e..24a22ce43 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -31,7 +34,7 @@ class SharingAllowlistListContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingAllowlistListContinueArg(String cursor) { + public SharingAllowlistListContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -45,6 +48,7 @@ public SharingAllowlistListContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index ad80065bd..77565421e 100644 --- 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 @@ -17,11 +17,16 @@ 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; @@ -45,7 +50,7 @@ public class SharingAllowlistListResponse { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingAllowlistListResponse(List domains, List emails, String cursor, boolean hasMore) { + 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"); } @@ -86,7 +91,7 @@ public SharingAllowlistListResponse(List domains, List emails, S * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingAllowlistListResponse(List domains, List emails) { + public SharingAllowlistListResponse(@Nonnull List domains, @Nonnull List emails) { this(domains, emails, "", false); } @@ -95,6 +100,7 @@ public SharingAllowlistListResponse(List domains, List emails) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getDomains() { return domains; } @@ -104,6 +110,7 @@ public List getDomains() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getEmails() { return emails; } @@ -115,6 +122,7 @@ public List getEmails() { * @return value for this field, or {@code null} if not present. Defaults to * "". */ + @Nonnull public String getCursor() { return cursor; } 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 index fda0d2455..9a7338f4c 100644 --- 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 @@ -17,10 +17,15 @@ 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; /** @@ -35,7 +40,7 @@ class SharingAllowlistRemoveArgs { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingAllowlistRemoveArgs(List domains, List emails) { + public SharingAllowlistRemoveArgs(@Nullable List domains, @Nullable List emails) { if (domains != null) { for (String x : domains) { if (x == null) { @@ -68,6 +73,7 @@ public SharingAllowlistRemoveArgs() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getDomains() { return domains; } @@ -77,6 +83,7 @@ public List getDomains() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getEmails() { return emails; } 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 index 16a16a4a7..975794630 100644 --- 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 @@ -16,12 +16,15 @@ 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; @@ -37,7 +40,7 @@ public class StorageBucket { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public StorageBucket(String bucket, long users) { + public StorageBucket(@Nonnull String bucket, long users) { if (bucket == null) { throw new IllegalArgumentException("Required value for 'bucket' is null"); } @@ -51,6 +54,7 @@ public StorageBucket(String bucket, long users) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBucket() { return bucket; } 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 index 0145f55f6..b8218c058 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.regex.Pattern; +import javax.annotation.Nonnull; + class TeamFolderArchiveArg extends TeamFolderIdArg { // struct team.TeamFolderArchiveArg (team_folders.stone) @@ -32,7 +34,7 @@ class TeamFolderArchiveArg extends TeamFolderIdArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderArchiveArg(String teamFolderId, boolean forceAsyncOff) { + public TeamFolderArchiveArg(@Nonnull String teamFolderId, boolean forceAsyncOff) { super(teamFolderId); this.forceAsyncOff = forceAsyncOff; } @@ -48,7 +50,7 @@ public TeamFolderArchiveArg(String teamFolderId, boolean forceAsyncOff) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderArchiveArg(String teamFolderId) { + public TeamFolderArchiveArg(@Nonnull String teamFolderId) { this(teamFolderId, false); } @@ -57,6 +59,7 @@ public TeamFolderArchiveArg(String teamFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamFolderId() { return teamFolderId; } 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 index 00f7aec91..a115d885d 100644 --- 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 @@ -17,10 +17,15 @@ 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; /** @@ -32,7 +37,7 @@ class TeamFolderCreateArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderCreateArg(String name, SyncSettingArg syncSetting) { + public TeamFolderCreateArg(@Nonnull String name, @Nullable SyncSettingArg syncSetting) { if (name == null) { throw new IllegalArgumentException("Required value for 'name' is null"); } @@ -50,7 +55,7 @@ public TeamFolderCreateArg(String name, SyncSettingArg syncSetting) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderCreateArg(String name) { + public TeamFolderCreateArg(@Nonnull String name) { this(name, null); } @@ -59,6 +64,7 @@ public TeamFolderCreateArg(String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -69,6 +75,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SyncSettingArg getSyncSetting() { return syncSetting; } 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 index d78ebcc7e..d7247ea15 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class TeamFolderIdArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderIdArg(String teamFolderId) { + public TeamFolderIdArg(@Nonnull String teamFolderId) { if (teamFolderId == null) { throw new IllegalArgumentException("Required value for 'teamFolderId' is null"); } @@ -45,6 +48,7 @@ public TeamFolderIdArg(String teamFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamFolderId() { return teamFolderId; } 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 index 43de156cf..621efbcaa 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ class TeamFolderIdListArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderIdListArg(List teamFolderIds) { + public TeamFolderIdListArg(@Nonnull List teamFolderIds) { if (teamFolderIds == null) { throw new IllegalArgumentException("Required value for 'teamFolderIds' is null"); } @@ -53,6 +56,7 @@ public TeamFolderIdListArg(List teamFolderIds) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getTeamFolderIds() { return teamFolderIds; } 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 index 3d7b6cc5d..4e02999a5 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ class TeamFolderListContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderListContinueArg(String cursor) { + public TeamFolderListContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -41,6 +44,7 @@ public TeamFolderListContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 36b54a573..3100fe9cf 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamFolderListError { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderListError(TeamFolderAccessError accessError) { + public TeamFolderListError(@Nonnull TeamFolderAccessError accessError) { if (accessError == null) { throw new IllegalArgumentException("Required value for 'accessError' is null"); } @@ -39,6 +42,7 @@ public TeamFolderListError(TeamFolderAccessError accessError) { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamFolderAccessError getAccessError() { return accessError; } 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 index fdf01fe6a..575c87fc5 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + /** * Result for {@link DbxTeamTeamRequests#teamFolderList(long)} and {@link * DbxTeamTeamRequests#teamFolderListContinue(String)}. @@ -24,7 +26,9 @@ public class TeamFolderListResult { // struct team.TeamFolderListResult (team_folders.stone) + @Nonnull protected final List teamFolders; + @Nonnull protected final String cursor; protected final boolean hasMore; @@ -45,7 +49,7 @@ public class TeamFolderListResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderListResult(List teamFolders, String cursor, boolean hasMore) { + public TeamFolderListResult(@Nonnull List teamFolders, @Nonnull String cursor, boolean hasMore) { if (teamFolders == null) { throw new IllegalArgumentException("Required value for 'teamFolders' is null"); } @@ -67,6 +71,7 @@ public TeamFolderListResult(List teamFolders, String cursor, * * @return value for this field, never {@code null}. */ + @Nonnull public List getTeamFolders() { return teamFolders; } @@ -78,6 +83,7 @@ public List getTeamFolders() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index e8fca0522..1d3d92e86 100644 --- 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 @@ -20,17 +20,24 @@ 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; /** @@ -51,7 +58,7 @@ public class TeamFolderMetadata { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderMetadata(String teamFolderId, String name, TeamFolderStatus status, boolean isTeamSharedDropbox, SyncSetting syncSetting, List contentSyncSettings) { + 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"); } @@ -88,6 +95,7 @@ public TeamFolderMetadata(String teamFolderId, String name, TeamFolderStatus sta * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamFolderId() { return teamFolderId; } @@ -97,6 +105,7 @@ public String getTeamFolderId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -106,6 +115,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamFolderStatus getStatus() { return status; } @@ -124,6 +134,7 @@ public boolean getIsTeamSharedDropbox() { * * @return value for this field, never {@code null}. */ + @Nonnull public SyncSetting getSyncSetting() { return syncSetting; } @@ -133,6 +144,7 @@ public SyncSetting getSyncSetting() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getContentSyncSettings() { return contentSyncSettings; } 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 index f8f7b976f..ab4fb2c03 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ class TeamFolderRenameArg extends TeamFolderIdArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderRenameArg(String teamFolderId, String name) { + public TeamFolderRenameArg(@Nonnull String teamFolderId, @Nonnull String name) { super(teamFolderId); if (name == null) { throw new IllegalArgumentException("Required value for 'name' is null"); @@ -44,6 +47,7 @@ public TeamFolderRenameArg(String teamFolderId, String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamFolderId() { return teamFolderId; } @@ -53,6 +57,7 @@ public String getTeamFolderId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } 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 index 91d88454e..631f23c8e 100644 --- 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 @@ -20,10 +20,15 @@ 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; /** @@ -40,7 +45,7 @@ class TeamFolderUpdateSyncSettingsArg extends TeamFolderIdArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderUpdateSyncSettingsArg(String teamFolderId, SyncSettingArg syncSetting, List contentSyncSettings) { + public TeamFolderUpdateSyncSettingsArg(@Nonnull String teamFolderId, @Nullable SyncSettingArg syncSetting, @Nullable List contentSyncSettings) { super(teamFolderId); this.syncSetting = syncSetting; if (contentSyncSettings != null) { @@ -64,7 +69,7 @@ public TeamFolderUpdateSyncSettingsArg(String teamFolderId, SyncSettingArg syncS * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderUpdateSyncSettingsArg(String teamFolderId) { + public TeamFolderUpdateSyncSettingsArg(@Nonnull String teamFolderId) { this(teamFolderId, null, null); } @@ -73,6 +78,7 @@ public TeamFolderUpdateSyncSettingsArg(String teamFolderId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamFolderId() { return teamFolderId; } @@ -83,6 +89,7 @@ public String getTeamFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SyncSettingArg getSyncSetting() { return syncSetting; } @@ -92,6 +99,7 @@ public SyncSettingArg getSyncSetting() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getContentSyncSettings() { return contentSyncSettings; } 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 index ca86e70d5..9d8067953 100644 --- 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 @@ -17,14 +17,19 @@ 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; /** @@ -40,7 +45,7 @@ public class TeamGetInfoResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamGetInfoResult(String name, String teamId, long numLicensedUsers, long numProvisionedUsers, TeamMemberPolicies policies, long numUsedLicenses) { + 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"); } @@ -73,7 +78,7 @@ public TeamGetInfoResult(String name, String teamId, long numLicensedUsers, long * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamGetInfoResult(String name, String teamId, long numLicensedUsers, long numProvisionedUsers, TeamMemberPolicies policies) { + public TeamGetInfoResult(@Nonnull String name, @Nonnull String teamId, long numLicensedUsers, long numProvisionedUsers, @Nonnull TeamMemberPolicies policies) { this(name, teamId, numLicensedUsers, numProvisionedUsers, policies, 0L); } @@ -82,6 +87,7 @@ public TeamGetInfoResult(String name, String teamId, long numLicensedUsers, long * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -91,6 +97,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamId() { return teamId; } @@ -118,6 +125,7 @@ public long getNumProvisionedUsers() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMemberPolicies getPolicies() { return policies; } 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 index dcbcffa29..b14392de0 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamMemberInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberInfo(TeamMemberProfile profile, AdminTier role) { + public TeamMemberInfo(@Nonnull TeamMemberProfile profile, @Nonnull AdminTier role) { if (profile == null) { throw new IllegalArgumentException("Required value for 'profile' is null"); } @@ -51,6 +55,7 @@ public TeamMemberInfo(TeamMemberProfile profile, AdminTier role) { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMemberProfile getProfile() { return profile; } @@ -60,6 +65,7 @@ public TeamMemberProfile getProfile() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminTier getRole() { return role; } 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 index 21cc1e219..bcf5613ce 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -37,7 +42,7 @@ public class TeamMemberInfoV2 { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberInfoV2(TeamMemberProfile profile, List roles) { + public TeamMemberInfoV2(@Nonnull TeamMemberProfile profile, @Nullable List roles) { if (profile == null) { throw new IllegalArgumentException("Required value for 'profile' is null"); } @@ -63,7 +68,7 @@ public TeamMemberInfoV2(TeamMemberProfile profile, List roles) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberInfoV2(TeamMemberProfile profile) { + public TeamMemberInfoV2(@Nonnull TeamMemberProfile profile) { this(profile, null); } @@ -72,6 +77,7 @@ public TeamMemberInfoV2(TeamMemberProfile profile) { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMemberProfile getProfile() { return profile; } @@ -81,6 +87,7 @@ public TeamMemberProfile getProfile() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getRoles() { return roles; } 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 index 609861816..8e7926466 100644 --- 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 @@ -16,6 +16,8 @@ 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)}. @@ -23,6 +25,7 @@ public class TeamMemberInfoV2Result { // struct team.TeamMemberInfoV2Result (team_members.stone) + @Nonnull protected final TeamMemberInfoV2 memberInfo; /** @@ -35,7 +38,7 @@ public class TeamMemberInfoV2Result { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberInfoV2Result(TeamMemberInfoV2 memberInfo) { + public TeamMemberInfoV2Result(@Nonnull TeamMemberInfoV2 memberInfo) { if (memberInfo == null) { throw new IllegalArgumentException("Required value for 'memberInfo' is null"); } @@ -47,6 +50,7 @@ public TeamMemberInfoV2Result(TeamMemberInfoV2 memberInfo) { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMemberInfoV2 getMemberInfo() { return memberInfo; } 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 index 336e4c0a9..508713350 100644 --- 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 @@ -22,13 +22,18 @@ 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; /** @@ -78,7 +83,7 @@ public class TeamMemberProfile extends MemberProfile { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberProfile(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List groups, String memberFolderId, String externalId, String accountId, List secondaryEmails, Date invitedOn, Date joinedOn, Date suspendedOn, String persistentId, Boolean isDirectoryRestricted, String profilePhotoUrl) { + 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"); @@ -123,7 +128,7 @@ public TeamMemberProfile(String teamMemberId, String email, boolean emailVerifie * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberProfile(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List groups, String memberFolderId) { + 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); } @@ -132,6 +137,7 @@ public TeamMemberProfile(String teamMemberId, String email, boolean emailVerifie * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamMemberId() { return teamMemberId; } @@ -141,6 +147,7 @@ public String getTeamMemberId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEmail() { return email; } @@ -159,6 +166,7 @@ public boolean getEmailVerified() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMemberStatus getStatus() { return status; } @@ -168,6 +176,7 @@ public TeamMemberStatus getStatus() { * * @return value for this field, never {@code null}. */ + @Nonnull public Name getName() { return name; } @@ -178,6 +187,7 @@ public Name getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMembershipType getMembershipType() { return membershipType; } @@ -187,6 +197,7 @@ public TeamMembershipType getMembershipType() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getGroups() { return groups; } @@ -196,6 +207,7 @@ public List getGroups() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getMemberFolderId() { return memberFolderId; } @@ -207,6 +219,7 @@ public String getMemberFolderId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getExternalId() { return externalId; } @@ -216,6 +229,7 @@ public String getExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAccountId() { return accountId; } @@ -225,6 +239,7 @@ public String getAccountId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getSecondaryEmails() { return secondaryEmails; } @@ -235,6 +250,7 @@ public List getSecondaryEmails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getInvitedOn() { return invitedOn; } @@ -244,6 +260,7 @@ public Date getInvitedOn() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getJoinedOn() { return joinedOn; } @@ -255,6 +272,7 @@ public Date getJoinedOn() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getSuspendedOn() { return suspendedOn; } @@ -265,6 +283,7 @@ public Date getSuspendedOn() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPersistentId() { return persistentId; } @@ -274,6 +293,7 @@ public String getPersistentId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsDirectoryRestricted() { return isDirectoryRestricted; } @@ -283,6 +303,7 @@ public Boolean getIsDirectoryRestricted() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getProfilePhotoUrl() { return profilePhotoUrl; } 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 index 1bb98ce8a..2af0d2539 100644 --- 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 @@ -17,6 +17,8 @@ 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. @@ -24,8 +26,11 @@ public class TeamMemberRole { // struct team.TeamMemberRole (team_members.stone) + @Nonnull protected final String roleId; + @Nonnull protected final String name; + @Nonnull protected final String description; /** @@ -45,7 +50,7 @@ public class TeamMemberRole { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberRole(String roleId, String name, String description) { + public TeamMemberRole(@Nonnull String roleId, @Nonnull String name, @Nonnull String description) { if (roleId == null) { throw new IllegalArgumentException("Required value for 'roleId' is null"); } @@ -78,6 +83,7 @@ public TeamMemberRole(String roleId, String name, String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getRoleId() { return roleId; } @@ -87,6 +93,7 @@ public String getRoleId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -96,6 +103,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 127f3f8f0..384ee2ee7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ class TeamNamespacesListContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamNamespacesListContinueArg(String cursor) { + public TeamNamespacesListContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -42,6 +45,7 @@ public TeamNamespacesListContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index a4ffaed43..6f64a9d97 100644 --- 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 @@ -17,13 +17,17 @@ 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; @@ -42,7 +46,7 @@ public class TeamNamespacesListResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamNamespacesListResult(List namespaces, String cursor, boolean hasMore) { + public TeamNamespacesListResult(@Nonnull List namespaces, @Nonnull String cursor, boolean hasMore) { if (namespaces == null) { throw new IllegalArgumentException("Required value for 'namespaces' is null"); } @@ -64,6 +68,7 @@ public TeamNamespacesListResult(List namespaces, String curso * * @return value for this field, never {@code null}. */ + @Nonnull public List getNamespaces() { return namespaces; } @@ -75,6 +80,7 @@ public List getNamespaces() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 8138d9daa..200f9dd28 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TokenGetAuthenticatedAdminResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TokenGetAuthenticatedAdminResult(TeamMemberProfile adminProfile) { + public TokenGetAuthenticatedAdminResult(@Nonnull TeamMemberProfile adminProfile) { if (adminProfile == null) { throw new IllegalArgumentException("Required value for 'adminProfile' is null"); } @@ -45,6 +48,7 @@ public TokenGetAuthenticatedAdminResult(TeamMemberProfile adminProfile) { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMemberProfile getAdminProfile() { return adminProfile; } 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 index 7ea7c94c5..7711d0c74 100644 --- 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 @@ -16,12 +16,15 @@ 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; @@ -34,7 +37,7 @@ public class UserCustomQuotaArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserCustomQuotaArg(UserSelectorArg user, long quotaGb) { + public UserCustomQuotaArg(@Nonnull UserSelectorArg user, long quotaGb) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -49,6 +52,7 @@ public UserCustomQuotaArg(UserSelectorArg user, long quotaGb) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } 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 index b2cb11ae6..e89ccb651 100644 --- 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 @@ -16,6 +16,9 @@ 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. @@ -23,7 +26,9 @@ public class UserCustomQuotaResult { // struct team.UserCustomQuotaResult (team_member_space_limits.stone) + @Nonnull protected final UserSelectorArg user; + @Nullable protected final Long quotaGb; /** @@ -36,7 +41,7 @@ public class UserCustomQuotaResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserCustomQuotaResult(UserSelectorArg user, Long quotaGb) { + public UserCustomQuotaResult(@Nonnull UserSelectorArg user, @Nullable Long quotaGb) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -60,7 +65,7 @@ public UserCustomQuotaResult(UserSelectorArg user, Long quotaGb) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserCustomQuotaResult(UserSelectorArg user) { + public UserCustomQuotaResult(@Nonnull UserSelectorArg user) { this(user, null); } @@ -68,6 +73,7 @@ public UserCustomQuotaResult(UserSelectorArg user) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } @@ -76,6 +82,7 @@ public UserSelectorArg getUser() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getQuotaGb() { return quotaGb; } 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 index 6bdf2828f..8b7182fb3 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -32,7 +36,7 @@ public class UserDeleteEmailsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserDeleteEmailsResult(UserSelectorArg user, List results) { + public UserDeleteEmailsResult(@Nonnull UserSelectorArg user, @Nonnull List results) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -52,6 +56,7 @@ public UserDeleteEmailsResult(UserSelectorArg user, List getResults() { return results; } 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 index 703d1ad6c..614849c68 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -32,7 +36,7 @@ public class UserResendEmailsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserResendEmailsResult(UserSelectorArg user, List results) { + public UserResendEmailsResult(@Nonnull UserSelectorArg user, @Nonnull List results) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -52,6 +56,7 @@ public UserResendEmailsResult(UserSelectorArg user, List getResults() { return results; } 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 index e43a7381d..7aa65c891 100644 --- 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 @@ -17,13 +17,17 @@ 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; /** @@ -36,7 +40,7 @@ public class UserSecondaryEmailsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserSecondaryEmailsArg(UserSelectorArg user, List secondaryEmails) { + public UserSecondaryEmailsArg(@Nonnull UserSelectorArg user, @Nonnull List secondaryEmails) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -62,6 +66,7 @@ public UserSecondaryEmailsArg(UserSelectorArg user, List secondaryEmails * * @return value for this field, never {@code null}. */ + @Nonnull public UserSelectorArg getUser() { return user; } @@ -70,6 +75,7 @@ public UserSelectorArg getUser() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSecondaryEmails() { return secondaryEmails; } 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 index b019064d4..c010b6404 100644 --- 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 @@ -17,10 +17,14 @@ 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; /** @@ -32,7 +36,7 @@ public class UserSecondaryEmailsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserSecondaryEmailsResult(UserSelectorArg user, List results) { + public UserSecondaryEmailsResult(@Nonnull UserSelectorArg user, @Nonnull List results) { if (user == null) { throw new IllegalArgumentException("Required value for 'user' is null"); } @@ -52,6 +56,7 @@ public UserSecondaryEmailsResult(UserSelectorArg user, List getResults() { return results; } 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 index 858fb9e5b..5f4459412 100644 --- 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 @@ -16,16 +16,24 @@ 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; /** @@ -45,7 +53,7 @@ public class GroupSummary { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupSummary(String groupName, String groupId, GroupManagementType groupManagementType, String groupExternalId, Long memberCount) { + 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"); } @@ -75,7 +83,7 @@ public GroupSummary(String groupName, String groupId, GroupManagementType groupM * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupSummary(String groupName, String groupId, GroupManagementType groupManagementType) { + public GroupSummary(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType) { this(groupName, groupId, groupManagementType, null, null); } @@ -83,6 +91,7 @@ public GroupSummary(String groupName, String groupId, GroupManagementType groupM * * @return value for this field, never {@code null}. */ + @Nonnull public String getGroupName() { return groupName; } @@ -91,6 +100,7 @@ public String getGroupName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getGroupId() { return groupId; } @@ -100,6 +110,7 @@ public String getGroupId() { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupManagementType getGroupManagementType() { return groupManagementType; } @@ -110,6 +121,7 @@ public GroupManagementType getGroupManagementType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getGroupExternalId() { return groupExternalId; } @@ -119,6 +131,7 @@ public String getGroupExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getMemberCount() { return memberCount; } 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 index 9cd1d7c96..511fa0556 100644 --- 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 @@ -18,13 +18,18 @@ 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; /** @@ -36,7 +41,7 @@ public class TimeRange { * @param startTime Optional starting time (inclusive). * @param endTime Optional ending time (exclusive). */ - public TimeRange(Date startTime, Date endTime) { + public TimeRange(@Nullable Date startTime, @Nullable Date endTime) { this.startTime = LangUtil.truncateMillis(startTime); this.endTime = LangUtil.truncateMillis(endTime); } @@ -55,6 +60,7 @@ public TimeRange() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getStartTime() { return startTime; } @@ -64,6 +70,7 @@ public Date getStartTime() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getEndTime() { return endTime; } 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 index 543256286..9527e44d1 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class AccountCaptureChangeAvailabilityDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureChangeAvailabilityDetails(AccountCaptureAvailability newValue, AccountCaptureAvailability previousValue) { + public AccountCaptureChangeAvailabilityDetails(@Nonnull AccountCaptureAvailability newValue, @Nullable AccountCaptureAvailability previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -55,7 +60,7 @@ public AccountCaptureChangeAvailabilityDetails(AccountCaptureAvailability newVal * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureChangeAvailabilityDetails(AccountCaptureAvailability newValue) { + public AccountCaptureChangeAvailabilityDetails(@Nonnull AccountCaptureAvailability newValue) { this(newValue, null); } @@ -64,6 +69,7 @@ public AccountCaptureChangeAvailabilityDetails(AccountCaptureAvailability newVal * * @return value for this field, never {@code null}. */ + @Nonnull public AccountCaptureAvailability getNewValue() { return newValue; } @@ -74,6 +80,7 @@ public AccountCaptureAvailability getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccountCaptureAvailability getPreviousValue() { return previousValue; } 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 index 05058eb9e..de35b6f54 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AccountCaptureChangeAvailabilityType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureChangeAvailabilityType(String description) { + public AccountCaptureChangeAvailabilityType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AccountCaptureChangeAvailabilityType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 17c3d62f9..9893b34a6 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class AccountCaptureChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureChangePolicyDetails(AccountCapturePolicy newValue, AccountCapturePolicy previousValue) { + public AccountCaptureChangePolicyDetails(@Nonnull AccountCapturePolicy newValue, @Nullable AccountCapturePolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public AccountCaptureChangePolicyDetails(AccountCapturePolicy newValue, AccountC * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureChangePolicyDetails(AccountCapturePolicy newValue) { + public AccountCaptureChangePolicyDetails(@Nonnull AccountCapturePolicy newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public AccountCaptureChangePolicyDetails(AccountCapturePolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public AccountCapturePolicy getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public AccountCapturePolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccountCapturePolicy getPreviousValue() { return previousValue; } 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 index dd31a0f0d..70acc2268 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AccountCaptureChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureChangePolicyType(String description) { + public AccountCaptureChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AccountCaptureChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index be8146574..19b59f483 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class AccountCaptureMigrateAccountDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureMigrateAccountDetails(String domainName) { + public AccountCaptureMigrateAccountDetails(@Nonnull String domainName) { if (domainName == null) { throw new IllegalArgumentException("Required value for 'domainName' is null"); } @@ -44,6 +47,7 @@ public AccountCaptureMigrateAccountDetails(String domainName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDomainName() { return domainName; } 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 index bfb6b7c4e..d4969a5d9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AccountCaptureMigrateAccountType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureMigrateAccountType(String description) { + public AccountCaptureMigrateAccountType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AccountCaptureMigrateAccountType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d49fe20a3..ddd4d6fb8 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class AccountCaptureNotificationEmailsSentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureNotificationEmailsSentDetails(String domainName, AccountCaptureNotificationType notificationType) { + public AccountCaptureNotificationEmailsSentDetails(@Nonnull String domainName, @Nullable AccountCaptureNotificationType notificationType) { if (domainName == null) { throw new IllegalArgumentException("Required value for 'domainName' is null"); } @@ -52,7 +57,7 @@ public AccountCaptureNotificationEmailsSentDetails(String domainName, AccountCap * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureNotificationEmailsSentDetails(String domainName) { + public AccountCaptureNotificationEmailsSentDetails(@Nonnull String domainName) { this(domainName, null); } @@ -61,6 +66,7 @@ public AccountCaptureNotificationEmailsSentDetails(String domainName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDomainName() { return domainName; } @@ -70,6 +76,7 @@ public String getDomainName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccountCaptureNotificationType getNotificationType() { return notificationType; } 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 index 620b60a9b..cf4f4b8ef 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AccountCaptureNotificationEmailsSentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureNotificationEmailsSentType(String description) { + public AccountCaptureNotificationEmailsSentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AccountCaptureNotificationEmailsSentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e23d275bd..5d0750d5a 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class AccountCaptureRelinquishAccountDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureRelinquishAccountDetails(String domainName) { + public AccountCaptureRelinquishAccountDetails(@Nonnull String domainName) { if (domainName == null) { throw new IllegalArgumentException("Required value for 'domainName' is null"); } @@ -44,6 +47,7 @@ public AccountCaptureRelinquishAccountDetails(String domainName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDomainName() { return domainName; } 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 index 08e4caf29..5728c21a9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AccountCaptureRelinquishAccountType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountCaptureRelinquishAccountType(String description) { + public AccountCaptureRelinquishAccountType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AccountCaptureRelinquishAccountType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4793a7225..324e373c3 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class AccountLockOrUnlockedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountLockOrUnlockedDetails(AccountState previousValue, AccountState newValue) { + public AccountLockOrUnlockedDetails(@Nonnull AccountState previousValue, @Nonnull AccountState newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public AccountLockOrUnlockedDetails(AccountState previousValue, AccountState new * * @return value for this field, never {@code null}. */ + @Nonnull public AccountState getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public AccountState getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public AccountState getNewValue() { return newValue; } 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 index 384167577..22e79f13c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AccountLockOrUnlockedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AccountLockOrUnlockedType(String description) { + public AccountLockOrUnlockedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AccountLockOrUnlockedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c083f801d..b01154f18 100644 --- 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 @@ -16,16 +16,24 @@ 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; /** @@ -40,7 +48,7 @@ public class AdminAlertingAlertConfiguration { * @param text Text. * @param excludedFileExtensions Excluded file extensions. */ - public AdminAlertingAlertConfiguration(AdminAlertingAlertStatePolicy alertState, AdminAlertingAlertSensitivity sensitivityLevel, RecipientsConfiguration recipientsSettings, String text, String excludedFileExtensions) { + 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; @@ -62,6 +70,7 @@ public AdminAlertingAlertConfiguration() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AdminAlertingAlertStatePolicy getAlertState() { return alertState; } @@ -71,6 +80,7 @@ public AdminAlertingAlertStatePolicy getAlertState() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AdminAlertingAlertSensitivity getSensitivityLevel() { return sensitivityLevel; } @@ -80,6 +90,7 @@ public AdminAlertingAlertSensitivity getSensitivityLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public RecipientsConfiguration getRecipientsSettings() { return recipientsSettings; } @@ -89,6 +100,7 @@ public RecipientsConfiguration getRecipientsSettings() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getText() { return text; } @@ -98,6 +110,7 @@ public String getText() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getExcludedFileExtensions() { return excludedFileExtensions; } 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 index de72e95e8..40fbe20e7 100644 --- 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 @@ -16,17 +16,25 @@ 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; /** @@ -43,7 +51,7 @@ public class AdminAlertingAlertStateChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AdminAlertingAlertStateChangedDetails(String alertName, AdminAlertSeverityEnum alertSeverity, AdminAlertCategoryEnum alertCategory, String alertInstanceId, AdminAlertGeneralStateEnum previousValue, AdminAlertGeneralStateEnum newValue) { + 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"); } @@ -75,6 +83,7 @@ public AdminAlertingAlertStateChangedDetails(String alertName, AdminAlertSeverit * * @return value for this field, never {@code null}. */ + @Nonnull public String getAlertName() { return alertName; } @@ -84,6 +93,7 @@ public String getAlertName() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminAlertSeverityEnum getAlertSeverity() { return alertSeverity; } @@ -93,6 +103,7 @@ public AdminAlertSeverityEnum getAlertSeverity() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminAlertCategoryEnum getAlertCategory() { return alertCategory; } @@ -102,6 +113,7 @@ public AdminAlertCategoryEnum getAlertCategory() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAlertInstanceId() { return alertInstanceId; } @@ -111,6 +123,7 @@ public String getAlertInstanceId() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminAlertGeneralStateEnum getPreviousValue() { return previousValue; } @@ -120,6 +133,7 @@ public AdminAlertGeneralStateEnum getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminAlertGeneralStateEnum getNewValue() { return newValue; } 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 index 0751bcf30..5e798a2a2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AdminAlertingAlertStateChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AdminAlertingAlertStateChangedType(String description) { + public AdminAlertingAlertStateChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AdminAlertingAlertStateChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 872172290..4458a91f1 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -37,7 +42,7 @@ public class AdminAlertingChangedAlertConfigDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AdminAlertingChangedAlertConfigDetails(String alertName, AdminAlertingAlertConfiguration previousAlertConfig, AdminAlertingAlertConfiguration newAlertConfig) { + public AdminAlertingChangedAlertConfigDetails(@Nonnull String alertName, @Nonnull AdminAlertingAlertConfiguration previousAlertConfig, @Nonnull AdminAlertingAlertConfiguration newAlertConfig) { if (alertName == null) { throw new IllegalArgumentException("Required value for 'alertName' is null"); } @@ -57,6 +62,7 @@ public AdminAlertingChangedAlertConfigDetails(String alertName, AdminAlertingAle * * @return value for this field, never {@code null}. */ + @Nonnull public String getAlertName() { return alertName; } @@ -66,6 +72,7 @@ public String getAlertName() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminAlertingAlertConfiguration getPreviousAlertConfig() { return previousAlertConfig; } @@ -75,6 +82,7 @@ public AdminAlertingAlertConfiguration getPreviousAlertConfig() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminAlertingAlertConfiguration getNewAlertConfig() { return newAlertConfig; } 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 index 870cd4740..9e5621224 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AdminAlertingChangedAlertConfigType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AdminAlertingChangedAlertConfigType(String description) { + public AdminAlertingChangedAlertConfigType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AdminAlertingChangedAlertConfigType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 403a93c97..9727a4b80 100644 --- 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 @@ -16,15 +16,21 @@ 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; /** @@ -38,7 +44,7 @@ public class AdminAlertingTriggeredAlertDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AdminAlertingTriggeredAlertDetails(String alertName, AdminAlertSeverityEnum alertSeverity, AdminAlertCategoryEnum alertCategory, String alertInstanceId) { + 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"); } @@ -62,6 +68,7 @@ public AdminAlertingTriggeredAlertDetails(String alertName, AdminAlertSeverityEn * * @return value for this field, never {@code null}. */ + @Nonnull public String getAlertName() { return alertName; } @@ -71,6 +78,7 @@ public String getAlertName() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminAlertSeverityEnum getAlertSeverity() { return alertSeverity; } @@ -80,6 +88,7 @@ public AdminAlertSeverityEnum getAlertSeverity() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminAlertCategoryEnum getAlertCategory() { return alertCategory; } @@ -89,6 +98,7 @@ public AdminAlertCategoryEnum getAlertCategory() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAlertInstanceId() { return alertInstanceId; } 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 index 486a4c7a4..3cb268a30 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AdminAlertingTriggeredAlertType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AdminAlertingTriggeredAlertType(String description) { + public AdminAlertingTriggeredAlertType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AdminAlertingTriggeredAlertType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5d4d3e7ee..33137eba6 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class AdminEmailRemindersChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AdminEmailRemindersChangedDetails(AdminEmailRemindersPolicy newValue, AdminEmailRemindersPolicy previousValue) { + public AdminEmailRemindersChangedDetails(@Nonnull AdminEmailRemindersPolicy newValue, @Nonnull AdminEmailRemindersPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -50,6 +54,7 @@ public AdminEmailRemindersChangedDetails(AdminEmailRemindersPolicy newValue, Adm * * @return value for this field, never {@code null}. */ + @Nonnull public AdminEmailRemindersPolicy getNewValue() { return newValue; } @@ -59,6 +64,7 @@ public AdminEmailRemindersPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminEmailRemindersPolicy getPreviousValue() { return previousValue; } 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 index 444b71934..8bb6f470d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AdminEmailRemindersChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AdminEmailRemindersChangedType(String description) { + public AdminEmailRemindersChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AdminEmailRemindersChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e9e72d1d1..c7b193bb2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AllowDownloadDisabledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AllowDownloadDisabledType(String description) { + public AllowDownloadDisabledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AllowDownloadDisabledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 366a5cec0..00da0c3b6 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AllowDownloadEnabledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AllowDownloadEnabledType(String description) { + public AllowDownloadEnabledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AllowDownloadEnabledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e03ef401c..a3b599eca 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ApiSessionLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ApiSessionLogInfo(String requestId) { + public ApiSessionLogInfo(@Nonnull String requestId) { if (requestId == null) { throw new IllegalArgumentException("Required value for 'requestId' is null"); } @@ -44,6 +47,7 @@ public ApiSessionLogInfo(String requestId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getRequestId() { return requestId; } 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 index ca4306b66..5488b8e11 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class AppBlockedByPermissionsDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppBlockedByPermissionsDetails(AppLogInfo appInfo) { + public AppBlockedByPermissionsDetails(@Nonnull AppLogInfo appInfo) { if (appInfo == null) { throw new IllegalArgumentException("Required value for 'appInfo' is null"); } @@ -44,6 +47,7 @@ public AppBlockedByPermissionsDetails(AppLogInfo appInfo) { * * @return value for this field, never {@code null}. */ + @Nonnull public AppLogInfo getAppInfo() { return appInfo; } 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 index 57a8debb0..e7501951b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AppBlockedByPermissionsType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppBlockedByPermissionsType(String description) { + public AppBlockedByPermissionsType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AppBlockedByPermissionsType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 39f0d533e..d72cc00fe 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class AppLinkTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppLinkTeamDetails(AppLogInfo appInfo) { + public AppLinkTeamDetails(@Nonnull AppLogInfo appInfo) { if (appInfo == null) { throw new IllegalArgumentException("Required value for 'appInfo' is null"); } @@ -44,6 +47,7 @@ public AppLinkTeamDetails(AppLogInfo appInfo) { * * @return value for this field, never {@code null}. */ + @Nonnull public AppLogInfo getAppInfo() { return appInfo; } 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 index 0c3df311b..9fd9d38ff 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AppLinkTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppLinkTeamType(String description) { + public AppLinkTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AppLinkTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index cb60bbdaf..59efe9f01 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class AppLinkUserDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppLinkUserDetails(AppLogInfo appInfo) { + public AppLinkUserDetails(@Nonnull AppLogInfo appInfo) { if (appInfo == null) { throw new IllegalArgumentException("Required value for 'appInfo' is null"); } @@ -44,6 +47,7 @@ public AppLinkUserDetails(AppLogInfo appInfo) { * * @return value for this field, never {@code null}. */ + @Nonnull public AppLogInfo getAppInfo() { return appInfo; } 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 index 24f262dcb..1ab6824d4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AppLinkUserType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppLinkUserType(String description) { + public AppLinkUserType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AppLinkUserType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e20b79252..fbc85f7fe 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class AppLogInfo { * @param appId App unique ID. * @param displayName App display name. */ - public AppLogInfo(String appId, String displayName) { + public AppLogInfo(@Nullable String appId, @Nullable String displayName) { this.appId = appId; this.displayName = displayName; } @@ -53,6 +58,7 @@ public AppLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAppId() { return appId; } @@ -62,6 +68,7 @@ public String getAppId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } 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 index 8fed6af0b..04ef4b5ef 100644 --- 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 @@ -16,15 +16,22 @@ 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; /** @@ -41,7 +48,7 @@ public class AppPermissionsChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppPermissionsChangedDetails(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue, String appName, AdminConsoleAppPermission permission) { + public AppPermissionsChangedDetails(@Nonnull AdminConsoleAppPolicy previousValue, @Nonnull AdminConsoleAppPolicy newValue, @Nullable String appName, @Nullable AdminConsoleAppPermission permission) { this.appName = appName; this.permission = permission; if (previousValue == null) { @@ -65,7 +72,7 @@ public AppPermissionsChangedDetails(AdminConsoleAppPolicy previousValue, AdminCo * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppPermissionsChangedDetails(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue) { + public AppPermissionsChangedDetails(@Nonnull AdminConsoleAppPolicy previousValue, @Nonnull AdminConsoleAppPolicy newValue) { this(previousValue, newValue, null, null); } @@ -74,6 +81,7 @@ public AppPermissionsChangedDetails(AdminConsoleAppPolicy previousValue, AdminCo * * @return value for this field, never {@code null}. */ + @Nonnull public AdminConsoleAppPolicy getPreviousValue() { return previousValue; } @@ -83,6 +91,7 @@ public AdminConsoleAppPolicy getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public AdminConsoleAppPolicy getNewValue() { return newValue; } @@ -92,6 +101,7 @@ public AdminConsoleAppPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAppName() { return appName; } @@ -101,6 +111,7 @@ public String getAppName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AdminConsoleAppPermission getPermission() { return permission; } 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 index bc024af4c..a22bc203f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AppPermissionsChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppPermissionsChangedType(String description) { + public AppPermissionsChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AppPermissionsChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 7b9d8f483..0b327bb73 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class AppUnlinkTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppUnlinkTeamDetails(AppLogInfo appInfo) { + public AppUnlinkTeamDetails(@Nonnull AppLogInfo appInfo) { if (appInfo == null) { throw new IllegalArgumentException("Required value for 'appInfo' is null"); } @@ -44,6 +47,7 @@ public AppUnlinkTeamDetails(AppLogInfo appInfo) { * * @return value for this field, never {@code null}. */ + @Nonnull public AppLogInfo getAppInfo() { return appInfo; } 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 index 2156127c2..2a9d6fb3a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AppUnlinkTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppUnlinkTeamType(String description) { + public AppUnlinkTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AppUnlinkTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 991b90119..77c7ed0e3 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class AppUnlinkUserDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppUnlinkUserDetails(AppLogInfo appInfo) { + public AppUnlinkUserDetails(@Nonnull AppLogInfo appInfo) { if (appInfo == null) { throw new IllegalArgumentException("Required value for 'appInfo' is null"); } @@ -44,6 +47,7 @@ public AppUnlinkUserDetails(AppLogInfo appInfo) { * * @return value for this field, never {@code null}. */ + @Nonnull public AppLogInfo getAppInfo() { return appInfo; } 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 index e75f3885b..dad27be4a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class AppUnlinkUserType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public AppUnlinkUserType(String description) { + public AppUnlinkUserType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public AppUnlinkUserType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ab988e0f1..7d56ed392 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ApplyNamingConventionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ApplyNamingConventionType(String description) { + public ApplyNamingConventionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ApplyNamingConventionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c0c02ce83..edc7109af 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class BackupAdminInvitationSentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BackupAdminInvitationSentType(String description) { + public BackupAdminInvitationSentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public BackupAdminInvitationSentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f204e8b16..22fc6318d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class BackupInvitationOpenedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BackupInvitationOpenedType(String description) { + public BackupInvitationOpenedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public BackupInvitationOpenedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c5bd56d36..7e22dcb16 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -37,7 +42,7 @@ public class BinderAddPageDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderAddPageDetails(String eventUuid, String docTitle, String binderItemName) { + public BinderAddPageDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -57,6 +62,7 @@ public BinderAddPageDetails(String eventUuid, String docTitle, String binderItem * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -66,6 +72,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocTitle() { return docTitle; } @@ -75,6 +82,7 @@ public String getDocTitle() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBinderItemName() { return binderItemName; } 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 index b2f701275..f2187dec4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class BinderAddPageType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderAddPageType(String description) { + public BinderAddPageType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public BinderAddPageType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b4e835090..8539a1378 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -37,7 +42,7 @@ public class BinderAddSectionDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderAddSectionDetails(String eventUuid, String docTitle, String binderItemName) { + public BinderAddSectionDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -57,6 +62,7 @@ public BinderAddSectionDetails(String eventUuid, String docTitle, String binderI * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -66,6 +72,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocTitle() { return docTitle; } @@ -75,6 +82,7 @@ public String getDocTitle() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBinderItemName() { return binderItemName; } 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 index d745189c3..28c1bbe9e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class BinderAddSectionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderAddSectionType(String description) { + public BinderAddSectionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public BinderAddSectionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6b35b5230..13fbe7e35 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -37,7 +42,7 @@ public class BinderRemovePageDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderRemovePageDetails(String eventUuid, String docTitle, String binderItemName) { + public BinderRemovePageDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -57,6 +62,7 @@ public BinderRemovePageDetails(String eventUuid, String docTitle, String binderI * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -66,6 +72,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocTitle() { return docTitle; } @@ -75,6 +82,7 @@ public String getDocTitle() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBinderItemName() { return binderItemName; } 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 index d5da52d0e..9370fb3f0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class BinderRemovePageType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderRemovePageType(String description) { + public BinderRemovePageType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public BinderRemovePageType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 9e86b6daa..cb1b8198a 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -37,7 +42,7 @@ public class BinderRemoveSectionDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderRemoveSectionDetails(String eventUuid, String docTitle, String binderItemName) { + public BinderRemoveSectionDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -57,6 +62,7 @@ public BinderRemoveSectionDetails(String eventUuid, String docTitle, String bind * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -66,6 +72,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocTitle() { return docTitle; } @@ -75,6 +82,7 @@ public String getDocTitle() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBinderItemName() { return binderItemName; } 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 index 964deeefc..202208559 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class BinderRemoveSectionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderRemoveSectionType(String description) { + public BinderRemoveSectionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public BinderRemoveSectionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index af4b8b691..4ee668441 100644 --- 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 @@ -16,15 +16,22 @@ 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; /** @@ -39,7 +46,7 @@ public class BinderRenamePageDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderRenamePageDetails(String eventUuid, String docTitle, String binderItemName, String previousBinderItemName) { + 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"); } @@ -68,7 +75,7 @@ public BinderRenamePageDetails(String eventUuid, String docTitle, String binderI * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderRenamePageDetails(String eventUuid, String docTitle, String binderItemName) { + public BinderRenamePageDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { this(eventUuid, docTitle, binderItemName, null); } @@ -77,6 +84,7 @@ public BinderRenamePageDetails(String eventUuid, String docTitle, String binderI * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -86,6 +94,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocTitle() { return docTitle; } @@ -95,6 +104,7 @@ public String getDocTitle() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBinderItemName() { return binderItemName; } @@ -104,6 +114,7 @@ public String getBinderItemName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousBinderItemName() { return previousBinderItemName; } 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 index 924cecbf7..d0b202c4e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class BinderRenamePageType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderRenamePageType(String description) { + public BinderRenamePageType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public BinderRenamePageType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e3d111558..2bd3d8a5a 100644 --- 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 @@ -16,15 +16,22 @@ 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; /** @@ -39,7 +46,7 @@ public class BinderRenameSectionDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderRenameSectionDetails(String eventUuid, String docTitle, String binderItemName, String previousBinderItemName) { + 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"); } @@ -68,7 +75,7 @@ public BinderRenameSectionDetails(String eventUuid, String docTitle, String bind * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderRenameSectionDetails(String eventUuid, String docTitle, String binderItemName) { + public BinderRenameSectionDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { this(eventUuid, docTitle, binderItemName, null); } @@ -77,6 +84,7 @@ public BinderRenameSectionDetails(String eventUuid, String docTitle, String bind * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -86,6 +94,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocTitle() { return docTitle; } @@ -95,6 +104,7 @@ public String getDocTitle() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBinderItemName() { return binderItemName; } @@ -104,6 +114,7 @@ public String getBinderItemName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousBinderItemName() { return previousBinderItemName; } 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 index 4b3df1756..2e95c48f3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class BinderRenameSectionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderRenameSectionType(String description) { + public BinderRenameSectionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public BinderRenameSectionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 050f5752a..932db1052 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -37,7 +42,7 @@ public class BinderReorderPageDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderReorderPageDetails(String eventUuid, String docTitle, String binderItemName) { + public BinderReorderPageDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -57,6 +62,7 @@ public BinderReorderPageDetails(String eventUuid, String docTitle, String binder * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -66,6 +72,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocTitle() { return docTitle; } @@ -75,6 +82,7 @@ public String getDocTitle() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBinderItemName() { return binderItemName; } 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 index b34c13cbc..045134733 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class BinderReorderPageType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderReorderPageType(String description) { + public BinderReorderPageType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public BinderReorderPageType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index defd325fa..05dceb097 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -37,7 +42,7 @@ public class BinderReorderSectionDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderReorderSectionDetails(String eventUuid, String docTitle, String binderItemName) { + public BinderReorderSectionDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -57,6 +62,7 @@ public BinderReorderSectionDetails(String eventUuid, String docTitle, String bin * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -66,6 +72,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocTitle() { return docTitle; } @@ -75,6 +82,7 @@ public String getDocTitle() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBinderItemName() { return binderItemName; } 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 index d016870fc..0a45c949e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class BinderReorderSectionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BinderReorderSectionType(String description) { + public BinderReorderSectionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public BinderReorderSectionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1d3d51079..0a98fc709 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class CameraUploadsPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CameraUploadsPolicyChangedDetails(CameraUploadsPolicy newValue, CameraUploadsPolicy previousValue) { + public CameraUploadsPolicyChangedDetails(@Nonnull CameraUploadsPolicy newValue, @Nonnull CameraUploadsPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public CameraUploadsPolicyChangedDetails(CameraUploadsPolicy newValue, CameraUpl * * @return value for this field, never {@code null}. */ + @Nonnull public CameraUploadsPolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public CameraUploadsPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public CameraUploadsPolicy getPreviousValue() { return previousValue; } 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 index 9b4d21f5c..b193cef20 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class CameraUploadsPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CameraUploadsPolicyChangedType(String description) { + public CameraUploadsPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public CameraUploadsPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 725f7b321..3b209c7db 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class CaptureTranscriptPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CaptureTranscriptPolicyChangedDetails(CaptureTranscriptPolicy newValue, CaptureTranscriptPolicy previousValue) { + public CaptureTranscriptPolicyChangedDetails(@Nonnull CaptureTranscriptPolicy newValue, @Nonnull CaptureTranscriptPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -50,6 +54,7 @@ public CaptureTranscriptPolicyChangedDetails(CaptureTranscriptPolicy newValue, C * * @return value for this field, never {@code null}. */ + @Nonnull public CaptureTranscriptPolicy getNewValue() { return newValue; } @@ -59,6 +64,7 @@ public CaptureTranscriptPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public CaptureTranscriptPolicy getPreviousValue() { return previousValue; } 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 index 8fc76ffd2..46576f487 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class CaptureTranscriptPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CaptureTranscriptPolicyChangedType(String description) { + public CaptureTranscriptPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public CaptureTranscriptPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 9f4dc64fe..cb409402b 100644 --- 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 @@ -16,18 +16,28 @@ 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; /** @@ -46,7 +56,7 @@ public class Certificate { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Certificate(String subject, String issuer, String issueDate, String expirationDate, String serialNumber, String sha1Fingerprint, String commonName) { + 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"); } @@ -91,7 +101,7 @@ public Certificate(String subject, String issuer, String issueDate, String expir * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Certificate(String subject, String issuer, String issueDate, String expirationDate, String serialNumber, String sha1Fingerprint) { + 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); } @@ -100,6 +110,7 @@ public Certificate(String subject, String issuer, String issueDate, String expir * * @return value for this field, never {@code null}. */ + @Nonnull public String getSubject() { return subject; } @@ -109,6 +120,7 @@ public String getSubject() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getIssuer() { return issuer; } @@ -118,6 +130,7 @@ public String getIssuer() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getIssueDate() { return issueDate; } @@ -127,6 +140,7 @@ public String getIssueDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getExpirationDate() { return expirationDate; } @@ -136,6 +150,7 @@ public String getExpirationDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSerialNumber() { return serialNumber; } @@ -145,6 +160,7 @@ public String getSerialNumber() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSha1Fingerprint() { return sha1Fingerprint; } @@ -154,6 +170,7 @@ public String getSha1Fingerprint() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommonName() { return commonName; } 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 index a0f0f9dc3..29d65dcc1 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -39,7 +44,7 @@ public class ChangedEnterpriseAdminRoleDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ChangedEnterpriseAdminRoleDetails(FedAdminRole previousValue, FedAdminRole newValue, String teamName) { + public ChangedEnterpriseAdminRoleDetails(@Nonnull FedAdminRole previousValue, @Nonnull FedAdminRole newValue, @Nonnull String teamName) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -59,6 +64,7 @@ public ChangedEnterpriseAdminRoleDetails(FedAdminRole previousValue, FedAdminRol * * @return value for this field, never {@code null}. */ + @Nonnull public FedAdminRole getPreviousValue() { return previousValue; } @@ -68,6 +74,7 @@ public FedAdminRole getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public FedAdminRole getNewValue() { return newValue; } @@ -77,6 +84,7 @@ public FedAdminRole getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamName() { return teamName; } 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 index eb0b01c80..f46eeb503 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ChangedEnterpriseAdminRoleType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ChangedEnterpriseAdminRoleType(String description) { + public ChangedEnterpriseAdminRoleType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ChangedEnterpriseAdminRoleType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b1f5a3401..641756809 100644 --- 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 @@ -16,15 +16,21 @@ 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; /** @@ -40,7 +46,7 @@ public class ChangedEnterpriseConnectedTeamStatusDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ChangedEnterpriseConnectedTeamStatusDetails(FedHandshakeAction action, FederationStatusChangeAdditionalInfo additionalInfo, TrustedTeamsRequestState previousValue, TrustedTeamsRequestState newValue) { + 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"); } @@ -64,6 +70,7 @@ public ChangedEnterpriseConnectedTeamStatusDetails(FedHandshakeAction action, Fe * * @return value for this field, never {@code null}. */ + @Nonnull public FedHandshakeAction getAction() { return action; } @@ -73,6 +80,7 @@ public FedHandshakeAction getAction() { * * @return value for this field, never {@code null}. */ + @Nonnull public FederationStatusChangeAdditionalInfo getAdditionalInfo() { return additionalInfo; } @@ -82,6 +90,7 @@ public FederationStatusChangeAdditionalInfo getAdditionalInfo() { * * @return value for this field, never {@code null}. */ + @Nonnull public TrustedTeamsRequestState getPreviousValue() { return previousValue; } @@ -91,6 +100,7 @@ public TrustedTeamsRequestState getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public TrustedTeamsRequestState getNewValue() { return newValue; } 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 index 1ec8489fa..4d5d097c6 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ChangedEnterpriseConnectedTeamStatusType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ChangedEnterpriseConnectedTeamStatusType(String description) { + public ChangedEnterpriseConnectedTeamStatusType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ChangedEnterpriseConnectedTeamStatusType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c7e7e865e..f3b18c6c6 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -37,7 +42,7 @@ public class ClassificationChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ClassificationChangePolicyDetails(ClassificationPolicyEnumWrapper previousValue, ClassificationPolicyEnumWrapper newValue, ClassificationType classificationType) { + public ClassificationChangePolicyDetails(@Nonnull ClassificationPolicyEnumWrapper previousValue, @Nonnull ClassificationPolicyEnumWrapper newValue, @Nonnull ClassificationType classificationType) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -57,6 +62,7 @@ public ClassificationChangePolicyDetails(ClassificationPolicyEnumWrapper previou * * @return value for this field, never {@code null}. */ + @Nonnull public ClassificationPolicyEnumWrapper getPreviousValue() { return previousValue; } @@ -66,6 +72,7 @@ public ClassificationPolicyEnumWrapper getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public ClassificationPolicyEnumWrapper getNewValue() { return newValue; } @@ -75,6 +82,7 @@ public ClassificationPolicyEnumWrapper getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public ClassificationType getClassificationType() { return classificationType; } 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 index f848fb7ed..15311d0f7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ClassificationChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ClassificationChangePolicyType(String description) { + public ClassificationChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ClassificationChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 41dd5a604..fed353e04 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -33,7 +36,7 @@ public class ClassificationCreateReportFailDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ClassificationCreateReportFailDetails(TeamReportFailureReason failureReason) { + public ClassificationCreateReportFailDetails(@Nonnull TeamReportFailureReason failureReason) { if (failureReason == null) { throw new IllegalArgumentException("Required value for 'failureReason' is null"); } @@ -45,6 +48,7 @@ public ClassificationCreateReportFailDetails(TeamReportFailureReason failureReas * * @return value for this field, never {@code null}. */ + @Nonnull public TeamReportFailureReason getFailureReason() { return failureReason; } 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 index 1e1b7cb81..83d611580 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ClassificationCreateReportFailType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ClassificationCreateReportFailType(String description) { + public ClassificationCreateReportFailType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ClassificationCreateReportFailType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2280d3380..d0727c66b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ClassificationCreateReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ClassificationCreateReportType(String description) { + public ClassificationCreateReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ClassificationCreateReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e097efc24..56f3f13e5 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class CollectionShareDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CollectionShareDetails(String albumName) { + public CollectionShareDetails(@Nonnull String albumName) { if (albumName == null) { throw new IllegalArgumentException("Required value for 'albumName' is null"); } @@ -44,6 +47,7 @@ public CollectionShareDetails(String albumName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAlbumName() { return albumName; } 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 index 2fa079087..b14a07c2b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class CollectionShareType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CollectionShareType(String description) { + public CollectionShareType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public CollectionShareType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 59d552995..1ffcb9c1c 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class ComputerBackupPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ComputerBackupPolicyChangedDetails(ComputerBackupPolicy newValue, ComputerBackupPolicy previousValue) { + public ComputerBackupPolicyChangedDetails(@Nonnull ComputerBackupPolicy newValue, @Nonnull ComputerBackupPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public ComputerBackupPolicyChangedDetails(ComputerBackupPolicy newValue, Compute * * @return value for this field, never {@code null}. */ + @Nonnull public ComputerBackupPolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public ComputerBackupPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public ComputerBackupPolicy getPreviousValue() { return previousValue; } 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 index 966453573..3f14dc789 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ComputerBackupPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ComputerBackupPolicyChangedType(String description) { + public ComputerBackupPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ComputerBackupPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b68e92b42..93921ed60 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ConnectedTeamName { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ConnectedTeamName(String team) { + public ConnectedTeamName(@Nonnull String team) { if (team == null) { throw new IllegalArgumentException("Required value for 'team' is null"); } @@ -44,6 +47,7 @@ public ConnectedTeamName(String team) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeam() { return team; } 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 index 094e80be9..55df1ed89 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class ContentAdministrationPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ContentAdministrationPolicyChangedDetails(String newValue, String previousValue) { + public ContentAdministrationPolicyChangedDetails(@Nonnull String newValue, @Nonnull String previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -52,6 +56,7 @@ public ContentAdministrationPolicyChangedDetails(String newValue, String previou * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } @@ -61,6 +66,7 @@ public String getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } 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 index 9fc0c4eda..564efacee 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ContentAdministrationPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ContentAdministrationPolicyChangedType(String description) { + public ContentAdministrationPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ContentAdministrationPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6046c2450..fe2a49da4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class CreateFolderType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateFolderType(String description) { + public CreateFolderType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public CreateFolderType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8e1fc2d9f..5a5bccf1f 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class CreateTeamInviteLinkDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateTeamInviteLinkDetails(String linkUrl, String expiryDate) { + public CreateTeamInviteLinkDetails(@Nonnull String linkUrl, @Nonnull String expiryDate) { if (linkUrl == null) { throw new IllegalArgumentException("Required value for 'linkUrl' is null"); } @@ -52,6 +56,7 @@ public CreateTeamInviteLinkDetails(String linkUrl, String expiryDate) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLinkUrl() { return linkUrl; } @@ -61,6 +66,7 @@ public String getLinkUrl() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getExpiryDate() { return expiryDate; } 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 index ebc846246..38859c6aa 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class CreateTeamInviteLinkType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public CreateTeamInviteLinkType(String description) { + public CreateTeamInviteLinkType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public CreateTeamInviteLinkType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8753ff794..6b0dbd17b 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class DataPlacementRestrictionChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DataPlacementRestrictionChangePolicyDetails(PlacementRestriction previousValue, PlacementRestriction newValue) { + public DataPlacementRestrictionChangePolicyDetails(@Nonnull PlacementRestriction previousValue, @Nonnull PlacementRestriction newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public DataPlacementRestrictionChangePolicyDetails(PlacementRestriction previous * * @return value for this field, never {@code null}. */ + @Nonnull public PlacementRestriction getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public PlacementRestriction getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public PlacementRestriction getNewValue() { return newValue; } 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 index f58efb6d7..0836bd5df 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DataPlacementRestrictionChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DataPlacementRestrictionChangePolicyType(String description) { + public DataPlacementRestrictionChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DataPlacementRestrictionChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e8a012e51..8c20be06a 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class DataPlacementRestrictionSatisfyPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DataPlacementRestrictionSatisfyPolicyDetails(PlacementRestriction placementRestriction) { + public DataPlacementRestrictionSatisfyPolicyDetails(@Nonnull PlacementRestriction placementRestriction) { if (placementRestriction == null) { throw new IllegalArgumentException("Required value for 'placementRestriction' is null"); } @@ -45,6 +48,7 @@ public DataPlacementRestrictionSatisfyPolicyDetails(PlacementRestriction placeme * * @return value for this field, never {@code null}. */ + @Nonnull public PlacementRestriction getPlacementRestriction() { return placementRestriction; } 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 index 82eb1367d..06db56891 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DataPlacementRestrictionSatisfyPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DataPlacementRestrictionSatisfyPolicyType(String description) { + public DataPlacementRestrictionSatisfyPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DataPlacementRestrictionSatisfyPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 061a81482..0ed1e12c1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DataResidencyMigrationRequestSuccessfulType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DataResidencyMigrationRequestSuccessfulType(String description) { + public DataResidencyMigrationRequestSuccessfulType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DataResidencyMigrationRequestSuccessfulType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f34656070..747016dec 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DataResidencyMigrationRequestUnsuccessfulType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DataResidencyMigrationRequestUnsuccessfulType(String description) { + public DataResidencyMigrationRequestUnsuccessfulType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DataResidencyMigrationRequestUnsuccessfulType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 085a83472..0bf3ed0ae 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class DeleteTeamInviteLinkDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteTeamInviteLinkDetails(String linkUrl) { + public DeleteTeamInviteLinkDetails(@Nonnull String linkUrl) { if (linkUrl == null) { throw new IllegalArgumentException("Required value for 'linkUrl' is null"); } @@ -45,6 +48,7 @@ public DeleteTeamInviteLinkDetails(String linkUrl) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLinkUrl() { return linkUrl; } 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 index 2f9678981..9c635a8dc 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeleteTeamInviteLinkType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeleteTeamInviteLinkType(String description) { + public DeleteTeamInviteLinkType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeleteTeamInviteLinkType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 726900260..92e239d54 100644 --- 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 @@ -19,16 +19,24 @@ 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; @@ -54,7 +62,7 @@ public class DesktopDeviceSessionLogInfo extends DeviceSessionLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DesktopDeviceSessionLogInfo(String hostName, DesktopPlatform clientType, String platform, boolean isDeleteOnUnlinkSupported, String ipAddress, Date created, Date updated, DesktopSessionLogInfo sessionInfo, String clientVersion) { + 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) { @@ -89,7 +97,7 @@ public DesktopDeviceSessionLogInfo(String hostName, DesktopPlatform clientType, * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DesktopDeviceSessionLogInfo(String hostName, DesktopPlatform clientType, String platform, boolean isDeleteOnUnlinkSupported) { + public DesktopDeviceSessionLogInfo(@Nonnull String hostName, @Nonnull DesktopPlatform clientType, @Nonnull String platform, boolean isDeleteOnUnlinkSupported) { this(hostName, clientType, platform, isDeleteOnUnlinkSupported, null, null, null, null, null); } @@ -98,6 +106,7 @@ public DesktopDeviceSessionLogInfo(String hostName, DesktopPlatform clientType, * * @return value for this field, never {@code null}. */ + @Nonnull public String getHostName() { return hostName; } @@ -107,6 +116,7 @@ public String getHostName() { * * @return value for this field, never {@code null}. */ + @Nonnull public DesktopPlatform getClientType() { return clientType; } @@ -116,6 +126,7 @@ public DesktopPlatform getClientType() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPlatform() { return platform; } @@ -135,6 +146,7 @@ public boolean getIsDeleteOnUnlinkSupported() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getIpAddress() { return ipAddress; } @@ -144,6 +156,7 @@ public String getIpAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getCreated() { return created; } @@ -153,6 +166,7 @@ public Date getCreated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getUpdated() { return updated; } @@ -162,6 +176,7 @@ public Date getUpdated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DesktopSessionLogInfo getSessionInfo() { return sessionInfo; } @@ -171,6 +186,7 @@ public DesktopSessionLogInfo getSessionInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getClientVersion() { return clientVersion; } 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 index e7440dd50..7451950c7 100644 --- 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 @@ -15,6 +15,9 @@ import java.io.IOException; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Desktop session. */ @@ -27,7 +30,7 @@ public class DesktopSessionLogInfo extends SessionLogInfo { * * @param sessionId Session ID. */ - public DesktopSessionLogInfo(String sessionId) { + public DesktopSessionLogInfo(@Nullable String sessionId) { super(sessionId); } @@ -45,6 +48,7 @@ public DesktopSessionLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSessionId() { return sessionId; } 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 index 1fa650229..7dc6d90d7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceApprovalsAddExceptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceApprovalsAddExceptionType(String description) { + public DeviceApprovalsAddExceptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceApprovalsAddExceptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b614fccf1..ef4238305 100644 --- 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 @@ -16,6 +16,9 @@ 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. @@ -23,7 +26,9 @@ public class DeviceApprovalsChangeDesktopPolicyDetails { // struct team_log.DeviceApprovalsChangeDesktopPolicyDetails (team_log_generated.stone) + @Nullable protected final DeviceApprovalsPolicy newValue; + @Nullable protected final DeviceApprovalsPolicy previousValue; /** @@ -38,7 +43,7 @@ public class DeviceApprovalsChangeDesktopPolicyDetails { * @param previousValue Previous desktop device approvals policy. Might be * missing due to historical data gap. */ - public DeviceApprovalsChangeDesktopPolicyDetails(DeviceApprovalsPolicy newValue, DeviceApprovalsPolicy previousValue) { + public DeviceApprovalsChangeDesktopPolicyDetails(@Nullable DeviceApprovalsPolicy newValue, @Nullable DeviceApprovalsPolicy previousValue) { this.newValue = newValue; this.previousValue = previousValue; } @@ -59,6 +64,7 @@ public DeviceApprovalsChangeDesktopPolicyDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DeviceApprovalsPolicy getNewValue() { return newValue; } @@ -69,6 +75,7 @@ public DeviceApprovalsPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DeviceApprovalsPolicy getPreviousValue() { return previousValue; } 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 index 73ad38bb3..0f07ff50f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceApprovalsChangeDesktopPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceApprovalsChangeDesktopPolicyType(String description) { + public DeviceApprovalsChangeDesktopPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceApprovalsChangeDesktopPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b6a541272..a840ab66f 100644 --- 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 @@ -16,6 +16,9 @@ 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. @@ -23,7 +26,9 @@ public class DeviceApprovalsChangeMobilePolicyDetails { // struct team_log.DeviceApprovalsChangeMobilePolicyDetails (team_log_generated.stone) + @Nullable protected final DeviceApprovalsPolicy newValue; + @Nullable protected final DeviceApprovalsPolicy previousValue; /** @@ -38,7 +43,7 @@ public class DeviceApprovalsChangeMobilePolicyDetails { * @param previousValue Previous mobile device approvals policy. Might be * missing due to historical data gap. */ - public DeviceApprovalsChangeMobilePolicyDetails(DeviceApprovalsPolicy newValue, DeviceApprovalsPolicy previousValue) { + public DeviceApprovalsChangeMobilePolicyDetails(@Nullable DeviceApprovalsPolicy newValue, @Nullable DeviceApprovalsPolicy previousValue) { this.newValue = newValue; this.previousValue = previousValue; } @@ -59,6 +64,7 @@ public DeviceApprovalsChangeMobilePolicyDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DeviceApprovalsPolicy getNewValue() { return newValue; } @@ -69,6 +75,7 @@ public DeviceApprovalsPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DeviceApprovalsPolicy getPreviousValue() { return previousValue; } 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 index 58f94e4ee..1f3e7d384 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceApprovalsChangeMobilePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceApprovalsChangeMobilePolicyType(String description) { + public DeviceApprovalsChangeMobilePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceApprovalsChangeMobilePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5c28c816a..92cd2d598 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -37,7 +42,7 @@ public class DeviceApprovalsChangeOverageActionDetails { * @param previousValue Previous over the limit policy. Might be missing * due to historical data gap. */ - public DeviceApprovalsChangeOverageActionDetails(RolloutMethod newValue, RolloutMethod previousValue) { + public DeviceApprovalsChangeOverageActionDetails(@Nullable RolloutMethod newValue, @Nullable RolloutMethod previousValue) { this.newValue = newValue; this.previousValue = previousValue; } @@ -56,6 +61,7 @@ public DeviceApprovalsChangeOverageActionDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public RolloutMethod getNewValue() { return newValue; } @@ -66,6 +72,7 @@ public RolloutMethod getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public RolloutMethod getPreviousValue() { return previousValue; } 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 index b862ede12..576cf659b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceApprovalsChangeOverageActionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceApprovalsChangeOverageActionType(String description) { + public DeviceApprovalsChangeOverageActionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceApprovalsChangeOverageActionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d35dff3a2..dc7fbb042 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class DeviceApprovalsChangeUnlinkActionDetails { * @param previousValue Previous device unlink policy. Might be missing due * to historical data gap. */ - public DeviceApprovalsChangeUnlinkActionDetails(DeviceUnlinkPolicy newValue, DeviceUnlinkPolicy previousValue) { + public DeviceApprovalsChangeUnlinkActionDetails(@Nullable DeviceUnlinkPolicy newValue, @Nullable DeviceUnlinkPolicy previousValue) { this.newValue = newValue; this.previousValue = previousValue; } @@ -55,6 +60,7 @@ public DeviceApprovalsChangeUnlinkActionDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DeviceUnlinkPolicy getNewValue() { return newValue; } @@ -65,6 +71,7 @@ public DeviceUnlinkPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DeviceUnlinkPolicy getPreviousValue() { return previousValue; } 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 index 62fa7b72a..fed0c6c7f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceApprovalsChangeUnlinkActionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceApprovalsChangeUnlinkActionType(String description) { + public DeviceApprovalsChangeUnlinkActionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceApprovalsChangeUnlinkActionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 293bad9b0..3bf3bfdd5 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceApprovalsRemoveExceptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceApprovalsRemoveExceptionType(String description) { + public DeviceApprovalsRemoveExceptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceApprovalsRemoveExceptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8d2128546..31e0e4e0a 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class DeviceChangeIpDesktopDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceChangeIpDesktopDetails(DeviceSessionLogInfo deviceSessionInfo) { + public DeviceChangeIpDesktopDetails(@Nonnull DeviceSessionLogInfo deviceSessionInfo) { if (deviceSessionInfo == null) { throw new IllegalArgumentException("Required value for 'deviceSessionInfo' is null"); } @@ -45,6 +48,7 @@ public DeviceChangeIpDesktopDetails(DeviceSessionLogInfo deviceSessionInfo) { * * @return value for this field, never {@code null}. */ + @Nonnull public DeviceSessionLogInfo getDeviceSessionInfo() { return deviceSessionInfo; } 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 index 507366a0c..779745e18 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceChangeIpDesktopType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceChangeIpDesktopType(String description) { + public DeviceChangeIpDesktopType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceChangeIpDesktopType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a703fb954..620e6b803 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class DeviceChangeIpMobileDetails { * * @param deviceSessionInfo Device's session logged information. */ - public DeviceChangeIpMobileDetails(DeviceSessionLogInfo deviceSessionInfo) { + public DeviceChangeIpMobileDetails(@Nullable DeviceSessionLogInfo deviceSessionInfo) { this.deviceSessionInfo = deviceSessionInfo; } @@ -47,6 +51,7 @@ public DeviceChangeIpMobileDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DeviceSessionLogInfo getDeviceSessionInfo() { return deviceSessionInfo; } 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 index 87dd71cab..db1e7623e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceChangeIpMobileType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceChangeIpMobileType(String description) { + public DeviceChangeIpMobileType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceChangeIpMobileType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 74ec9a228..d01a0bce8 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class DeviceChangeIpWebDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceChangeIpWebDetails(String userAgent) { + public DeviceChangeIpWebDetails(@Nonnull String userAgent) { if (userAgent == null) { throw new IllegalArgumentException("Required value for 'userAgent' is null"); } @@ -44,6 +47,7 @@ public DeviceChangeIpWebDetails(String userAgent) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUserAgent() { return userAgent; } 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 index 26fa496b9..1e4560d43 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceChangeIpWebType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceChangeIpWebType(String description) { + public DeviceChangeIpWebType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceChangeIpWebType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 72e17ab17..cd48953fb 100644 --- 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 @@ -16,13 +16,18 @@ 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; @@ -37,7 +42,7 @@ public class DeviceDeleteOnUnlinkFailDetails { * @param displayName The device name. Might be missing due to historical * data gap. */ - public DeviceDeleteOnUnlinkFailDetails(long numFailures, SessionLogInfo sessionInfo, String displayName) { + public DeviceDeleteOnUnlinkFailDetails(long numFailures, @Nullable SessionLogInfo sessionInfo, @Nullable String displayName) { this.sessionInfo = sessionInfo; this.displayName = displayName; this.numFailures = numFailures; @@ -68,6 +73,7 @@ public long getNumFailures() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SessionLogInfo getSessionInfo() { return sessionInfo; } @@ -77,6 +83,7 @@ public SessionLogInfo getSessionInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } 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 index 4f0c58875..1069b9889 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceDeleteOnUnlinkFailType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceDeleteOnUnlinkFailType(String description) { + public DeviceDeleteOnUnlinkFailType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceDeleteOnUnlinkFailType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e8446aeb4..4eada34fa 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class DeviceDeleteOnUnlinkSuccessDetails { * @param displayName The device name. Might be missing due to historical * data gap. */ - public DeviceDeleteOnUnlinkSuccessDetails(SessionLogInfo sessionInfo, String displayName) { + public DeviceDeleteOnUnlinkSuccessDetails(@Nullable SessionLogInfo sessionInfo, @Nullable String displayName) { this.sessionInfo = sessionInfo; this.displayName = displayName; } @@ -54,6 +59,7 @@ public DeviceDeleteOnUnlinkSuccessDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SessionLogInfo getSessionInfo() { return sessionInfo; } @@ -63,6 +69,7 @@ public SessionLogInfo getSessionInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } 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 index 8f6367844..9177c4d65 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceDeleteOnUnlinkSuccessType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceDeleteOnUnlinkSuccessType(String description) { + public DeviceDeleteOnUnlinkSuccessType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceDeleteOnUnlinkSuccessType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4360d0906..d8647c9af 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class DeviceLinkFailDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceLinkFailDetails(DeviceType deviceType, String ipAddress) { + public DeviceLinkFailDetails(@Nonnull DeviceType deviceType, @Nullable String ipAddress) { this.ipAddress = ipAddress; if (deviceType == null) { throw new IllegalArgumentException("Required value for 'deviceType' is null"); @@ -55,7 +60,7 @@ public DeviceLinkFailDetails(DeviceType deviceType, String ipAddress) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceLinkFailDetails(DeviceType deviceType) { + public DeviceLinkFailDetails(@Nonnull DeviceType deviceType) { this(deviceType, null); } @@ -64,6 +69,7 @@ public DeviceLinkFailDetails(DeviceType deviceType) { * * @return value for this field, never {@code null}. */ + @Nonnull public DeviceType getDeviceType() { return deviceType; } @@ -73,6 +79,7 @@ public DeviceType getDeviceType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getIpAddress() { return ipAddress; } 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 index 4a643addc..9b4ded49a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceLinkFailType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceLinkFailType(String description) { + public DeviceLinkFailType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceLinkFailType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6cc4c3c3f..a75e0881f 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class DeviceLinkSuccessDetails { * * @param deviceSessionInfo Device's session logged information. */ - public DeviceLinkSuccessDetails(DeviceSessionLogInfo deviceSessionInfo) { + public DeviceLinkSuccessDetails(@Nullable DeviceSessionLogInfo deviceSessionInfo) { this.deviceSessionInfo = deviceSessionInfo; } @@ -47,6 +51,7 @@ public DeviceLinkSuccessDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DeviceSessionLogInfo getDeviceSessionInfo() { return deviceSessionInfo; } 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 index dc444c60b..464a70ac7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceLinkSuccessType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceLinkSuccessType(String description) { + public DeviceLinkSuccessType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceLinkSuccessType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 099b836be..b096f2a9f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceManagementDisabledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceManagementDisabledType(String description) { + public DeviceManagementDisabledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceManagementDisabledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ceda712c3..0f5c6f9ee 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceManagementEnabledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceManagementEnabledType(String description) { + public DeviceManagementEnabledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceManagementEnabledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a6004fb4b..09a884b4b 100644 --- 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 @@ -18,14 +18,20 @@ 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; /** @@ -38,7 +44,7 @@ public class DeviceSessionLogInfo { * @param created The time this session was created. * @param updated The time of the last activity from this session. */ - public DeviceSessionLogInfo(String ipAddress, Date created, Date updated) { + public DeviceSessionLogInfo(@Nullable String ipAddress, @Nullable Date created, @Nullable Date updated) { this.ipAddress = ipAddress; this.created = LangUtil.truncateMillis(created); this.updated = LangUtil.truncateMillis(updated); @@ -58,6 +64,7 @@ public DeviceSessionLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getIpAddress() { return ipAddress; } @@ -67,6 +74,7 @@ public String getIpAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getCreated() { return created; } @@ -76,6 +84,7 @@ public Date getCreated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getUpdated() { return updated; } 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 index 22a89f662..0ca49b782 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -39,7 +44,7 @@ public class DeviceSyncBackupStatusChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceSyncBackupStatusChangedDetails(DesktopDeviceSessionLogInfo desktopDeviceSessionInfo, BackupStatus previousValue, BackupStatus newValue) { + public DeviceSyncBackupStatusChangedDetails(@Nonnull DesktopDeviceSessionLogInfo desktopDeviceSessionInfo, @Nonnull BackupStatus previousValue, @Nonnull BackupStatus newValue) { if (desktopDeviceSessionInfo == null) { throw new IllegalArgumentException("Required value for 'desktopDeviceSessionInfo' is null"); } @@ -59,6 +64,7 @@ public DeviceSyncBackupStatusChangedDetails(DesktopDeviceSessionLogInfo desktopD * * @return value for this field, never {@code null}. */ + @Nonnull public DesktopDeviceSessionLogInfo getDesktopDeviceSessionInfo() { return desktopDeviceSessionInfo; } @@ -68,6 +74,7 @@ public DesktopDeviceSessionLogInfo getDesktopDeviceSessionInfo() { * * @return value for this field, never {@code null}. */ + @Nonnull public BackupStatus getPreviousValue() { return previousValue; } @@ -77,6 +84,7 @@ public BackupStatus getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public BackupStatus getNewValue() { return newValue; } 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 index 2a0d38ac2..035226882 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceSyncBackupStatusChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceSyncBackupStatusChangedType(String description) { + public DeviceSyncBackupStatusChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceSyncBackupStatusChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 02175c68f..5aff5b448 100644 --- 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 @@ -16,13 +16,18 @@ 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; @@ -38,7 +43,7 @@ public class DeviceUnlinkDetails { * @param displayName The device name. Might be missing due to historical * data gap. */ - public DeviceUnlinkDetails(boolean deleteData, SessionLogInfo sessionInfo, String displayName) { + public DeviceUnlinkDetails(boolean deleteData, @Nullable SessionLogInfo sessionInfo, @Nullable String displayName) { this.sessionInfo = sessionInfo; this.displayName = displayName; this.deleteData = deleteData; @@ -71,6 +76,7 @@ public boolean getDeleteData() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SessionLogInfo getSessionInfo() { return sessionInfo; } @@ -80,6 +86,7 @@ public SessionLogInfo getSessionInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } 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 index df6799f4b..8b063564a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DeviceUnlinkType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DeviceUnlinkType(String description) { + public DeviceUnlinkType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DeviceUnlinkType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 557a93b10..a324e76d0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DirectoryRestrictionsAddMembersType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DirectoryRestrictionsAddMembersType(String description) { + public DirectoryRestrictionsAddMembersType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DirectoryRestrictionsAddMembersType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d4583a36e..b9f6fc7d3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DirectoryRestrictionsRemoveMembersType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DirectoryRestrictionsRemoveMembersType(String description) { + public DirectoryRestrictionsRemoveMembersType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DirectoryRestrictionsRemoveMembersType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4a98c4b68..fe5091e9c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DisabledDomainInvitesType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DisabledDomainInvitesType(String description) { + public DisabledDomainInvitesType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DisabledDomainInvitesType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8b9caba5e..cb747a1e2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DomainInvitesApproveRequestToJoinTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainInvitesApproveRequestToJoinTeamType(String description) { + public DomainInvitesApproveRequestToJoinTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DomainInvitesApproveRequestToJoinTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 072210e9b..1cc878cbb 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DomainInvitesDeclineRequestToJoinTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainInvitesDeclineRequestToJoinTeamType(String description) { + public DomainInvitesDeclineRequestToJoinTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DomainInvitesDeclineRequestToJoinTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 99b775625..485caf97b 100644 --- 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 @@ -16,12 +16,15 @@ 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; @@ -34,7 +37,7 @@ public class DomainInvitesEmailExistingUsersDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainInvitesEmailExistingUsersDetails(String domainName, long numRecipients) { + public DomainInvitesEmailExistingUsersDetails(@Nonnull String domainName, long numRecipients) { if (domainName == null) { throw new IllegalArgumentException("Required value for 'domainName' is null"); } @@ -47,6 +50,7 @@ public DomainInvitesEmailExistingUsersDetails(String domainName, long numRecipie * * @return value for this field, never {@code null}. */ + @Nonnull public String getDomainName() { return domainName; } 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 index 3d33e3bb9..d6ebb932d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DomainInvitesEmailExistingUsersType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainInvitesEmailExistingUsersType(String description) { + public DomainInvitesEmailExistingUsersType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DomainInvitesEmailExistingUsersType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ffdbf0900..f8e46a18e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DomainInvitesRequestToJoinTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainInvitesRequestToJoinTeamType(String description) { + public DomainInvitesRequestToJoinTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DomainInvitesRequestToJoinTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b3d520bad..a081a75b4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DomainInvitesSetInviteNewUserPrefToNoType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainInvitesSetInviteNewUserPrefToNoType(String description) { + public DomainInvitesSetInviteNewUserPrefToNoType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DomainInvitesSetInviteNewUserPrefToNoType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3e38b7e1d..b3b252ff5 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DomainInvitesSetInviteNewUserPrefToYesType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainInvitesSetInviteNewUserPrefToYesType(String description) { + public DomainInvitesSetInviteNewUserPrefToYesType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DomainInvitesSetInviteNewUserPrefToYesType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0e38708ac..e99498b55 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class DomainVerificationAddDomainFailDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainVerificationAddDomainFailDetails(String domainName, String verificationMethod) { + public DomainVerificationAddDomainFailDetails(@Nonnull String domainName, @Nullable String verificationMethod) { if (domainName == null) { throw new IllegalArgumentException("Required value for 'domainName' is null"); } @@ -53,7 +58,7 @@ public DomainVerificationAddDomainFailDetails(String domainName, String verifica * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainVerificationAddDomainFailDetails(String domainName) { + public DomainVerificationAddDomainFailDetails(@Nonnull String domainName) { this(domainName, null); } @@ -62,6 +67,7 @@ public DomainVerificationAddDomainFailDetails(String domainName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDomainName() { return domainName; } @@ -72,6 +78,7 @@ public String getDomainName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getVerificationMethod() { return verificationMethod; } 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 index 70fdd72d1..2e0ce48ab 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DomainVerificationAddDomainFailType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainVerificationAddDomainFailType(String description) { + public DomainVerificationAddDomainFailType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DomainVerificationAddDomainFailType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 48d4e42b6..71c3efb18 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -37,7 +42,7 @@ public class DomainVerificationAddDomainSuccessDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainVerificationAddDomainSuccessDetails(List domainNames, String verificationMethod) { + public DomainVerificationAddDomainSuccessDetails(@Nonnull List domainNames, @Nullable String verificationMethod) { if (domainNames == null) { throw new IllegalArgumentException("Required value for 'domainNames' is null"); } @@ -61,7 +66,7 @@ public DomainVerificationAddDomainSuccessDetails(List domainNames, Strin * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainVerificationAddDomainSuccessDetails(List domainNames) { + public DomainVerificationAddDomainSuccessDetails(@Nonnull List domainNames) { this(domainNames, null); } @@ -70,6 +75,7 @@ public DomainVerificationAddDomainSuccessDetails(List domainNames) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getDomainNames() { return domainNames; } @@ -80,6 +86,7 @@ public List getDomainNames() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getVerificationMethod() { return verificationMethod; } 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 index 3b693ebe3..718a0d95d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DomainVerificationAddDomainSuccessType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainVerificationAddDomainSuccessType(String description) { + public DomainVerificationAddDomainSuccessType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DomainVerificationAddDomainSuccessType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4b47f1a40..b4f025e9f 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class DomainVerificationRemoveDomainDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainVerificationRemoveDomainDetails(List domainNames) { + public DomainVerificationRemoveDomainDetails(@Nonnull List domainNames) { if (domainNames == null) { throw new IllegalArgumentException("Required value for 'domainNames' is null"); } @@ -51,6 +54,7 @@ public DomainVerificationRemoveDomainDetails(List domainNames) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getDomainNames() { return domainNames; } 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 index 3910a8ed2..a19d29b24 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DomainVerificationRemoveDomainType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DomainVerificationRemoveDomainType(String description) { + public DomainVerificationRemoveDomainType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DomainVerificationRemoveDomainType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 617f21c2c..e7acdbbc9 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class DropboxPasswordsExportedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DropboxPasswordsExportedDetails(String platform) { + public DropboxPasswordsExportedDetails(@Nonnull String platform) { if (platform == null) { throw new IllegalArgumentException("Required value for 'platform' is null"); } @@ -45,6 +48,7 @@ public DropboxPasswordsExportedDetails(String platform) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPlatform() { return platform; } 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 index dfb2e4785..b7ca7d0c2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DropboxPasswordsExportedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DropboxPasswordsExportedType(String description) { + public DropboxPasswordsExportedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DropboxPasswordsExportedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index fe66e78cf..014e6b4cf 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + /** * Enrolled new Dropbox Passwords device. */ @@ -23,6 +25,7 @@ public class DropboxPasswordsNewDeviceEnrolledDetails { // struct team_log.DropboxPasswordsNewDeviceEnrolledDetails (team_log_generated.stone) protected final boolean isFirstDevice; + @Nonnull protected final String platform; /** @@ -35,7 +38,7 @@ public class DropboxPasswordsNewDeviceEnrolledDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DropboxPasswordsNewDeviceEnrolledDetails(boolean isFirstDevice, String platform) { + public DropboxPasswordsNewDeviceEnrolledDetails(boolean isFirstDevice, @Nonnull String platform) { this.isFirstDevice = isFirstDevice; if (platform == null) { throw new IllegalArgumentException("Required value for 'platform' is null"); @@ -57,6 +60,7 @@ public boolean getIsFirstDevice() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPlatform() { return platform; } 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 index 0a20cbd4c..4b502d9a7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DropboxPasswordsNewDeviceEnrolledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DropboxPasswordsNewDeviceEnrolledType(String description) { + public DropboxPasswordsNewDeviceEnrolledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DropboxPasswordsNewDeviceEnrolledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 27ae382d2..a0276565d 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class DropboxPasswordsPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DropboxPasswordsPolicyChangedDetails(DropboxPasswordsPolicy newValue, DropboxPasswordsPolicy previousValue) { + public DropboxPasswordsPolicyChangedDetails(@Nonnull DropboxPasswordsPolicy newValue, @Nonnull DropboxPasswordsPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -50,6 +54,7 @@ public DropboxPasswordsPolicyChangedDetails(DropboxPasswordsPolicy newValue, Dro * * @return value for this field, never {@code null}. */ + @Nonnull public DropboxPasswordsPolicy getNewValue() { return newValue; } @@ -59,6 +64,7 @@ public DropboxPasswordsPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public DropboxPasswordsPolicy getPreviousValue() { return previousValue; } 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 index 61aea12c7..3071f013a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class DropboxPasswordsPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DropboxPasswordsPolicyChangedType(String description) { + public DropboxPasswordsPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public DropboxPasswordsPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 44cae183f..ddf62ce7f 100644 --- 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 @@ -16,12 +16,15 @@ 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; @@ -34,7 +37,7 @@ public class DurationLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public DurationLogInfo(TimeUnit unit, long amount) { + public DurationLogInfo(@Nonnull TimeUnit unit, long amount) { if (unit == null) { throw new IllegalArgumentException("Required value for 'unit' is null"); } @@ -47,6 +50,7 @@ public DurationLogInfo(TimeUnit unit, long amount) { * * @return value for this field, never {@code null}. */ + @Nonnull public TimeUnit getUnit() { return unit; } 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 index e0ae4555c..9e132ba79 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class EmailIngestPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmailIngestPolicyChangedDetails(EmailIngestPolicy newValue, EmailIngestPolicy previousValue) { + public EmailIngestPolicyChangedDetails(@Nonnull EmailIngestPolicy newValue, @Nonnull EmailIngestPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -50,6 +54,7 @@ public EmailIngestPolicyChangedDetails(EmailIngestPolicy newValue, EmailIngestPo * * @return value for this field, never {@code null}. */ + @Nonnull public EmailIngestPolicy getNewValue() { return newValue; } @@ -59,6 +64,7 @@ public EmailIngestPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public EmailIngestPolicy getPreviousValue() { return previousValue; } 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 index 7c266528e..2051ee652 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EmailIngestPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmailIngestPolicyChangedType(String description) { + public EmailIngestPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EmailIngestPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 85adf0603..897ebcc44 100644 --- 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 @@ -17,16 +17,24 @@ 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; /** @@ -46,7 +54,7 @@ public class EmailIngestReceiveFileDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmailIngestReceiveFileDetails(String inboxName, List attachmentNames, String subject, String fromName, String fromEmail) { + 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"); } @@ -82,7 +90,7 @@ public EmailIngestReceiveFileDetails(String inboxName, List attachmentNa * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmailIngestReceiveFileDetails(String inboxName, List attachmentNames) { + public EmailIngestReceiveFileDetails(@Nonnull String inboxName, @Nonnull List attachmentNames) { this(inboxName, attachmentNames, null, null, null); } @@ -91,6 +99,7 @@ public EmailIngestReceiveFileDetails(String inboxName, List attachmentNa * * @return value for this field, never {@code null}. */ + @Nonnull public String getInboxName() { return inboxName; } @@ -100,6 +109,7 @@ public String getInboxName() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getAttachmentNames() { return attachmentNames; } @@ -109,6 +119,7 @@ public List getAttachmentNames() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSubject() { return subject; } @@ -118,6 +129,7 @@ public String getSubject() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFromName() { return fromName; } @@ -127,6 +139,7 @@ public String getFromName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFromEmail() { return fromEmail; } 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 index 4330a4cdf..547669d6f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EmailIngestReceiveFileType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmailIngestReceiveFileType(String description) { + public EmailIngestReceiveFileType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EmailIngestReceiveFileType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 504f5b6ae..81d4c118a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EmmAddExceptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmmAddExceptionType(String description) { + public EmmAddExceptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EmmAddExceptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 222d5a9de..3f97b0e04 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -37,7 +42,7 @@ public class EmmChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmmChangePolicyDetails(EmmState newValue, EmmState previousValue) { + public EmmChangePolicyDetails(@Nonnull EmmState newValue, @Nullable EmmState previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -56,7 +61,7 @@ public EmmChangePolicyDetails(EmmState newValue, EmmState previousValue) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmmChangePolicyDetails(EmmState newValue) { + public EmmChangePolicyDetails(@Nonnull EmmState newValue) { this(newValue, null); } @@ -65,6 +70,7 @@ public EmmChangePolicyDetails(EmmState newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public EmmState getNewValue() { return newValue; } @@ -75,6 +81,7 @@ public EmmState getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public EmmState getPreviousValue() { return previousValue; } 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 index c782d547e..ad2540a16 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EmmChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmmChangePolicyType(String description) { + public EmmChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EmmChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6b4a8fcc9..73a8cf895 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EmmCreateExceptionsReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmmCreateExceptionsReportType(String description) { + public EmmCreateExceptionsReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EmmCreateExceptionsReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8ceb7f91b..9ff480336 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EmmCreateUsageReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmmCreateUsageReportType(String description) { + public EmmCreateUsageReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EmmCreateUsageReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0c70a930e..b73be0233 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class EmmErrorDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmmErrorDetails(FailureDetailsLogInfo errorDetails) { + public EmmErrorDetails(@Nonnull FailureDetailsLogInfo errorDetails) { if (errorDetails == null) { throw new IllegalArgumentException("Required value for 'errorDetails' is null"); } @@ -44,6 +47,7 @@ public EmmErrorDetails(FailureDetailsLogInfo errorDetails) { * * @return value for this field, never {@code null}. */ + @Nonnull public FailureDetailsLogInfo getErrorDetails() { return errorDetails; } 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 index 5e27fd7b5..bd602cb5a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EmmErrorType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmmErrorType(String description) { + public EmmErrorType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EmmErrorType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 45fd6e3f7..f3b84709f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EmmRefreshAuthTokenType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmmRefreshAuthTokenType(String description) { + public EmmRefreshAuthTokenType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EmmRefreshAuthTokenType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ebbf9fc7c..054f46589 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EmmRemoveExceptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EmmRemoveExceptionType(String description) { + public EmmRemoveExceptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EmmRemoveExceptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c62bff484..c2193fb9b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EnabledDomainInvitesType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EnabledDomainInvitesType(String description) { + public EnabledDomainInvitesType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EnabledDomainInvitesType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b814d96f2..11bfd4abc 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class EndedEnterpriseAdminSessionDeprecatedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EndedEnterpriseAdminSessionDeprecatedDetails(FedExtraDetails federationExtraDetails) { + public EndedEnterpriseAdminSessionDeprecatedDetails(@Nonnull FedExtraDetails federationExtraDetails) { if (federationExtraDetails == null) { throw new IllegalArgumentException("Required value for 'federationExtraDetails' is null"); } @@ -45,6 +48,7 @@ public EndedEnterpriseAdminSessionDeprecatedDetails(FedExtraDetails federationEx * * @return value for this field, never {@code null}. */ + @Nonnull public FedExtraDetails getFederationExtraDetails() { return federationExtraDetails; } 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 index 7df7111e9..2d8a36ed5 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EndedEnterpriseAdminSessionDeprecatedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EndedEnterpriseAdminSessionDeprecatedType(String description) { + public EndedEnterpriseAdminSessionDeprecatedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EndedEnterpriseAdminSessionDeprecatedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 9f2ea6116..c0833a1a9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EndedEnterpriseAdminSessionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EndedEnterpriseAdminSessionType(String description) { + public EndedEnterpriseAdminSessionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EndedEnterpriseAdminSessionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ef20ca9f7..9aeb4821f 100644 --- 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 @@ -16,15 +16,21 @@ 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; /** @@ -40,7 +46,7 @@ public class EnterpriseSettingsLockingDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EnterpriseSettingsLockingDetails(String teamName, String settingsPageName, String previousSettingsPageLockingState, String newSettingsPageLockingState) { + 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"); } @@ -64,6 +70,7 @@ public EnterpriseSettingsLockingDetails(String teamName, String settingsPageName * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamName() { return teamName; } @@ -73,6 +80,7 @@ public String getTeamName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSettingsPageName() { return settingsPageName; } @@ -82,6 +90,7 @@ public String getSettingsPageName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousSettingsPageLockingState() { return previousSettingsPageLockingState; } @@ -91,6 +100,7 @@ public String getPreviousSettingsPageLockingState() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewSettingsPageLockingState() { return newSettingsPageLockingState; } 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 index 681bf8ad7..9f87da477 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class EnterpriseSettingsLockingType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public EnterpriseSettingsLockingType(String description) { + public EnterpriseSettingsLockingType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public EnterpriseSettingsLockingType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8c6703717..66cd26bbc 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -33,7 +36,7 @@ public class ExportMembersReportFailDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExportMembersReportFailDetails(TeamReportFailureReason failureReason) { + public ExportMembersReportFailDetails(@Nonnull TeamReportFailureReason failureReason) { if (failureReason == null) { throw new IllegalArgumentException("Required value for 'failureReason' is null"); } @@ -45,6 +48,7 @@ public ExportMembersReportFailDetails(TeamReportFailureReason failureReason) { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamReportFailureReason getFailureReason() { return failureReason; } 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 index 7e0e4e7c3..c56080fe9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ExportMembersReportFailType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExportMembersReportFailType(String description) { + public ExportMembersReportFailType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ExportMembersReportFailType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5bf675c04..86ce225e6 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ExportMembersReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExportMembersReportType(String description) { + public ExportMembersReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ExportMembersReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8815b5e05..32c00887b 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class ExtendedVersionHistoryChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExtendedVersionHistoryChangePolicyDetails(ExtendedVersionHistoryPolicy newValue, ExtendedVersionHistoryPolicy previousValue) { + public ExtendedVersionHistoryChangePolicyDetails(@Nonnull ExtendedVersionHistoryPolicy newValue, @Nullable ExtendedVersionHistoryPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -55,7 +60,7 @@ public ExtendedVersionHistoryChangePolicyDetails(ExtendedVersionHistoryPolicy ne * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExtendedVersionHistoryChangePolicyDetails(ExtendedVersionHistoryPolicy newValue) { + public ExtendedVersionHistoryChangePolicyDetails(@Nonnull ExtendedVersionHistoryPolicy newValue) { this(newValue, null); } @@ -64,6 +69,7 @@ public ExtendedVersionHistoryChangePolicyDetails(ExtendedVersionHistoryPolicy ne * * @return value for this field, never {@code null}. */ + @Nonnull public ExtendedVersionHistoryPolicy getNewValue() { return newValue; } @@ -74,6 +80,7 @@ public ExtendedVersionHistoryPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ExtendedVersionHistoryPolicy getPreviousValue() { return previousValue; } 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 index a11620155..5e74ce53e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ExtendedVersionHistoryChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExtendedVersionHistoryChangePolicyType(String description) { + public ExtendedVersionHistoryChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ExtendedVersionHistoryChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f823dea0f..5316a4bcc 100644 --- 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 @@ -16,13 +16,17 @@ 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; @@ -39,7 +43,7 @@ public class ExternalDriveBackupEligibilityStatusCheckedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExternalDriveBackupEligibilityStatusCheckedDetails(DesktopDeviceSessionLogInfo desktopDeviceSessionInfo, ExternalDriveBackupEligibilityStatus status, long numberOfExternalDriveBackup) { + public ExternalDriveBackupEligibilityStatusCheckedDetails(@Nonnull DesktopDeviceSessionLogInfo desktopDeviceSessionInfo, @Nonnull ExternalDriveBackupEligibilityStatus status, long numberOfExternalDriveBackup) { if (desktopDeviceSessionInfo == null) { throw new IllegalArgumentException("Required value for 'desktopDeviceSessionInfo' is null"); } @@ -56,6 +60,7 @@ public ExternalDriveBackupEligibilityStatusCheckedDetails(DesktopDeviceSessionLo * * @return value for this field, never {@code null}. */ + @Nonnull public DesktopDeviceSessionLogInfo getDesktopDeviceSessionInfo() { return desktopDeviceSessionInfo; } @@ -65,6 +70,7 @@ public DesktopDeviceSessionLogInfo getDesktopDeviceSessionInfo() { * * @return value for this field, never {@code null}. */ + @Nonnull public ExternalDriveBackupEligibilityStatus getStatus() { return status; } 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 index 5060a355e..ef92b02c5 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ExternalDriveBackupEligibilityStatusCheckedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExternalDriveBackupEligibilityStatusCheckedType(String description) { + public ExternalDriveBackupEligibilityStatusCheckedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ExternalDriveBackupEligibilityStatusCheckedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 08a5c6c94..c5d351cd4 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class ExternalDriveBackupPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExternalDriveBackupPolicyChangedDetails(ExternalDriveBackupPolicy newValue, ExternalDriveBackupPolicy previousValue) { + public ExternalDriveBackupPolicyChangedDetails(@Nonnull ExternalDriveBackupPolicy newValue, @Nonnull ExternalDriveBackupPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -52,6 +56,7 @@ public ExternalDriveBackupPolicyChangedDetails(ExternalDriveBackupPolicy newValu * * @return value for this field, never {@code null}. */ + @Nonnull public ExternalDriveBackupPolicy getNewValue() { return newValue; } @@ -61,6 +66,7 @@ public ExternalDriveBackupPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public ExternalDriveBackupPolicy getPreviousValue() { return previousValue; } 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 index 8f6c72f39..246aca99a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ExternalDriveBackupPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExternalDriveBackupPolicyChangedType(String description) { + public ExternalDriveBackupPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ExternalDriveBackupPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4a4f7d766..15510f3ac 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -39,7 +44,7 @@ public class ExternalDriveBackupStatusChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExternalDriveBackupStatusChangedDetails(DesktopDeviceSessionLogInfo desktopDeviceSessionInfo, ExternalDriveBackupStatus previousValue, ExternalDriveBackupStatus newValue) { + public ExternalDriveBackupStatusChangedDetails(@Nonnull DesktopDeviceSessionLogInfo desktopDeviceSessionInfo, @Nonnull ExternalDriveBackupStatus previousValue, @Nonnull ExternalDriveBackupStatus newValue) { if (desktopDeviceSessionInfo == null) { throw new IllegalArgumentException("Required value for 'desktopDeviceSessionInfo' is null"); } @@ -59,6 +64,7 @@ public ExternalDriveBackupStatusChangedDetails(DesktopDeviceSessionLogInfo deskt * * @return value for this field, never {@code null}. */ + @Nonnull public DesktopDeviceSessionLogInfo getDesktopDeviceSessionInfo() { return desktopDeviceSessionInfo; } @@ -68,6 +74,7 @@ public DesktopDeviceSessionLogInfo getDesktopDeviceSessionInfo() { * * @return value for this field, never {@code null}. */ + @Nonnull public ExternalDriveBackupStatus getPreviousValue() { return previousValue; } @@ -77,6 +84,7 @@ public ExternalDriveBackupStatus getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public ExternalDriveBackupStatus getNewValue() { return newValue; } 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 index 0b95fa741..a0575357e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ExternalDriveBackupStatusChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExternalDriveBackupStatusChangedType(String description) { + public ExternalDriveBackupStatusChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ExternalDriveBackupStatusChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 586c958ad..d38781552 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ExternalSharingCreateReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExternalSharingCreateReportType(String description) { + public ExternalSharingCreateReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ExternalSharingCreateReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f33e50e55..b7936a47e 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -33,7 +36,7 @@ public class ExternalSharingReportFailedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExternalSharingReportFailedDetails(TeamReportFailureReason failureReason) { + public ExternalSharingReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { if (failureReason == null) { throw new IllegalArgumentException("Required value for 'failureReason' is null"); } @@ -45,6 +48,7 @@ public ExternalSharingReportFailedDetails(TeamReportFailureReason failureReason) * * @return value for this field, never {@code null}. */ + @Nonnull public TeamReportFailureReason getFailureReason() { return failureReason; } 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 index a93e7df6e..bd0181168 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ExternalSharingReportFailedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExternalSharingReportFailedType(String description) { + public ExternalSharingReportFailedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ExternalSharingReportFailedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 96aabf474..058c3ad47 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class ExternalUserLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ExternalUserLogInfo(String userIdentifier, IdentifierType identifierType) { + public ExternalUserLogInfo(@Nonnull String userIdentifier, @Nonnull IdentifierType identifierType) { if (userIdentifier == null) { throw new IllegalArgumentException("Required value for 'userIdentifier' is null"); } @@ -51,6 +55,7 @@ public ExternalUserLogInfo(String userIdentifier, IdentifierType identifierType) * * @return value for this field, never {@code null}. */ + @Nonnull public String getUserIdentifier() { return userIdentifier; } @@ -60,6 +65,7 @@ public String getUserIdentifier() { * * @return value for this field, never {@code null}. */ + @Nonnull public IdentifierType getIdentifierType() { return identifierType; } 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 index 24e0f3d86..ba9669bd7 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class FailureDetailsLogInfo { * @param technicalErrorMessage A technical explanation of the error. This * is relevant for some errors. */ - public FailureDetailsLogInfo(String userFriendlyMessage, String technicalErrorMessage) { + public FailureDetailsLogInfo(@Nullable String userFriendlyMessage, @Nullable String technicalErrorMessage) { this.userFriendlyMessage = userFriendlyMessage; this.technicalErrorMessage = technicalErrorMessage; } @@ -54,6 +59,7 @@ public FailureDetailsLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getUserFriendlyMessage() { return userFriendlyMessage; } @@ -63,6 +69,7 @@ public String getUserFriendlyMessage() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTechnicalErrorMessage() { return technicalErrorMessage; } 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 index f071f54d5..ea6e268f2 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class FileAddCommentDetails { * * @param commentText Comment text. */ - public FileAddCommentDetails(String commentText) { + public FileAddCommentDetails(@Nullable String commentText) { this.commentText = commentText; } @@ -47,6 +51,7 @@ public FileAddCommentDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 230ba1900..f02a13f47 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileAddCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileAddCommentType(String description) { + public FileAddCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileAddCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 29f62799c..6ef18d664 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileAddFromAutomationType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileAddFromAutomationType(String description) { + public FileAddFromAutomationType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileAddFromAutomationType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 9337367ee..5c774023a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileAddType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileAddType(String description) { + public FileAddType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileAddType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 11d45b651..eabf7b389 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class FileChangeCommentSubscriptionDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileChangeCommentSubscriptionDetails(FileCommentNotificationPolicy newValue, FileCommentNotificationPolicy previousValue) { + public FileChangeCommentSubscriptionDetails(@Nonnull FileCommentNotificationPolicy newValue, @Nullable FileCommentNotificationPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public FileChangeCommentSubscriptionDetails(FileCommentNotificationPolicy newVal * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileChangeCommentSubscriptionDetails(FileCommentNotificationPolicy newValue) { + public FileChangeCommentSubscriptionDetails(@Nonnull FileCommentNotificationPolicy newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public FileChangeCommentSubscriptionDetails(FileCommentNotificationPolicy newVal * * @return value for this field, never {@code null}. */ + @Nonnull public FileCommentNotificationPolicy getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public FileCommentNotificationPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileCommentNotificationPolicy getPreviousValue() { return previousValue; } 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 index 4841880c5..5feb8bf7b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileChangeCommentSubscriptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileChangeCommentSubscriptionType(String description) { + public FileChangeCommentSubscriptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileChangeCommentSubscriptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c1bf45481..9b3ab2f7f 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class FileCommentsChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileCommentsChangePolicyDetails(FileCommentsPolicy newValue, FileCommentsPolicy previousValue) { + public FileCommentsChangePolicyDetails(@Nonnull FileCommentsPolicy newValue, @Nullable FileCommentsPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -55,7 +60,7 @@ public FileCommentsChangePolicyDetails(FileCommentsPolicy newValue, FileComments * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileCommentsChangePolicyDetails(FileCommentsPolicy newValue) { + public FileCommentsChangePolicyDetails(@Nonnull FileCommentsPolicy newValue) { this(newValue, null); } @@ -64,6 +69,7 @@ public FileCommentsChangePolicyDetails(FileCommentsPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public FileCommentsPolicy getNewValue() { return newValue; } @@ -74,6 +80,7 @@ public FileCommentsPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileCommentsPolicy getPreviousValue() { return previousValue; } 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 index 4c4a05057..7f4352ca1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileCommentsChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileCommentsChangePolicyType(String description) { + public FileCommentsChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileCommentsChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 78699c4eb..ec4342ded 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class FileCopyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileCopyDetails(List relocateActionDetails) { + public FileCopyDetails(@Nonnull List relocateActionDetails) { if (relocateActionDetails == null) { throw new IllegalArgumentException("Required value for 'relocateActionDetails' is null"); } @@ -51,6 +54,7 @@ public FileCopyDetails(List relocateActionDetail * * @return value for this field, never {@code null}. */ + @Nonnull public List getRelocateActionDetails() { return relocateActionDetails; } 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 index 30192ee78..567c95a40 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileCopyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileCopyType(String description) { + public FileCopyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileCopyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4a2af72c2..e5c3c059e 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class FileDeleteCommentDetails { * * @param commentText Comment text. */ - public FileDeleteCommentDetails(String commentText) { + public FileDeleteCommentDetails(@Nullable String commentText) { this.commentText = commentText; } @@ -47,6 +51,7 @@ public FileDeleteCommentDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 69595fa94..7ac4dcc14 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileDeleteCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileDeleteCommentType(String description) { + public FileDeleteCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileDeleteCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 404e5a960..584203826 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileDeleteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileDeleteType(String description) { + public FileDeleteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileDeleteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 557bd1307..5c49e3b8d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileDownloadType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileDownloadType(String description) { + public FileDownloadType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileDownloadType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0a4f1780a..fe2b63258 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class FileEditCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileEditCommentDetails(String previousCommentText, String commentText) { + public FileEditCommentDetails(@Nonnull String previousCommentText, @Nullable String commentText) { this.commentText = commentText; if (previousCommentText == null) { throw new IllegalArgumentException("Required value for 'previousCommentText' is null"); @@ -54,7 +59,7 @@ public FileEditCommentDetails(String previousCommentText, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileEditCommentDetails(String previousCommentText) { + public FileEditCommentDetails(@Nonnull String previousCommentText) { this(previousCommentText, null); } @@ -63,6 +68,7 @@ public FileEditCommentDetails(String previousCommentText) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousCommentText() { return previousCommentText; } @@ -72,6 +78,7 @@ public String getPreviousCommentText() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 4cb68ff27..c811cc427 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileEditCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileEditCommentType(String description) { + public FileEditCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileEditCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6ce3cc463..17056d406 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileEditType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileEditType(String description) { + public FileEditType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileEditType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b8a9b2e20..006186237 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileGetCopyReferenceType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileGetCopyReferenceType(String description) { + public FileGetCopyReferenceType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileGetCopyReferenceType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8c5f00846..23ef958aa 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class FileLikeCommentDetails { * * @param commentText Comment text. */ - public FileLikeCommentDetails(String commentText) { + public FileLikeCommentDetails(@Nullable String commentText) { this.commentText = commentText; } @@ -47,6 +51,7 @@ public FileLikeCommentDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index d8362bece..a4062a931 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileLikeCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLikeCommentType(String description) { + public FileLikeCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileLikeCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ea296b88f..e8ef117cc 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class FileLockingLockStatusChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLockingLockStatusChangedDetails(LockStatus previousValue, LockStatus newValue) { + public FileLockingLockStatusChangedDetails(@Nonnull LockStatus previousValue, @Nonnull LockStatus newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public FileLockingLockStatusChangedDetails(LockStatus previousValue, LockStatus * * @return value for this field, never {@code null}. */ + @Nonnull public LockStatus getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public LockStatus getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public LockStatus getNewValue() { return newValue; } 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 index e24febd5a..5a8214b36 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileLockingLockStatusChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLockingLockStatusChangedType(String description) { + public FileLockingLockStatusChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileLockingLockStatusChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 53cd32009..9171f2601 100644 --- 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 @@ -17,13 +17,17 @@ 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; /** @@ -36,7 +40,7 @@ public class FileLockingPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLockingPolicyChangedDetails(FileLockingPolicyState newValue, FileLockingPolicyState previousValue) { + public FileLockingPolicyChangedDetails(@Nonnull FileLockingPolicyState newValue, @Nonnull FileLockingPolicyState previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -52,6 +56,7 @@ public FileLockingPolicyChangedDetails(FileLockingPolicyState newValue, FileLock * * @return value for this field, never {@code null}. */ + @Nonnull public FileLockingPolicyState getNewValue() { return newValue; } @@ -61,6 +66,7 @@ public FileLockingPolicyState getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public FileLockingPolicyState getPreviousValue() { return previousValue; } 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 index fec10ecdf..8d3441732 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileLockingPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLockingPolicyChangedType(String description) { + public FileLockingPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileLockingPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d87ce3e59..49db20ec4 100644 --- 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 @@ -15,6 +15,9 @@ import java.io.IOException; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * File's logged information. */ @@ -36,7 +39,7 @@ public class FileLogInfo extends FileOrFolderLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLogInfo(PathLogInfo path, String displayName, String fileId, Long fileSize) { + public FileLogInfo(@Nonnull PathLogInfo path, @Nullable String displayName, @Nullable String fileId, @Nullable Long fileSize) { super(path, displayName, fileId, fileSize); } @@ -50,7 +53,7 @@ public FileLogInfo(PathLogInfo path, String displayName, String fileId, Long fil * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileLogInfo(PathLogInfo path) { + public FileLogInfo(@Nonnull PathLogInfo path) { this(path, null, null, null); } @@ -59,6 +62,7 @@ public FileLogInfo(PathLogInfo path) { * * @return value for this field, never {@code null}. */ + @Nonnull public PathLogInfo getPath() { return path; } @@ -68,6 +72,7 @@ public PathLogInfo getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } @@ -77,6 +82,7 @@ public String getDisplayName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFileId() { return fileId; } @@ -86,6 +92,7 @@ public String getFileId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getFileSize() { return fileSize; } 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 index 624470cac..5d2a02ffa 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class FileMoveDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileMoveDetails(List relocateActionDetails) { + public FileMoveDetails(@Nonnull List relocateActionDetails) { if (relocateActionDetails == null) { throw new IllegalArgumentException("Required value for 'relocateActionDetails' is null"); } @@ -51,6 +54,7 @@ public FileMoveDetails(List relocateActionDetail * * @return value for this field, never {@code null}. */ + @Nonnull public List getRelocateActionDetails() { return relocateActionDetails; } 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 index 8b90ec49a..9f3c871ec 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileMoveType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileMoveType(String description) { + public FileMoveType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileMoveType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 93f102f76..ac204cbdf 100644 --- 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 @@ -16,15 +16,22 @@ 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; /** @@ -41,7 +48,7 @@ public class FileOrFolderLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileOrFolderLogInfo(PathLogInfo path, String displayName, String fileId, Long fileSize) { + 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"); } @@ -61,7 +68,7 @@ public FileOrFolderLogInfo(PathLogInfo path, String displayName, String fileId, * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileOrFolderLogInfo(PathLogInfo path) { + public FileOrFolderLogInfo(@Nonnull PathLogInfo path) { this(path, null, null, null); } @@ -70,6 +77,7 @@ public FileOrFolderLogInfo(PathLogInfo path) { * * @return value for this field, never {@code null}. */ + @Nonnull public PathLogInfo getPath() { return path; } @@ -79,6 +87,7 @@ public PathLogInfo getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } @@ -88,6 +97,7 @@ public String getDisplayName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFileId() { return fileId; } @@ -97,6 +107,7 @@ public String getFileId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getFileSize() { return fileSize; } 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 index 3ae499297..528782c0d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FilePermanentlyDeleteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FilePermanentlyDeleteType(String description) { + public FilePermanentlyDeleteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FilePermanentlyDeleteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 567ad4cb0..9b3c99304 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FilePreviewType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FilePreviewType(String description) { + public FilePreviewType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FilePreviewType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 69614fdf5..ee7699016 100644 --- 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 @@ -17,13 +17,17 @@ 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; /** @@ -35,7 +39,7 @@ public class FileProviderMigrationPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileProviderMigrationPolicyChangedDetails(FileProviderMigrationPolicyState newValue, FileProviderMigrationPolicyState previousValue) { + public FileProviderMigrationPolicyChangedDetails(@Nonnull FileProviderMigrationPolicyState newValue, @Nonnull FileProviderMigrationPolicyState previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public FileProviderMigrationPolicyChangedDetails(FileProviderMigrationPolicyStat * * @return value for this field, never {@code null}. */ + @Nonnull public FileProviderMigrationPolicyState getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public FileProviderMigrationPolicyState getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public FileProviderMigrationPolicyState getPreviousValue() { return previousValue; } 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 index 852351e99..3855362b5 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileProviderMigrationPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileProviderMigrationPolicyChangedType(String description) { + public FileProviderMigrationPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileProviderMigrationPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6d289d910..0319abc61 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class FileRenameDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRenameDetails(List relocateActionDetails) { + public FileRenameDetails(@Nonnull List relocateActionDetails) { if (relocateActionDetails == null) { throw new IllegalArgumentException("Required value for 'relocateActionDetails' is null"); } @@ -51,6 +54,7 @@ public FileRenameDetails(List relocateActionDeta * * @return value for this field, never {@code null}. */ + @Nonnull public List getRelocateActionDetails() { return relocateActionDetails; } 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 index bd2f3db40..927c57119 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRenameType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRenameType(String description) { + public FileRenameType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRenameType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d61878733..646ceb07b 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -42,7 +48,7 @@ public class FileRequestChangeDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestChangeDetails(FileRequestDetails newDetails, String fileRequestId, FileRequestDetails previousDetails) { + 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"); @@ -69,7 +75,7 @@ public FileRequestChangeDetails(FileRequestDetails newDetails, String fileReques * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestChangeDetails(FileRequestDetails newDetails) { + public FileRequestChangeDetails(@Nonnull FileRequestDetails newDetails) { this(newDetails, null, null); } @@ -78,6 +84,7 @@ public FileRequestChangeDetails(FileRequestDetails newDetails) { * * @return value for this field, never {@code null}. */ + @Nonnull public FileRequestDetails getNewDetails() { return newDetails; } @@ -87,6 +94,7 @@ public FileRequestDetails getNewDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFileRequestId() { return fileRequestId; } @@ -97,6 +105,7 @@ public String getFileRequestId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileRequestDetails getPreviousDetails() { return previousDetails; } 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 index cbe5b660a..fb4e21c29 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRequestChangeType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestChangeType(String description) { + public FileRequestChangeType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRequestChangeType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a1537905f..9e46d7450 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -40,7 +45,7 @@ public class FileRequestCloseDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestCloseDetails(String fileRequestId, FileRequestDetails previousDetails) { + public FileRequestCloseDetails(@Nullable String fileRequestId, @Nullable FileRequestDetails previousDetails) { if (fileRequestId != null) { if (fileRequestId.length() < 1) { throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); @@ -67,6 +72,7 @@ public FileRequestCloseDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFileRequestId() { return fileRequestId; } @@ -77,6 +83,7 @@ public String getFileRequestId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileRequestDetails getPreviousDetails() { return previousDetails; } 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 index 96e327a04..91268482e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRequestCloseType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestCloseType(String description) { + public FileRequestCloseType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRequestCloseType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 66141008b..cfacb6ad7 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -40,7 +45,7 @@ public class FileRequestCreateDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestCreateDetails(String fileRequestId, FileRequestDetails requestDetails) { + public FileRequestCreateDetails(@Nullable String fileRequestId, @Nullable FileRequestDetails requestDetails) { if (fileRequestId != null) { if (fileRequestId.length() < 1) { throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); @@ -67,6 +72,7 @@ public FileRequestCreateDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFileRequestId() { return fileRequestId; } @@ -76,6 +82,7 @@ public String getFileRequestId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileRequestDetails getRequestDetails() { return requestDetails; } 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 index 9f309128a..86fcd8431 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRequestCreateType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestCreateType(String description) { + public FileRequestCreateType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRequestCreateType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index fc79698ce..0380b59cc 100644 --- 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 @@ -18,13 +18,18 @@ 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; /** @@ -38,7 +43,7 @@ public class FileRequestDeadline { * @param allowLateUploads If set, allow uploads after the deadline has * passed. */ - public FileRequestDeadline(Date deadline, String allowLateUploads) { + public FileRequestDeadline(@Nullable Date deadline, @Nullable String allowLateUploads) { this.deadline = LangUtil.truncateMillis(deadline); this.allowLateUploads = allowLateUploads; } @@ -58,6 +63,7 @@ public FileRequestDeadline() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getDeadline() { return deadline; } @@ -67,6 +73,7 @@ public Date getDeadline() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAllowLateUploads() { return allowLateUploads; } 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 index 6fdbdb046..f80e91f34 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -40,7 +45,7 @@ public class FileRequestDeleteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestDeleteDetails(String fileRequestId, FileRequestDetails previousDetails) { + public FileRequestDeleteDetails(@Nullable String fileRequestId, @Nullable FileRequestDetails previousDetails) { if (fileRequestId != null) { if (fileRequestId.length() < 1) { throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); @@ -67,6 +72,7 @@ public FileRequestDeleteDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFileRequestId() { return fileRequestId; } @@ -77,6 +83,7 @@ public String getFileRequestId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileRequestDetails getPreviousDetails() { return previousDetails; } 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 index 1920cdf59..bbb621c2a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRequestDeleteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestDeleteType(String description) { + public FileRequestDeleteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRequestDeleteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 7297cee03..61c79afbc 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * File request details */ @@ -23,6 +26,7 @@ public class FileRequestDetails { // struct team_log.FileRequestDetails (team_log_generated.stone) protected final long assetIndex; + @Nullable protected final FileRequestDeadline deadline; /** @@ -31,7 +35,7 @@ public class FileRequestDetails { * @param assetIndex Asset position in the Assets list. * @param deadline File request deadline. */ - public FileRequestDetails(long assetIndex, FileRequestDeadline deadline) { + public FileRequestDetails(long assetIndex, @Nullable FileRequestDeadline deadline) { this.assetIndex = assetIndex; this.deadline = deadline; } @@ -61,6 +65,7 @@ public long getAssetIndex() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileRequestDeadline getDeadline() { return deadline; } 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 index 66d7771c8..133120358 100644 --- 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 @@ -17,16 +17,24 @@ 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; /** @@ -49,7 +57,7 @@ public class FileRequestReceiveFileDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestReceiveFileDetails(List submittedFileNames, String fileRequestId, FileRequestDetails fileRequestDetails, String submitterName, String submitterEmail) { + 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"); @@ -89,7 +97,7 @@ public FileRequestReceiveFileDetails(List submittedFileNames, String fil * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestReceiveFileDetails(List submittedFileNames) { + public FileRequestReceiveFileDetails(@Nonnull List submittedFileNames) { this(submittedFileNames, null, null, null, null); } @@ -98,6 +106,7 @@ public FileRequestReceiveFileDetails(List submittedFileNames) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSubmittedFileNames() { return submittedFileNames; } @@ -107,6 +116,7 @@ public List getSubmittedFileNames() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFileRequestId() { return fileRequestId; } @@ -116,6 +126,7 @@ public String getFileRequestId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileRequestDetails getFileRequestDetails() { return fileRequestDetails; } @@ -125,6 +136,7 @@ public FileRequestDetails getFileRequestDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSubmitterName() { return submitterName; } @@ -134,6 +146,7 @@ public String getSubmitterName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSubmitterEmail() { return submitterEmail; } 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 index 54a7edc96..1422e4d92 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRequestReceiveFileType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestReceiveFileType(String description) { + public FileRequestReceiveFileType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRequestReceiveFileType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f1579ae81..0afc8059f 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class FileRequestsChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestsChangePolicyDetails(FileRequestsPolicy newValue, FileRequestsPolicy previousValue) { + public FileRequestsChangePolicyDetails(@Nonnull FileRequestsPolicy newValue, @Nullable FileRequestsPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public FileRequestsChangePolicyDetails(FileRequestsPolicy newValue, FileRequests * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestsChangePolicyDetails(FileRequestsPolicy newValue) { + public FileRequestsChangePolicyDetails(@Nonnull FileRequestsPolicy newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public FileRequestsChangePolicyDetails(FileRequestsPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public FileRequestsPolicy getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public FileRequestsPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FileRequestsPolicy getPreviousValue() { return previousValue; } 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 index 8e0beccdf..a8d3e6557 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRequestsChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestsChangePolicyType(String description) { + public FileRequestsChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRequestsChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d4692917b..1c3e71fe4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRequestsEmailsEnabledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestsEmailsEnabledType(String description) { + public FileRequestsEmailsEnabledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRequestsEmailsEnabledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1f00a48fd..69be03845 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRequestsEmailsRestrictedToTeamOnlyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRequestsEmailsRestrictedToTeamOnlyType(String description) { + public FileRequestsEmailsRestrictedToTeamOnlyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRequestsEmailsRestrictedToTeamOnlyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e6cd67b6c..52a85ebf8 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class FileResolveCommentDetails { * * @param commentText Comment text. */ - public FileResolveCommentDetails(String commentText) { + public FileResolveCommentDetails(@Nullable String commentText) { this.commentText = commentText; } @@ -47,6 +51,7 @@ public FileResolveCommentDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 9adb38051..540b04099 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileResolveCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileResolveCommentType(String description) { + public FileResolveCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileResolveCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e98bb096c..81d3ddbeb 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRestoreType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRestoreType(String description) { + public FileRestoreType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRestoreType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index aec5af71b..40f73b8aa 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRevertType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRevertType(String description) { + public FileRevertType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRevertType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6e6052820..5a95127c0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileRollbackChangesType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileRollbackChangesType(String description) { + public FileRollbackChangesType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileRollbackChangesType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bc59027bb..0eb44c43f 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class FileSaveCopyReferenceDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileSaveCopyReferenceDetails(List relocateActionDetails) { + public FileSaveCopyReferenceDetails(@Nonnull List relocateActionDetails) { if (relocateActionDetails == null) { throw new IllegalArgumentException("Required value for 'relocateActionDetails' is null"); } @@ -51,6 +54,7 @@ public FileSaveCopyReferenceDetails(List relocat * * @return value for this field, never {@code null}. */ + @Nonnull public List getRelocateActionDetails() { return relocateActionDetails; } 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 index 9755e9f09..a3411c83b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileSaveCopyReferenceType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileSaveCopyReferenceType(String description) { + public FileSaveCopyReferenceType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileSaveCopyReferenceType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b9e88f998..c822d1919 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class FileTransfersFileAddDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersFileAddDetails(String fileTransferId) { + public FileTransfersFileAddDetails(@Nonnull String fileTransferId) { if (fileTransferId == null) { throw new IllegalArgumentException("Required value for 'fileTransferId' is null"); } @@ -44,6 +47,7 @@ public FileTransfersFileAddDetails(String fileTransferId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFileTransferId() { return fileTransferId; } 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 index 0c25cb7ec..87faf4e35 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileTransfersFileAddType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersFileAddType(String description) { + public FileTransfersFileAddType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileTransfersFileAddType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 432ce9423..4496513b7 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class FileTransfersPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersPolicyChangedDetails(FileTransfersPolicy newValue, FileTransfersPolicy previousValue) { + public FileTransfersPolicyChangedDetails(@Nonnull FileTransfersPolicy newValue, @Nonnull FileTransfersPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public FileTransfersPolicyChangedDetails(FileTransfersPolicy newValue, FileTrans * * @return value for this field, never {@code null}. */ + @Nonnull public FileTransfersPolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public FileTransfersPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public FileTransfersPolicy getPreviousValue() { return previousValue; } 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 index 19da34cbd..9da586896 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileTransfersPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersPolicyChangedType(String description) { + public FileTransfersPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileTransfersPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8f2860c6f..4ec07996d 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class FileTransfersTransferDeleteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersTransferDeleteDetails(String fileTransferId) { + public FileTransfersTransferDeleteDetails(@Nonnull String fileTransferId) { if (fileTransferId == null) { throw new IllegalArgumentException("Required value for 'fileTransferId' is null"); } @@ -44,6 +47,7 @@ public FileTransfersTransferDeleteDetails(String fileTransferId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFileTransferId() { return fileTransferId; } 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 index 697be03e6..83bb58604 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileTransfersTransferDeleteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersTransferDeleteType(String description) { + public FileTransfersTransferDeleteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileTransfersTransferDeleteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 11f6cf1e8..7672a7e35 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class FileTransfersTransferDownloadDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersTransferDownloadDetails(String fileTransferId) { + public FileTransfersTransferDownloadDetails(@Nonnull String fileTransferId) { if (fileTransferId == null) { throw new IllegalArgumentException("Required value for 'fileTransferId' is null"); } @@ -44,6 +47,7 @@ public FileTransfersTransferDownloadDetails(String fileTransferId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFileTransferId() { return fileTransferId; } 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 index 256515507..862c8cbd1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileTransfersTransferDownloadType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersTransferDownloadType(String description) { + public FileTransfersTransferDownloadType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileTransfersTransferDownloadType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 823da9e29..5ceab1402 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class FileTransfersTransferSendDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersTransferSendDetails(String fileTransferId) { + public FileTransfersTransferSendDetails(@Nonnull String fileTransferId) { if (fileTransferId == null) { throw new IllegalArgumentException("Required value for 'fileTransferId' is null"); } @@ -44,6 +47,7 @@ public FileTransfersTransferSendDetails(String fileTransferId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFileTransferId() { return fileTransferId; } 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 index 927804b6b..f710ca3f8 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileTransfersTransferSendType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersTransferSendType(String description) { + public FileTransfersTransferSendType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileTransfersTransferSendType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 021903f76..185b207fd 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class FileTransfersTransferViewDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersTransferViewDetails(String fileTransferId) { + public FileTransfersTransferViewDetails(@Nonnull String fileTransferId) { if (fileTransferId == null) { throw new IllegalArgumentException("Required value for 'fileTransferId' is null"); } @@ -44,6 +47,7 @@ public FileTransfersTransferViewDetails(String fileTransferId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFileTransferId() { return fileTransferId; } 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 index eb22ad1fb..d8abc3ec2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileTransfersTransferViewType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileTransfersTransferViewType(String description) { + public FileTransfersTransferViewType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileTransfersTransferViewType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index cf7d9f9bd..f844080fb 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class FileUnlikeCommentDetails { * * @param commentText Comment text. */ - public FileUnlikeCommentDetails(String commentText) { + public FileUnlikeCommentDetails(@Nullable String commentText) { this.commentText = commentText; } @@ -47,6 +51,7 @@ public FileUnlikeCommentDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 367731ca2..fb0caf9c9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileUnlikeCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileUnlikeCommentType(String description) { + public FileUnlikeCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileUnlikeCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5912d342d..d99fa1ce4 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class FileUnresolveCommentDetails { * * @param commentText Comment text. */ - public FileUnresolveCommentDetails(String commentText) { + public FileUnresolveCommentDetails(@Nullable String commentText) { this.commentText = commentText; } @@ -47,6 +51,7 @@ public FileUnresolveCommentDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index fed4563a2..f9ea881f1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FileUnresolveCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FileUnresolveCommentType(String description) { + public FileUnresolveCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FileUnresolveCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0f33aeb90..9e2ed2afd 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class FolderLinkRestrictionPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderLinkRestrictionPolicyChangedDetails(FolderLinkRestrictionPolicy newValue, FolderLinkRestrictionPolicy previousValue) { + public FolderLinkRestrictionPolicyChangedDetails(@Nonnull FolderLinkRestrictionPolicy newValue, @Nonnull FolderLinkRestrictionPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -50,6 +54,7 @@ public FolderLinkRestrictionPolicyChangedDetails(FolderLinkRestrictionPolicy new * * @return value for this field, never {@code null}. */ + @Nonnull public FolderLinkRestrictionPolicy getNewValue() { return newValue; } @@ -59,6 +64,7 @@ public FolderLinkRestrictionPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public FolderLinkRestrictionPolicy getPreviousValue() { return previousValue; } 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 index dfd23687a..69d59bb52 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FolderLinkRestrictionPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderLinkRestrictionPolicyChangedType(String description) { + public FolderLinkRestrictionPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FolderLinkRestrictionPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e617479aa..d579cec5d 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -39,7 +43,7 @@ public class FolderLogInfo extends FileOrFolderLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderLogInfo(PathLogInfo path, String displayName, String fileId, Long fileSize, Long fileCount) { + 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; } @@ -54,7 +58,7 @@ public FolderLogInfo(PathLogInfo path, String displayName, String fileId, Long f * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderLogInfo(PathLogInfo path) { + public FolderLogInfo(@Nonnull PathLogInfo path) { this(path, null, null, null, null); } @@ -63,6 +67,7 @@ public FolderLogInfo(PathLogInfo path) { * * @return value for this field, never {@code null}. */ + @Nonnull public PathLogInfo getPath() { return path; } @@ -72,6 +77,7 @@ public PathLogInfo getPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } @@ -81,6 +87,7 @@ public String getDisplayName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFileId() { return fileId; } @@ -90,6 +97,7 @@ public String getFileId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getFileSize() { return fileSize; } @@ -99,6 +107,7 @@ public Long getFileSize() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getFileCount() { return fileCount; } 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 index 94bcb4f84..1e0353e45 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FolderOverviewDescriptionChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderOverviewDescriptionChangedType(String description) { + public FolderOverviewDescriptionChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FolderOverviewDescriptionChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 162481e36..f2c1f6f76 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + /** * Pinned item to folder overview. */ @@ -24,6 +26,7 @@ public class FolderOverviewItemPinnedDetails { // struct team_log.FolderOverviewItemPinnedDetails (team_log_generated.stone) protected final long folderOverviewLocationAsset; + @Nonnull protected final List pinnedItemsAssetIndices; /** @@ -37,7 +40,7 @@ public class FolderOverviewItemPinnedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderOverviewItemPinnedDetails(long folderOverviewLocationAsset, List pinnedItemsAssetIndices) { + public FolderOverviewItemPinnedDetails(long folderOverviewLocationAsset, @Nonnull List pinnedItemsAssetIndices) { this.folderOverviewLocationAsset = folderOverviewLocationAsset; if (pinnedItemsAssetIndices == null) { throw new IllegalArgumentException("Required value for 'pinnedItemsAssetIndices' is null"); @@ -64,6 +67,7 @@ public long getFolderOverviewLocationAsset() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getPinnedItemsAssetIndices() { return pinnedItemsAssetIndices; } 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 index 69c6f28e8..38aea94ce 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FolderOverviewItemPinnedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderOverviewItemPinnedType(String description) { + public FolderOverviewItemPinnedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FolderOverviewItemPinnedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3018702bc..165f4f46f 100644 --- 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 @@ -17,6 +17,8 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + /** * Unpinned item from folder overview. */ @@ -24,6 +26,7 @@ public class FolderOverviewItemUnpinnedDetails { // struct team_log.FolderOverviewItemUnpinnedDetails (team_log_generated.stone) protected final long folderOverviewLocationAsset; + @Nonnull protected final List pinnedItemsAssetIndices; /** @@ -37,7 +40,7 @@ public class FolderOverviewItemUnpinnedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderOverviewItemUnpinnedDetails(long folderOverviewLocationAsset, List pinnedItemsAssetIndices) { + public FolderOverviewItemUnpinnedDetails(long folderOverviewLocationAsset, @Nonnull List pinnedItemsAssetIndices) { this.folderOverviewLocationAsset = folderOverviewLocationAsset; if (pinnedItemsAssetIndices == null) { throw new IllegalArgumentException("Required value for 'pinnedItemsAssetIndices' is null"); @@ -64,6 +67,7 @@ public long getFolderOverviewLocationAsset() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getPinnedItemsAssetIndices() { return pinnedItemsAssetIndices; } 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 index 98a548a8b..ce91ea26c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class FolderOverviewItemUnpinnedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FolderOverviewItemUnpinnedType(String description) { + public FolderOverviewItemUnpinnedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public FolderOverviewItemUnpinnedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3534a3412..06dfea8d2 100644 --- 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 @@ -16,15 +16,22 @@ 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; /** @@ -41,7 +48,7 @@ public class GeoLocationLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GeoLocationLogInfo(String ipAddress, String city, String region, String country) { + public GeoLocationLogInfo(@Nonnull String ipAddress, @Nullable String city, @Nullable String region, @Nullable String country) { this.city = city; this.region = region; this.country = country; @@ -61,7 +68,7 @@ public GeoLocationLogInfo(String ipAddress, String city, String region, String c * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GeoLocationLogInfo(String ipAddress) { + public GeoLocationLogInfo(@Nonnull String ipAddress) { this(ipAddress, null, null, null); } @@ -70,6 +77,7 @@ public GeoLocationLogInfo(String ipAddress) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getIpAddress() { return ipAddress; } @@ -79,6 +87,7 @@ public String getIpAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCity() { return city; } @@ -88,6 +97,7 @@ public String getCity() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getRegion() { return region; } @@ -97,6 +107,7 @@ public String getRegion() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCountry() { return country; } 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 index ec3552e9a..e0a19ebcd 100644 --- 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 @@ -17,13 +17,20 @@ 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; /** @@ -48,7 +55,7 @@ class GetTeamEventsArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTeamEventsArg(long limit, String accountId, TimeRange time, EventCategory category, EventTypeArg eventType) { + 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"); } @@ -99,6 +106,7 @@ public long getLimit() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAccountId() { return accountId; } @@ -108,6 +116,7 @@ public String getAccountId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TimeRange getTime() { return time; } @@ -118,6 +127,7 @@ public TimeRange getTime() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public EventCategory getCategory() { return category; } @@ -128,6 +138,7 @@ public EventCategory getCategory() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public EventTypeArg getEventType() { return eventType; } 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 index 214e22ea0..f99e3a016 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ class GetTeamEventsContinueArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTeamEventsContinueArg(String cursor) { + public GetTeamEventsContinueArg(@Nonnull String cursor) { if (cursor == null) { throw new IllegalArgumentException("Required value for 'cursor' is null"); } @@ -41,6 +44,7 @@ public GetTeamEventsContinueArg(String cursor) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index e1114a1b5..d350b174d 100644 --- 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 @@ -17,10 +17,14 @@ 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; @@ -49,7 +53,7 @@ public class GetTeamEventsResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetTeamEventsResult(List events, String cursor, boolean hasMore) { + public GetTeamEventsResult(@Nonnull List events, @Nonnull String cursor, boolean hasMore) { if (events == null) { throw new IllegalArgumentException("Required value for 'events' is null"); } @@ -72,6 +76,7 @@ public GetTeamEventsResult(List events, String cursor, boolean hasMor * * @return value for this field, never {@code null}. */ + @Nonnull public List getEvents() { return events; } @@ -90,6 +95,7 @@ public List getEvents() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getCursor() { return cursor; } 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 index 541254c1e..da592c374 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class GoogleSsoChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GoogleSsoChangePolicyDetails(GoogleSsoPolicy newValue, GoogleSsoPolicy previousValue) { + public GoogleSsoChangePolicyDetails(@Nonnull GoogleSsoPolicy newValue, @Nullable GoogleSsoPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -55,7 +60,7 @@ public GoogleSsoChangePolicyDetails(GoogleSsoPolicy newValue, GoogleSsoPolicy pr * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GoogleSsoChangePolicyDetails(GoogleSsoPolicy newValue) { + public GoogleSsoChangePolicyDetails(@Nonnull GoogleSsoPolicy newValue) { this(newValue, null); } @@ -64,6 +69,7 @@ public GoogleSsoChangePolicyDetails(GoogleSsoPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public GoogleSsoPolicy getNewValue() { return newValue; } @@ -74,6 +80,7 @@ public GoogleSsoPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GoogleSsoPolicy getPreviousValue() { return previousValue; } 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 index afae348b3..8515a71df 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GoogleSsoChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GoogleSsoChangePolicyType(String description) { + public GoogleSsoChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GoogleSsoChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 39c547afe..026c90f77 100644 --- 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 @@ -16,16 +16,24 @@ 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; /** @@ -43,7 +51,7 @@ public class GovernancePolicyAddFolderFailedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyAddFolderFailedDetails(String governancePolicyId, String name, String folder, PolicyType policyType, String reason) { + 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"); } @@ -72,7 +80,7 @@ public GovernancePolicyAddFolderFailedDetails(String governancePolicyId, String * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyAddFolderFailedDetails(String governancePolicyId, String name, String folder) { + public GovernancePolicyAddFolderFailedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String folder) { this(governancePolicyId, name, folder, null, null); } @@ -81,6 +89,7 @@ public GovernancePolicyAddFolderFailedDetails(String governancePolicyId, String * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -90,6 +99,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -99,6 +109,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFolder() { return folder; } @@ -108,6 +119,7 @@ public String getFolder() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } @@ -117,6 +129,7 @@ public PolicyType getPolicyType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getReason() { return reason; } 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 index b72341a69..6e91db803 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyAddFolderFailedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyAddFolderFailedType(String description) { + public GovernancePolicyAddFolderFailedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyAddFolderFailedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 35d5846b6..016f566ef 100644 --- 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 @@ -17,15 +17,22 @@ 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; /** @@ -42,7 +49,7 @@ public class GovernancePolicyAddFoldersDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyAddFoldersDetails(String governancePolicyId, String name, PolicyType policyType, List folders) { + 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"); } @@ -73,7 +80,7 @@ public GovernancePolicyAddFoldersDetails(String governancePolicyId, String name, * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyAddFoldersDetails(String governancePolicyId, String name) { + public GovernancePolicyAddFoldersDetails(@Nonnull String governancePolicyId, @Nonnull String name) { this(governancePolicyId, name, null, null); } @@ -82,6 +89,7 @@ public GovernancePolicyAddFoldersDetails(String governancePolicyId, String name) * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -91,6 +99,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -100,6 +109,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } @@ -109,6 +119,7 @@ public PolicyType getPolicyType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getFolders() { return folders; } 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 index dd91c427b..18d10256e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyAddFoldersType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyAddFoldersType(String description) { + public GovernancePolicyAddFoldersType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyAddFoldersType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 75ffc756c..090f41039 100644 --- 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 @@ -16,15 +16,22 @@ 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; /** @@ -38,7 +45,7 @@ public class GovernancePolicyContentDisposedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyContentDisposedDetails(String governancePolicyId, String name, DispositionActionType dispositionType, PolicyType policyType) { + 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"); } @@ -66,7 +73,7 @@ public GovernancePolicyContentDisposedDetails(String governancePolicyId, String * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyContentDisposedDetails(String governancePolicyId, String name, DispositionActionType dispositionType) { + public GovernancePolicyContentDisposedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DispositionActionType dispositionType) { this(governancePolicyId, name, dispositionType, null); } @@ -75,6 +82,7 @@ public GovernancePolicyContentDisposedDetails(String governancePolicyId, String * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -84,6 +92,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -93,6 +102,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public DispositionActionType getDispositionType() { return dispositionType; } @@ -102,6 +112,7 @@ public DispositionActionType getDispositionType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } 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 index cd2586fb7..b3aa6ab3a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyContentDisposedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyContentDisposedType(String description) { + public GovernancePolicyContentDisposedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyContentDisposedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 38dbd4083..b8877b52f 100644 --- 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 @@ -17,16 +17,24 @@ 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; /** @@ -44,7 +52,7 @@ public class GovernancePolicyCreateDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyCreateDetails(String governancePolicyId, String name, DurationLogInfo duration, PolicyType policyType, List folders) { + 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"); } @@ -80,7 +88,7 @@ public GovernancePolicyCreateDetails(String governancePolicyId, String name, Dur * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyCreateDetails(String governancePolicyId, String name, DurationLogInfo duration) { + public GovernancePolicyCreateDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DurationLogInfo duration) { this(governancePolicyId, name, duration, null, null); } @@ -89,6 +97,7 @@ public GovernancePolicyCreateDetails(String governancePolicyId, String name, Dur * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -98,6 +107,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -107,6 +117,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public DurationLogInfo getDuration() { return duration; } @@ -116,6 +127,7 @@ public DurationLogInfo getDuration() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } @@ -125,6 +137,7 @@ public PolicyType getPolicyType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getFolders() { return folders; } 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 index 65d5cd826..eff2ecfc1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyCreateType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyCreateType(String description) { + public GovernancePolicyCreateType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyCreateType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3fb654dc3..a67b48857 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -36,7 +42,7 @@ public class GovernancePolicyDeleteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyDeleteDetails(String governancePolicyId, String name, PolicyType policyType) { + public GovernancePolicyDeleteDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nullable PolicyType policyType) { if (governancePolicyId == null) { throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); } @@ -59,7 +65,7 @@ public GovernancePolicyDeleteDetails(String governancePolicyId, String name, Pol * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyDeleteDetails(String governancePolicyId, String name) { + public GovernancePolicyDeleteDetails(@Nonnull String governancePolicyId, @Nonnull String name) { this(governancePolicyId, name, null); } @@ -68,6 +74,7 @@ public GovernancePolicyDeleteDetails(String governancePolicyId, String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -77,6 +84,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -86,6 +94,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } 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 index 9db97d1ba..3216da6fb 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyDeleteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyDeleteType(String description) { + public GovernancePolicyDeleteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyDeleteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index af21fdad6..5863110c2 100644 --- 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 @@ -16,17 +16,26 @@ 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; /** @@ -42,7 +51,7 @@ public class GovernancePolicyEditDetailsDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyEditDetailsDetails(String governancePolicyId, String name, String attribute, String previousValue, String newValue, PolicyType policyType) { + 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"); } @@ -80,7 +89,7 @@ public GovernancePolicyEditDetailsDetails(String governancePolicyId, String name * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyEditDetailsDetails(String governancePolicyId, String name, String attribute, String previousValue, String newValue) { + public GovernancePolicyEditDetailsDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String attribute, @Nonnull String previousValue, @Nonnull String newValue) { this(governancePolicyId, name, attribute, previousValue, newValue, null); } @@ -89,6 +98,7 @@ public GovernancePolicyEditDetailsDetails(String governancePolicyId, String name * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -98,6 +108,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -107,6 +118,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAttribute() { return attribute; } @@ -116,6 +128,7 @@ public String getAttribute() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } @@ -125,6 +138,7 @@ public String getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } @@ -134,6 +148,7 @@ public String getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } 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 index 4498c61c0..b3f924905 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyEditDetailsType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyEditDetailsType(String description) { + public GovernancePolicyEditDetailsType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyEditDetailsType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index dc9df43c6..7f169672d 100644 --- 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 @@ -16,16 +16,24 @@ 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; /** @@ -40,7 +48,7 @@ public class GovernancePolicyEditDurationDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyEditDurationDetails(String governancePolicyId, String name, DurationLogInfo previousValue, DurationLogInfo newValue, PolicyType policyType) { + 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"); } @@ -73,7 +81,7 @@ public GovernancePolicyEditDurationDetails(String governancePolicyId, String nam * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyEditDurationDetails(String governancePolicyId, String name, DurationLogInfo previousValue, DurationLogInfo newValue) { + public GovernancePolicyEditDurationDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DurationLogInfo previousValue, @Nonnull DurationLogInfo newValue) { this(governancePolicyId, name, previousValue, newValue, null); } @@ -82,6 +90,7 @@ public GovernancePolicyEditDurationDetails(String governancePolicyId, String nam * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -91,6 +100,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -100,6 +110,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public DurationLogInfo getPreviousValue() { return previousValue; } @@ -109,6 +120,7 @@ public DurationLogInfo getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public DurationLogInfo getNewValue() { return newValue; } @@ -118,6 +130,7 @@ public DurationLogInfo getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } 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 index 3e49c4144..1d37a4772 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyEditDurationType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyEditDurationType(String description) { + public GovernancePolicyEditDurationType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyEditDurationType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index fbea8ff60..aad8eb3e9 100644 --- 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 @@ -16,15 +16,22 @@ 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; /** @@ -38,7 +45,7 @@ public class GovernancePolicyExportCreatedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyExportCreatedDetails(String governancePolicyId, String name, String exportName, PolicyType policyType) { + 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"); } @@ -66,7 +73,7 @@ public GovernancePolicyExportCreatedDetails(String governancePolicyId, String na * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyExportCreatedDetails(String governancePolicyId, String name, String exportName) { + public GovernancePolicyExportCreatedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String exportName) { this(governancePolicyId, name, exportName, null); } @@ -75,6 +82,7 @@ public GovernancePolicyExportCreatedDetails(String governancePolicyId, String na * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -84,6 +92,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -93,6 +102,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getExportName() { return exportName; } @@ -102,6 +112,7 @@ public String getExportName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } 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 index d36e5b348..eeff79f73 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyExportCreatedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyExportCreatedType(String description) { + public GovernancePolicyExportCreatedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyExportCreatedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1763ae079..39291805e 100644 --- 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 @@ -16,15 +16,22 @@ 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; /** @@ -38,7 +45,7 @@ public class GovernancePolicyExportRemovedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyExportRemovedDetails(String governancePolicyId, String name, String exportName, PolicyType policyType) { + 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"); } @@ -66,7 +73,7 @@ public GovernancePolicyExportRemovedDetails(String governancePolicyId, String na * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyExportRemovedDetails(String governancePolicyId, String name, String exportName) { + public GovernancePolicyExportRemovedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String exportName) { this(governancePolicyId, name, exportName, null); } @@ -75,6 +82,7 @@ public GovernancePolicyExportRemovedDetails(String governancePolicyId, String na * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -84,6 +92,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -93,6 +102,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getExportName() { return exportName; } @@ -102,6 +112,7 @@ public String getExportName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } 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 index 4eb0aef7b..33836b667 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyExportRemovedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyExportRemovedType(String description) { + public GovernancePolicyExportRemovedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyExportRemovedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bff92a940..b3b35b073 100644 --- 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 @@ -17,16 +17,24 @@ 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; /** @@ -44,7 +52,7 @@ public class GovernancePolicyRemoveFoldersDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyRemoveFoldersDetails(String governancePolicyId, String name, PolicyType policyType, List folders, String reason) { + 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"); } @@ -76,7 +84,7 @@ public GovernancePolicyRemoveFoldersDetails(String governancePolicyId, String na * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyRemoveFoldersDetails(String governancePolicyId, String name) { + public GovernancePolicyRemoveFoldersDetails(@Nonnull String governancePolicyId, @Nonnull String name) { this(governancePolicyId, name, null, null, null); } @@ -85,6 +93,7 @@ public GovernancePolicyRemoveFoldersDetails(String governancePolicyId, String na * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -94,6 +103,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -103,6 +113,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } @@ -112,6 +123,7 @@ public PolicyType getPolicyType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getFolders() { return folders; } @@ -121,6 +133,7 @@ public List getFolders() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getReason() { return reason; } 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 index 52edee155..941449a2b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyRemoveFoldersType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyRemoveFoldersType(String description) { + public GovernancePolicyRemoveFoldersType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyRemoveFoldersType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8568a8284..654d08103 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -36,7 +42,7 @@ public class GovernancePolicyReportCreatedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyReportCreatedDetails(String governancePolicyId, String name, PolicyType policyType) { + public GovernancePolicyReportCreatedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nullable PolicyType policyType) { if (governancePolicyId == null) { throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); } @@ -59,7 +65,7 @@ public GovernancePolicyReportCreatedDetails(String governancePolicyId, String na * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyReportCreatedDetails(String governancePolicyId, String name) { + public GovernancePolicyReportCreatedDetails(@Nonnull String governancePolicyId, @Nonnull String name) { this(governancePolicyId, name, null); } @@ -68,6 +74,7 @@ public GovernancePolicyReportCreatedDetails(String governancePolicyId, String na * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -77,6 +84,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -86,6 +94,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } 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 index 345027a51..a9e0bd17b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyReportCreatedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyReportCreatedType(String description) { + public GovernancePolicyReportCreatedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyReportCreatedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a9398ea85..3288059bc 100644 --- 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 @@ -16,16 +16,24 @@ 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; /** @@ -43,7 +51,7 @@ public class GovernancePolicyZipPartDownloadedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyZipPartDownloadedDetails(String governancePolicyId, String name, String exportName, PolicyType policyType, String part) { + 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"); } @@ -72,7 +80,7 @@ public GovernancePolicyZipPartDownloadedDetails(String governancePolicyId, Strin * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyZipPartDownloadedDetails(String governancePolicyId, String name, String exportName) { + public GovernancePolicyZipPartDownloadedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String exportName) { this(governancePolicyId, name, exportName, null, null); } @@ -81,6 +89,7 @@ public GovernancePolicyZipPartDownloadedDetails(String governancePolicyId, Strin * * @return value for this field, never {@code null}. */ + @Nonnull public String getGovernancePolicyId() { return governancePolicyId; } @@ -90,6 +99,7 @@ public String getGovernancePolicyId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -99,6 +109,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getExportName() { return exportName; } @@ -108,6 +119,7 @@ public String getExportName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PolicyType getPolicyType() { return policyType; } @@ -117,6 +129,7 @@ public PolicyType getPolicyType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPart() { return part; } 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 index e9bb090bc..4dee89174 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GovernancePolicyZipPartDownloadedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GovernancePolicyZipPartDownloadedType(String description) { + public GovernancePolicyZipPartDownloadedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GovernancePolicyZipPartDownloadedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4032731d7..0aaf6ad61 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class GroupAddExternalIdDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupAddExternalIdDetails(String newValue) { + public GroupAddExternalIdDetails(@Nonnull String newValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -44,6 +47,7 @@ public GroupAddExternalIdDetails(String newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } 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 index 4d4d58d74..df708340f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupAddExternalIdType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupAddExternalIdType(String description) { + public GroupAddExternalIdType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupAddExternalIdType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index afd05843a..10e56c1ba 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupAddMemberType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupAddMemberType(String description) { + public GroupAddMemberType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupAddMemberType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f4ab89fb7..1ffc53d6c 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class GroupChangeExternalIdDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupChangeExternalIdDetails(String newValue, String previousValue) { + public GroupChangeExternalIdDetails(@Nonnull String newValue, @Nonnull String previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -50,6 +54,7 @@ public GroupChangeExternalIdDetails(String newValue, String previousValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } @@ -59,6 +64,7 @@ public String getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } 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 index 046adf744..bf7fd2264 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupChangeExternalIdType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupChangeExternalIdType(String description) { + public GroupChangeExternalIdType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupChangeExternalIdType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 32a77e326..34927ae40 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class GroupChangeManagementTypeDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupChangeManagementTypeDetails(GroupManagementType newValue, GroupManagementType previousValue) { + public GroupChangeManagementTypeDetails(@Nonnull GroupManagementType newValue, @Nullable GroupManagementType previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -54,7 +59,7 @@ public GroupChangeManagementTypeDetails(GroupManagementType newValue, GroupManag * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupChangeManagementTypeDetails(GroupManagementType newValue) { + public GroupChangeManagementTypeDetails(@Nonnull GroupManagementType newValue) { this(newValue, null); } @@ -63,6 +68,7 @@ public GroupChangeManagementTypeDetails(GroupManagementType newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupManagementType getNewValue() { return newValue; } @@ -73,6 +79,7 @@ public GroupManagementType getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GroupManagementType getPreviousValue() { return previousValue; } 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 index ff351d8e7..e6bbc4138 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupChangeManagementTypeType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupChangeManagementTypeType(String description) { + public GroupChangeManagementTypeType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupChangeManagementTypeType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2bf974ffe..1d06a4549 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupChangeMemberRoleType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupChangeMemberRoleType(String description) { + public GroupChangeMemberRoleType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupChangeMemberRoleType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index df44bcb7e..9658fe2fd 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class GroupCreateDetails { * @param isCompanyManaged Is company managed group. * @param joinPolicy Group join policy. */ - public GroupCreateDetails(Boolean isCompanyManaged, GroupJoinPolicy joinPolicy) { + public GroupCreateDetails(@Nullable Boolean isCompanyManaged, @Nullable GroupJoinPolicy joinPolicy) { this.isCompanyManaged = isCompanyManaged; this.joinPolicy = joinPolicy; } @@ -53,6 +58,7 @@ public GroupCreateDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsCompanyManaged() { return isCompanyManaged; } @@ -62,6 +68,7 @@ public Boolean getIsCompanyManaged() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GroupJoinPolicy getJoinPolicy() { return joinPolicy; } 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 index cce62c6dd..406bf5d9b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupCreateType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupCreateType(String description) { + public GroupCreateType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupCreateType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 351c4bb82..3e3f4aa4d 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class GroupDeleteDetails { * * @param isCompanyManaged Is company managed group. */ - public GroupDeleteDetails(Boolean isCompanyManaged) { + public GroupDeleteDetails(@Nullable Boolean isCompanyManaged) { this.isCompanyManaged = isCompanyManaged; } @@ -47,6 +51,7 @@ public GroupDeleteDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsCompanyManaged() { return isCompanyManaged; } 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 index 5614ebb27..a7efc7c3a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupDeleteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupDeleteType(String description) { + public GroupDeleteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupDeleteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0754a52b5..560cbe019 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupDescriptionUpdatedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupDescriptionUpdatedType(String description) { + public GroupDescriptionUpdatedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupDescriptionUpdatedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 92385ba53..5d6663bf9 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class GroupJoinPolicyUpdatedDetails { * @param isCompanyManaged Is company managed group. * @param joinPolicy Group join policy. */ - public GroupJoinPolicyUpdatedDetails(Boolean isCompanyManaged, GroupJoinPolicy joinPolicy) { + public GroupJoinPolicyUpdatedDetails(@Nullable Boolean isCompanyManaged, @Nullable GroupJoinPolicy joinPolicy) { this.isCompanyManaged = isCompanyManaged; this.joinPolicy = joinPolicy; } @@ -53,6 +58,7 @@ public GroupJoinPolicyUpdatedDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsCompanyManaged() { return isCompanyManaged; } @@ -62,6 +68,7 @@ public Boolean getIsCompanyManaged() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GroupJoinPolicy getJoinPolicy() { return joinPolicy; } 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 index b62aad3ce..15d87694f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupJoinPolicyUpdatedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupJoinPolicyUpdatedType(String description) { + public GroupJoinPolicyUpdatedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupJoinPolicyUpdatedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d86300634..2e4d3abc9 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -39,7 +45,7 @@ public class GroupLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupLogInfo(String displayName, String groupId, String externalId) { + 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"); @@ -58,7 +64,7 @@ public GroupLogInfo(String displayName, String groupId, String externalId) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupLogInfo(String displayName) { + public GroupLogInfo(@Nonnull String displayName) { this(displayName, null, null); } @@ -67,6 +73,7 @@ public GroupLogInfo(String displayName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDisplayName() { return displayName; } @@ -76,6 +83,7 @@ public String getDisplayName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getGroupId() { return groupId; } @@ -85,6 +93,7 @@ public String getGroupId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getExternalId() { return externalId; } 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 index 67fcbaddb..e75913198 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupMovedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupMovedType(String description) { + public GroupMovedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupMovedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ed9eebdf1..e818e3249 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class GroupRemoveExternalIdDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupRemoveExternalIdDetails(String previousValue) { + public GroupRemoveExternalIdDetails(@Nonnull String previousValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -44,6 +47,7 @@ public GroupRemoveExternalIdDetails(String previousValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } 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 index ce30ac178..2114f19d8 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupRemoveExternalIdType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupRemoveExternalIdType(String description) { + public GroupRemoveExternalIdType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupRemoveExternalIdType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ff0ebd496..5f58ad44e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupRemoveMemberType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupRemoveMemberType(String description) { + public GroupRemoveMemberType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupRemoveMemberType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4945b186b..16823c26c 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class GroupRenameDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupRenameDetails(String previousValue, String newValue) { + public GroupRenameDetails(@Nonnull String previousValue, @Nonnull String newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -50,6 +54,7 @@ public GroupRenameDetails(String previousValue, String newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } @@ -59,6 +64,7 @@ public String getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } 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 index 0b5eda344..bd8ea2ad4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupRenameType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupRenameType(String description) { + public GroupRenameType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupRenameType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 03bcb16c8..21febd8e0 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -37,7 +42,7 @@ public class GroupUserManagementChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupUserManagementChangePolicyDetails(GroupCreation newValue, GroupCreation previousValue) { + public GroupUserManagementChangePolicyDetails(@Nonnull GroupCreation newValue, @Nullable GroupCreation previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -56,7 +61,7 @@ public GroupUserManagementChangePolicyDetails(GroupCreation newValue, GroupCreat * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupUserManagementChangePolicyDetails(GroupCreation newValue) { + public GroupUserManagementChangePolicyDetails(@Nonnull GroupCreation newValue) { this(newValue, null); } @@ -65,6 +70,7 @@ public GroupUserManagementChangePolicyDetails(GroupCreation newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupCreation getNewValue() { return newValue; } @@ -75,6 +81,7 @@ public GroupCreation getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GroupCreation getPreviousValue() { return previousValue; } 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 index 2d40b6415..25005a315 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GroupUserManagementChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GroupUserManagementChangePolicyType(String description) { + public GroupUserManagementChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GroupUserManagementChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 7086e14dc..c7a6d9fa9 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Changed guest team admin status. */ @@ -23,10 +26,15 @@ 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; /** @@ -45,7 +53,7 @@ public class GuestAdminChangeStatusDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GuestAdminChangeStatusDetails(boolean isGuest, TrustedTeamsRequestState previousValue, TrustedTeamsRequestState newValue, TrustedTeamsRequestAction actionDetails, String guestTeamName, String hostTeamName) { + 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; @@ -76,7 +84,7 @@ public GuestAdminChangeStatusDetails(boolean isGuest, TrustedTeamsRequestState p * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GuestAdminChangeStatusDetails(boolean isGuest, TrustedTeamsRequestState previousValue, TrustedTeamsRequestState newValue, TrustedTeamsRequestAction actionDetails) { + public GuestAdminChangeStatusDetails(boolean isGuest, @Nonnull TrustedTeamsRequestState previousValue, @Nonnull TrustedTeamsRequestState newValue, @Nonnull TrustedTeamsRequestAction actionDetails) { this(isGuest, previousValue, newValue, actionDetails, null, null); } @@ -94,6 +102,7 @@ public boolean getIsGuest() { * * @return value for this field, never {@code null}. */ + @Nonnull public TrustedTeamsRequestState getPreviousValue() { return previousValue; } @@ -103,6 +112,7 @@ public TrustedTeamsRequestState getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public TrustedTeamsRequestState getNewValue() { return newValue; } @@ -112,6 +122,7 @@ public TrustedTeamsRequestState getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public TrustedTeamsRequestAction getActionDetails() { return actionDetails; } @@ -121,6 +132,7 @@ public TrustedTeamsRequestAction getActionDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getGuestTeamName() { return guestTeamName; } @@ -130,6 +142,7 @@ public String getGuestTeamName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getHostTeamName() { return hostTeamName; } 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 index eb0ab0240..fb214a1ca 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GuestAdminChangeStatusType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GuestAdminChangeStatusType(String description) { + public GuestAdminChangeStatusType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GuestAdminChangeStatusType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 784d8d525..8cf48e9ad 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class GuestAdminSignedInViaTrustedTeamsDetails { * @param teamName Host team name. * @param trustedTeamName Trusted team name. */ - public GuestAdminSignedInViaTrustedTeamsDetails(String teamName, String trustedTeamName) { + public GuestAdminSignedInViaTrustedTeamsDetails(@Nullable String teamName, @Nullable String trustedTeamName) { this.teamName = teamName; this.trustedTeamName = trustedTeamName; } @@ -53,6 +58,7 @@ public GuestAdminSignedInViaTrustedTeamsDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTeamName() { return teamName; } @@ -62,6 +68,7 @@ public String getTeamName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTrustedTeamName() { return trustedTeamName; } 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 index f3d9057bb..7184fdd8f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GuestAdminSignedInViaTrustedTeamsType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GuestAdminSignedInViaTrustedTeamsType(String description) { + public GuestAdminSignedInViaTrustedTeamsType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GuestAdminSignedInViaTrustedTeamsType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ed35020cd..3e72a47f0 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class GuestAdminSignedOutViaTrustedTeamsDetails { * @param teamName Host team name. * @param trustedTeamName Trusted team name. */ - public GuestAdminSignedOutViaTrustedTeamsDetails(String teamName, String trustedTeamName) { + public GuestAdminSignedOutViaTrustedTeamsDetails(@Nullable String teamName, @Nullable String trustedTeamName) { this.teamName = teamName; this.trustedTeamName = trustedTeamName; } @@ -53,6 +58,7 @@ public GuestAdminSignedOutViaTrustedTeamsDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTeamName() { return teamName; } @@ -62,6 +68,7 @@ public String getTeamName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTrustedTeamName() { return trustedTeamName; } 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 index ac28f2b4f..248bcf86b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class GuestAdminSignedOutViaTrustedTeamsType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GuestAdminSignedOutViaTrustedTeamsType(String description) { + public GuestAdminSignedOutViaTrustedTeamsType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public GuestAdminSignedOutViaTrustedTeamsType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0fe0ba966..02da13bf3 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class IntegrationConnectedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public IntegrationConnectedDetails(String integrationName) { + public IntegrationConnectedDetails(@Nonnull String integrationName) { if (integrationName == null) { throw new IllegalArgumentException("Required value for 'integrationName' is null"); } @@ -45,6 +48,7 @@ public IntegrationConnectedDetails(String integrationName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getIntegrationName() { return integrationName; } 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 index 60cf98f87..6d2d0b7d2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class IntegrationConnectedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public IntegrationConnectedType(String description) { + public IntegrationConnectedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public IntegrationConnectedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d1e3da6d3..3cb3b86e0 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class IntegrationDisconnectedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public IntegrationDisconnectedDetails(String integrationName) { + public IntegrationDisconnectedDetails(@Nonnull String integrationName) { if (integrationName == null) { throw new IllegalArgumentException("Required value for 'integrationName' is null"); } @@ -45,6 +48,7 @@ public IntegrationDisconnectedDetails(String integrationName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getIntegrationName() { return integrationName; } 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 index 4208f65e8..300f3447b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class IntegrationDisconnectedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public IntegrationDisconnectedType(String description) { + public IntegrationDisconnectedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public IntegrationDisconnectedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8b7a461cc..fe4e827ab 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -38,7 +43,7 @@ public class IntegrationPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public IntegrationPolicyChangedDetails(String integrationName, IntegrationPolicy newValue, IntegrationPolicy previousValue) { + public IntegrationPolicyChangedDetails(@Nonnull String integrationName, @Nonnull IntegrationPolicy newValue, @Nonnull IntegrationPolicy previousValue) { if (integrationName == null) { throw new IllegalArgumentException("Required value for 'integrationName' is null"); } @@ -58,6 +63,7 @@ public IntegrationPolicyChangedDetails(String integrationName, IntegrationPolicy * * @return value for this field, never {@code null}. */ + @Nonnull public String getIntegrationName() { return integrationName; } @@ -67,6 +73,7 @@ public String getIntegrationName() { * * @return value for this field, never {@code null}. */ + @Nonnull public IntegrationPolicy getNewValue() { return newValue; } @@ -76,6 +83,7 @@ public IntegrationPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public IntegrationPolicy getPreviousValue() { return previousValue; } 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 index a7e1c4ab9..365da6243 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class IntegrationPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public IntegrationPolicyChangedType(String description) { + public IntegrationPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public IntegrationPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index fd8c3f5bd..b4343b8a4 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class InviteAcceptanceEmailPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public InviteAcceptanceEmailPolicyChangedDetails(InviteAcceptanceEmailPolicy newValue, InviteAcceptanceEmailPolicy previousValue) { + public InviteAcceptanceEmailPolicyChangedDetails(@Nonnull InviteAcceptanceEmailPolicy newValue, @Nonnull InviteAcceptanceEmailPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -50,6 +54,7 @@ public InviteAcceptanceEmailPolicyChangedDetails(InviteAcceptanceEmailPolicy new * * @return value for this field, never {@code null}. */ + @Nonnull public InviteAcceptanceEmailPolicy getNewValue() { return newValue; } @@ -59,6 +64,7 @@ public InviteAcceptanceEmailPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public InviteAcceptanceEmailPolicy getPreviousValue() { return previousValue; } 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 index c27dbef53..7cb715efd 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class InviteAcceptanceEmailPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public InviteAcceptanceEmailPolicyChangedType(String description) { + public InviteAcceptanceEmailPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public InviteAcceptanceEmailPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a922588c6..cf3b32954 100644 --- 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 @@ -17,20 +17,32 @@ 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; /** @@ -63,7 +75,7 @@ public class JoinTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public JoinTeamDetails(List linkedApps, List linkedDevices, List linkedSharedFolders, Boolean wasLinkedAppsTruncated, Boolean wasLinkedDevicesTruncated, Boolean wasLinkedSharedFoldersTruncated, Boolean hasLinkedApps, Boolean hasLinkedDevices, Boolean hasLinkedSharedFolders) { + 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"); } @@ -117,7 +129,7 @@ public JoinTeamDetails(List linkedApps, List linkedApps, List linkedDevices, List linkedSharedFolders) { + public JoinTeamDetails(@Nonnull List linkedApps, @Nonnull List linkedDevices, @Nonnull List linkedSharedFolders) { this(linkedApps, linkedDevices, linkedSharedFolders, null, null, null, null, null, null); } @@ -127,6 +139,7 @@ public JoinTeamDetails(List linkedApps, List getLinkedApps() { return linkedApps; } @@ -137,6 +150,7 @@ public List getLinkedApps() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLinkedDevices() { return linkedDevices; } @@ -147,6 +161,7 @@ public List getLinkedDevices() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getLinkedSharedFolders() { return linkedSharedFolders; } @@ -157,6 +172,7 @@ public List getLinkedSharedFolders() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getWasLinkedAppsTruncated() { return wasLinkedAppsTruncated; } @@ -167,6 +183,7 @@ public Boolean getWasLinkedAppsTruncated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getWasLinkedDevicesTruncated() { return wasLinkedDevicesTruncated; } @@ -177,6 +194,7 @@ public Boolean getWasLinkedDevicesTruncated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getWasLinkedSharedFoldersTruncated() { return wasLinkedSharedFoldersTruncated; } @@ -186,6 +204,7 @@ public Boolean getWasLinkedSharedFoldersTruncated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getHasLinkedApps() { return hasLinkedApps; } @@ -195,6 +214,7 @@ public Boolean getHasLinkedApps() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getHasLinkedDevices() { return hasLinkedDevices; } @@ -204,6 +224,7 @@ public Boolean getHasLinkedDevices() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getHasLinkedSharedFolders() { return hasLinkedSharedFolders; } 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 index d7d26cdcc..0ee131c66 100644 --- 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 @@ -18,20 +18,32 @@ 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; /** @@ -61,7 +73,7 @@ public class LegacyDeviceSessionLogInfo extends DeviceSessionLogInfo { * @param legacyUniqId Alternative unique device session id, instead of * session id field. Might be missing due to historical data gap. */ - public LegacyDeviceSessionLogInfo(String ipAddress, Date created, Date updated, SessionLogInfo sessionInfo, String displayName, Boolean isEmmManaged, String platform, String macAddress, String osVersion, String deviceType, String clientVersion, String legacyUniqId) { + 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; @@ -88,6 +100,7 @@ public LegacyDeviceSessionLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getIpAddress() { return ipAddress; } @@ -97,6 +110,7 @@ public String getIpAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getCreated() { return created; } @@ -106,6 +120,7 @@ public Date getCreated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getUpdated() { return updated; } @@ -115,6 +130,7 @@ public Date getUpdated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SessionLogInfo getSessionInfo() { return sessionInfo; } @@ -124,6 +140,7 @@ public SessionLogInfo getSessionInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } @@ -133,6 +150,7 @@ public String getDisplayName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsEmmManaged() { return isEmmManaged; } @@ -143,6 +161,7 @@ public Boolean getIsEmmManaged() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPlatform() { return platform; } @@ -153,6 +172,7 @@ public String getPlatform() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMacAddress() { return macAddress; } @@ -162,6 +182,7 @@ public String getMacAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getOsVersion() { return osVersion; } @@ -172,6 +193,7 @@ public String getOsVersion() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDeviceType() { return deviceType; } @@ -181,6 +203,7 @@ public String getDeviceType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getClientVersion() { return clientVersion; } @@ -191,6 +214,7 @@ public String getClientVersion() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getLegacyUniqId() { return legacyUniqId; } 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 index cecd4dbfc..0e903acf2 100644 --- 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 @@ -18,15 +18,22 @@ 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; /** @@ -40,7 +47,7 @@ public class LegalHoldsActivateAHoldDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsActivateAHoldDetails(String legalHoldId, String name, Date startDate, Date endDate) { + 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"); } @@ -68,7 +75,7 @@ public LegalHoldsActivateAHoldDetails(String legalHoldId, String name, Date star * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsActivateAHoldDetails(String legalHoldId, String name, Date startDate) { + public LegalHoldsActivateAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull Date startDate) { this(legalHoldId, name, startDate, null); } @@ -77,6 +84,7 @@ public LegalHoldsActivateAHoldDetails(String legalHoldId, String name, Date star * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -86,6 +94,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -95,6 +104,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getStartDate() { return startDate; } @@ -104,6 +114,7 @@ public Date getStartDate() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getEndDate() { return endDate; } 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 index caf961002..0931ff4e3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsActivateAHoldType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsActivateAHoldType(String description) { + public LegalHoldsActivateAHoldType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsActivateAHoldType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 85476ad9b..72b2aa98c 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class LegalHoldsAddMembersDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsAddMembersDetails(String legalHoldId, String name) { + public LegalHoldsAddMembersDetails(@Nonnull String legalHoldId, @Nonnull String name) { if (legalHoldId == null) { throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); } @@ -50,6 +54,7 @@ public LegalHoldsAddMembersDetails(String legalHoldId, String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -59,6 +64,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } 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 index b959c89fc..a54fde299 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsAddMembersType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsAddMembersType(String description) { + public LegalHoldsAddMembersType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsAddMembersType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 296836a53..c94909dab 100644 --- 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 @@ -16,15 +16,21 @@ 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; /** @@ -38,7 +44,7 @@ public class LegalHoldsChangeHoldDetailsDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsChangeHoldDetailsDetails(String legalHoldId, String name, String previousValue, String newValue) { + 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"); } @@ -62,6 +68,7 @@ public LegalHoldsChangeHoldDetailsDetails(String legalHoldId, String name, Strin * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -71,6 +78,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -80,6 +88,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } @@ -89,6 +98,7 @@ public String getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } 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 index 3347453a8..6f02a7e2c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsChangeHoldDetailsType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsChangeHoldDetailsType(String description) { + public LegalHoldsChangeHoldDetailsType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsChangeHoldDetailsType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6bdc20511..1007300af 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -36,7 +41,7 @@ public class LegalHoldsChangeHoldNameDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsChangeHoldNameDetails(String legalHoldId, String previousValue, String newValue) { + public LegalHoldsChangeHoldNameDetails(@Nonnull String legalHoldId, @Nonnull String previousValue, @Nonnull String newValue) { if (legalHoldId == null) { throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); } @@ -56,6 +61,7 @@ public LegalHoldsChangeHoldNameDetails(String legalHoldId, String previousValue, * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -65,6 +71,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } @@ -74,6 +81,7 @@ public String getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } 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 index 7c6339b2c..01eb317ad 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsChangeHoldNameType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsChangeHoldNameType(String description) { + public LegalHoldsChangeHoldNameType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsChangeHoldNameType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bdcdeebd8..23b6cca36 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -36,7 +42,7 @@ public class LegalHoldsExportAHoldDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsExportAHoldDetails(String legalHoldId, String name, String exportName) { + public LegalHoldsExportAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nullable String exportName) { if (legalHoldId == null) { throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); } @@ -59,7 +65,7 @@ public LegalHoldsExportAHoldDetails(String legalHoldId, String name, String expo * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsExportAHoldDetails(String legalHoldId, String name) { + public LegalHoldsExportAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name) { this(legalHoldId, name, null); } @@ -68,6 +74,7 @@ public LegalHoldsExportAHoldDetails(String legalHoldId, String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -77,6 +84,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -86,6 +94,7 @@ public String getName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getExportName() { return exportName; } 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 index f87e5a8a2..b7a5a4324 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsExportAHoldType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsExportAHoldType(String description) { + public LegalHoldsExportAHoldType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsExportAHoldType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0af3014ab..f38364964 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -36,7 +41,7 @@ public class LegalHoldsExportCancelledDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsExportCancelledDetails(String legalHoldId, String name, String exportName) { + public LegalHoldsExportCancelledDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull String exportName) { if (legalHoldId == null) { throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); } @@ -56,6 +61,7 @@ public LegalHoldsExportCancelledDetails(String legalHoldId, String name, String * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -65,6 +71,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -74,6 +81,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getExportName() { return exportName; } 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 index ae3ec3e09..441a77402 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsExportCancelledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsExportCancelledType(String description) { + public LegalHoldsExportCancelledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsExportCancelledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 388873f16..b7d18a159 100644 --- 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 @@ -16,16 +16,24 @@ 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; /** @@ -43,7 +51,7 @@ public class LegalHoldsExportDownloadedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsExportDownloadedDetails(String legalHoldId, String name, String exportName, String part, String fileName) { + 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"); } @@ -72,7 +80,7 @@ public LegalHoldsExportDownloadedDetails(String legalHoldId, String name, String * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsExportDownloadedDetails(String legalHoldId, String name, String exportName) { + public LegalHoldsExportDownloadedDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull String exportName) { this(legalHoldId, name, exportName, null, null); } @@ -81,6 +89,7 @@ public LegalHoldsExportDownloadedDetails(String legalHoldId, String name, String * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -90,6 +99,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -99,6 +109,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getExportName() { return exportName; } @@ -108,6 +119,7 @@ public String getExportName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPart() { return part; } @@ -117,6 +129,7 @@ public String getPart() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getFileName() { return fileName; } 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 index ab08cda30..dcd207cbb 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsExportDownloadedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsExportDownloadedType(String description) { + public LegalHoldsExportDownloadedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsExportDownloadedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 712141297..154a6d81c 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -36,7 +41,7 @@ public class LegalHoldsExportRemovedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsExportRemovedDetails(String legalHoldId, String name, String exportName) { + public LegalHoldsExportRemovedDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull String exportName) { if (legalHoldId == null) { throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); } @@ -56,6 +61,7 @@ public LegalHoldsExportRemovedDetails(String legalHoldId, String name, String ex * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -65,6 +71,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -74,6 +81,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getExportName() { return exportName; } 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 index 4afa73e4f..82d7df4dd 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsExportRemovedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsExportRemovedType(String description) { + public LegalHoldsExportRemovedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsExportRemovedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c70bbda36..d59d456b2 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class LegalHoldsReleaseAHoldDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsReleaseAHoldDetails(String legalHoldId, String name) { + public LegalHoldsReleaseAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name) { if (legalHoldId == null) { throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); } @@ -50,6 +54,7 @@ public LegalHoldsReleaseAHoldDetails(String legalHoldId, String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -59,6 +64,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } 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 index 6a0ed1b80..d6d47d700 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsReleaseAHoldType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsReleaseAHoldType(String description) { + public LegalHoldsReleaseAHoldType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsReleaseAHoldType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 97902cefc..2c60abd80 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class LegalHoldsRemoveMembersDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsRemoveMembersDetails(String legalHoldId, String name) { + public LegalHoldsRemoveMembersDetails(@Nonnull String legalHoldId, @Nonnull String name) { if (legalHoldId == null) { throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); } @@ -50,6 +54,7 @@ public LegalHoldsRemoveMembersDetails(String legalHoldId, String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -59,6 +64,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } 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 index 1503b431f..5e361eea3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsRemoveMembersType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsRemoveMembersType(String description) { + public LegalHoldsRemoveMembersType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsRemoveMembersType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1329f8186..6df89d792 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class LegalHoldsReportAHoldDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsReportAHoldDetails(String legalHoldId, String name) { + public LegalHoldsReportAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name) { if (legalHoldId == null) { throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); } @@ -50,6 +54,7 @@ public LegalHoldsReportAHoldDetails(String legalHoldId, String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLegalHoldId() { return legalHoldId; } @@ -59,6 +64,7 @@ public String getLegalHoldId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } 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 index 99735680d..131c8b54b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LegalHoldsReportAHoldType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LegalHoldsReportAHoldType(String description) { + public LegalHoldsReportAHoldType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LegalHoldsReportAHoldType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 7432d62f4..fc35dd552 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -37,7 +43,7 @@ public class LoginFailDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LoginFailDetails(LoginMethod loginMethod, FailureDetailsLogInfo errorDetails, Boolean isEmmManaged) { + 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"); @@ -60,7 +66,7 @@ public LoginFailDetails(LoginMethod loginMethod, FailureDetailsLogInfo errorDeta * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LoginFailDetails(LoginMethod loginMethod, FailureDetailsLogInfo errorDetails) { + public LoginFailDetails(@Nonnull LoginMethod loginMethod, @Nonnull FailureDetailsLogInfo errorDetails) { this(loginMethod, errorDetails, null); } @@ -69,6 +75,7 @@ public LoginFailDetails(LoginMethod loginMethod, FailureDetailsLogInfo errorDeta * * @return value for this field, never {@code null}. */ + @Nonnull public LoginMethod getLoginMethod() { return loginMethod; } @@ -78,6 +85,7 @@ public LoginMethod getLoginMethod() { * * @return value for this field, never {@code null}. */ + @Nonnull public FailureDetailsLogInfo getErrorDetails() { return errorDetails; } @@ -88,6 +96,7 @@ public FailureDetailsLogInfo getErrorDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsEmmManaged() { return isEmmManaged; } 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 index 583ef3cff..a75fc34f5 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LoginFailType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LoginFailType(String description) { + public LoginFailType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LoginFailType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5b5fd50cf..94f1ba59c 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class LoginSuccessDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LoginSuccessDetails(LoginMethod loginMethod, Boolean isEmmManaged) { + public LoginSuccessDetails(@Nonnull LoginMethod loginMethod, @Nullable Boolean isEmmManaged) { this.isEmmManaged = isEmmManaged; if (loginMethod == null) { throw new IllegalArgumentException("Required value for 'loginMethod' is null"); @@ -53,7 +58,7 @@ public LoginSuccessDetails(LoginMethod loginMethod, Boolean isEmmManaged) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LoginSuccessDetails(LoginMethod loginMethod) { + public LoginSuccessDetails(@Nonnull LoginMethod loginMethod) { this(loginMethod, null); } @@ -62,6 +67,7 @@ public LoginSuccessDetails(LoginMethod loginMethod) { * * @return value for this field, never {@code null}. */ + @Nonnull public LoginMethod getLoginMethod() { return loginMethod; } @@ -72,6 +78,7 @@ public LoginMethod getLoginMethod() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsEmmManaged() { return isEmmManaged; } 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 index a5adf64ce..ebecbc986 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LoginSuccessType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LoginSuccessType(String description) { + public LoginSuccessType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LoginSuccessType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 534f47f36..651405fbd 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class LogoutDetails { * * @param loginId Login session id. */ - public LogoutDetails(String loginId) { + public LogoutDetails(@Nullable String loginId) { this.loginId = loginId; } @@ -47,6 +51,7 @@ public LogoutDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getLoginId() { return loginId; } 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 index 694b3c64c..a0e72f5c9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class LogoutType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public LogoutType(String description) { + public LogoutType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public LogoutType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 159acdd67..78db13809 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class MemberAddExternalIdDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAddExternalIdDetails(String newValue) { + public MemberAddExternalIdDetails(@Nonnull String newValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -48,6 +51,7 @@ public MemberAddExternalIdDetails(String newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } 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 index 4c1153d23..5f1a03e99 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberAddExternalIdType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAddExternalIdType(String description) { + public MemberAddExternalIdType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberAddExternalIdType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c7466aa05..42cf5facf 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class MemberAddNameDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAddNameDetails(UserNameLogInfo newValue) { + public MemberAddNameDetails(@Nonnull UserNameLogInfo newValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -44,6 +47,7 @@ public MemberAddNameDetails(UserNameLogInfo newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserNameLogInfo getNewValue() { return newValue; } 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 index 10dee640a..b54be76b7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberAddNameType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberAddNameType(String description) { + public MemberAddNameType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberAddNameType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index fd01a9978..a39d04b2d 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -37,7 +42,7 @@ public class MemberChangeAdminRoleDetails { * @param previousValue Previous admin role. This field is relevant when * the admin role is changed or when the admin role is removed. */ - public MemberChangeAdminRoleDetails(AdminRole newValue, AdminRole previousValue) { + public MemberChangeAdminRoleDetails(@Nullable AdminRole newValue, @Nullable AdminRole previousValue) { this.newValue = newValue; this.previousValue = previousValue; } @@ -57,6 +62,7 @@ public MemberChangeAdminRoleDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AdminRole getNewValue() { return newValue; } @@ -67,6 +73,7 @@ public AdminRole getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AdminRole getPreviousValue() { return previousValue; } 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 index 764eb084f..108c859b1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberChangeAdminRoleType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeAdminRoleType(String description) { + public MemberChangeAdminRoleType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberChangeAdminRoleType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c2473c6b3..5d8f31ac2 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class MemberChangeEmailDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeEmailDetails(String newValue, String previousValue) { + public MemberChangeEmailDetails(@Nonnull String newValue, @Nullable String previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -63,7 +68,7 @@ public MemberChangeEmailDetails(String newValue, String previousValue) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeEmailDetails(String newValue) { + public MemberChangeEmailDetails(@Nonnull String newValue) { this(newValue, null); } @@ -72,6 +77,7 @@ public MemberChangeEmailDetails(String newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } @@ -81,6 +87,7 @@ public String getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousValue() { return previousValue; } 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 index 67edb87e1..dc99a3d44 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberChangeEmailType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeEmailType(String description) { + public MemberChangeEmailType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberChangeEmailType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c824e44b4..206e0dac9 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class MemberChangeExternalIdDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeExternalIdDetails(String newValue, String previousValue) { + public MemberChangeExternalIdDetails(@Nonnull String newValue, @Nonnull String previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -58,6 +62,7 @@ public MemberChangeExternalIdDetails(String newValue, String previousValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } @@ -67,6 +72,7 @@ public String getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } 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 index 9be2939fa..f551f2779 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberChangeExternalIdType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeExternalIdType(String description) { + public MemberChangeExternalIdType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberChangeExternalIdType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3235e7585..c4fe99b99 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class MemberChangeMembershipTypeDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeMembershipTypeDetails(TeamMembershipType prevValue, TeamMembershipType newValue) { + public MemberChangeMembershipTypeDetails(@Nonnull TeamMembershipType prevValue, @Nonnull TeamMembershipType newValue) { if (prevValue == null) { throw new IllegalArgumentException("Required value for 'prevValue' is null"); } @@ -50,6 +54,7 @@ public MemberChangeMembershipTypeDetails(TeamMembershipType prevValue, TeamMembe * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMembershipType getPrevValue() { return prevValue; } @@ -59,6 +64,7 @@ public TeamMembershipType getPrevValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMembershipType getNewValue() { return newValue; } 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 index 437c50d3b..17431cdbd 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberChangeMembershipTypeType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeMembershipTypeType(String description) { + public MemberChangeMembershipTypeType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberChangeMembershipTypeType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e97eb179a..7be447b41 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class MemberChangeNameDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeNameDetails(UserNameLogInfo newValue, UserNameLogInfo previousValue) { + public MemberChangeNameDetails(@Nonnull UserNameLogInfo newValue, @Nullable UserNameLogInfo previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public MemberChangeNameDetails(UserNameLogInfo newValue, UserNameLogInfo previou * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeNameDetails(UserNameLogInfo newValue) { + public MemberChangeNameDetails(@Nonnull UserNameLogInfo newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public MemberChangeNameDetails(UserNameLogInfo newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public UserNameLogInfo getNewValue() { return newValue; } @@ -71,6 +77,7 @@ public UserNameLogInfo getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserNameLogInfo getPreviousValue() { return previousValue; } 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 index f3f74c78b..38a82095b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberChangeNameType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeNameType(String description) { + public MemberChangeNameType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberChangeNameType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e24d2c8a9..99aca7d93 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -37,7 +41,7 @@ public class MemberChangeResellerRoleDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeResellerRoleDetails(ResellerRole newValue, ResellerRole previousValue) { + public MemberChangeResellerRoleDetails(@Nonnull ResellerRole newValue, @Nonnull ResellerRole previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -54,6 +58,7 @@ public MemberChangeResellerRoleDetails(ResellerRole newValue, ResellerRole previ * * @return value for this field, never {@code null}. */ + @Nonnull public ResellerRole getNewValue() { return newValue; } @@ -64,6 +69,7 @@ public ResellerRole getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public ResellerRole getPreviousValue() { return previousValue; } 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 index 10babaa5f..b97884a1e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberChangeResellerRoleType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeResellerRoleType(String description) { + public MemberChangeResellerRoleType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberChangeResellerRoleType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bce7f0742..f41203793 100644 --- 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 @@ -16,16 +16,24 @@ 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; /** @@ -47,7 +55,7 @@ public class MemberChangeStatusDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeStatusDetails(MemberStatus newValue, MemberStatus previousValue, ActionDetails action, String newTeam, String previousTeam) { + 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"); @@ -68,7 +76,7 @@ public MemberChangeStatusDetails(MemberStatus newValue, MemberStatus previousVal * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeStatusDetails(MemberStatus newValue) { + public MemberChangeStatusDetails(@Nonnull MemberStatus newValue) { this(newValue, null, null, null, null); } @@ -77,6 +85,7 @@ public MemberChangeStatusDetails(MemberStatus newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberStatus getNewValue() { return newValue; } @@ -86,6 +95,7 @@ public MemberStatus getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MemberStatus getPreviousValue() { return previousValue; } @@ -96,6 +106,7 @@ public MemberStatus getPreviousValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ActionDetails getAction() { return action; } @@ -106,6 +117,7 @@ public ActionDetails getAction() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewTeam() { return newTeam; } @@ -116,6 +128,7 @@ public String getNewTeam() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousTeam() { return previousTeam; } 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 index da5ca1663..14ecd5bb3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberChangeStatusType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberChangeStatusType(String description) { + public MemberChangeStatusType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberChangeStatusType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a17216abd..c31f83e8c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberDeleteManualContactsType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberDeleteManualContactsType(String description) { + public MemberDeleteManualContactsType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberDeleteManualContactsType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b49da7e45..742e954ad 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberDeleteProfilePhotoType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberDeleteProfilePhotoType(String description) { + public MemberDeleteProfilePhotoType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberDeleteProfilePhotoType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0d23e60ae..74bcd94b1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberPermanentlyDeleteAccountContentsType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberPermanentlyDeleteAccountContentsType(String description) { + public MemberPermanentlyDeleteAccountContentsType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberPermanentlyDeleteAccountContentsType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 79c0e4798..db4f67782 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class MemberRemoveExternalIdDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberRemoveExternalIdDetails(String previousValue) { + public MemberRemoveExternalIdDetails(@Nonnull String previousValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -48,6 +51,7 @@ public MemberRemoveExternalIdDetails(String previousValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } 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 index 86efa535e..a12059b15 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberRemoveExternalIdType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberRemoveExternalIdType(String description) { + public MemberRemoveExternalIdType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberRemoveExternalIdType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c16a50ede..c9c6c271c 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class MemberRequestsChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberRequestsChangePolicyDetails(MemberRequestsPolicy newValue, MemberRequestsPolicy previousValue) { + public MemberRequestsChangePolicyDetails(@Nonnull MemberRequestsPolicy newValue, @Nullable MemberRequestsPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -55,7 +60,7 @@ public MemberRequestsChangePolicyDetails(MemberRequestsPolicy newValue, MemberRe * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberRequestsChangePolicyDetails(MemberRequestsPolicy newValue) { + public MemberRequestsChangePolicyDetails(@Nonnull MemberRequestsPolicy newValue) { this(newValue, null); } @@ -64,6 +69,7 @@ public MemberRequestsChangePolicyDetails(MemberRequestsPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberRequestsPolicy getNewValue() { return newValue; } @@ -74,6 +80,7 @@ public MemberRequestsPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MemberRequestsPolicy getPreviousValue() { return previousValue; } 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 index 8eb13ab7d..1aa02957c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberRequestsChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberRequestsChangePolicyType(String description) { + public MemberRequestsChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberRequestsChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bb0dc76ae..f97cd1d37 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class MemberSendInvitePolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSendInvitePolicyChangedDetails(MemberSendInvitePolicy newValue, MemberSendInvitePolicy previousValue) { + public MemberSendInvitePolicyChangedDetails(@Nonnull MemberSendInvitePolicy newValue, @Nonnull MemberSendInvitePolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -52,6 +56,7 @@ public MemberSendInvitePolicyChangedDetails(MemberSendInvitePolicy newValue, Mem * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSendInvitePolicy getNewValue() { return newValue; } @@ -61,6 +66,7 @@ public MemberSendInvitePolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSendInvitePolicy getPreviousValue() { return previousValue; } 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 index feab3dd40..203d6124f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSendInvitePolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSendInvitePolicyChangedType(String description) { + public MemberSendInvitePolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSendInvitePolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c65a27a13..7f017dc17 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSetProfilePhotoType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSetProfilePhotoType(String description) { + public MemberSetProfilePhotoType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSetProfilePhotoType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ce12cf532..d4a951dd8 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSpaceLimitsAddCustomQuotaType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSpaceLimitsAddCustomQuotaType(String description) { + public MemberSpaceLimitsAddCustomQuotaType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSpaceLimitsAddCustomQuotaType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 03b442b5d..7b575687f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSpaceLimitsAddExceptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSpaceLimitsAddExceptionType(String description) { + public MemberSpaceLimitsAddExceptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSpaceLimitsAddExceptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8a4717837..b8fa0b5ee 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class MemberSpaceLimitsChangeCapsTypePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSpaceLimitsChangeCapsTypePolicyDetails(SpaceCapsType previousValue, SpaceCapsType newValue) { + public MemberSpaceLimitsChangeCapsTypePolicyDetails(@Nonnull SpaceCapsType previousValue, @Nonnull SpaceCapsType newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public MemberSpaceLimitsChangeCapsTypePolicyDetails(SpaceCapsType previousValue, * * @return value for this field, never {@code null}. */ + @Nonnull public SpaceCapsType getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public SpaceCapsType getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public SpaceCapsType getNewValue() { return newValue; } 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 index f7fc1b5d4..f6e914cdc 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSpaceLimitsChangeCapsTypePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSpaceLimitsChangeCapsTypePolicyType(String description) { + public MemberSpaceLimitsChangeCapsTypePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSpaceLimitsChangeCapsTypePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 176e164ed..ebd582c29 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSpaceLimitsChangeCustomQuotaType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSpaceLimitsChangeCustomQuotaType(String description) { + public MemberSpaceLimitsChangeCustomQuotaType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSpaceLimitsChangeCustomQuotaType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0f4289c26..00cca62d9 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class MemberSpaceLimitsChangePolicyDetails { * @param newValue New team default limit value in bytes. Might be missing * due to historical data gap. */ - public MemberSpaceLimitsChangePolicyDetails(Long previousValue, Long newValue) { + public MemberSpaceLimitsChangePolicyDetails(@Nullable Long previousValue, @Nullable Long newValue) { this.previousValue = previousValue; this.newValue = newValue; } @@ -56,6 +61,7 @@ public MemberSpaceLimitsChangePolicyDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getPreviousValue() { return previousValue; } @@ -66,6 +72,7 @@ public Long getPreviousValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getNewValue() { return newValue; } 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 index a1534b00d..c3a264304 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSpaceLimitsChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSpaceLimitsChangePolicyType(String description) { + public MemberSpaceLimitsChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSpaceLimitsChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c82b484fb..b1a24f08d 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class MemberSpaceLimitsChangeStatusDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSpaceLimitsChangeStatusDetails(SpaceLimitsStatus previousValue, SpaceLimitsStatus newValue) { + public MemberSpaceLimitsChangeStatusDetails(@Nonnull SpaceLimitsStatus previousValue, @Nonnull SpaceLimitsStatus newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public MemberSpaceLimitsChangeStatusDetails(SpaceLimitsStatus previousValue, Spa * * @return value for this field, never {@code null}. */ + @Nonnull public SpaceLimitsStatus getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public SpaceLimitsStatus getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public SpaceLimitsStatus getNewValue() { return newValue; } 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 index a9617c292..0cdd5f005 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSpaceLimitsChangeStatusType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSpaceLimitsChangeStatusType(String description) { + public MemberSpaceLimitsChangeStatusType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSpaceLimitsChangeStatusType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8c972acb5..b9d87e95c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSpaceLimitsRemoveCustomQuotaType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSpaceLimitsRemoveCustomQuotaType(String description) { + public MemberSpaceLimitsRemoveCustomQuotaType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSpaceLimitsRemoveCustomQuotaType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index eb21de6c9..fa8f0a196 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSpaceLimitsRemoveExceptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSpaceLimitsRemoveExceptionType(String description) { + public MemberSpaceLimitsRemoveExceptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSpaceLimitsRemoveExceptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 10b5cbaec..50e1f9523 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class MemberSuggestDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSuggestDetails(List suggestedMembers) { + public MemberSuggestDetails(@Nonnull List suggestedMembers) { if (suggestedMembers == null) { throw new IllegalArgumentException("Required value for 'suggestedMembers' is null"); } @@ -54,6 +57,7 @@ public MemberSuggestDetails(List suggestedMembers) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getSuggestedMembers() { return suggestedMembers; } 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 index ac99186fa..34946f711 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSuggestType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSuggestType(String description) { + public MemberSuggestType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSuggestType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 09855ae22..ff882e4bc 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -37,7 +42,7 @@ public class MemberSuggestionsChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSuggestionsChangePolicyDetails(MemberSuggestionsPolicy newValue, MemberSuggestionsPolicy previousValue) { + public MemberSuggestionsChangePolicyDetails(@Nonnull MemberSuggestionsPolicy newValue, @Nullable MemberSuggestionsPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -57,7 +62,7 @@ public MemberSuggestionsChangePolicyDetails(MemberSuggestionsPolicy newValue, Me * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSuggestionsChangePolicyDetails(MemberSuggestionsPolicy newValue) { + public MemberSuggestionsChangePolicyDetails(@Nonnull MemberSuggestionsPolicy newValue) { this(newValue, null); } @@ -66,6 +71,7 @@ public MemberSuggestionsChangePolicyDetails(MemberSuggestionsPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSuggestionsPolicy getNewValue() { return newValue; } @@ -76,6 +82,7 @@ public MemberSuggestionsPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MemberSuggestionsPolicy getPreviousValue() { return previousValue; } 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 index 4bf6364be..a748e0e2a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberSuggestionsChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberSuggestionsChangePolicyType(String description) { + public MemberSuggestionsChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberSuggestionsChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index fb191377b..130185da3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MemberTransferAccountContentsType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MemberTransferAccountContentsType(String description) { + public MemberTransferAccountContentsType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MemberTransferAccountContentsType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1cd4a4946..df1b44baf 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class MicrosoftOfficeAddinChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MicrosoftOfficeAddinChangePolicyDetails(MicrosoftOfficeAddinPolicy newValue, MicrosoftOfficeAddinPolicy previousValue) { + public MicrosoftOfficeAddinChangePolicyDetails(@Nonnull MicrosoftOfficeAddinPolicy newValue, @Nullable MicrosoftOfficeAddinPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -55,7 +60,7 @@ public MicrosoftOfficeAddinChangePolicyDetails(MicrosoftOfficeAddinPolicy newVal * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MicrosoftOfficeAddinChangePolicyDetails(MicrosoftOfficeAddinPolicy newValue) { + public MicrosoftOfficeAddinChangePolicyDetails(@Nonnull MicrosoftOfficeAddinPolicy newValue) { this(newValue, null); } @@ -64,6 +69,7 @@ public MicrosoftOfficeAddinChangePolicyDetails(MicrosoftOfficeAddinPolicy newVal * * @return value for this field, never {@code null}. */ + @Nonnull public MicrosoftOfficeAddinPolicy getNewValue() { return newValue; } @@ -74,6 +80,7 @@ public MicrosoftOfficeAddinPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MicrosoftOfficeAddinPolicy getPreviousValue() { return previousValue; } 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 index 2cf6685e5..b7267dba6 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class MicrosoftOfficeAddinChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MicrosoftOfficeAddinChangePolicyType(String description) { + public MicrosoftOfficeAddinChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public MicrosoftOfficeAddinChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d27c327d7..a122204b7 100644 --- 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 @@ -16,6 +16,9 @@ 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. @@ -23,6 +26,7 @@ public class MissingDetails { // struct team_log.MissingDetails (team_log_generated.stone) + @Nullable protected final String sourceEventFields; /** @@ -32,7 +36,7 @@ public class MissingDetails { * @param sourceEventFields All the data that could be retrieved and * converted from the source event. */ - public MissingDetails(String sourceEventFields) { + public MissingDetails(@Nullable String sourceEventFields) { this.sourceEventFields = sourceEventFields; } @@ -51,6 +55,7 @@ public MissingDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSourceEventFields() { return sourceEventFields; } 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 index 13769f7fa..548c72db8 100644 --- 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 @@ -19,17 +19,26 @@ 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; /** @@ -51,7 +60,7 @@ public class MobileDeviceSessionLogInfo extends DeviceSessionLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MobileDeviceSessionLogInfo(String deviceName, MobileClientPlatform clientType, String ipAddress, Date created, Date updated, MobileSessionLogInfo sessionInfo, String clientVersion, String osVersion, String lastCarrier) { + 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) { @@ -78,7 +87,7 @@ public MobileDeviceSessionLogInfo(String deviceName, MobileClientPlatform client * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public MobileDeviceSessionLogInfo(String deviceName, MobileClientPlatform clientType) { + public MobileDeviceSessionLogInfo(@Nonnull String deviceName, @Nonnull MobileClientPlatform clientType) { this(deviceName, clientType, null, null, null, null, null, null, null); } @@ -87,6 +96,7 @@ public MobileDeviceSessionLogInfo(String deviceName, MobileClientPlatform client * * @return value for this field, never {@code null}. */ + @Nonnull public String getDeviceName() { return deviceName; } @@ -96,6 +106,7 @@ public String getDeviceName() { * * @return value for this field, never {@code null}. */ + @Nonnull public MobileClientPlatform getClientType() { return clientType; } @@ -105,6 +116,7 @@ public MobileClientPlatform getClientType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getIpAddress() { return ipAddress; } @@ -114,6 +126,7 @@ public String getIpAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getCreated() { return created; } @@ -123,6 +136,7 @@ public Date getCreated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getUpdated() { return updated; } @@ -132,6 +146,7 @@ public Date getUpdated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MobileSessionLogInfo getSessionInfo() { return sessionInfo; } @@ -141,6 +156,7 @@ public MobileSessionLogInfo getSessionInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getClientVersion() { return clientVersion; } @@ -150,6 +166,7 @@ public String getClientVersion() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getOsVersion() { return osVersion; } @@ -159,6 +176,7 @@ public String getOsVersion() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getLastCarrier() { return lastCarrier; } 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 index d84a59092..e5a96b94f 100644 --- 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 @@ -15,6 +15,9 @@ import java.io.IOException; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Mobile session. */ @@ -27,7 +30,7 @@ public class MobileSessionLogInfo extends SessionLogInfo { * * @param sessionId Session ID. */ - public MobileSessionLogInfo(String sessionId) { + public MobileSessionLogInfo(@Nullable String sessionId) { super(sessionId); } @@ -45,6 +48,7 @@ public MobileSessionLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSessionId() { return sessionId; } 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 index b35aa7607..51c45efe9 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -36,7 +42,7 @@ public class NamespaceRelativePathLogInfo { * @param relativePath A path relative to the specified namespace ID. * @param isSharedNamespace True if the namespace is shared. */ - public NamespaceRelativePathLogInfo(String nsId, String relativePath, Boolean isSharedNamespace) { + public NamespaceRelativePathLogInfo(@Nullable String nsId, @Nullable String relativePath, @Nullable Boolean isSharedNamespace) { this.nsId = nsId; this.relativePath = relativePath; this.isSharedNamespace = isSharedNamespace; @@ -56,6 +62,7 @@ public NamespaceRelativePathLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNsId() { return nsId; } @@ -65,6 +72,7 @@ public String getNsId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getRelativePath() { return relativePath; } @@ -74,6 +82,7 @@ public String getRelativePath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getIsSharedNamespace() { return isSharedNamespace; } 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 index babf7d156..6ae9f93ce 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class NetworkControlChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NetworkControlChangePolicyDetails(NetworkControlPolicy newValue, NetworkControlPolicy previousValue) { + public NetworkControlChangePolicyDetails(@Nonnull NetworkControlPolicy newValue, @Nullable NetworkControlPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public NetworkControlChangePolicyDetails(NetworkControlPolicy newValue, NetworkC * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NetworkControlChangePolicyDetails(NetworkControlPolicy newValue) { + public NetworkControlChangePolicyDetails(@Nonnull NetworkControlPolicy newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public NetworkControlChangePolicyDetails(NetworkControlPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public NetworkControlPolicy getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public NetworkControlPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public NetworkControlPolicy getPreviousValue() { return previousValue; } 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 index a78f1af4a..c65d8802f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NetworkControlChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NetworkControlChangePolicyType(String description) { + public NetworkControlChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NetworkControlChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a7e9ff5d9..4c3846f9d 100644 --- 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 @@ -18,13 +18,17 @@ 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; /** @@ -36,7 +40,7 @@ public class NoExpirationLinkGenCreateReportDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoExpirationLinkGenCreateReportDetails(Date startDate, Date endDate) { + public NoExpirationLinkGenCreateReportDetails(@Nonnull Date startDate, @Nonnull Date endDate) { if (startDate == null) { throw new IllegalArgumentException("Required value for 'startDate' is null"); } @@ -52,6 +56,7 @@ public NoExpirationLinkGenCreateReportDetails(Date startDate, Date endDate) { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getStartDate() { return startDate; } @@ -61,6 +66,7 @@ public Date getStartDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getEndDate() { return endDate; } 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 index 76ad0ca62..acca2107f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoExpirationLinkGenCreateReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoExpirationLinkGenCreateReportType(String description) { + public NoExpirationLinkGenCreateReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoExpirationLinkGenCreateReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 09ad655c9..30dead05e 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -33,7 +36,7 @@ public class NoExpirationLinkGenReportFailedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoExpirationLinkGenReportFailedDetails(TeamReportFailureReason failureReason) { + public NoExpirationLinkGenReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { if (failureReason == null) { throw new IllegalArgumentException("Required value for 'failureReason' is null"); } @@ -45,6 +48,7 @@ public NoExpirationLinkGenReportFailedDetails(TeamReportFailureReason failureRea * * @return value for this field, never {@code null}. */ + @Nonnull public TeamReportFailureReason getFailureReason() { return failureReason; } 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 index 00878de61..867f6a05d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoExpirationLinkGenReportFailedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoExpirationLinkGenReportFailedType(String description) { + public NoExpirationLinkGenReportFailedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoExpirationLinkGenReportFailedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6898c3ba4..623854a33 100644 --- 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 @@ -18,13 +18,17 @@ 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; /** @@ -36,7 +40,7 @@ public class NoPasswordLinkGenCreateReportDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoPasswordLinkGenCreateReportDetails(Date startDate, Date endDate) { + public NoPasswordLinkGenCreateReportDetails(@Nonnull Date startDate, @Nonnull Date endDate) { if (startDate == null) { throw new IllegalArgumentException("Required value for 'startDate' is null"); } @@ -52,6 +56,7 @@ public NoPasswordLinkGenCreateReportDetails(Date startDate, Date endDate) { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getStartDate() { return startDate; } @@ -61,6 +66,7 @@ public Date getStartDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getEndDate() { return endDate; } 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 index 95a3ca4cf..0301aa9db 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoPasswordLinkGenCreateReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoPasswordLinkGenCreateReportType(String description) { + public NoPasswordLinkGenCreateReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoPasswordLinkGenCreateReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 529f05593..82574c5e9 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -33,7 +36,7 @@ public class NoPasswordLinkGenReportFailedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoPasswordLinkGenReportFailedDetails(TeamReportFailureReason failureReason) { + public NoPasswordLinkGenReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { if (failureReason == null) { throw new IllegalArgumentException("Required value for 'failureReason' is null"); } @@ -45,6 +48,7 @@ public NoPasswordLinkGenReportFailedDetails(TeamReportFailureReason failureReaso * * @return value for this field, never {@code null}. */ + @Nonnull public TeamReportFailureReason getFailureReason() { return failureReason; } 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 index 45a6d9775..927e88cf1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoPasswordLinkGenReportFailedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoPasswordLinkGenReportFailedType(String description) { + public NoPasswordLinkGenReportFailedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoPasswordLinkGenReportFailedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 51cb5a979..cb366b432 100644 --- 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 @@ -18,13 +18,17 @@ 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; /** @@ -36,7 +40,7 @@ public class NoPasswordLinkViewCreateReportDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoPasswordLinkViewCreateReportDetails(Date startDate, Date endDate) { + public NoPasswordLinkViewCreateReportDetails(@Nonnull Date startDate, @Nonnull Date endDate) { if (startDate == null) { throw new IllegalArgumentException("Required value for 'startDate' is null"); } @@ -52,6 +56,7 @@ public NoPasswordLinkViewCreateReportDetails(Date startDate, Date endDate) { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getStartDate() { return startDate; } @@ -61,6 +66,7 @@ public Date getStartDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getEndDate() { return endDate; } 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 index 53a360e4e..a92898a50 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoPasswordLinkViewCreateReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoPasswordLinkViewCreateReportType(String description) { + public NoPasswordLinkViewCreateReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoPasswordLinkViewCreateReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5cbfd4e36..f9a82fc71 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -33,7 +36,7 @@ public class NoPasswordLinkViewReportFailedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoPasswordLinkViewReportFailedDetails(TeamReportFailureReason failureReason) { + public NoPasswordLinkViewReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { if (failureReason == null) { throw new IllegalArgumentException("Required value for 'failureReason' is null"); } @@ -45,6 +48,7 @@ public NoPasswordLinkViewReportFailedDetails(TeamReportFailureReason failureReas * * @return value for this field, never {@code null}. */ + @Nonnull public TeamReportFailureReason getFailureReason() { return failureReason; } 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 index 3954cc34c..53e866c42 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoPasswordLinkViewReportFailedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoPasswordLinkViewReportFailedType(String description) { + public NoPasswordLinkViewReportFailedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoPasswordLinkViewReportFailedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1096f883f..94eb44e0f 100644 --- 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 @@ -15,6 +15,9 @@ import java.io.IOException; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Non team member's logged information. */ @@ -36,7 +39,7 @@ public class NonTeamMemberLogInfo extends UserLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NonTeamMemberLogInfo(String accountId, String displayName, String email) { + public NonTeamMemberLogInfo(@Nullable String accountId, @Nullable String displayName, @Nullable String email) { super(accountId, displayName, email); } @@ -54,6 +57,7 @@ public NonTeamMemberLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAccountId() { return accountId; } @@ -63,6 +67,7 @@ public String getAccountId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } @@ -72,6 +77,7 @@ public String getDisplayName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getEmail() { return email; } 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 index a2b3be504..95b59d9d2 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class NonTrustedTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NonTrustedTeamDetails(String team) { + public NonTrustedTeamDetails(@Nonnull String team) { if (team == null) { throw new IllegalArgumentException("Required value for 'team' is null"); } @@ -45,6 +48,7 @@ public NonTrustedTeamDetails(String team) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeam() { return team; } 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 index c239f3abb..482a2a8b9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoteAclInviteOnlyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoteAclInviteOnlyType(String description) { + public NoteAclInviteOnlyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoteAclInviteOnlyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c10cfc262..9a174c8d4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoteAclLinkType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoteAclLinkType(String description) { + public NoteAclLinkType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoteAclLinkType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 00966bd7d..004dd02ce 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoteAclTeamLinkType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoteAclTeamLinkType(String description) { + public NoteAclTeamLinkType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoteAclTeamLinkType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f336cc34b..4bb1ddb63 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoteShareReceiveType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoteShareReceiveType(String description) { + public NoteShareReceiveType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoteShareReceiveType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6e542d805..3cd695848 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class NoteSharedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public NoteSharedType(String description) { + public NoteSharedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public NoteSharedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 88b55d1ab..86932dd4b 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ObjectLabelAddedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ObjectLabelAddedDetails(LabelType labelType) { + public ObjectLabelAddedDetails(@Nonnull LabelType labelType) { if (labelType == null) { throw new IllegalArgumentException("Required value for 'labelType' is null"); } @@ -44,6 +47,7 @@ public ObjectLabelAddedDetails(LabelType labelType) { * * @return value for this field, never {@code null}. */ + @Nonnull public LabelType getLabelType() { return labelType; } 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 index 1e384cdcc..291b01b28 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ObjectLabelAddedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ObjectLabelAddedType(String description) { + public ObjectLabelAddedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ObjectLabelAddedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2cbaf8778..b790a7e28 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ObjectLabelRemovedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ObjectLabelRemovedDetails(LabelType labelType) { + public ObjectLabelRemovedDetails(@Nonnull LabelType labelType) { if (labelType == null) { throw new IllegalArgumentException("Required value for 'labelType' is null"); } @@ -44,6 +47,7 @@ public ObjectLabelRemovedDetails(LabelType labelType) { * * @return value for this field, never {@code null}. */ + @Nonnull public LabelType getLabelType() { return labelType; } 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 index ed249a37b..d3b309aff 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ObjectLabelRemovedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ObjectLabelRemovedType(String description) { + public ObjectLabelRemovedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ObjectLabelRemovedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e9de100b3..8f308bc79 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ObjectLabelUpdatedValueDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ObjectLabelUpdatedValueDetails(LabelType labelType) { + public ObjectLabelUpdatedValueDetails(@Nonnull LabelType labelType) { if (labelType == null) { throw new IllegalArgumentException("Required value for 'labelType' is null"); } @@ -44,6 +47,7 @@ public ObjectLabelUpdatedValueDetails(LabelType labelType) { * * @return value for this field, never {@code null}. */ + @Nonnull public LabelType getLabelType() { return labelType; } 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 index aca277232..3165f7fc4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ObjectLabelUpdatedValueType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ObjectLabelUpdatedValueType(String description) { + public ObjectLabelUpdatedValueType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ObjectLabelUpdatedValueType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 76956b483..2823e01da 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class OpenNoteSharedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OpenNoteSharedType(String description) { + public OpenNoteSharedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public OpenNoteSharedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 979ca0875..6ab94a6d6 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class OrganizationDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OrganizationDetails(String organization) { + public OrganizationDetails(@Nonnull String organization) { if (organization == null) { throw new IllegalArgumentException("Required value for 'organization' is null"); } @@ -45,6 +48,7 @@ public OrganizationDetails(String organization) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOrganization() { return organization; } 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 index 4c7908319..3133b3d15 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class OrganizationName { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OrganizationName(String organization) { + public OrganizationName(@Nonnull String organization) { if (organization == null) { throw new IllegalArgumentException("Required value for 'organization' is null"); } @@ -45,6 +48,7 @@ public OrganizationName(String organization) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOrganization() { return organization; } 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 index c8993e736..2d4db5be2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class OrganizeFolderWithTidyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OrganizeFolderWithTidyType(String description) { + public OrganizeFolderWithTidyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public OrganizeFolderWithTidyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d32a74c25..3a3e20fc6 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class OriginLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OriginLogInfo(AccessMethodLogInfo accessMethod, GeoLocationLogInfo geoLocation) { + public OriginLogInfo(@Nonnull AccessMethodLogInfo accessMethod, @Nullable GeoLocationLogInfo geoLocation) { this.geoLocation = geoLocation; if (accessMethod == null) { throw new IllegalArgumentException("Required value for 'accessMethod' is null"); @@ -54,7 +59,7 @@ public OriginLogInfo(AccessMethodLogInfo accessMethod, GeoLocationLogInfo geoLoc * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OriginLogInfo(AccessMethodLogInfo accessMethod) { + public OriginLogInfo(@Nonnull AccessMethodLogInfo accessMethod) { this(accessMethod, null); } @@ -63,6 +68,7 @@ public OriginLogInfo(AccessMethodLogInfo accessMethod) { * * @return value for this field, never {@code null}. */ + @Nonnull public AccessMethodLogInfo getAccessMethod() { return accessMethod; } @@ -72,6 +78,7 @@ public AccessMethodLogInfo getAccessMethod() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public GeoLocationLogInfo getGeoLocation() { return geoLocation; } 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 index 06fc29eff..9a9e48589 100644 --- 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 @@ -18,13 +18,17 @@ 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; /** @@ -36,7 +40,7 @@ public class OutdatedLinkViewCreateReportDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OutdatedLinkViewCreateReportDetails(Date startDate, Date endDate) { + public OutdatedLinkViewCreateReportDetails(@Nonnull Date startDate, @Nonnull Date endDate) { if (startDate == null) { throw new IllegalArgumentException("Required value for 'startDate' is null"); } @@ -52,6 +56,7 @@ public OutdatedLinkViewCreateReportDetails(Date startDate, Date endDate) { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getStartDate() { return startDate; } @@ -61,6 +66,7 @@ public Date getStartDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getEndDate() { return endDate; } 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 index fe1238820..ed572e66a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class OutdatedLinkViewCreateReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OutdatedLinkViewCreateReportType(String description) { + public OutdatedLinkViewCreateReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public OutdatedLinkViewCreateReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 08e76fdac..6a10c5b16 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -33,7 +36,7 @@ public class OutdatedLinkViewReportFailedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OutdatedLinkViewReportFailedDetails(TeamReportFailureReason failureReason) { + public OutdatedLinkViewReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { if (failureReason == null) { throw new IllegalArgumentException("Required value for 'failureReason' is null"); } @@ -45,6 +48,7 @@ public OutdatedLinkViewReportFailedDetails(TeamReportFailureReason failureReason * * @return value for this field, never {@code null}. */ + @Nonnull public TeamReportFailureReason getFailureReason() { return failureReason; } 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 index a9d115946..af5945116 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class OutdatedLinkViewReportFailedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public OutdatedLinkViewReportFailedType(String description) { + public OutdatedLinkViewReportFailedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public OutdatedLinkViewReportFailedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8df216b45..4de14a27a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperAdminExportStartType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperAdminExportStartType(String description) { + public PaperAdminExportStartType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperAdminExportStartType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 7d391ec2d..dd45d1818 100644 --- 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 @@ -17,6 +17,9 @@ 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. @@ -24,7 +27,9 @@ public class PaperChangeDeploymentPolicyDetails { // struct team_log.PaperChangeDeploymentPolicyDetails (team_log_generated.stone) + @Nonnull protected final PaperDeploymentPolicy newValue; + @Nullable protected final PaperDeploymentPolicy previousValue; /** @@ -39,7 +44,7 @@ public class PaperChangeDeploymentPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangeDeploymentPolicyDetails(PaperDeploymentPolicy newValue, PaperDeploymentPolicy previousValue) { + public PaperChangeDeploymentPolicyDetails(@Nonnull PaperDeploymentPolicy newValue, @Nullable PaperDeploymentPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -59,7 +64,7 @@ public PaperChangeDeploymentPolicyDetails(PaperDeploymentPolicy newValue, PaperD * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangeDeploymentPolicyDetails(PaperDeploymentPolicy newValue) { + public PaperChangeDeploymentPolicyDetails(@Nonnull PaperDeploymentPolicy newValue) { this(newValue, null); } @@ -68,6 +73,7 @@ public PaperChangeDeploymentPolicyDetails(PaperDeploymentPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperDeploymentPolicy getNewValue() { return newValue; } @@ -78,6 +84,7 @@ public PaperDeploymentPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PaperDeploymentPolicy getPreviousValue() { return previousValue; } 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 index 7b489f84e..3f646c29c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperChangeDeploymentPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangeDeploymentPolicyType(String description) { + public PaperChangeDeploymentPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperChangeDeploymentPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index eae3b67ab..4c836d4d1 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class PaperChangeMemberLinkPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangeMemberLinkPolicyDetails(PaperMemberPolicy newValue) { + public PaperChangeMemberLinkPolicyDetails(@Nonnull PaperMemberPolicy newValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -45,6 +48,7 @@ public PaperChangeMemberLinkPolicyDetails(PaperMemberPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperMemberPolicy getNewValue() { return newValue; } 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 index b84b8618f..22f70ac3e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperChangeMemberLinkPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangeMemberLinkPolicyType(String description) { + public PaperChangeMemberLinkPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperChangeMemberLinkPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 77d9b877e..f7652fe6e 100644 --- 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 @@ -16,6 +16,9 @@ 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. @@ -23,7 +26,9 @@ public class PaperChangeMemberPolicyDetails { // struct team_log.PaperChangeMemberPolicyDetails (team_log_generated.stone) + @Nonnull protected final PaperMemberPolicy newValue; + @Nullable protected final PaperMemberPolicy previousValue; /** @@ -38,7 +43,7 @@ public class PaperChangeMemberPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangeMemberPolicyDetails(PaperMemberPolicy newValue, PaperMemberPolicy previousValue) { + public PaperChangeMemberPolicyDetails(@Nonnull PaperMemberPolicy newValue, @Nullable PaperMemberPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -58,7 +63,7 @@ public PaperChangeMemberPolicyDetails(PaperMemberPolicy newValue, PaperMemberPol * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangeMemberPolicyDetails(PaperMemberPolicy newValue) { + public PaperChangeMemberPolicyDetails(@Nonnull PaperMemberPolicy newValue) { this(newValue, null); } @@ -67,6 +72,7 @@ public PaperChangeMemberPolicyDetails(PaperMemberPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperMemberPolicy getNewValue() { return newValue; } @@ -77,6 +83,7 @@ public PaperMemberPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PaperMemberPolicy getPreviousValue() { return previousValue; } 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 index e8906f3fd..a0e6748be 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperChangeMemberPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangeMemberPolicyType(String description) { + public PaperChangeMemberPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperChangeMemberPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3897cc8ee..07dfa76d4 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class PaperChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangePolicyDetails(PaperEnabledPolicy newValue, PaperEnabledPolicy previousValue) { + public PaperChangePolicyDetails(@Nonnull PaperEnabledPolicy newValue, @Nullable PaperEnabledPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -54,7 +59,7 @@ public PaperChangePolicyDetails(PaperEnabledPolicy newValue, PaperEnabledPolicy * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangePolicyDetails(PaperEnabledPolicy newValue) { + public PaperChangePolicyDetails(@Nonnull PaperEnabledPolicy newValue) { this(newValue, null); } @@ -63,6 +68,7 @@ public PaperChangePolicyDetails(PaperEnabledPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperEnabledPolicy getNewValue() { return newValue; } @@ -73,6 +79,7 @@ public PaperEnabledPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public PaperEnabledPolicy getPreviousValue() { return previousValue; } 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 index d54d6188a..68b53748e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperChangePolicyType(String description) { + public PaperChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6fd9e5440..108b701d8 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperContentAddMemberDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentAddMemberDetails(String eventUuid) { + public PaperContentAddMemberDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperContentAddMemberDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index f52fbd7e6..b109309cb 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperContentAddMemberType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentAddMemberType(String description) { + public PaperContentAddMemberType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperContentAddMemberType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 958881206..72172902a 100644 --- 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 @@ -16,12 +16,15 @@ 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; @@ -36,7 +39,7 @@ public class PaperContentAddToFolderDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentAddToFolderDetails(String eventUuid, long targetAssetIndex, long parentAssetIndex) { + public PaperContentAddToFolderDetails(@Nonnull String eventUuid, long targetAssetIndex, long parentAssetIndex) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -50,6 +53,7 @@ public PaperContentAddToFolderDetails(String eventUuid, long targetAssetIndex, l * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 067cf8dbe..b6cb648ec 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperContentAddToFolderType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentAddToFolderType(String description) { + public PaperContentAddToFolderType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperContentAddToFolderType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 79802c277..5553f33da 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperContentArchiveDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentArchiveDetails(String eventUuid) { + public PaperContentArchiveDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperContentArchiveDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 9da7921f0..185dfbd17 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperContentArchiveType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentArchiveType(String description) { + public PaperContentArchiveType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperContentArchiveType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c0bf7fb7f..32754d0b0 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperContentCreateDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentCreateDetails(String eventUuid) { + public PaperContentCreateDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperContentCreateDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 45a5e29d5..59fb578c9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperContentCreateType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentCreateType(String description) { + public PaperContentCreateType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperContentCreateType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f22f77db5..786c42193 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperContentPermanentlyDeleteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentPermanentlyDeleteDetails(String eventUuid) { + public PaperContentPermanentlyDeleteDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperContentPermanentlyDeleteDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 53d7bbe54..1e672b8c2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperContentPermanentlyDeleteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentPermanentlyDeleteType(String description) { + public PaperContentPermanentlyDeleteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperContentPermanentlyDeleteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a76d59bcf..6f7459583 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -39,7 +45,7 @@ public class PaperContentRemoveFromFolderDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentRemoveFromFolderDetails(String eventUuid, Long targetAssetIndex, Long parentAssetIndex) { + public PaperContentRemoveFromFolderDetails(@Nonnull String eventUuid, @Nullable Long targetAssetIndex, @Nullable Long parentAssetIndex) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -58,7 +64,7 @@ public PaperContentRemoveFromFolderDetails(String eventUuid, Long targetAssetInd * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentRemoveFromFolderDetails(String eventUuid) { + public PaperContentRemoveFromFolderDetails(@Nonnull String eventUuid) { this(eventUuid, null, null); } @@ -67,6 +73,7 @@ public PaperContentRemoveFromFolderDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -76,6 +83,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getTargetAssetIndex() { return targetAssetIndex; } @@ -85,6 +93,7 @@ public Long getTargetAssetIndex() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Long getParentAssetIndex() { return parentAssetIndex; } 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 index c7c77a5f9..fbba6af61 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperContentRemoveFromFolderType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentRemoveFromFolderType(String description) { + public PaperContentRemoveFromFolderType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperContentRemoveFromFolderType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 086d3ffd5..8ca58c1cf 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperContentRemoveMemberDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentRemoveMemberDetails(String eventUuid) { + public PaperContentRemoveMemberDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperContentRemoveMemberDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 48ed07c41..514eea099 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperContentRemoveMemberType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentRemoveMemberType(String description) { + public PaperContentRemoveMemberType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperContentRemoveMemberType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 43fdc372f..eea453e7a 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperContentRenameDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentRenameDetails(String eventUuid) { + public PaperContentRenameDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperContentRenameDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 670d6f248..3eeae2ea9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperContentRenameType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentRenameType(String description) { + public PaperContentRenameType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperContentRenameType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 96b454cba..e206d988b 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperContentRestoreDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentRestoreDetails(String eventUuid) { + public PaperContentRestoreDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperContentRestoreDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index c8c02d201..4e1bd7ad7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperContentRestoreType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperContentRestoreType(String description) { + public PaperContentRestoreType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperContentRestoreType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d7b5e7ff8..54117fcee 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class PaperDefaultFolderPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDefaultFolderPolicyChangedDetails(PaperDefaultFolderPolicy newValue, PaperDefaultFolderPolicy previousValue) { + public PaperDefaultFolderPolicyChangedDetails(@Nonnull PaperDefaultFolderPolicy newValue, @Nonnull PaperDefaultFolderPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -52,6 +56,7 @@ public PaperDefaultFolderPolicyChangedDetails(PaperDefaultFolderPolicy newValue, * * @return value for this field, never {@code null}. */ + @Nonnull public PaperDefaultFolderPolicy getNewValue() { return newValue; } @@ -61,6 +66,7 @@ public PaperDefaultFolderPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperDefaultFolderPolicy getPreviousValue() { return previousValue; } 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 index 68928f954..6973cbde9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDefaultFolderPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDefaultFolderPolicyChangedType(String description) { + public PaperDefaultFolderPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDefaultFolderPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index db3b5963b..a44344762 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class PaperDesktopPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDesktopPolicyChangedDetails(PaperDesktopPolicy newValue, PaperDesktopPolicy previousValue) { + public PaperDesktopPolicyChangedDetails(@Nonnull PaperDesktopPolicy newValue, @Nonnull PaperDesktopPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public PaperDesktopPolicyChangedDetails(PaperDesktopPolicy newValue, PaperDeskto * * @return value for this field, never {@code null}. */ + @Nonnull public PaperDesktopPolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public PaperDesktopPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperDesktopPolicy getPreviousValue() { return previousValue; } 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 index b5be36b0c..398d57de7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDesktopPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDesktopPolicyChangedType(String description) { + public PaperDesktopPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDesktopPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0b0267f32..1e965acd1 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class PaperDocAddCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocAddCommentDetails(String eventUuid, String commentText) { + public PaperDocAddCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -52,7 +57,7 @@ public PaperDocAddCommentDetails(String eventUuid, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocAddCommentDetails(String eventUuid) { + public PaperDocAddCommentDetails(@Nonnull String eventUuid) { this(eventUuid, null); } @@ -61,6 +66,7 @@ public PaperDocAddCommentDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -70,6 +76,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index d4afd6b6a..1106cc05d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocAddCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocAddCommentType(String description) { + public PaperDocAddCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocAddCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index fff35c1bb..8d0b2957d 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class PaperDocChangeMemberRoleDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocChangeMemberRoleDetails(String eventUuid, PaperAccessType accessType) { + public PaperDocChangeMemberRoleDetails(@Nonnull String eventUuid, @Nonnull PaperAccessType accessType) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -50,6 +54,7 @@ public PaperDocChangeMemberRoleDetails(String eventUuid, PaperAccessType accessT * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -59,6 +64,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperAccessType getAccessType() { return accessType; } 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 index 7a04fb58b..cdef630f2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocChangeMemberRoleType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocChangeMemberRoleType(String description) { + public PaperDocChangeMemberRoleType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocChangeMemberRoleType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b655981b3..76bd17b0c 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -39,7 +45,7 @@ public class PaperDocChangeSharingPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocChangeSharingPolicyDetails(String eventUuid, String publicSharingPolicy, String teamSharingPolicy) { + public PaperDocChangeSharingPolicyDetails(@Nonnull String eventUuid, @Nullable String publicSharingPolicy, @Nullable String teamSharingPolicy) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -58,7 +64,7 @@ public PaperDocChangeSharingPolicyDetails(String eventUuid, String publicSharing * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocChangeSharingPolicyDetails(String eventUuid) { + public PaperDocChangeSharingPolicyDetails(@Nonnull String eventUuid) { this(eventUuid, null, null); } @@ -67,6 +73,7 @@ public PaperDocChangeSharingPolicyDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -76,6 +83,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPublicSharingPolicy() { return publicSharingPolicy; } @@ -85,6 +93,7 @@ public String getPublicSharingPolicy() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTeamSharingPolicy() { return teamSharingPolicy; } 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 index 94cc79adb..41300d306 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocChangeSharingPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocChangeSharingPolicyType(String description) { + public PaperDocChangeSharingPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocChangeSharingPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6de0f47b8..a9dae8239 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -38,7 +44,7 @@ public class PaperDocChangeSubscriptionDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocChangeSubscriptionDetails(String eventUuid, String newSubscriptionLevel, String previousSubscriptionLevel) { + public PaperDocChangeSubscriptionDetails(@Nonnull String eventUuid, @Nonnull String newSubscriptionLevel, @Nullable String previousSubscriptionLevel) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -62,7 +68,7 @@ public PaperDocChangeSubscriptionDetails(String eventUuid, String newSubscriptio * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocChangeSubscriptionDetails(String eventUuid, String newSubscriptionLevel) { + public PaperDocChangeSubscriptionDetails(@Nonnull String eventUuid, @Nonnull String newSubscriptionLevel) { this(eventUuid, newSubscriptionLevel, null); } @@ -71,6 +77,7 @@ public PaperDocChangeSubscriptionDetails(String eventUuid, String newSubscriptio * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -80,6 +87,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewSubscriptionLevel() { return newSubscriptionLevel; } @@ -90,6 +98,7 @@ public String getNewSubscriptionLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousSubscriptionLevel() { return previousSubscriptionLevel; } 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 index 7706ab390..c6479b0e6 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocChangeSubscriptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocChangeSubscriptionType(String description) { + public PaperDocChangeSubscriptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocChangeSubscriptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6683d5a36..66674771d 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class PaperDocDeleteCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocDeleteCommentDetails(String eventUuid, String commentText) { + public PaperDocDeleteCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -52,7 +57,7 @@ public PaperDocDeleteCommentDetails(String eventUuid, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocDeleteCommentDetails(String eventUuid) { + public PaperDocDeleteCommentDetails(@Nonnull String eventUuid) { this(eventUuid, null); } @@ -61,6 +66,7 @@ public PaperDocDeleteCommentDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -70,6 +76,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 54249287f..0edd6b8bf 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocDeleteCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocDeleteCommentType(String description) { + public PaperDocDeleteCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocDeleteCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bf0b2f948..e6cda1f68 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocDeletedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocDeletedDetails(String eventUuid) { + public PaperDocDeletedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocDeletedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index e0dad7a85..f508eb145 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocDeletedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocDeletedType(String description) { + public PaperDocDeletedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocDeletedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a75bb11a8..93b2932ca 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class PaperDocDownloadDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocDownloadDetails(String eventUuid, PaperDownloadFormat exportFileFormat) { + public PaperDocDownloadDetails(@Nonnull String eventUuid, @Nonnull PaperDownloadFormat exportFileFormat) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -50,6 +54,7 @@ public PaperDocDownloadDetails(String eventUuid, PaperDownloadFormat exportFileF * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -59,6 +64,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public PaperDownloadFormat getExportFileFormat() { return exportFileFormat; } 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 index 279d1c083..64b15d3b1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocDownloadType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocDownloadType(String description) { + public PaperDocDownloadType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocDownloadType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ea72e8482..480a30a40 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class PaperDocEditCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocEditCommentDetails(String eventUuid, String commentText) { + public PaperDocEditCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -52,7 +57,7 @@ public PaperDocEditCommentDetails(String eventUuid, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocEditCommentDetails(String eventUuid) { + public PaperDocEditCommentDetails(@Nonnull String eventUuid) { this(eventUuid, null); } @@ -61,6 +66,7 @@ public PaperDocEditCommentDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -70,6 +76,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index e239f50aa..1bfd400f1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocEditCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocEditCommentType(String description) { + public PaperDocEditCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocEditCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 7d911fa0e..51ae51021 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocEditDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocEditDetails(String eventUuid) { + public PaperDocEditDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocEditDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 04109ac10..72b93bac5 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocEditType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocEditType(String description) { + public PaperDocEditType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocEditType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c0707aec3..523e72ab6 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocFollowedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocFollowedDetails(String eventUuid) { + public PaperDocFollowedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocFollowedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index aa9da98c8..9eb426ac4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocFollowedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocFollowedType(String description) { + public PaperDocFollowedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocFollowedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5aae2de27..1a00ece11 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocMentionDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocMentionDetails(String eventUuid) { + public PaperDocMentionDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocMentionDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 5ff2e1c82..6dad9ed45 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocMentionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocMentionType(String description) { + public PaperDocMentionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocMentionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3059c7dd7..731c70a52 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -38,7 +44,7 @@ public class PaperDocOwnershipChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocOwnershipChangedDetails(String eventUuid, String newOwnerUserId, String oldOwnerUserId) { + public PaperDocOwnershipChangedDetails(@Nonnull String eventUuid, @Nonnull String newOwnerUserId, @Nullable String oldOwnerUserId) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -76,7 +82,7 @@ public PaperDocOwnershipChangedDetails(String eventUuid, String newOwnerUserId, * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocOwnershipChangedDetails(String eventUuid, String newOwnerUserId) { + public PaperDocOwnershipChangedDetails(@Nonnull String eventUuid, @Nonnull String newOwnerUserId) { this(eventUuid, newOwnerUserId, null); } @@ -85,6 +91,7 @@ public PaperDocOwnershipChangedDetails(String eventUuid, String newOwnerUserId) * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -94,6 +101,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewOwnerUserId() { return newOwnerUserId; } @@ -103,6 +111,7 @@ public String getNewOwnerUserId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getOldOwnerUserId() { return oldOwnerUserId; } 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 index d93f112b3..8ef50a6fa 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocOwnershipChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocOwnershipChangedType(String description) { + public PaperDocOwnershipChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocOwnershipChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 605c69c45..e6b65179f 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocRequestAccessDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocRequestAccessDetails(String eventUuid) { + public PaperDocRequestAccessDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocRequestAccessDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 263186e35..492a45027 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocRequestAccessType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocRequestAccessType(String description) { + public PaperDocRequestAccessType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocRequestAccessType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 842d9b163..10e0237f6 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class PaperDocResolveCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocResolveCommentDetails(String eventUuid, String commentText) { + public PaperDocResolveCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -52,7 +57,7 @@ public PaperDocResolveCommentDetails(String eventUuid, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocResolveCommentDetails(String eventUuid) { + public PaperDocResolveCommentDetails(@Nonnull String eventUuid) { this(eventUuid, null); } @@ -61,6 +66,7 @@ public PaperDocResolveCommentDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -70,6 +76,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index aa8ec14db..ec0ea7fc4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocResolveCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocResolveCommentType(String description) { + public PaperDocResolveCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocResolveCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8e5bcdee7..731de814a 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocRevertDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocRevertDetails(String eventUuid) { + public PaperDocRevertDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocRevertDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 1e8487f3b..f8dee7634 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocRevertType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocRevertType(String description) { + public PaperDocRevertType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocRevertType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6f662fcbb..bcbe07141 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocSlackShareDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocSlackShareDetails(String eventUuid) { + public PaperDocSlackShareDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocSlackShareDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index f2f02f0ef..371ec1fd8 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocSlackShareType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocSlackShareType(String description) { + public PaperDocSlackShareType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocSlackShareType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bc6f69c1d..d467fc5b1 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocTeamInviteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocTeamInviteDetails(String eventUuid) { + public PaperDocTeamInviteDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocTeamInviteDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 99ceeca21..0006e9c40 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocTeamInviteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocTeamInviteType(String description) { + public PaperDocTeamInviteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocTeamInviteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2fc77577e..6a00ed98a 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocTrashedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocTrashedDetails(String eventUuid) { + public PaperDocTrashedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocTrashedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 7cd0b59f6..9ec0b3b48 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocTrashedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocTrashedType(String description) { + public PaperDocTrashedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocTrashedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f9aa3e18c..7d7e734d3 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class PaperDocUnresolveCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocUnresolveCommentDetails(String eventUuid, String commentText) { + public PaperDocUnresolveCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -52,7 +57,7 @@ public PaperDocUnresolveCommentDetails(String eventUuid, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocUnresolveCommentDetails(String eventUuid) { + public PaperDocUnresolveCommentDetails(@Nonnull String eventUuid) { this(eventUuid, null); } @@ -61,6 +66,7 @@ public PaperDocUnresolveCommentDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -70,6 +76,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 4d796240e..2f4936b78 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocUnresolveCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocUnresolveCommentType(String description) { + public PaperDocUnresolveCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocUnresolveCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c12709460..f9c5d5819 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocUntrashedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocUntrashedDetails(String eventUuid) { + public PaperDocUntrashedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocUntrashedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index f0b4269d6..599c65a7a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocUntrashedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocUntrashedType(String description) { + public PaperDocUntrashedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocUntrashedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a5bde5781..148f9953b 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperDocViewDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocViewDetails(String eventUuid) { + public PaperDocViewDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperDocViewDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 85394eb31..056b12704 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperDocViewType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocViewType(String description) { + public PaperDocViewType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperDocViewType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a78290940..a915c8901 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class PaperDocumentLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperDocumentLogInfo(String docId, String docTitle) { + public PaperDocumentLogInfo(@Nonnull String docId, @Nonnull String docTitle) { if (docId == null) { throw new IllegalArgumentException("Required value for 'docId' is null"); } @@ -50,6 +54,7 @@ public PaperDocumentLogInfo(String docId, String docTitle) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocId() { return docId; } @@ -59,6 +64,7 @@ public String getDocId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDocTitle() { return docTitle; } 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 index f1273c946..fb9a6bc00 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperEnabledUsersGroupAdditionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperEnabledUsersGroupAdditionType(String description) { + public PaperEnabledUsersGroupAdditionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperEnabledUsersGroupAdditionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 98aff69bc..5510d2f08 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperEnabledUsersGroupRemovalType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperEnabledUsersGroupRemovalType(String description) { + public PaperEnabledUsersGroupRemovalType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperEnabledUsersGroupRemovalType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 21ea1e43c..197419425 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperExternalViewAllowDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperExternalViewAllowDetails(String eventUuid) { + public PaperExternalViewAllowDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperExternalViewAllowDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 81a0aa138..7fe0ad885 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperExternalViewAllowType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperExternalViewAllowType(String description) { + public PaperExternalViewAllowType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperExternalViewAllowType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 14292b9c3..d74947273 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperExternalViewDefaultTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperExternalViewDefaultTeamDetails(String eventUuid) { + public PaperExternalViewDefaultTeamDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperExternalViewDefaultTeamDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 105d4fc73..5d7851ee8 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperExternalViewDefaultTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperExternalViewDefaultTeamType(String description) { + public PaperExternalViewDefaultTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperExternalViewDefaultTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5b0b171fa..39a020444 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperExternalViewForbidDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperExternalViewForbidDetails(String eventUuid) { + public PaperExternalViewForbidDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperExternalViewForbidDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 0f4a74c1d..419aec904 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperExternalViewForbidType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperExternalViewForbidType(String description) { + public PaperExternalViewForbidType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperExternalViewForbidType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5e931f783..45ab95257 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -38,7 +44,7 @@ public class PaperFolderChangeSubscriptionDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderChangeSubscriptionDetails(String eventUuid, String newSubscriptionLevel, String previousSubscriptionLevel) { + public PaperFolderChangeSubscriptionDetails(@Nonnull String eventUuid, @Nonnull String newSubscriptionLevel, @Nullable String previousSubscriptionLevel) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -62,7 +68,7 @@ public PaperFolderChangeSubscriptionDetails(String eventUuid, String newSubscrip * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderChangeSubscriptionDetails(String eventUuid, String newSubscriptionLevel) { + public PaperFolderChangeSubscriptionDetails(@Nonnull String eventUuid, @Nonnull String newSubscriptionLevel) { this(eventUuid, newSubscriptionLevel, null); } @@ -71,6 +77,7 @@ public PaperFolderChangeSubscriptionDetails(String eventUuid, String newSubscrip * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -80,6 +87,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewSubscriptionLevel() { return newSubscriptionLevel; } @@ -90,6 +98,7 @@ public String getNewSubscriptionLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousSubscriptionLevel() { return previousSubscriptionLevel; } 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 index 12d03ab82..bcf267af2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperFolderChangeSubscriptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderChangeSubscriptionType(String description) { + public PaperFolderChangeSubscriptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperFolderChangeSubscriptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0ec963644..0aa813e18 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperFolderDeletedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderDeletedDetails(String eventUuid) { + public PaperFolderDeletedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperFolderDeletedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index fb6117b72..5d5980a4f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperFolderDeletedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderDeletedType(String description) { + public PaperFolderDeletedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperFolderDeletedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f77704700..805705f32 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperFolderFollowedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderFollowedDetails(String eventUuid) { + public PaperFolderFollowedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperFolderFollowedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 73c3a977a..d36ae4e4b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperFolderFollowedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderFollowedType(String description) { + public PaperFolderFollowedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperFolderFollowedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 251a777c9..0c703e1f6 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class PaperFolderLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderLogInfo(String folderId, String folderName) { + public PaperFolderLogInfo(@Nonnull String folderId, @Nonnull String folderName) { if (folderId == null) { throw new IllegalArgumentException("Required value for 'folderId' is null"); } @@ -50,6 +54,7 @@ public PaperFolderLogInfo(String folderId, String folderName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFolderId() { return folderId; } @@ -59,6 +64,7 @@ public String getFolderId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFolderName() { return folderName; } 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 index a7f09da34..176374c1e 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperFolderTeamInviteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderTeamInviteDetails(String eventUuid) { + public PaperFolderTeamInviteDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperFolderTeamInviteDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 3a29ab923..25cc99e6a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperFolderTeamInviteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperFolderTeamInviteType(String description) { + public PaperFolderTeamInviteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperFolderTeamInviteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b77997c00..dedb74aee 100644 --- 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 @@ -16,14 +16,19 @@ 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; /** @@ -38,7 +43,7 @@ public class PaperPublishedLinkChangePermissionDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperPublishedLinkChangePermissionDetails(String eventUuid, String newPermissionLevel, String previousPermissionLevel) { + public PaperPublishedLinkChangePermissionDetails(@Nonnull String eventUuid, @Nonnull String newPermissionLevel, @Nonnull String previousPermissionLevel) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -58,6 +63,7 @@ public PaperPublishedLinkChangePermissionDetails(String eventUuid, String newPer * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -67,6 +73,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewPermissionLevel() { return newPermissionLevel; } @@ -76,6 +83,7 @@ public String getNewPermissionLevel() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousPermissionLevel() { return previousPermissionLevel; } 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 index a2df34aff..35137fe5c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperPublishedLinkChangePermissionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperPublishedLinkChangePermissionType(String description) { + public PaperPublishedLinkChangePermissionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperPublishedLinkChangePermissionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8f35c6a9d..873df6fb7 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperPublishedLinkCreateDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperPublishedLinkCreateDetails(String eventUuid) { + public PaperPublishedLinkCreateDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperPublishedLinkCreateDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 552df551c..561aed0ac 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperPublishedLinkCreateType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperPublishedLinkCreateType(String description) { + public PaperPublishedLinkCreateType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperPublishedLinkCreateType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f742f512b..6ade5073f 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperPublishedLinkDisabledDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperPublishedLinkDisabledDetails(String eventUuid) { + public PaperPublishedLinkDisabledDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperPublishedLinkDisabledDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 9e5e10347..71b034604 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperPublishedLinkDisabledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperPublishedLinkDisabledType(String description) { + public PaperPublishedLinkDisabledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperPublishedLinkDisabledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bc78a9f05..32688390f 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class PaperPublishedLinkViewDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperPublishedLinkViewDetails(String eventUuid) { + public PaperPublishedLinkViewDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public PaperPublishedLinkViewDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 29bfb70cb..e69f04570 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PaperPublishedLinkViewType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PaperPublishedLinkViewType(String description) { + public PaperPublishedLinkViewType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PaperPublishedLinkViewType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ba304b726..bef71297f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PasswordChangeType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PasswordChangeType(String description) { + public PasswordChangeType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PasswordChangeType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5f4e86d99..9968fa229 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PasswordResetAllType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PasswordResetAllType(String description) { + public PasswordResetAllType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PasswordResetAllType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e677e8701..d7db3b1f3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PasswordResetType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PasswordResetType(String description) { + public PasswordResetType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PasswordResetType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c9ea95c14..8766a3a03 100644 --- 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 @@ -17,13 +17,17 @@ 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; /** @@ -36,7 +40,7 @@ public class PasswordStrengthRequirementsChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PasswordStrengthRequirementsChangePolicyDetails(PasswordStrengthPolicy previousValue, PasswordStrengthPolicy newValue) { + public PasswordStrengthRequirementsChangePolicyDetails(@Nonnull PasswordStrengthPolicy previousValue, @Nonnull PasswordStrengthPolicy newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -52,6 +56,7 @@ public PasswordStrengthRequirementsChangePolicyDetails(PasswordStrengthPolicy pr * * @return value for this field, never {@code null}. */ + @Nonnull public PasswordStrengthPolicy getPreviousValue() { return previousValue; } @@ -61,6 +66,7 @@ public PasswordStrengthPolicy getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public PasswordStrengthPolicy getNewValue() { return newValue; } 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 index 14222e7c3..fdc462de7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PasswordStrengthRequirementsChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PasswordStrengthRequirementsChangePolicyType(String description) { + public PasswordStrengthRequirementsChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PasswordStrengthRequirementsChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index fcadb7d9e..eca1584b3 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class PathLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PathLogInfo(NamespaceRelativePathLogInfo namespaceRelative, String contextual) { + public PathLogInfo(@Nonnull NamespaceRelativePathLogInfo namespaceRelative, @Nullable String contextual) { this.contextual = contextual; if (namespaceRelative == null) { throw new IllegalArgumentException("Required value for 'namespaceRelative' is null"); @@ -54,7 +59,7 @@ public PathLogInfo(NamespaceRelativePathLogInfo namespaceRelative, String contex * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PathLogInfo(NamespaceRelativePathLogInfo namespaceRelative) { + public PathLogInfo(@Nonnull NamespaceRelativePathLogInfo namespaceRelative) { this(namespaceRelative, null); } @@ -63,6 +68,7 @@ public PathLogInfo(NamespaceRelativePathLogInfo namespaceRelative) { * * @return value for this field, never {@code null}. */ + @Nonnull public NamespaceRelativePathLogInfo getNamespaceRelative() { return namespaceRelative; } @@ -72,6 +78,7 @@ public NamespaceRelativePathLogInfo getNamespaceRelative() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getContextual() { return contextual; } 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 index 677414ae7..7b22761d0 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class PendingSecondaryEmailAddedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PendingSecondaryEmailAddedDetails(String secondaryEmail) { + public PendingSecondaryEmailAddedDetails(@Nonnull String secondaryEmail) { if (secondaryEmail == null) { throw new IllegalArgumentException("Required value for 'secondaryEmail' is null"); } @@ -48,6 +51,7 @@ public PendingSecondaryEmailAddedDetails(String secondaryEmail) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryEmail() { return secondaryEmail; } 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 index 66bad2a8e..040b65b83 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PendingSecondaryEmailAddedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PendingSecondaryEmailAddedType(String description) { + public PendingSecondaryEmailAddedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PendingSecondaryEmailAddedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4ff97336f..16b7bbe00 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class PermanentDeleteChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PermanentDeleteChangePolicyDetails(ContentPermanentDeletePolicy newValue, ContentPermanentDeletePolicy previousValue) { + public PermanentDeleteChangePolicyDetails(@Nonnull ContentPermanentDeletePolicy newValue, @Nullable ContentPermanentDeletePolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -55,7 +60,7 @@ public PermanentDeleteChangePolicyDetails(ContentPermanentDeletePolicy newValue, * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PermanentDeleteChangePolicyDetails(ContentPermanentDeletePolicy newValue) { + public PermanentDeleteChangePolicyDetails(@Nonnull ContentPermanentDeletePolicy newValue) { this(newValue, null); } @@ -64,6 +69,7 @@ public PermanentDeleteChangePolicyDetails(ContentPermanentDeletePolicy newValue) * * @return value for this field, never {@code null}. */ + @Nonnull public ContentPermanentDeletePolicy getNewValue() { return newValue; } @@ -74,6 +80,7 @@ public ContentPermanentDeletePolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ContentPermanentDeletePolicy getPreviousValue() { return previousValue; } 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 index d51482d74..e17a6b03a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class PermanentDeleteChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PermanentDeleteChangePolicyType(String description) { + public PermanentDeleteChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public PermanentDeleteChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 50ac63a1c..7795ae1ef 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class PrimaryTeamRequestAcceptedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PrimaryTeamRequestAcceptedDetails(String secondaryTeam, String sentBy) { + public PrimaryTeamRequestAcceptedDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { if (secondaryTeam == null) { throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); } @@ -51,6 +55,7 @@ public PrimaryTeamRequestAcceptedDetails(String secondaryTeam, String sentBy) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryTeam() { return secondaryTeam; } @@ -60,6 +65,7 @@ public String getSecondaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index 08280400b..1b9232db4 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class PrimaryTeamRequestCanceledDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PrimaryTeamRequestCanceledDetails(String secondaryTeam, String sentBy) { + public PrimaryTeamRequestCanceledDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { if (secondaryTeam == null) { throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); } @@ -51,6 +55,7 @@ public PrimaryTeamRequestCanceledDetails(String secondaryTeam, String sentBy) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryTeam() { return secondaryTeam; } @@ -60,6 +65,7 @@ public String getSecondaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index 383998683..d8e20773f 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class PrimaryTeamRequestExpiredDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PrimaryTeamRequestExpiredDetails(String secondaryTeam, String sentBy) { + public PrimaryTeamRequestExpiredDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { if (secondaryTeam == null) { throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); } @@ -51,6 +55,7 @@ public PrimaryTeamRequestExpiredDetails(String secondaryTeam, String sentBy) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryTeam() { return secondaryTeam; } @@ -60,6 +65,7 @@ public String getSecondaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index 84af72e70..76442b8ee 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class PrimaryTeamRequestReminderDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public PrimaryTeamRequestReminderDetails(String secondaryTeam, String sentTo) { + public PrimaryTeamRequestReminderDetails(@Nonnull String secondaryTeam, @Nonnull String sentTo) { if (secondaryTeam == null) { throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); } @@ -51,6 +55,7 @@ public PrimaryTeamRequestReminderDetails(String secondaryTeam, String sentTo) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryTeam() { return secondaryTeam; } @@ -60,6 +65,7 @@ public String getSecondaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentTo() { return sentTo; } 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 index 6219d1b67..0a65ff04d 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -33,7 +36,7 @@ public class RansomwareAlertCreateReportFailedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RansomwareAlertCreateReportFailedDetails(TeamReportFailureReason failureReason) { + public RansomwareAlertCreateReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { if (failureReason == null) { throw new IllegalArgumentException("Required value for 'failureReason' is null"); } @@ -45,6 +48,7 @@ public RansomwareAlertCreateReportFailedDetails(TeamReportFailureReason failureR * * @return value for this field, never {@code null}. */ + @Nonnull public TeamReportFailureReason getFailureReason() { return failureReason; } 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 index 4f98dccae..391b0a450 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class RansomwareAlertCreateReportFailedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RansomwareAlertCreateReportFailedType(String description) { + public RansomwareAlertCreateReportFailedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public RansomwareAlertCreateReportFailedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index da847ab3e..7443e4166 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class RansomwareAlertCreateReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RansomwareAlertCreateReportType(String description) { + public RansomwareAlertCreateReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public RansomwareAlertCreateReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index aa5571f21..c2a12efa0 100644 --- 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 @@ -16,12 +16,15 @@ 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; @@ -37,7 +40,7 @@ public class RansomwareRestoreProcessCompletedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RansomwareRestoreProcessCompletedDetails(String status, long restoredFilesCount, long restoredFilesFailedCount) { + public RansomwareRestoreProcessCompletedDetails(@Nonnull String status, long restoredFilesCount, long restoredFilesFailedCount) { if (status == null) { throw new IllegalArgumentException("Required value for 'status' is null"); } @@ -51,6 +54,7 @@ public RansomwareRestoreProcessCompletedDetails(String status, long restoredFile * * @return value for this field, never {@code null}. */ + @Nonnull public String getStatus() { return status; } 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 index b3de37897..2c6d3b7bb 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class RansomwareRestoreProcessCompletedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RansomwareRestoreProcessCompletedType(String description) { + public RansomwareRestoreProcessCompletedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public RansomwareRestoreProcessCompletedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e7b719617..b87873ac2 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class RansomwareRestoreProcessStartedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RansomwareRestoreProcessStartedDetails(String extension) { + public RansomwareRestoreProcessStartedDetails(@Nonnull String extension) { if (extension == null) { throw new IllegalArgumentException("Required value for 'extension' is null"); } @@ -45,6 +48,7 @@ public RansomwareRestoreProcessStartedDetails(String extension) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getExtension() { return extension; } 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 index 0ce3a5f0e..b876cc6ca 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class RansomwareRestoreProcessStartedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RansomwareRestoreProcessStartedType(String description) { + public RansomwareRestoreProcessStartedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public RansomwareRestoreProcessStartedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 7da86d15b..3ccd1f684 100644 --- 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 @@ -17,14 +17,20 @@ 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; /** @@ -42,7 +48,7 @@ public class RecipientsConfiguration { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RecipientsConfiguration(AlertRecipientsSettingType recipientSettingType, List emails, List groups) { + public RecipientsConfiguration(@Nullable AlertRecipientsSettingType recipientSettingType, @Nullable List emails, @Nullable List groups) { this.recipientSettingType = recipientSettingType; if (emails != null) { for (String x : emails) { @@ -79,6 +85,7 @@ public RecipientsConfiguration() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AlertRecipientsSettingType getRecipientSettingType() { return recipientSettingType; } @@ -88,6 +95,7 @@ public AlertRecipientsSettingType getRecipientSettingType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getEmails() { return emails; } @@ -97,6 +105,7 @@ public List getEmails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getGroups() { return groups; } 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 index 193f3aac2..d1fd95c8e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ReplayFileDeleteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ReplayFileDeleteType(String description) { + public ReplayFileDeleteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ReplayFileDeleteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 89713f374..cdd7db243 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ReplayFileSharedLinkCreatedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ReplayFileSharedLinkCreatedType(String description) { + public ReplayFileSharedLinkCreatedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ReplayFileSharedLinkCreatedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4075c451a..f1893f7f8 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ReplayFileSharedLinkModifiedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ReplayFileSharedLinkModifiedType(String description) { + public ReplayFileSharedLinkModifiedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ReplayFileSharedLinkModifiedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bce674ced..ea9eb3375 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ReplayProjectTeamAddType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ReplayProjectTeamAddType(String description) { + public ReplayProjectTeamAddType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ReplayProjectTeamAddType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8d1600312..1384568e3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ReplayProjectTeamDeleteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ReplayProjectTeamDeleteType(String description) { + public ReplayProjectTeamDeleteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ReplayProjectTeamDeleteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c7c71d822..6c03668df 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class ResellerLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ResellerLogInfo(String resellerName, String resellerEmail) { + public ResellerLogInfo(@Nonnull String resellerName, @Nonnull String resellerEmail) { if (resellerName == null) { throw new IllegalArgumentException("Required value for 'resellerName' is null"); } @@ -54,6 +58,7 @@ public ResellerLogInfo(String resellerName, String resellerEmail) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getResellerName() { return resellerName; } @@ -63,6 +68,7 @@ public String getResellerName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getResellerEmail() { return resellerEmail; } 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 index 7fdf26d9e..5d39ec81b 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class ResellerSupportChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ResellerSupportChangePolicyDetails(ResellerSupportPolicy newValue, ResellerSupportPolicy previousValue) { + public ResellerSupportChangePolicyDetails(@Nonnull ResellerSupportPolicy newValue, @Nonnull ResellerSupportPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public ResellerSupportChangePolicyDetails(ResellerSupportPolicy newValue, Resell * * @return value for this field, never {@code null}. */ + @Nonnull public ResellerSupportPolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public ResellerSupportPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public ResellerSupportPolicy getPreviousValue() { return previousValue; } 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 index f38bc76b4..c41e4e9d3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ResellerSupportChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ResellerSupportChangePolicyType(String description) { + public ResellerSupportChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ResellerSupportChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3fb31efd6..f16a0492d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ResellerSupportSessionEndType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ResellerSupportSessionEndType(String description) { + public ResellerSupportSessionEndType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ResellerSupportSessionEndType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 85a59bba8..f5f0feead 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ResellerSupportSessionStartType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ResellerSupportSessionStartType(String description) { + public ResellerSupportSessionStartType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ResellerSupportSessionStartType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 657dee29e..38dbdec17 100644 --- 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 @@ -18,12 +18,15 @@ 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; /** @@ -35,7 +38,7 @@ public class RewindFolderDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RewindFolderDetails(Date rewindFolderTargetTsMs) { + public RewindFolderDetails(@Nonnull Date rewindFolderTargetTsMs) { if (rewindFolderTargetTsMs == null) { throw new IllegalArgumentException("Required value for 'rewindFolderTargetTsMs' is null"); } @@ -47,6 +50,7 @@ public RewindFolderDetails(Date rewindFolderTargetTsMs) { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getRewindFolderTargetTsMs() { return rewindFolderTargetTsMs; } 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 index 86d746d13..ee751abcf 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class RewindFolderType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RewindFolderType(String description) { + public RewindFolderType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public RewindFolderType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2277cc181..8a8ecdcba 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class RewindPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RewindPolicyChangedDetails(RewindPolicy newValue, RewindPolicy previousValue) { + public RewindPolicyChangedDetails(@Nonnull RewindPolicy newValue, @Nonnull RewindPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public RewindPolicyChangedDetails(RewindPolicy newValue, RewindPolicy previousVa * * @return value for this field, never {@code null}. */ + @Nonnull public RewindPolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public RewindPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public RewindPolicy getPreviousValue() { return previousValue; } 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 index df1c6f730..bb376ed7f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class RewindPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public RewindPolicyChangedType(String description) { + public RewindPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public RewindPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index dda2fec4c..ba53f8c49 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class SecondaryEmailDeletedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryEmailDeletedDetails(String secondaryEmail) { + public SecondaryEmailDeletedDetails(@Nonnull String secondaryEmail) { if (secondaryEmail == null) { throw new IllegalArgumentException("Required value for 'secondaryEmail' is null"); } @@ -48,6 +51,7 @@ public SecondaryEmailDeletedDetails(String secondaryEmail) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryEmail() { return secondaryEmail; } 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 index 7bf8888ed..e8cc9e182 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SecondaryEmailDeletedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryEmailDeletedType(String description) { + public SecondaryEmailDeletedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SecondaryEmailDeletedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 44cce32d5..bd5bd635a 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class SecondaryEmailVerifiedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryEmailVerifiedDetails(String secondaryEmail) { + public SecondaryEmailVerifiedDetails(@Nonnull String secondaryEmail) { if (secondaryEmail == null) { throw new IllegalArgumentException("Required value for 'secondaryEmail' is null"); } @@ -48,6 +51,7 @@ public SecondaryEmailVerifiedDetails(String secondaryEmail) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryEmail() { return secondaryEmail; } 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 index 585e985a8..323d22b91 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SecondaryEmailVerifiedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryEmailVerifiedType(String description) { + public SecondaryEmailVerifiedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SecondaryEmailVerifiedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 456757da9..d983e0c80 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class SecondaryMailsPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryMailsPolicyChangedDetails(SecondaryMailsPolicy previousValue, SecondaryMailsPolicy newValue) { + public SecondaryMailsPolicyChangedDetails(@Nonnull SecondaryMailsPolicy previousValue, @Nonnull SecondaryMailsPolicy newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public SecondaryMailsPolicyChangedDetails(SecondaryMailsPolicy previousValue, Se * * @return value for this field, never {@code null}. */ + @Nonnull public SecondaryMailsPolicy getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public SecondaryMailsPolicy getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public SecondaryMailsPolicy getNewValue() { return newValue; } 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 index bd477b80f..f5ab094d2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SecondaryMailsPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryMailsPolicyChangedType(String description) { + public SecondaryMailsPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SecondaryMailsPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 178d68a06..7e10d1dfb 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class SecondaryTeamRequestAcceptedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryTeamRequestAcceptedDetails(String primaryTeam, String sentBy) { + public SecondaryTeamRequestAcceptedDetails(@Nonnull String primaryTeam, @Nonnull String sentBy) { if (primaryTeam == null) { throw new IllegalArgumentException("Required value for 'primaryTeam' is null"); } @@ -51,6 +55,7 @@ public SecondaryTeamRequestAcceptedDetails(String primaryTeam, String sentBy) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPrimaryTeam() { return primaryTeam; } @@ -60,6 +65,7 @@ public String getPrimaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index aedd132c8..cd876bf1f 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class SecondaryTeamRequestCanceledDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryTeamRequestCanceledDetails(String sentTo, String sentBy) { + public SecondaryTeamRequestCanceledDetails(@Nonnull String sentTo, @Nonnull String sentBy) { if (sentTo == null) { throw new IllegalArgumentException("Required value for 'sentTo' is null"); } @@ -52,6 +56,7 @@ public SecondaryTeamRequestCanceledDetails(String sentTo, String sentBy) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentTo() { return sentTo; } @@ -61,6 +66,7 @@ public String getSentTo() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index 8dce0aa95..c8d5e9935 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class SecondaryTeamRequestExpiredDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryTeamRequestExpiredDetails(String sentTo) { + public SecondaryTeamRequestExpiredDetails(@Nonnull String sentTo) { if (sentTo == null) { throw new IllegalArgumentException("Required value for 'sentTo' is null"); } @@ -45,6 +48,7 @@ public SecondaryTeamRequestExpiredDetails(String sentTo) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentTo() { return sentTo; } 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 index 921018d63..c07056141 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class SecondaryTeamRequestReminderDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SecondaryTeamRequestReminderDetails(String sentTo) { + public SecondaryTeamRequestReminderDetails(@Nonnull String sentTo) { if (sentTo == null) { throw new IllegalArgumentException("Required value for 'sentTo' is null"); } @@ -45,6 +48,7 @@ public SecondaryTeamRequestReminderDetails(String sentTo) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentTo() { return sentTo; } 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 index 7f7bb9862..41c13e175 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class SendForSignaturePolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SendForSignaturePolicyChangedDetails(SendForSignaturePolicy newValue, SendForSignaturePolicy previousValue) { + public SendForSignaturePolicyChangedDetails(@Nonnull SendForSignaturePolicy newValue, @Nonnull SendForSignaturePolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public SendForSignaturePolicyChangedDetails(SendForSignaturePolicy newValue, Sen * * @return value for this field, never {@code null}. */ + @Nonnull public SendForSignaturePolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public SendForSignaturePolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public SendForSignaturePolicy getPreviousValue() { return previousValue; } 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 index bdf1e00ed..89ad77eb0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SendForSignaturePolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SendForSignaturePolicyChangedType(String description) { + public SendForSignaturePolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SendForSignaturePolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e6789e354..8e597b5a9 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class SessionLogInfo { * * @param sessionId Session ID. */ - public SessionLogInfo(String sessionId) { + public SessionLogInfo(@Nullable String sessionId) { this.sessionId = sessionId; } @@ -47,6 +51,7 @@ public SessionLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSessionId() { return sessionId; } 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 index 16b01e436..5d418bb9a 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Added team to shared folder. */ @@ -23,8 +26,11 @@ 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; /** @@ -39,7 +45,7 @@ public class SfAddGroupDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfAddGroupDetails(long targetAssetIndex, String originalFolderName, String teamName, String sharingPermission) { + 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"); @@ -65,7 +71,7 @@ public SfAddGroupDetails(long targetAssetIndex, String originalFolderName, Strin * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfAddGroupDetails(long targetAssetIndex, String originalFolderName, String teamName) { + public SfAddGroupDetails(long targetAssetIndex, @Nonnull String originalFolderName, @Nonnull String teamName) { this(targetAssetIndex, originalFolderName, teamName, null); } @@ -83,6 +89,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } @@ -92,6 +99,7 @@ public String getOriginalFolderName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamName() { return teamName; } @@ -101,6 +109,7 @@ public String getTeamName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharingPermission() { return sharingPermission; } 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 index 319bf92ed..8ff6650ca 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfAddGroupType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfAddGroupType(String description) { + public SfAddGroupType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfAddGroupType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 61b81287a..807fa2ed9 100644 --- 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 @@ -16,6 +16,9 @@ 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. */ @@ -23,7 +26,9 @@ 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; /** @@ -37,7 +42,7 @@ public class SfAllowNonMembersToViewSharedLinksDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfAllowNonMembersToViewSharedLinksDetails(long targetAssetIndex, String originalFolderName, String sharedFolderType) { + 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"); @@ -58,7 +63,7 @@ public SfAllowNonMembersToViewSharedLinksDetails(long targetAssetIndex, String o * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfAllowNonMembersToViewSharedLinksDetails(long targetAssetIndex, String originalFolderName) { + public SfAllowNonMembersToViewSharedLinksDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this(targetAssetIndex, originalFolderName, null); } @@ -76,6 +81,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } @@ -85,6 +91,7 @@ public String getOriginalFolderName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedFolderType() { return sharedFolderType; } 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 index 14b400ad6..488b85220 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfAllowNonMembersToViewSharedLinksType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfAllowNonMembersToViewSharedLinksType(String description) { + public SfAllowNonMembersToViewSharedLinksType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfAllowNonMembersToViewSharedLinksType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0dbe7a542..a14a5262a 100644 --- 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 @@ -16,6 +16,9 @@ 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. */ @@ -23,8 +26,11 @@ 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; /** @@ -42,7 +48,7 @@ public class SfExternalInviteWarnDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfExternalInviteWarnDetails(long targetAssetIndex, String originalFolderName, String newSharingPermission, String previousSharingPermission) { + 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"); @@ -64,7 +70,7 @@ public SfExternalInviteWarnDetails(long targetAssetIndex, String originalFolderN * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfExternalInviteWarnDetails(long targetAssetIndex, String originalFolderName) { + public SfExternalInviteWarnDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this(targetAssetIndex, originalFolderName, null, null); } @@ -82,6 +88,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } @@ -91,6 +98,7 @@ public String getOriginalFolderName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewSharingPermission() { return newSharingPermission; } @@ -100,6 +108,7 @@ public String getNewSharingPermission() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousSharingPermission() { return previousSharingPermission; } 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 index 60489f1b4..d616c6985 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfExternalInviteWarnType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfExternalInviteWarnType(String description) { + public SfExternalInviteWarnType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfExternalInviteWarnType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 54600732e..05294e1d0 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Changed Facebook user's role in shared folder. */ @@ -23,8 +26,11 @@ 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; /** @@ -42,7 +48,7 @@ public class SfFbInviteChangeRoleDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfFbInviteChangeRoleDetails(long targetAssetIndex, String originalFolderName, String previousSharingPermission, String newSharingPermission) { + 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"); @@ -64,7 +70,7 @@ public SfFbInviteChangeRoleDetails(long targetAssetIndex, String originalFolderN * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfFbInviteChangeRoleDetails(long targetAssetIndex, String originalFolderName) { + public SfFbInviteChangeRoleDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this(targetAssetIndex, originalFolderName, null, null); } @@ -82,6 +88,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } @@ -91,6 +98,7 @@ public String getOriginalFolderName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousSharingPermission() { return previousSharingPermission; } @@ -100,6 +108,7 @@ public String getPreviousSharingPermission() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewSharingPermission() { return newSharingPermission; } 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 index 3e01a0ae3..a16ce5cd9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfFbInviteChangeRoleType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfFbInviteChangeRoleType(String description) { + public SfFbInviteChangeRoleType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfFbInviteChangeRoleType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c2a0886e1..a4a873b6c 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Invited Facebook users to shared folder. */ @@ -23,7 +26,9 @@ 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; /** @@ -37,7 +42,7 @@ public class SfFbInviteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfFbInviteDetails(long targetAssetIndex, String originalFolderName, String sharingPermission) { + 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"); @@ -58,7 +63,7 @@ public SfFbInviteDetails(long targetAssetIndex, String originalFolderName, Strin * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfFbInviteDetails(long targetAssetIndex, String originalFolderName) { + public SfFbInviteDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this(targetAssetIndex, originalFolderName, null); } @@ -76,6 +81,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } @@ -85,6 +91,7 @@ public String getOriginalFolderName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharingPermission() { return sharingPermission; } 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 index 219055d24..a08bbd268 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfFbInviteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfFbInviteType(String description) { + public SfFbInviteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfFbInviteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index eb1d1517f..98481f096 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + /** * Uninvited Facebook user from shared folder. */ @@ -23,6 +25,7 @@ public class SfFbUninviteDetails { // struct team_log.SfFbUninviteDetails (team_log_generated.stone) protected final long targetAssetIndex; + @Nonnull protected final String originalFolderName; /** @@ -35,7 +38,7 @@ public class SfFbUninviteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfFbUninviteDetails(long targetAssetIndex, String originalFolderName) { + public SfFbUninviteDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this.targetAssetIndex = targetAssetIndex; if (originalFolderName == null) { throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); @@ -57,6 +60,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } 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 index f67d198ea..bf8ac7062 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfFbUninviteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfFbUninviteType(String description) { + public SfFbUninviteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfFbUninviteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 48e8b81f4..ca1a28049 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfInviteGroupType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfInviteGroupType(String description) { + public SfInviteGroupType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfInviteGroupType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1e0e0cf86..c32dbe887 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + /** * Granted access to shared folder. */ @@ -23,6 +25,7 @@ public class SfTeamGrantAccessDetails { // struct team_log.SfTeamGrantAccessDetails (team_log_generated.stone) protected final long targetAssetIndex; + @Nonnull protected final String originalFolderName; /** @@ -35,7 +38,7 @@ public class SfTeamGrantAccessDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamGrantAccessDetails(long targetAssetIndex, String originalFolderName) { + public SfTeamGrantAccessDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this.targetAssetIndex = targetAssetIndex; if (originalFolderName == null) { throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); @@ -57,6 +60,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } 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 index ed41cc2c4..9297ac24a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfTeamGrantAccessType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamGrantAccessType(String description) { + public SfTeamGrantAccessType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfTeamGrantAccessType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 80918fda7..fd229407c 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Changed team member's role in shared folder. */ @@ -23,8 +26,11 @@ 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; /** @@ -42,7 +48,7 @@ public class SfTeamInviteChangeRoleDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamInviteChangeRoleDetails(long targetAssetIndex, String originalFolderName, String newSharingPermission, String previousSharingPermission) { + 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"); @@ -64,7 +70,7 @@ public SfTeamInviteChangeRoleDetails(long targetAssetIndex, String originalFolde * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamInviteChangeRoleDetails(long targetAssetIndex, String originalFolderName) { + public SfTeamInviteChangeRoleDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this(targetAssetIndex, originalFolderName, null, null); } @@ -82,6 +88,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } @@ -91,6 +98,7 @@ public String getOriginalFolderName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewSharingPermission() { return newSharingPermission; } @@ -100,6 +108,7 @@ public String getNewSharingPermission() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousSharingPermission() { return previousSharingPermission; } 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 index 799f3d8db..cbc913f38 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfTeamInviteChangeRoleType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamInviteChangeRoleType(String description) { + public SfTeamInviteChangeRoleType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfTeamInviteChangeRoleType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index abdb5edc0..576e4fe28 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Invited team members to shared folder. */ @@ -23,7 +26,9 @@ 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; /** @@ -37,7 +42,7 @@ public class SfTeamInviteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamInviteDetails(long targetAssetIndex, String originalFolderName, String sharingPermission) { + 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"); @@ -58,7 +63,7 @@ public SfTeamInviteDetails(long targetAssetIndex, String originalFolderName, Str * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamInviteDetails(long targetAssetIndex, String originalFolderName) { + public SfTeamInviteDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this(targetAssetIndex, originalFolderName, null); } @@ -76,6 +81,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } @@ -85,6 +91,7 @@ public String getOriginalFolderName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharingPermission() { return sharingPermission; } 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 index 900b409f6..9518b8ad6 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfTeamInviteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamInviteType(String description) { + public SfTeamInviteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfTeamInviteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 16fe52565..1bb160d4a 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + /** * Joined team member's shared folder. */ @@ -23,6 +25,7 @@ public class SfTeamJoinDetails { // struct team_log.SfTeamJoinDetails (team_log_generated.stone) protected final long targetAssetIndex; + @Nonnull protected final String originalFolderName; /** @@ -35,7 +38,7 @@ public class SfTeamJoinDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamJoinDetails(long targetAssetIndex, String originalFolderName) { + public SfTeamJoinDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this.targetAssetIndex = targetAssetIndex; if (originalFolderName == null) { throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); @@ -57,6 +60,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } 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 index 024561780..2129f37d1 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Joined team member's shared folder from link. */ @@ -23,8 +26,11 @@ 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; /** @@ -42,7 +48,7 @@ public class SfTeamJoinFromOobLinkDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamJoinFromOobLinkDetails(long targetAssetIndex, String originalFolderName, String tokenKey, String sharingPermission) { + 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"); @@ -64,7 +70,7 @@ public SfTeamJoinFromOobLinkDetails(long targetAssetIndex, String originalFolder * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamJoinFromOobLinkDetails(long targetAssetIndex, String originalFolderName) { + public SfTeamJoinFromOobLinkDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this(targetAssetIndex, originalFolderName, null, null); } @@ -82,6 +88,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } @@ -91,6 +98,7 @@ public String getOriginalFolderName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTokenKey() { return tokenKey; } @@ -100,6 +108,7 @@ public String getTokenKey() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharingPermission() { return sharingPermission; } 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 index c1c807077..614c5a4e0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfTeamJoinFromOobLinkType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamJoinFromOobLinkType(String description) { + public SfTeamJoinFromOobLinkType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfTeamJoinFromOobLinkType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4d3b3fd43..1e20c4798 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfTeamJoinType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamJoinType(String description) { + public SfTeamJoinType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfTeamJoinType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 60dace682..0759cb7e5 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + /** * Unshared folder with team member. */ @@ -23,6 +25,7 @@ public class SfTeamUninviteDetails { // struct team_log.SfTeamUninviteDetails (team_log_generated.stone) protected final long targetAssetIndex; + @Nonnull protected final String originalFolderName; /** @@ -35,7 +38,7 @@ public class SfTeamUninviteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamUninviteDetails(long targetAssetIndex, String originalFolderName) { + public SfTeamUninviteDetails(long targetAssetIndex, @Nonnull String originalFolderName) { this.targetAssetIndex = targetAssetIndex; if (originalFolderName == null) { throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); @@ -57,6 +60,7 @@ public long getTargetAssetIndex() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOriginalFolderName() { return originalFolderName; } 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 index 2258a3923..7dc631b6c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SfTeamUninviteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SfTeamUninviteType(String description) { + public SfTeamUninviteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SfTeamUninviteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0f8a17ca7..520cd0d67 100644 --- 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 @@ -18,13 +18,17 @@ 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; /** @@ -38,7 +42,7 @@ public class SharedContentAddInviteesDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentAddInviteesDetails(AccessLevel sharedContentAccessLevel, List invitees) { + public SharedContentAddInviteesDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nonnull List invitees) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -62,6 +66,7 @@ public SharedContentAddInviteesDetails(AccessLevel sharedContentAccessLevel, Lis * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -71,6 +76,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getInvitees() { return invitees; } 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 index 05516af1f..dc88cf2eb 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentAddInviteesType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentAddInviteesType(String description) { + public SharedContentAddInviteesType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentAddInviteesType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ba5fbcb8b..1d06e8f28 100644 --- 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 @@ -18,12 +18,16 @@ 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; /** @@ -32,7 +36,7 @@ public class SharedContentAddLinkExpiryDetails { * @param newValue New shared content link expiration date. Might be * missing due to historical data gap. */ - public SharedContentAddLinkExpiryDetails(Date newValue) { + public SharedContentAddLinkExpiryDetails(@Nullable Date newValue) { this.newValue = LangUtil.truncateMillis(newValue); } @@ -51,6 +55,7 @@ public SharedContentAddLinkExpiryDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getNewValue() { return newValue; } 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 index eeded1608..ba57a43a9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentAddLinkExpiryType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentAddLinkExpiryType(String description) { + public SharedContentAddLinkExpiryType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentAddLinkExpiryType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index cd0e80ece..728e71588 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentAddLinkPasswordType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentAddLinkPasswordType(String description) { + public SharedContentAddLinkPasswordType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentAddLinkPasswordType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 30797a880..385d2c5d1 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class SharedContentAddMemberDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentAddMemberDetails(AccessLevel sharedContentAccessLevel) { + public SharedContentAddMemberDetails(@Nonnull AccessLevel sharedContentAccessLevel) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -46,6 +49,7 @@ public SharedContentAddMemberDetails(AccessLevel sharedContentAccessLevel) { * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } 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 index 97c277031..fc43bbc53 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentAddMemberType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentAddMemberType(String description) { + public SharedContentAddMemberType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentAddMemberType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 97f8b74ea..c67743d4c 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SharedContentChangeDownloadsPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeDownloadsPolicyDetails(DownloadPolicyType newValue, DownloadPolicyType previousValue) { + public SharedContentChangeDownloadsPolicyDetails(@Nonnull DownloadPolicyType newValue, @Nullable DownloadPolicyType previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public SharedContentChangeDownloadsPolicyDetails(DownloadPolicyType newValue, Do * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeDownloadsPolicyDetails(DownloadPolicyType newValue) { + public SharedContentChangeDownloadsPolicyDetails(@Nonnull DownloadPolicyType newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public SharedContentChangeDownloadsPolicyDetails(DownloadPolicyType newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public DownloadPolicyType getNewValue() { return newValue; } @@ -71,6 +77,7 @@ public DownloadPolicyType getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DownloadPolicyType getPreviousValue() { return previousValue; } 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 index a27eb07a8..1c0dc4214 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentChangeDownloadsPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeDownloadsPolicyType(String description) { + public SharedContentChangeDownloadsPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentChangeDownloadsPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a55cd0626..b62621efb 100644 --- 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 @@ -17,6 +17,9 @@ 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. @@ -24,8 +27,11 @@ 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; /** @@ -41,7 +47,7 @@ public class SharedContentChangeInviteeRoleDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeInviteeRoleDetails(AccessLevel newAccessLevel, String invitee, AccessLevel previousAccessLevel) { + 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"); @@ -69,7 +75,7 @@ public SharedContentChangeInviteeRoleDetails(AccessLevel newAccessLevel, String * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeInviteeRoleDetails(AccessLevel newAccessLevel, String invitee) { + public SharedContentChangeInviteeRoleDetails(@Nonnull AccessLevel newAccessLevel, @Nonnull String invitee) { this(newAccessLevel, invitee, null); } @@ -78,6 +84,7 @@ public SharedContentChangeInviteeRoleDetails(AccessLevel newAccessLevel, String * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getNewAccessLevel() { return newAccessLevel; } @@ -87,6 +94,7 @@ public AccessLevel getNewAccessLevel() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getInvitee() { return invitee; } @@ -96,6 +104,7 @@ public String getInvitee() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccessLevel getPreviousAccessLevel() { return previousAccessLevel; } 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 index 7c1df9788..5b41b5c71 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentChangeInviteeRoleType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeInviteeRoleType(String description) { + public SharedContentChangeInviteeRoleType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentChangeInviteeRoleType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c6223ac40..206fed93a 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SharedContentChangeLinkAudienceDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeLinkAudienceDetails(LinkAudience newValue, LinkAudience previousValue) { + public SharedContentChangeLinkAudienceDetails(@Nonnull LinkAudience newValue, @Nullable LinkAudience previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public SharedContentChangeLinkAudienceDetails(LinkAudience newValue, LinkAudienc * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeLinkAudienceDetails(LinkAudience newValue) { + public SharedContentChangeLinkAudienceDetails(@Nonnull LinkAudience newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public SharedContentChangeLinkAudienceDetails(LinkAudience newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkAudience getNewValue() { return newValue; } @@ -71,6 +77,7 @@ public LinkAudience getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkAudience getPreviousValue() { return previousValue; } 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 index c1b10bee1..4eb565770 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentChangeLinkAudienceType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeLinkAudienceType(String description) { + public SharedContentChangeLinkAudienceType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentChangeLinkAudienceType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e574537dd..41384d945 100644 --- 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 @@ -18,13 +18,18 @@ 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; /** @@ -38,7 +43,7 @@ public class SharedContentChangeLinkExpiryDetails { * @param previousValue Previous shared content link expiration date. Might * be missing due to historical data gap. */ - public SharedContentChangeLinkExpiryDetails(Date newValue, Date previousValue) { + public SharedContentChangeLinkExpiryDetails(@Nullable Date newValue, @Nullable Date previousValue) { this.newValue = LangUtil.truncateMillis(newValue); this.previousValue = LangUtil.truncateMillis(previousValue); } @@ -58,6 +63,7 @@ public SharedContentChangeLinkExpiryDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getNewValue() { return newValue; } @@ -68,6 +74,7 @@ public Date getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getPreviousValue() { return previousValue; } 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 index 99998f651..9f6ec3c0d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentChangeLinkExpiryType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeLinkExpiryType(String description) { + public SharedContentChangeLinkExpiryType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentChangeLinkExpiryType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e00c89321..02a294470 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentChangeLinkPasswordType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeLinkPasswordType(String description) { + public SharedContentChangeLinkPasswordType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentChangeLinkPasswordType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5cae790b6..d54a2dbb9 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SharedContentChangeMemberRoleDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeMemberRoleDetails(AccessLevel newAccessLevel, AccessLevel previousAccessLevel) { + public SharedContentChangeMemberRoleDetails(@Nonnull AccessLevel newAccessLevel, @Nullable AccessLevel previousAccessLevel) { this.previousAccessLevel = previousAccessLevel; if (newAccessLevel == null) { throw new IllegalArgumentException("Required value for 'newAccessLevel' is null"); @@ -54,7 +59,7 @@ public SharedContentChangeMemberRoleDetails(AccessLevel newAccessLevel, AccessLe * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeMemberRoleDetails(AccessLevel newAccessLevel) { + public SharedContentChangeMemberRoleDetails(@Nonnull AccessLevel newAccessLevel) { this(newAccessLevel, null); } @@ -63,6 +68,7 @@ public SharedContentChangeMemberRoleDetails(AccessLevel newAccessLevel) { * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getNewAccessLevel() { return newAccessLevel; } @@ -72,6 +78,7 @@ public AccessLevel getNewAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccessLevel getPreviousAccessLevel() { return previousAccessLevel; } 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 index 704d15686..d129f1e2d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentChangeMemberRoleType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeMemberRoleType(String description) { + public SharedContentChangeMemberRoleType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentChangeMemberRoleType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 315f811db..12fb8000f 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SharedContentChangeViewerInfoPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeViewerInfoPolicyDetails(ViewerInfoPolicy newValue, ViewerInfoPolicy previousValue) { + public SharedContentChangeViewerInfoPolicyDetails(@Nonnull ViewerInfoPolicy newValue, @Nullable ViewerInfoPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public SharedContentChangeViewerInfoPolicyDetails(ViewerInfoPolicy newValue, Vie * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeViewerInfoPolicyDetails(ViewerInfoPolicy newValue) { + public SharedContentChangeViewerInfoPolicyDetails(@Nonnull ViewerInfoPolicy newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public SharedContentChangeViewerInfoPolicyDetails(ViewerInfoPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public ViewerInfoPolicy getNewValue() { return newValue; } @@ -71,6 +77,7 @@ public ViewerInfoPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ViewerInfoPolicy getPreviousValue() { return previousValue; } 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 index 1b5f49f52..ef2782bd2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentChangeViewerInfoPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentChangeViewerInfoPolicyType(String description) { + public SharedContentChangeViewerInfoPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentChangeViewerInfoPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2f9917aa9..1d1c6bef4 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class SharedContentClaimInvitationDetails { * * @param sharedContentLink Shared content link. */ - public SharedContentClaimInvitationDetails(String sharedContentLink) { + public SharedContentClaimInvitationDetails(@Nullable String sharedContentLink) { this.sharedContentLink = sharedContentLink; } @@ -47,6 +51,7 @@ public SharedContentClaimInvitationDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } 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 index 9c5b0a84d..47b0a2dbd 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentClaimInvitationType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentClaimInvitationType(String description) { + public SharedContentClaimInvitationType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentClaimInvitationType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 527c6daf0..66fc8981a 100644 --- 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 @@ -17,15 +17,22 @@ 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; /** @@ -41,7 +48,7 @@ public class SharedContentCopyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentCopyDetails(String sharedContentLink, AccessLevel sharedContentAccessLevel, String destinationPath, UserLogInfo sharedContentOwner) { + 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"); } @@ -71,7 +78,7 @@ public SharedContentCopyDetails(String sharedContentLink, AccessLevel sharedCont * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentCopyDetails(String sharedContentLink, AccessLevel sharedContentAccessLevel, String destinationPath) { + public SharedContentCopyDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel, @Nonnull String destinationPath) { this(sharedContentLink, sharedContentAccessLevel, destinationPath, null); } @@ -80,6 +87,7 @@ public SharedContentCopyDetails(String sharedContentLink, AccessLevel sharedCont * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedContentLink() { return sharedContentLink; } @@ -89,6 +97,7 @@ public String getSharedContentLink() { * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -98,6 +107,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDestinationPath() { return destinationPath; } @@ -107,6 +117,7 @@ public String getDestinationPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserLogInfo getSharedContentOwner() { return sharedContentOwner; } 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 index 26a8cc59e..110b21af7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentCopyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentCopyType(String description) { + public SharedContentCopyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentCopyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bd6e2ff7c..f3c474614 100644 --- 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 @@ -17,14 +17,20 @@ 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; /** @@ -38,7 +44,7 @@ public class SharedContentDownloadDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentDownloadDetails(String sharedContentLink, AccessLevel sharedContentAccessLevel, UserLogInfo sharedContentOwner) { + public SharedContentDownloadDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel, @Nullable UserLogInfo sharedContentOwner) { if (sharedContentLink == null) { throw new IllegalArgumentException("Required value for 'sharedContentLink' is null"); } @@ -62,7 +68,7 @@ public SharedContentDownloadDetails(String sharedContentLink, AccessLevel shared * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentDownloadDetails(String sharedContentLink, AccessLevel sharedContentAccessLevel) { + public SharedContentDownloadDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel) { this(sharedContentLink, sharedContentAccessLevel, null); } @@ -71,6 +77,7 @@ public SharedContentDownloadDetails(String sharedContentLink, AccessLevel shared * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedContentLink() { return sharedContentLink; } @@ -80,6 +87,7 @@ public String getSharedContentLink() { * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -89,6 +97,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserLogInfo getSharedContentOwner() { return sharedContentOwner; } 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 index c85f4473b..2005fa09b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentDownloadType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentDownloadType(String description) { + public SharedContentDownloadType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentDownloadType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 737d0a62f..673945812 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentRelinquishMembershipType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRelinquishMembershipType(String description) { + public SharedContentRelinquishMembershipType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentRelinquishMembershipType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 24897db0a..43c5ee526 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class SharedContentRemoveInviteesDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRemoveInviteesDetails(List invitees) { + public SharedContentRemoveInviteesDetails(@Nonnull List invitees) { if (invitees == null) { throw new IllegalArgumentException("Required value for 'invitees' is null"); } @@ -54,6 +57,7 @@ public SharedContentRemoveInviteesDetails(List invitees) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getInvitees() { return invitees; } 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 index 06fcd9df5..83cf00879 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentRemoveInviteesType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRemoveInviteesType(String description) { + public SharedContentRemoveInviteesType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentRemoveInviteesType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4d52edd31..e61972d9f 100644 --- 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 @@ -18,12 +18,16 @@ 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; /** @@ -32,7 +36,7 @@ public class SharedContentRemoveLinkExpiryDetails { * @param previousValue Previous shared content link expiration date. Might * be missing due to historical data gap. */ - public SharedContentRemoveLinkExpiryDetails(Date previousValue) { + public SharedContentRemoveLinkExpiryDetails(@Nullable Date previousValue) { this.previousValue = LangUtil.truncateMillis(previousValue); } @@ -51,6 +55,7 @@ public SharedContentRemoveLinkExpiryDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getPreviousValue() { return previousValue; } 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 index 7b95d851f..3125b3e76 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentRemoveLinkExpiryType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRemoveLinkExpiryType(String description) { + public SharedContentRemoveLinkExpiryType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentRemoveLinkExpiryType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6b520e7c6..61d8c141a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentRemoveLinkPasswordType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRemoveLinkPasswordType(String description) { + public SharedContentRemoveLinkPasswordType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentRemoveLinkPasswordType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2d6da8fc7..00b0a2b9e 100644 --- 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 @@ -17,12 +17,16 @@ 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; /** @@ -30,7 +34,7 @@ public class SharedContentRemoveMemberDetails { * * @param sharedContentAccessLevel Shared content access level. */ - public SharedContentRemoveMemberDetails(AccessLevel sharedContentAccessLevel) { + public SharedContentRemoveMemberDetails(@Nullable AccessLevel sharedContentAccessLevel) { this.sharedContentAccessLevel = sharedContentAccessLevel; } @@ -48,6 +52,7 @@ public SharedContentRemoveMemberDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } 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 index 4242ce460..45175c25c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentRemoveMemberType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRemoveMemberType(String description) { + public SharedContentRemoveMemberType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentRemoveMemberType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1c449bb53..0a39050a5 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class SharedContentRequestAccessDetails { * * @param sharedContentLink Shared content link. */ - public SharedContentRequestAccessDetails(String sharedContentLink) { + public SharedContentRequestAccessDetails(@Nullable String sharedContentLink) { this.sharedContentLink = sharedContentLink; } @@ -47,6 +51,7 @@ public SharedContentRequestAccessDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } 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 index d72777a8e..c38b00cad 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentRequestAccessType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRequestAccessType(String description) { + public SharedContentRequestAccessType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentRequestAccessType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 52c935ec3..37de5b508 100644 --- 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 @@ -18,13 +18,17 @@ 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; /** @@ -38,7 +42,7 @@ public class SharedContentRestoreInviteesDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRestoreInviteesDetails(AccessLevel sharedContentAccessLevel, List invitees) { + public SharedContentRestoreInviteesDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nonnull List invitees) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -62,6 +66,7 @@ public SharedContentRestoreInviteesDetails(AccessLevel sharedContentAccessLevel, * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -71,6 +76,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getInvitees() { return invitees; } 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 index 835b25889..97a7d3a62 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentRestoreInviteesType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRestoreInviteesType(String description) { + public SharedContentRestoreInviteesType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentRestoreInviteesType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index fa9b7c598..892d690da 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class SharedContentRestoreMemberDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRestoreMemberDetails(AccessLevel sharedContentAccessLevel) { + public SharedContentRestoreMemberDetails(@Nonnull AccessLevel sharedContentAccessLevel) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -46,6 +49,7 @@ public SharedContentRestoreMemberDetails(AccessLevel sharedContentAccessLevel) { * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } 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 index cb651398f..fa118b6dc 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentRestoreMemberType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentRestoreMemberType(String description) { + public SharedContentRestoreMemberType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentRestoreMemberType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1b9550f99..5abd18e88 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentUnshareType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentUnshareType(String description) { + public SharedContentUnshareType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentUnshareType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ba37b64fb..6c58370d8 100644 --- 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 @@ -17,14 +17,20 @@ 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; /** @@ -38,7 +44,7 @@ public class SharedContentViewDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentViewDetails(String sharedContentLink, AccessLevel sharedContentAccessLevel, UserLogInfo sharedContentOwner) { + public SharedContentViewDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel, @Nullable UserLogInfo sharedContentOwner) { if (sharedContentLink == null) { throw new IllegalArgumentException("Required value for 'sharedContentLink' is null"); } @@ -62,7 +68,7 @@ public SharedContentViewDetails(String sharedContentLink, AccessLevel sharedCont * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentViewDetails(String sharedContentLink, AccessLevel sharedContentAccessLevel) { + public SharedContentViewDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel) { this(sharedContentLink, sharedContentAccessLevel, null); } @@ -71,6 +77,7 @@ public SharedContentViewDetails(String sharedContentLink, AccessLevel sharedCont * * @return value for this field, never {@code null}. */ + @Nonnull public String getSharedContentLink() { return sharedContentLink; } @@ -80,6 +87,7 @@ public String getSharedContentLink() { * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -89,6 +97,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserLogInfo getSharedContentOwner() { return sharedContentOwner; } 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 index 70e4b3589..61b46914a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedContentViewType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedContentViewType(String description) { + public SharedContentViewType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedContentViewType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index dc10f948b..3eecd044c 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SharedFolderChangeLinkPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeLinkPolicyDetails(SharedLinkPolicy newValue, SharedLinkPolicy previousValue) { + public SharedFolderChangeLinkPolicyDetails(@Nonnull SharedLinkPolicy newValue, @Nullable SharedLinkPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -54,7 +59,7 @@ public SharedFolderChangeLinkPolicyDetails(SharedLinkPolicy newValue, SharedLink * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeLinkPolicyDetails(SharedLinkPolicy newValue) { + public SharedFolderChangeLinkPolicyDetails(@Nonnull SharedLinkPolicy newValue) { this(newValue, null); } @@ -63,6 +68,7 @@ public SharedFolderChangeLinkPolicyDetails(SharedLinkPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public SharedLinkPolicy getNewValue() { return newValue; } @@ -73,6 +79,7 @@ public SharedLinkPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedLinkPolicy getPreviousValue() { return previousValue; } 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 index b26bea525..0e05abd03 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedFolderChangeLinkPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeLinkPolicyType(String description) { + public SharedFolderChangeLinkPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedFolderChangeLinkPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4b4c0cdeb..0d5a2d6ed 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SharedFolderChangeMembersInheritancePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeMembersInheritancePolicyDetails(SharedFolderMembersInheritancePolicy newValue, SharedFolderMembersInheritancePolicy previousValue) { + public SharedFolderChangeMembersInheritancePolicyDetails(@Nonnull SharedFolderMembersInheritancePolicy newValue, @Nullable SharedFolderMembersInheritancePolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public SharedFolderChangeMembersInheritancePolicyDetails(SharedFolderMembersInhe * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeMembersInheritancePolicyDetails(SharedFolderMembersInheritancePolicy newValue) { + public SharedFolderChangeMembersInheritancePolicyDetails(@Nonnull SharedFolderMembersInheritancePolicy newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public SharedFolderChangeMembersInheritancePolicyDetails(SharedFolderMembersInhe * * @return value for this field, never {@code null}. */ + @Nonnull public SharedFolderMembersInheritancePolicy getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public SharedFolderMembersInheritancePolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedFolderMembersInheritancePolicy getPreviousValue() { return previousValue; } 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 index 82ecb30d2..45c86dd15 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedFolderChangeMembersInheritancePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeMembersInheritancePolicyType(String description) { + public SharedFolderChangeMembersInheritancePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedFolderChangeMembersInheritancePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index def5b0a86..ae4bc7d89 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SharedFolderChangeMembersManagementPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeMembersManagementPolicyDetails(AclUpdatePolicy newValue, AclUpdatePolicy previousValue) { + public SharedFolderChangeMembersManagementPolicyDetails(@Nonnull AclUpdatePolicy newValue, @Nullable AclUpdatePolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -54,7 +59,7 @@ public SharedFolderChangeMembersManagementPolicyDetails(AclUpdatePolicy newValue * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeMembersManagementPolicyDetails(AclUpdatePolicy newValue) { + public SharedFolderChangeMembersManagementPolicyDetails(@Nonnull AclUpdatePolicy newValue) { this(newValue, null); } @@ -63,6 +68,7 @@ public SharedFolderChangeMembersManagementPolicyDetails(AclUpdatePolicy newValue * * @return value for this field, never {@code null}. */ + @Nonnull public AclUpdatePolicy getNewValue() { return newValue; } @@ -73,6 +79,7 @@ public AclUpdatePolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public AclUpdatePolicy getPreviousValue() { return previousValue; } 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 index 8a78087ce..f68a7fdea 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedFolderChangeMembersManagementPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeMembersManagementPolicyType(String description) { + public SharedFolderChangeMembersManagementPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedFolderChangeMembersManagementPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3ff5903bd..72cf1a231 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SharedFolderChangeMembersPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeMembersPolicyDetails(MemberPolicy newValue, MemberPolicy previousValue) { + public SharedFolderChangeMembersPolicyDetails(@Nonnull MemberPolicy newValue, @Nullable MemberPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -54,7 +59,7 @@ public SharedFolderChangeMembersPolicyDetails(MemberPolicy newValue, MemberPolic * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeMembersPolicyDetails(MemberPolicy newValue) { + public SharedFolderChangeMembersPolicyDetails(@Nonnull MemberPolicy newValue) { this(newValue, null); } @@ -63,6 +68,7 @@ public SharedFolderChangeMembersPolicyDetails(MemberPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberPolicy getNewValue() { return newValue; } @@ -73,6 +79,7 @@ public MemberPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public MemberPolicy getPreviousValue() { return previousValue; } 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 index 5bd3bd9a1..c616d7c07 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedFolderChangeMembersPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderChangeMembersPolicyType(String description) { + public SharedFolderChangeMembersPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedFolderChangeMembersPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 664833a8e..f0398fdfe 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class SharedFolderCreateDetails { * * @param targetNsId Target namespace ID. */ - public SharedFolderCreateDetails(String targetNsId) { + public SharedFolderCreateDetails(@Nullable String targetNsId) { this.targetNsId = targetNsId; } @@ -47,6 +51,7 @@ public SharedFolderCreateDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTargetNsId() { return targetNsId; } 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 index dacd302b3..3bf76b803 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedFolderCreateType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderCreateType(String description) { + public SharedFolderCreateType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedFolderCreateType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 104c16dcc..d67be2e50 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedFolderDeclineInvitationType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderDeclineInvitationType(String description) { + public SharedFolderDeclineInvitationType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedFolderDeclineInvitationType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6c3c52297..3c47bc98b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedFolderMountType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderMountType(String description) { + public SharedFolderMountType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedFolderMountType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8f80a2321..44c82d053 100644 --- 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 @@ -16,15 +16,22 @@ 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; /** @@ -38,7 +45,7 @@ public class SharedFolderNestDetails { * @param previousNsPath Previous namespace path. * @param newNsPath New namespace path. */ - public SharedFolderNestDetails(String previousParentNsId, String newParentNsId, String previousNsPath, String newNsPath) { + public SharedFolderNestDetails(@Nullable String previousParentNsId, @Nullable String newParentNsId, @Nullable String previousNsPath, @Nullable String newNsPath) { this.previousParentNsId = previousParentNsId; this.newParentNsId = newParentNsId; this.previousNsPath = previousNsPath; @@ -59,6 +66,7 @@ public SharedFolderNestDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousParentNsId() { return previousParentNsId; } @@ -68,6 +76,7 @@ public String getPreviousParentNsId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewParentNsId() { return newParentNsId; } @@ -77,6 +86,7 @@ public String getNewParentNsId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousNsPath() { return previousNsPath; } @@ -86,6 +96,7 @@ public String getPreviousNsPath() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewNsPath() { return newNsPath; } 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 index 3cad2abe9..3023acfb4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedFolderNestType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderNestType(String description) { + public SharedFolderNestType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedFolderNestType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 646fc121f..c7a7a05dd 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SharedFolderTransferOwnershipDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderTransferOwnershipDetails(String newOwnerEmail, String previousOwnerEmail) { + public SharedFolderTransferOwnershipDetails(@Nonnull String newOwnerEmail, @Nullable String previousOwnerEmail) { if (previousOwnerEmail != null) { if (previousOwnerEmail.length() > 255) { throw new IllegalArgumentException("String 'previousOwnerEmail' is longer than 255"); @@ -63,7 +68,7 @@ public SharedFolderTransferOwnershipDetails(String newOwnerEmail, String previou * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderTransferOwnershipDetails(String newOwnerEmail) { + public SharedFolderTransferOwnershipDetails(@Nonnull String newOwnerEmail) { this(newOwnerEmail, null); } @@ -72,6 +77,7 @@ public SharedFolderTransferOwnershipDetails(String newOwnerEmail) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewOwnerEmail() { return newOwnerEmail; } @@ -81,6 +87,7 @@ public String getNewOwnerEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousOwnerEmail() { return previousOwnerEmail; } 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 index 9dd07bffe..65dbb01a3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedFolderTransferOwnershipType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderTransferOwnershipType(String description) { + public SharedFolderTransferOwnershipType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedFolderTransferOwnershipType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 7e1f9092c..a2e9886b5 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedFolderUnmountType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedFolderUnmountType(String description) { + public SharedFolderUnmountType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedFolderUnmountType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 677897b93..5a2d03fa6 100644 --- 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 @@ -18,12 +18,15 @@ 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; /** @@ -35,7 +38,7 @@ public class SharedLinkAddExpiryDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkAddExpiryDetails(Date newValue) { + public SharedLinkAddExpiryDetails(@Nonnull Date newValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -47,6 +50,7 @@ public SharedLinkAddExpiryDetails(Date newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getNewValue() { return newValue; } 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 index a95347dc1..e25e6f360 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkAddExpiryType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkAddExpiryType(String description) { + public SharedLinkAddExpiryType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkAddExpiryType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2d22bc391..ff87ad6ba 100644 --- 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 @@ -18,13 +18,18 @@ 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; /** @@ -38,7 +43,7 @@ public class SharedLinkChangeExpiryDetails { * @param previousValue Previous shared link expiration date. Might be * missing due to historical data gap. */ - public SharedLinkChangeExpiryDetails(Date newValue, Date previousValue) { + public SharedLinkChangeExpiryDetails(@Nullable Date newValue, @Nullable Date previousValue) { this.newValue = LangUtil.truncateMillis(newValue); this.previousValue = LangUtil.truncateMillis(previousValue); } @@ -58,6 +63,7 @@ public SharedLinkChangeExpiryDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getNewValue() { return newValue; } @@ -68,6 +74,7 @@ public Date getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getPreviousValue() { return previousValue; } 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 index 855b6cfec..7c0e0897b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkChangeExpiryType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkChangeExpiryType(String description) { + public SharedLinkChangeExpiryType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkChangeExpiryType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2887141a9..8b8dcd9e6 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SharedLinkChangeVisibilityDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkChangeVisibilityDetails(SharedLinkVisibility newValue, SharedLinkVisibility previousValue) { + public SharedLinkChangeVisibilityDetails(@Nonnull SharedLinkVisibility newValue, @Nullable SharedLinkVisibility previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public SharedLinkChangeVisibilityDetails(SharedLinkVisibility newValue, SharedLi * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkChangeVisibilityDetails(SharedLinkVisibility newValue) { + public SharedLinkChangeVisibilityDetails(@Nonnull SharedLinkVisibility newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public SharedLinkChangeVisibilityDetails(SharedLinkVisibility newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public SharedLinkVisibility getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public SharedLinkVisibility getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedLinkVisibility getPreviousValue() { return previousValue; } 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 index 7f4b59343..d8a5d73d0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkChangeVisibilityType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkChangeVisibilityType(String description) { + public SharedLinkChangeVisibilityType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkChangeVisibilityType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index facb3c65e..3daef1312 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -30,7 +34,7 @@ public class SharedLinkCopyDetails { * @param sharedLinkOwner Shared link owner details. Might be missing due * to historical data gap. */ - public SharedLinkCopyDetails(UserLogInfo sharedLinkOwner) { + public SharedLinkCopyDetails(@Nullable UserLogInfo sharedLinkOwner) { this.sharedLinkOwner = sharedLinkOwner; } @@ -48,6 +52,7 @@ public SharedLinkCopyDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserLogInfo getSharedLinkOwner() { return sharedLinkOwner; } 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 index 0e053a8c0..c1868b924 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkCopyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkCopyType(String description) { + public SharedLinkCopyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkCopyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c0a53f165..a5fb673b2 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -30,7 +34,7 @@ public class SharedLinkCreateDetails { * @param sharedLinkAccessLevel Defines who can access the shared link. * Might be missing due to historical data gap. */ - public SharedLinkCreateDetails(SharedLinkAccessLevel sharedLinkAccessLevel) { + public SharedLinkCreateDetails(@Nullable SharedLinkAccessLevel sharedLinkAccessLevel) { this.sharedLinkAccessLevel = sharedLinkAccessLevel; } @@ -49,6 +53,7 @@ public SharedLinkCreateDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharedLinkAccessLevel getSharedLinkAccessLevel() { return sharedLinkAccessLevel; } 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 index 8720af033..a135f173f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkCreateType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkCreateType(String description) { + public SharedLinkCreateType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkCreateType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ee5bfea18..c0de66dfc 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -30,7 +34,7 @@ public class SharedLinkDisableDetails { * @param sharedLinkOwner Shared link owner details. Might be missing due * to historical data gap. */ - public SharedLinkDisableDetails(UserLogInfo sharedLinkOwner) { + public SharedLinkDisableDetails(@Nullable UserLogInfo sharedLinkOwner) { this.sharedLinkOwner = sharedLinkOwner; } @@ -48,6 +52,7 @@ public SharedLinkDisableDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserLogInfo getSharedLinkOwner() { return sharedLinkOwner; } 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 index 49cfc9c1d..477e4a651 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkDisableType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkDisableType(String description) { + public SharedLinkDisableType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkDisableType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 799f69bda..cf4b3f675 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -30,7 +34,7 @@ public class SharedLinkDownloadDetails { * @param sharedLinkOwner Shared link owner details. Might be missing due * to historical data gap. */ - public SharedLinkDownloadDetails(UserLogInfo sharedLinkOwner) { + public SharedLinkDownloadDetails(@Nullable UserLogInfo sharedLinkOwner) { this.sharedLinkOwner = sharedLinkOwner; } @@ -48,6 +52,7 @@ public SharedLinkDownloadDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserLogInfo getSharedLinkOwner() { return sharedLinkOwner; } 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 index f9ab8c091..af885ab65 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkDownloadType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkDownloadType(String description) { + public SharedLinkDownloadType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkDownloadType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 050cb8d1b..b0cb9963e 100644 --- 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 @@ -18,12 +18,16 @@ 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; /** @@ -32,7 +36,7 @@ public class SharedLinkRemoveExpiryDetails { * @param previousValue Previous shared link expiration date. Might be * missing due to historical data gap. */ - public SharedLinkRemoveExpiryDetails(Date previousValue) { + public SharedLinkRemoveExpiryDetails(@Nullable Date previousValue) { this.previousValue = LangUtil.truncateMillis(previousValue); } @@ -51,6 +55,7 @@ public SharedLinkRemoveExpiryDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getPreviousValue() { return previousValue; } 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 index e0998589c..b77b1d997 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkRemoveExpiryType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkRemoveExpiryType(String description) { + public SharedLinkRemoveExpiryType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkRemoveExpiryType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 552c10585..f975d8f05 100644 --- 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 @@ -19,14 +19,20 @@ 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; /** @@ -44,7 +50,7 @@ public class SharedLinkSettingsAddExpirationDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAddExpirationDetails(AccessLevel sharedContentAccessLevel, String sharedContentLink, Date newValue) { + public SharedLinkSettingsAddExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink, @Nullable Date newValue) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -64,7 +70,7 @@ public SharedLinkSettingsAddExpirationDetails(AccessLevel sharedContentAccessLev * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAddExpirationDetails(AccessLevel sharedContentAccessLevel) { + public SharedLinkSettingsAddExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel) { this(sharedContentAccessLevel, null, null); } @@ -73,6 +79,7 @@ public SharedLinkSettingsAddExpirationDetails(AccessLevel sharedContentAccessLev * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -82,6 +89,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } @@ -92,6 +100,7 @@ public String getSharedContentLink() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getNewValue() { return newValue; } 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 index cbe218347..9547ba4a8 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkSettingsAddExpirationType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAddExpirationType(String description) { + public SharedLinkSettingsAddExpirationType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkSettingsAddExpirationType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c4aa739f7..e4cab2a0c 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SharedLinkSettingsAddPasswordDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAddPasswordDetails(AccessLevel sharedContentAccessLevel, String sharedContentLink) { + public SharedLinkSettingsAddPasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -55,7 +60,7 @@ public SharedLinkSettingsAddPasswordDetails(AccessLevel sharedContentAccessLevel * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAddPasswordDetails(AccessLevel sharedContentAccessLevel) { + public SharedLinkSettingsAddPasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel) { this(sharedContentAccessLevel, null); } @@ -64,6 +69,7 @@ public SharedLinkSettingsAddPasswordDetails(AccessLevel sharedContentAccessLevel * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -73,6 +79,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } 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 index b2544df9d..9742c935e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkSettingsAddPasswordType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAddPasswordType(String description) { + public SharedLinkSettingsAddPasswordType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkSettingsAddPasswordType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2a9fdc331..0b3c85371 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SharedLinkSettingsAllowDownloadDisabledDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAllowDownloadDisabledDetails(AccessLevel sharedContentAccessLevel, String sharedContentLink) { + public SharedLinkSettingsAllowDownloadDisabledDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -55,7 +60,7 @@ public SharedLinkSettingsAllowDownloadDisabledDetails(AccessLevel sharedContentA * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAllowDownloadDisabledDetails(AccessLevel sharedContentAccessLevel) { + public SharedLinkSettingsAllowDownloadDisabledDetails(@Nonnull AccessLevel sharedContentAccessLevel) { this(sharedContentAccessLevel, null); } @@ -64,6 +69,7 @@ public SharedLinkSettingsAllowDownloadDisabledDetails(AccessLevel sharedContentA * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -73,6 +79,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } 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 index eebbd3f79..a99fd2779 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkSettingsAllowDownloadDisabledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAllowDownloadDisabledType(String description) { + public SharedLinkSettingsAllowDownloadDisabledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkSettingsAllowDownloadDisabledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 10f6e5072..1b53613ce 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SharedLinkSettingsAllowDownloadEnabledDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAllowDownloadEnabledDetails(AccessLevel sharedContentAccessLevel, String sharedContentLink) { + public SharedLinkSettingsAllowDownloadEnabledDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -55,7 +60,7 @@ public SharedLinkSettingsAllowDownloadEnabledDetails(AccessLevel sharedContentAc * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAllowDownloadEnabledDetails(AccessLevel sharedContentAccessLevel) { + public SharedLinkSettingsAllowDownloadEnabledDetails(@Nonnull AccessLevel sharedContentAccessLevel) { this(sharedContentAccessLevel, null); } @@ -64,6 +69,7 @@ public SharedLinkSettingsAllowDownloadEnabledDetails(AccessLevel sharedContentAc * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -73,6 +79,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } 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 index 08c526d19..fcd99db41 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkSettingsAllowDownloadEnabledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsAllowDownloadEnabledType(String description) { + public SharedLinkSettingsAllowDownloadEnabledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkSettingsAllowDownloadEnabledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 77aaa8607..0c2169f20 100644 --- 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 @@ -18,15 +18,22 @@ 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; /** @@ -44,7 +51,7 @@ public class SharedLinkSettingsChangeAudienceDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsChangeAudienceDetails(AccessLevel sharedContentAccessLevel, LinkAudience newValue, String sharedContentLink, LinkAudience previousValue) { + 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"); } @@ -69,7 +76,7 @@ public SharedLinkSettingsChangeAudienceDetails(AccessLevel sharedContentAccessLe * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsChangeAudienceDetails(AccessLevel sharedContentAccessLevel, LinkAudience newValue) { + public SharedLinkSettingsChangeAudienceDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nonnull LinkAudience newValue) { this(sharedContentAccessLevel, newValue, null, null); } @@ -78,6 +85,7 @@ public SharedLinkSettingsChangeAudienceDetails(AccessLevel sharedContentAccessLe * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -87,6 +95,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, never {@code null}. */ + @Nonnull public LinkAudience getNewValue() { return newValue; } @@ -96,6 +105,7 @@ public LinkAudience getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } @@ -105,6 +115,7 @@ public String getSharedContentLink() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public LinkAudience getPreviousValue() { return previousValue; } 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 index 42f78aeab..ef9725c0a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkSettingsChangeAudienceType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsChangeAudienceType(String description) { + public SharedLinkSettingsChangeAudienceType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkSettingsChangeAudienceType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e19bb6485..53eb2199f 100644 --- 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 @@ -19,15 +19,22 @@ 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; /** @@ -47,7 +54,7 @@ public class SharedLinkSettingsChangeExpirationDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsChangeExpirationDetails(AccessLevel sharedContentAccessLevel, String sharedContentLink, Date newValue, Date previousValue) { + 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"); } @@ -68,7 +75,7 @@ public SharedLinkSettingsChangeExpirationDetails(AccessLevel sharedContentAccess * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsChangeExpirationDetails(AccessLevel sharedContentAccessLevel) { + public SharedLinkSettingsChangeExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel) { this(sharedContentAccessLevel, null, null, null); } @@ -77,6 +84,7 @@ public SharedLinkSettingsChangeExpirationDetails(AccessLevel sharedContentAccess * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -86,6 +94,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } @@ -96,6 +105,7 @@ public String getSharedContentLink() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getNewValue() { return newValue; } @@ -106,6 +116,7 @@ public Date getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getPreviousValue() { return previousValue; } 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 index 19fbabf8c..e3f6e7079 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkSettingsChangeExpirationType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsChangeExpirationType(String description) { + public SharedLinkSettingsChangeExpirationType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkSettingsChangeExpirationType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a0f524639..e01b83895 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SharedLinkSettingsChangePasswordDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsChangePasswordDetails(AccessLevel sharedContentAccessLevel, String sharedContentLink) { + public SharedLinkSettingsChangePasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -55,7 +60,7 @@ public SharedLinkSettingsChangePasswordDetails(AccessLevel sharedContentAccessLe * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsChangePasswordDetails(AccessLevel sharedContentAccessLevel) { + public SharedLinkSettingsChangePasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel) { this(sharedContentAccessLevel, null); } @@ -64,6 +69,7 @@ public SharedLinkSettingsChangePasswordDetails(AccessLevel sharedContentAccessLe * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -73,6 +79,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } 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 index 1d4c7a251..5f22bda92 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkSettingsChangePasswordType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsChangePasswordType(String description) { + public SharedLinkSettingsChangePasswordType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkSettingsChangePasswordType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 67a7d524f..e81fe8a9c 100644 --- 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 @@ -19,14 +19,20 @@ 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; /** @@ -44,7 +50,7 @@ public class SharedLinkSettingsRemoveExpirationDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsRemoveExpirationDetails(AccessLevel sharedContentAccessLevel, String sharedContentLink, Date previousValue) { + public SharedLinkSettingsRemoveExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink, @Nullable Date previousValue) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -64,7 +70,7 @@ public SharedLinkSettingsRemoveExpirationDetails(AccessLevel sharedContentAccess * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsRemoveExpirationDetails(AccessLevel sharedContentAccessLevel) { + public SharedLinkSettingsRemoveExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel) { this(sharedContentAccessLevel, null, null); } @@ -73,6 +79,7 @@ public SharedLinkSettingsRemoveExpirationDetails(AccessLevel sharedContentAccess * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -82,6 +89,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } @@ -92,6 +100,7 @@ public String getSharedContentLink() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getPreviousValue() { return previousValue; } 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 index 89e255910..45250c7af 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkSettingsRemoveExpirationType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsRemoveExpirationType(String description) { + public SharedLinkSettingsRemoveExpirationType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkSettingsRemoveExpirationType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4a556788e..3df6a84a9 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SharedLinkSettingsRemovePasswordDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsRemovePasswordDetails(AccessLevel sharedContentAccessLevel, String sharedContentLink) { + public SharedLinkSettingsRemovePasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink) { if (sharedContentAccessLevel == null) { throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); } @@ -55,7 +60,7 @@ public SharedLinkSettingsRemovePasswordDetails(AccessLevel sharedContentAccessLe * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsRemovePasswordDetails(AccessLevel sharedContentAccessLevel) { + public SharedLinkSettingsRemovePasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel) { this(sharedContentAccessLevel, null); } @@ -64,6 +69,7 @@ public SharedLinkSettingsRemovePasswordDetails(AccessLevel sharedContentAccessLe * * @return value for this field, never {@code null}. */ + @Nonnull public AccessLevel getSharedContentAccessLevel() { return sharedContentAccessLevel; } @@ -73,6 +79,7 @@ public AccessLevel getSharedContentAccessLevel() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSharedContentLink() { return sharedContentLink; } 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 index e62ca6b2a..4423df046 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkSettingsRemovePasswordType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkSettingsRemovePasswordType(String description) { + public SharedLinkSettingsRemovePasswordType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkSettingsRemovePasswordType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 13ebd00eb..83c20f665 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -40,7 +45,7 @@ public class SharedLinkShareDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkShareDetails(UserLogInfo sharedLinkOwner, List externalUsers) { + public SharedLinkShareDetails(@Nullable UserLogInfo sharedLinkOwner, @Nullable List externalUsers) { this.sharedLinkOwner = sharedLinkOwner; if (externalUsers != null) { for (ExternalUserLogInfo x : externalUsers) { @@ -66,6 +71,7 @@ public SharedLinkShareDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserLogInfo getSharedLinkOwner() { return sharedLinkOwner; } @@ -75,6 +81,7 @@ public UserLogInfo getSharedLinkOwner() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getExternalUsers() { return externalUsers; } 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 index eb356270c..285a31494 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkShareType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkShareType(String description) { + public SharedLinkShareType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkShareType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3af29bf7b..d18b2a426 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -30,7 +34,7 @@ public class SharedLinkViewDetails { * @param sharedLinkOwner Shared link owner details. Might be missing due * to historical data gap. */ - public SharedLinkViewDetails(UserLogInfo sharedLinkOwner) { + public SharedLinkViewDetails(@Nullable UserLogInfo sharedLinkOwner) { this.sharedLinkOwner = sharedLinkOwner; } @@ -48,6 +52,7 @@ public SharedLinkViewDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserLogInfo getSharedLinkOwner() { return sharedLinkOwner; } 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 index 1d4812d35..c9da1acf0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedLinkViewType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedLinkViewType(String description) { + public SharedLinkViewType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedLinkViewType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c882bc79e..81acba17b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharedNoteOpenedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharedNoteOpenedType(String description) { + public SharedNoteOpenedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharedNoteOpenedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2bbe44657..4300de443 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SharingChangeFolderJoinPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeFolderJoinPolicyDetails(SharingFolderJoinPolicy newValue, SharingFolderJoinPolicy previousValue) { + public SharingChangeFolderJoinPolicyDetails(@Nonnull SharingFolderJoinPolicy newValue, @Nullable SharingFolderJoinPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public SharingChangeFolderJoinPolicyDetails(SharingFolderJoinPolicy newValue, Sh * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeFolderJoinPolicyDetails(SharingFolderJoinPolicy newValue) { + public SharingChangeFolderJoinPolicyDetails(@Nonnull SharingFolderJoinPolicy newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public SharingChangeFolderJoinPolicyDetails(SharingFolderJoinPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public SharingFolderJoinPolicy getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public SharingFolderJoinPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharingFolderJoinPolicy getPreviousValue() { return previousValue; } 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 index ae595f821..0edabce25 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharingChangeFolderJoinPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeFolderJoinPolicyType(String description) { + public SharingChangeFolderJoinPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharingChangeFolderJoinPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d3e70204c..2e3872d1d 100644 --- 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 @@ -16,6 +16,9 @@ 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. @@ -23,7 +26,9 @@ public class SharingChangeLinkAllowChangeExpirationPolicyDetails { // struct team_log.SharingChangeLinkAllowChangeExpirationPolicyDetails (team_log_generated.stone) + @Nonnull protected final EnforceLinkPasswordPolicy newValue; + @Nullable protected final EnforceLinkPasswordPolicy previousValue; /** @@ -36,7 +41,7 @@ public class SharingChangeLinkAllowChangeExpirationPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkAllowChangeExpirationPolicyDetails(EnforceLinkPasswordPolicy newValue, EnforceLinkPasswordPolicy previousValue) { + public SharingChangeLinkAllowChangeExpirationPolicyDetails(@Nonnull EnforceLinkPasswordPolicy newValue, @Nullable EnforceLinkPasswordPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -55,7 +60,7 @@ public SharingChangeLinkAllowChangeExpirationPolicyDetails(EnforceLinkPasswordPo * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkAllowChangeExpirationPolicyDetails(EnforceLinkPasswordPolicy newValue) { + public SharingChangeLinkAllowChangeExpirationPolicyDetails(@Nonnull EnforceLinkPasswordPolicy newValue) { this(newValue, null); } @@ -64,6 +69,7 @@ public SharingChangeLinkAllowChangeExpirationPolicyDetails(EnforceLinkPasswordPo * * @return value for this field, never {@code null}. */ + @Nonnull public EnforceLinkPasswordPolicy getNewValue() { return newValue; } @@ -73,6 +79,7 @@ public EnforceLinkPasswordPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public EnforceLinkPasswordPolicy getPreviousValue() { return previousValue; } 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 index 13c9c02ba..bc7e88af3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharingChangeLinkAllowChangeExpirationPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkAllowChangeExpirationPolicyType(String description) { + public SharingChangeLinkAllowChangeExpirationPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharingChangeLinkAllowChangeExpirationPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 41cfc188f..443d605ba 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class SharingChangeLinkDefaultExpirationPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkDefaultExpirationPolicyDetails(DefaultLinkExpirationDaysPolicy newValue, DefaultLinkExpirationDaysPolicy previousValue) { + public SharingChangeLinkDefaultExpirationPolicyDetails(@Nonnull DefaultLinkExpirationDaysPolicy newValue, @Nullable DefaultLinkExpirationDaysPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -52,7 +57,7 @@ public SharingChangeLinkDefaultExpirationPolicyDetails(DefaultLinkExpirationDays * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkDefaultExpirationPolicyDetails(DefaultLinkExpirationDaysPolicy newValue) { + public SharingChangeLinkDefaultExpirationPolicyDetails(@Nonnull DefaultLinkExpirationDaysPolicy newValue) { this(newValue, null); } @@ -61,6 +66,7 @@ public SharingChangeLinkDefaultExpirationPolicyDetails(DefaultLinkExpirationDays * * @return value for this field, never {@code null}. */ + @Nonnull public DefaultLinkExpirationDaysPolicy getNewValue() { return newValue; } @@ -70,6 +76,7 @@ public DefaultLinkExpirationDaysPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public DefaultLinkExpirationDaysPolicy getPreviousValue() { return previousValue; } 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 index 53dcb451f..4dcbba31d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharingChangeLinkDefaultExpirationPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkDefaultExpirationPolicyType(String description) { + public SharingChangeLinkDefaultExpirationPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharingChangeLinkDefaultExpirationPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2646c9299..04c210c00 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SharingChangeLinkEnforcePasswordPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkEnforcePasswordPolicyDetails(ChangeLinkExpirationPolicy newValue, ChangeLinkExpirationPolicy previousValue) { + public SharingChangeLinkEnforcePasswordPolicyDetails(@Nonnull ChangeLinkExpirationPolicy newValue, @Nullable ChangeLinkExpirationPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -54,7 +59,7 @@ public SharingChangeLinkEnforcePasswordPolicyDetails(ChangeLinkExpirationPolicy * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkEnforcePasswordPolicyDetails(ChangeLinkExpirationPolicy newValue) { + public SharingChangeLinkEnforcePasswordPolicyDetails(@Nonnull ChangeLinkExpirationPolicy newValue) { this(newValue, null); } @@ -63,6 +68,7 @@ public SharingChangeLinkEnforcePasswordPolicyDetails(ChangeLinkExpirationPolicy * * @return value for this field, never {@code null}. */ + @Nonnull public ChangeLinkExpirationPolicy getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public ChangeLinkExpirationPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ChangeLinkExpirationPolicy getPreviousValue() { return previousValue; } 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 index fe0a41f75..590b59cfe 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharingChangeLinkEnforcePasswordPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkEnforcePasswordPolicyType(String description) { + public SharingChangeLinkEnforcePasswordPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharingChangeLinkEnforcePasswordPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4b0a59fc2..20aa76d5d 100644 --- 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 @@ -16,6 +16,9 @@ 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. @@ -23,7 +26,9 @@ public class SharingChangeLinkPolicyDetails { // struct team_log.SharingChangeLinkPolicyDetails (team_log_generated.stone) + @Nonnull protected final SharingLinkPolicy newValue; + @Nullable protected final SharingLinkPolicy previousValue; /** @@ -38,7 +43,7 @@ public class SharingChangeLinkPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkPolicyDetails(SharingLinkPolicy newValue, SharingLinkPolicy previousValue) { + public SharingChangeLinkPolicyDetails(@Nonnull SharingLinkPolicy newValue, @Nullable SharingLinkPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -58,7 +63,7 @@ public SharingChangeLinkPolicyDetails(SharingLinkPolicy newValue, SharingLinkPol * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkPolicyDetails(SharingLinkPolicy newValue) { + public SharingChangeLinkPolicyDetails(@Nonnull SharingLinkPolicy newValue) { this(newValue, null); } @@ -67,6 +72,7 @@ public SharingChangeLinkPolicyDetails(SharingLinkPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public SharingLinkPolicy getNewValue() { return newValue; } @@ -77,6 +83,7 @@ public SharingLinkPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharingLinkPolicy getPreviousValue() { return previousValue; } 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 index 748e29ebe..4caad0f6a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharingChangeLinkPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeLinkPolicyType(String description) { + public SharingChangeLinkPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharingChangeLinkPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 27fa01383..66c590ebf 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SharingChangeMemberPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeMemberPolicyDetails(SharingMemberPolicy newValue, SharingMemberPolicy previousValue) { + public SharingChangeMemberPolicyDetails(@Nonnull SharingMemberPolicy newValue, @Nullable SharingMemberPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -53,7 +58,7 @@ public SharingChangeMemberPolicyDetails(SharingMemberPolicy newValue, SharingMem * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeMemberPolicyDetails(SharingMemberPolicy newValue) { + public SharingChangeMemberPolicyDetails(@Nonnull SharingMemberPolicy newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public SharingChangeMemberPolicyDetails(SharingMemberPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public SharingMemberPolicy getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public SharingMemberPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SharingMemberPolicy getPreviousValue() { return previousValue; } 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 index b919a88f8..4d734c4de 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SharingChangeMemberPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SharingChangeMemberPolicyType(String description) { + public SharingChangeMemberPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SharingChangeMemberPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 9fe81b8f6..6272bde99 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -30,7 +34,7 @@ public class ShmodelDisableDownloadsDetails { * @param sharedLinkOwner Shared link owner details. Might be missing due * to historical data gap. */ - public ShmodelDisableDownloadsDetails(UserLogInfo sharedLinkOwner) { + public ShmodelDisableDownloadsDetails(@Nullable UserLogInfo sharedLinkOwner) { this.sharedLinkOwner = sharedLinkOwner; } @@ -48,6 +52,7 @@ public ShmodelDisableDownloadsDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserLogInfo getSharedLinkOwner() { return sharedLinkOwner; } 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 index 470fd009e..78603af2a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShmodelDisableDownloadsType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShmodelDisableDownloadsType(String description) { + public ShmodelDisableDownloadsType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShmodelDisableDownloadsType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ee4ca9806..249a533a8 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -30,7 +34,7 @@ public class ShmodelEnableDownloadsDetails { * @param sharedLinkOwner Shared link owner details. Might be missing due * to historical data gap. */ - public ShmodelEnableDownloadsDetails(UserLogInfo sharedLinkOwner) { + public ShmodelEnableDownloadsDetails(@Nullable UserLogInfo sharedLinkOwner) { this.sharedLinkOwner = sharedLinkOwner; } @@ -48,6 +52,7 @@ public ShmodelEnableDownloadsDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public UserLogInfo getSharedLinkOwner() { return sharedLinkOwner; } 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 index b99461d43..29b4644c9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShmodelEnableDownloadsType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShmodelEnableDownloadsType(String description) { + public ShmodelEnableDownloadsType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShmodelEnableDownloadsType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 7d55f5714..b00f29782 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShmodelGroupShareType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShmodelGroupShareType(String description) { + public ShmodelGroupShareType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShmodelGroupShareType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4021c0e8e..0798322da 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseAccessGrantedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseAccessGrantedDetails(String eventUuid) { + public ShowcaseAccessGrantedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseAccessGrantedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index e497814c3..7140a55e8 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseAccessGrantedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseAccessGrantedType(String description) { + public ShowcaseAccessGrantedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseAccessGrantedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 56e322930..bcfb284e0 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseAddMemberDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseAddMemberDetails(String eventUuid) { + public ShowcaseAddMemberDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseAddMemberDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 9f4f8213a..6f58fa584 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseAddMemberType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseAddMemberType(String description) { + public ShowcaseAddMemberType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseAddMemberType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 45109a995..613860c6a 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseArchivedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseArchivedDetails(String eventUuid) { + public ShowcaseArchivedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseArchivedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 8a046a68a..25e95dc20 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseArchivedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseArchivedType(String description) { + public ShowcaseArchivedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseArchivedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 64fa2b5ad..24d099320 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class ShowcaseChangeDownloadPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseChangeDownloadPolicyDetails(ShowcaseDownloadPolicy newValue, ShowcaseDownloadPolicy previousValue) { + public ShowcaseChangeDownloadPolicyDetails(@Nonnull ShowcaseDownloadPolicy newValue, @Nonnull ShowcaseDownloadPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -52,6 +56,7 @@ public ShowcaseChangeDownloadPolicyDetails(ShowcaseDownloadPolicy newValue, Show * * @return value for this field, never {@code null}. */ + @Nonnull public ShowcaseDownloadPolicy getNewValue() { return newValue; } @@ -61,6 +66,7 @@ public ShowcaseDownloadPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public ShowcaseDownloadPolicy getPreviousValue() { return previousValue; } 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 index 512ffcd2c..d52c4f769 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseChangeDownloadPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseChangeDownloadPolicyType(String description) { + public ShowcaseChangeDownloadPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseChangeDownloadPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b1a60f764..b4a6b86de 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class ShowcaseChangeEnabledPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseChangeEnabledPolicyDetails(ShowcaseEnabledPolicy newValue, ShowcaseEnabledPolicy previousValue) { + public ShowcaseChangeEnabledPolicyDetails(@Nonnull ShowcaseEnabledPolicy newValue, @Nonnull ShowcaseEnabledPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public ShowcaseChangeEnabledPolicyDetails(ShowcaseEnabledPolicy newValue, Showca * * @return value for this field, never {@code null}. */ + @Nonnull public ShowcaseEnabledPolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public ShowcaseEnabledPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public ShowcaseEnabledPolicy getPreviousValue() { return previousValue; } 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 index 1ba253427..16819e73e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseChangeEnabledPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseChangeEnabledPolicyType(String description) { + public ShowcaseChangeEnabledPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseChangeEnabledPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2d76349a2..a39fe5686 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class ShowcaseChangeExternalSharingPolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseChangeExternalSharingPolicyDetails(ShowcaseExternalSharingPolicy newValue, ShowcaseExternalSharingPolicy previousValue) { + public ShowcaseChangeExternalSharingPolicyDetails(@Nonnull ShowcaseExternalSharingPolicy newValue, @Nonnull ShowcaseExternalSharingPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -52,6 +56,7 @@ public ShowcaseChangeExternalSharingPolicyDetails(ShowcaseExternalSharingPolicy * * @return value for this field, never {@code null}. */ + @Nonnull public ShowcaseExternalSharingPolicy getNewValue() { return newValue; } @@ -61,6 +66,7 @@ public ShowcaseExternalSharingPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public ShowcaseExternalSharingPolicy getPreviousValue() { return previousValue; } 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 index 4e8a70463..9e7ece6b2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseChangeExternalSharingPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseChangeExternalSharingPolicyType(String description) { + public ShowcaseChangeExternalSharingPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseChangeExternalSharingPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 890c7f18f..6bc2b9b01 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseCreatedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseCreatedDetails(String eventUuid) { + public ShowcaseCreatedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseCreatedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 31f773285..b0b2dd8b3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseCreatedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseCreatedType(String description) { + public ShowcaseCreatedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseCreatedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f3448e3cf..32a6bb10b 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class ShowcaseDeleteCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseDeleteCommentDetails(String eventUuid, String commentText) { + public ShowcaseDeleteCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -52,7 +57,7 @@ public ShowcaseDeleteCommentDetails(String eventUuid, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseDeleteCommentDetails(String eventUuid) { + public ShowcaseDeleteCommentDetails(@Nonnull String eventUuid) { this(eventUuid, null); } @@ -61,6 +66,7 @@ public ShowcaseDeleteCommentDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -70,6 +76,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index a9861b2b8..15e1847c1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseDeleteCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseDeleteCommentType(String description) { + public ShowcaseDeleteCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseDeleteCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 89083ba8e..8c6bfe156 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class ShowcaseDocumentLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseDocumentLogInfo(String showcaseId, String showcaseTitle) { + public ShowcaseDocumentLogInfo(@Nonnull String showcaseId, @Nonnull String showcaseTitle) { if (showcaseId == null) { throw new IllegalArgumentException("Required value for 'showcaseId' is null"); } @@ -50,6 +54,7 @@ public ShowcaseDocumentLogInfo(String showcaseId, String showcaseTitle) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getShowcaseId() { return showcaseId; } @@ -59,6 +64,7 @@ public String getShowcaseId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getShowcaseTitle() { return showcaseTitle; } 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 index eb01d3c2c..62b229c6f 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class ShowcaseEditCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseEditCommentDetails(String eventUuid, String commentText) { + public ShowcaseEditCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -52,7 +57,7 @@ public ShowcaseEditCommentDetails(String eventUuid, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseEditCommentDetails(String eventUuid) { + public ShowcaseEditCommentDetails(@Nonnull String eventUuid) { this(eventUuid, null); } @@ -61,6 +66,7 @@ public ShowcaseEditCommentDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -70,6 +76,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 3432d8c71..ffa414fce 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseEditCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseEditCommentType(String description) { + public ShowcaseEditCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseEditCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b51da1390..7330b739c 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseEditedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseEditedDetails(String eventUuid) { + public ShowcaseEditedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseEditedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 762db3591..65c1e7035 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseEditedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseEditedType(String description) { + public ShowcaseEditedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseEditedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e2623a176..8e43b9d9c 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseFileAddedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseFileAddedDetails(String eventUuid) { + public ShowcaseFileAddedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseFileAddedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 2d0c26b77..424c13efc 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseFileAddedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseFileAddedType(String description) { + public ShowcaseFileAddedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseFileAddedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index da344edc5..10bdc66d4 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class ShowcaseFileDownloadDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseFileDownloadDetails(String eventUuid, String downloadType) { + public ShowcaseFileDownloadDetails(@Nonnull String eventUuid, @Nonnull String downloadType) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -50,6 +54,7 @@ public ShowcaseFileDownloadDetails(String eventUuid, String downloadType) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -59,6 +64,7 @@ public String getEventUuid() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDownloadType() { return downloadType; } 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 index 6be496370..de347901d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseFileDownloadType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseFileDownloadType(String description) { + public ShowcaseFileDownloadType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseFileDownloadType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ecd968f99..2194a7c02 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseFileRemovedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseFileRemovedDetails(String eventUuid) { + public ShowcaseFileRemovedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseFileRemovedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 577f525b1..3a1ee6737 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseFileRemovedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseFileRemovedType(String description) { + public ShowcaseFileRemovedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseFileRemovedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 69133d2cc..ede7c2c99 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseFileViewDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseFileViewDetails(String eventUuid) { + public ShowcaseFileViewDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseFileViewDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index ab7a437de..6cf65168c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseFileViewType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseFileViewType(String description) { + public ShowcaseFileViewType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseFileViewType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4d21f536f..8a5fbbf0e 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcasePermanentlyDeletedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcasePermanentlyDeletedDetails(String eventUuid) { + public ShowcasePermanentlyDeletedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcasePermanentlyDeletedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 176d49f98..dec45572f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcasePermanentlyDeletedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcasePermanentlyDeletedType(String description) { + public ShowcasePermanentlyDeletedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcasePermanentlyDeletedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 769965214..e22179c1f 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class ShowcasePostCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcasePostCommentDetails(String eventUuid, String commentText) { + public ShowcasePostCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -52,7 +57,7 @@ public ShowcasePostCommentDetails(String eventUuid, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcasePostCommentDetails(String eventUuid) { + public ShowcasePostCommentDetails(@Nonnull String eventUuid) { this(eventUuid, null); } @@ -61,6 +66,7 @@ public ShowcasePostCommentDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -70,6 +76,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 95958a12a..01ae296f7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcasePostCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcasePostCommentType(String description) { + public ShowcasePostCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcasePostCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 9386fa8dd..15f814003 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseRemoveMemberDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseRemoveMemberDetails(String eventUuid) { + public ShowcaseRemoveMemberDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseRemoveMemberDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 7d3a8bcd7..7869f3fd9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseRemoveMemberType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseRemoveMemberType(String description) { + public ShowcaseRemoveMemberType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseRemoveMemberType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a38a203da..43131c926 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseRenamedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseRenamedDetails(String eventUuid) { + public ShowcaseRenamedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseRenamedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 919b8bfc5..8e6ec559b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseRenamedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseRenamedType(String description) { + public ShowcaseRenamedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseRenamedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f68269fb3..3f48c96b8 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseRequestAccessDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseRequestAccessDetails(String eventUuid) { + public ShowcaseRequestAccessDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseRequestAccessDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 18ed43140..4717e8c94 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseRequestAccessType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseRequestAccessType(String description) { + public ShowcaseRequestAccessType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseRequestAccessType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bfd20815f..752817bc3 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class ShowcaseResolveCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseResolveCommentDetails(String eventUuid, String commentText) { + public ShowcaseResolveCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -52,7 +57,7 @@ public ShowcaseResolveCommentDetails(String eventUuid, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseResolveCommentDetails(String eventUuid) { + public ShowcaseResolveCommentDetails(@Nonnull String eventUuid) { this(eventUuid, null); } @@ -61,6 +66,7 @@ public ShowcaseResolveCommentDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -70,6 +76,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 0ddebe451..268360fc7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseResolveCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseResolveCommentType(String description) { + public ShowcaseResolveCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseResolveCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c719cccec..792b61a6f 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseRestoredDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseRestoredDetails(String eventUuid) { + public ShowcaseRestoredDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseRestoredDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 830fd1e8a..81bfc4674 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseRestoredType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseRestoredType(String description) { + public ShowcaseRestoredType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseRestoredType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 87783fcb9..10216251f 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseTrashedDeprecatedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseTrashedDeprecatedDetails(String eventUuid) { + public ShowcaseTrashedDeprecatedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseTrashedDeprecatedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 6cc0800a2..50910560e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseTrashedDeprecatedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseTrashedDeprecatedType(String description) { + public ShowcaseTrashedDeprecatedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseTrashedDeprecatedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 375ebc2b6..6c4487da6 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseTrashedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseTrashedDetails(String eventUuid) { + public ShowcaseTrashedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseTrashedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index e3a44e8f8..187c27e0c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseTrashedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseTrashedType(String description) { + public ShowcaseTrashedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseTrashedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 571c85be7..3fd0659a6 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -34,7 +39,7 @@ public class ShowcaseUnresolveCommentDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseUnresolveCommentDetails(String eventUuid, String commentText) { + public ShowcaseUnresolveCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -52,7 +57,7 @@ public ShowcaseUnresolveCommentDetails(String eventUuid, String commentText) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseUnresolveCommentDetails(String eventUuid) { + public ShowcaseUnresolveCommentDetails(@Nonnull String eventUuid) { this(eventUuid, null); } @@ -61,6 +66,7 @@ public ShowcaseUnresolveCommentDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } @@ -70,6 +76,7 @@ public String getEventUuid() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCommentText() { return commentText; } 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 index 91a1ea089..a1dddbc04 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseUnresolveCommentType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseUnresolveCommentType(String description) { + public ShowcaseUnresolveCommentType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseUnresolveCommentType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 480c30393..fc1141efb 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseUntrashedDeprecatedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseUntrashedDeprecatedDetails(String eventUuid) { + public ShowcaseUntrashedDeprecatedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseUntrashedDeprecatedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 5456468c6..058c0995c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseUntrashedDeprecatedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseUntrashedDeprecatedType(String description) { + public ShowcaseUntrashedDeprecatedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseUntrashedDeprecatedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6d0f2bcab..ea4b266a2 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseUntrashedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseUntrashedDetails(String eventUuid) { + public ShowcaseUntrashedDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseUntrashedDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 91abcc0e7..a8863c6d2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseUntrashedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseUntrashedType(String description) { + public ShowcaseUntrashedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseUntrashedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 258aa8115..d1c78960c 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class ShowcaseViewDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseViewDetails(String eventUuid) { + public ShowcaseViewDetails(@Nonnull String eventUuid) { if (eventUuid == null) { throw new IllegalArgumentException("Required value for 'eventUuid' is null"); } @@ -44,6 +47,7 @@ public ShowcaseViewDetails(String eventUuid) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEventUuid() { return eventUuid; } 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 index 3a56e88a1..75fff5b80 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ShowcaseViewType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ShowcaseViewType(String description) { + public ShowcaseViewType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ShowcaseViewType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index acff523a5..81b4c2077 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SignInAsSessionEndType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SignInAsSessionEndType(String description) { + public SignInAsSessionEndType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SignInAsSessionEndType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 09689754e..b43b52ecf 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SignInAsSessionStartType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SignInAsSessionStartType(String description) { + public SignInAsSessionStartType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SignInAsSessionStartType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index dcc63583e..33bec4d0c 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SmartSyncChangePolicyDetails { * @param newValue New smart sync policy. * @param previousValue Previous smart sync policy. */ - public SmartSyncChangePolicyDetails(SmartSyncPolicy newValue, SmartSyncPolicy previousValue) { + public SmartSyncChangePolicyDetails(@Nullable SmartSyncPolicy newValue, @Nullable SmartSyncPolicy previousValue) { this.newValue = newValue; this.previousValue = previousValue; } @@ -54,6 +59,7 @@ public SmartSyncChangePolicyDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SmartSyncPolicy getNewValue() { return newValue; } @@ -63,6 +69,7 @@ public SmartSyncPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SmartSyncPolicy getPreviousValue() { return previousValue; } 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 index e9c4d9b00..373ffba9a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SmartSyncChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SmartSyncChangePolicyType(String description) { + public SmartSyncChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SmartSyncChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1e28f3f00..f67df1542 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SmartSyncCreateAdminPrivilegeReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SmartSyncCreateAdminPrivilegeReportType(String description) { + public SmartSyncCreateAdminPrivilegeReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SmartSyncCreateAdminPrivilegeReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 287c2572d..4b57ce982 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class SmartSyncNotOptOutDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SmartSyncNotOptOutDetails(SmartSyncOptOutPolicy previousValue, SmartSyncOptOutPolicy newValue) { + public SmartSyncNotOptOutDetails(@Nonnull SmartSyncOptOutPolicy previousValue, @Nonnull SmartSyncOptOutPolicy newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public SmartSyncNotOptOutDetails(SmartSyncOptOutPolicy previousValue, SmartSyncO * * @return value for this field, never {@code null}. */ + @Nonnull public SmartSyncOptOutPolicy getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public SmartSyncOptOutPolicy getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public SmartSyncOptOutPolicy getNewValue() { return newValue; } 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 index b01a3ec67..23fb4e7ef 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SmartSyncNotOptOutType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SmartSyncNotOptOutType(String description) { + public SmartSyncNotOptOutType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SmartSyncNotOptOutType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index aaff84df9..f0b1bd22e 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class SmartSyncOptOutDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SmartSyncOptOutDetails(SmartSyncOptOutPolicy previousValue, SmartSyncOptOutPolicy newValue) { + public SmartSyncOptOutDetails(@Nonnull SmartSyncOptOutPolicy previousValue, @Nonnull SmartSyncOptOutPolicy newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public SmartSyncOptOutDetails(SmartSyncOptOutPolicy previousValue, SmartSyncOptO * * @return value for this field, never {@code null}. */ + @Nonnull public SmartSyncOptOutPolicy getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public SmartSyncOptOutPolicy getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public SmartSyncOptOutPolicy getNewValue() { return newValue; } 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 index de194ab9d..905557195 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SmartSyncOptOutType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SmartSyncOptOutType(String description) { + public SmartSyncOptOutType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SmartSyncOptOutType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f9dc109bf..19dc608d3 100644 --- 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 @@ -17,13 +17,17 @@ 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; /** @@ -37,7 +41,7 @@ public class SmarterSmartSyncPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SmarterSmartSyncPolicyChangedDetails(SmarterSmartSyncPolicyState previousValue, SmarterSmartSyncPolicyState newValue) { + public SmarterSmartSyncPolicyChangedDetails(@Nonnull SmarterSmartSyncPolicyState previousValue, @Nonnull SmarterSmartSyncPolicyState newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -53,6 +57,7 @@ public SmarterSmartSyncPolicyChangedDetails(SmarterSmartSyncPolicyState previous * * @return value for this field, never {@code null}. */ + @Nonnull public SmarterSmartSyncPolicyState getPreviousValue() { return previousValue; } @@ -62,6 +67,7 @@ public SmarterSmartSyncPolicyState getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public SmarterSmartSyncPolicyState getNewValue() { return newValue; } 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 index 1468ef952..8dbe20b3a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SmarterSmartSyncPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SmarterSmartSyncPolicyChangedType(String description) { + public SmarterSmartSyncPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SmarterSmartSyncPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4ad640f7c..82d141b36 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class SsoAddCertDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoAddCertDetails(Certificate certificateDetails) { + public SsoAddCertDetails(@Nonnull Certificate certificateDetails) { if (certificateDetails == null) { throw new IllegalArgumentException("Required value for 'certificateDetails' is null"); } @@ -45,6 +48,7 @@ public SsoAddCertDetails(Certificate certificateDetails) { * * @return value for this field, never {@code null}. */ + @Nonnull public Certificate getCertificateDetails() { return certificateDetails; } 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 index a05b9b0b9..a5bd1582a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoAddCertType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoAddCertType(String description) { + public SsoAddCertType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoAddCertType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 539ac714b..a5ef07c8d 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class SsoAddLoginUrlDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoAddLoginUrlDetails(String newValue) { + public SsoAddLoginUrlDetails(@Nonnull String newValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -44,6 +47,7 @@ public SsoAddLoginUrlDetails(String newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } 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 index efdc8d3ab..f8e155a98 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoAddLoginUrlType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoAddLoginUrlType(String description) { + public SsoAddLoginUrlType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoAddLoginUrlType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 1d8fa3d3e..20ce64523 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class SsoAddLogoutUrlDetails { * * @param newValue New single sign-on logout URL. */ - public SsoAddLogoutUrlDetails(String newValue) { + public SsoAddLogoutUrlDetails(@Nullable String newValue) { this.newValue = newValue; } @@ -47,6 +51,7 @@ public SsoAddLogoutUrlDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewValue() { return newValue; } 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 index 9cd147bda..04abfe545 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoAddLogoutUrlType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoAddLogoutUrlType(String description) { + public SsoAddLogoutUrlType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoAddLogoutUrlType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index faffccd1d..383a89165 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SsoChangeCertDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoChangeCertDetails(Certificate newCertificateDetails, Certificate previousCertificateDetails) { + public SsoChangeCertDetails(@Nonnull Certificate newCertificateDetails, @Nullable Certificate previousCertificateDetails) { this.previousCertificateDetails = previousCertificateDetails; if (newCertificateDetails == null) { throw new IllegalArgumentException("Required value for 'newCertificateDetails' is null"); @@ -55,7 +60,7 @@ public SsoChangeCertDetails(Certificate newCertificateDetails, Certificate previ * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoChangeCertDetails(Certificate newCertificateDetails) { + public SsoChangeCertDetails(@Nonnull Certificate newCertificateDetails) { this(newCertificateDetails, null); } @@ -64,6 +69,7 @@ public SsoChangeCertDetails(Certificate newCertificateDetails) { * * @return value for this field, never {@code null}. */ + @Nonnull public Certificate getNewCertificateDetails() { return newCertificateDetails; } @@ -74,6 +80,7 @@ public Certificate getNewCertificateDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Certificate getPreviousCertificateDetails() { return previousCertificateDetails; } 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 index 4bfee6de5..5e2e016a7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoChangeCertType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoChangeCertType(String description) { + public SsoChangeCertType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoChangeCertType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e434a5b5c..fe2fd4e90 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class SsoChangeLoginUrlDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoChangeLoginUrlDetails(String previousValue, String newValue) { + public SsoChangeLoginUrlDetails(@Nonnull String previousValue, @Nonnull String newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public SsoChangeLoginUrlDetails(String previousValue, String newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public String getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } 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 index ac09c28bc..4b651ec58 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoChangeLoginUrlType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoChangeLoginUrlType(String description) { + public SsoChangeLoginUrlType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoChangeLoginUrlType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f9d527721..8913de01c 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class SsoChangeLogoutUrlDetails { * missing due to historical data gap. * @param newValue New single sign-on logout URL. */ - public SsoChangeLogoutUrlDetails(String previousValue, String newValue) { + public SsoChangeLogoutUrlDetails(@Nullable String previousValue, @Nullable String newValue) { this.previousValue = previousValue; this.newValue = newValue; } @@ -55,6 +60,7 @@ public SsoChangeLogoutUrlDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getPreviousValue() { return previousValue; } @@ -64,6 +70,7 @@ public String getPreviousValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getNewValue() { return newValue; } 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 index 160aebd59..91c682184 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoChangeLogoutUrlType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoChangeLogoutUrlType(String description) { + public SsoChangeLogoutUrlType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoChangeLogoutUrlType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 744b2c469..4f49404aa 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class SsoChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoChangePolicyDetails(SsoPolicy newValue, SsoPolicy previousValue) { + public SsoChangePolicyDetails(@Nonnull SsoPolicy newValue, @Nullable SsoPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -54,7 +59,7 @@ public SsoChangePolicyDetails(SsoPolicy newValue, SsoPolicy previousValue) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoChangePolicyDetails(SsoPolicy newValue) { + public SsoChangePolicyDetails(@Nonnull SsoPolicy newValue) { this(newValue, null); } @@ -63,6 +68,7 @@ public SsoChangePolicyDetails(SsoPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public SsoPolicy getNewValue() { return newValue; } @@ -73,6 +79,7 @@ public SsoPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public SsoPolicy getPreviousValue() { return previousValue; } 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 index 98dc90bbd..92dab4c00 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoChangePolicyType(String description) { + public SsoChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 2c8a98e4e..e16fee93f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoChangeSamlIdentityModeType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoChangeSamlIdentityModeType(String description) { + public SsoChangeSamlIdentityModeType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoChangeSamlIdentityModeType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bdedaa202..375b91502 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class SsoErrorDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoErrorDetails(FailureDetailsLogInfo errorDetails) { + public SsoErrorDetails(@Nonnull FailureDetailsLogInfo errorDetails) { if (errorDetails == null) { throw new IllegalArgumentException("Required value for 'errorDetails' is null"); } @@ -44,6 +47,7 @@ public SsoErrorDetails(FailureDetailsLogInfo errorDetails) { * * @return value for this field, never {@code null}. */ + @Nonnull public FailureDetailsLogInfo getErrorDetails() { return errorDetails; } 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 index e5c68e197..e343d3d2f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoErrorType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoErrorType(String description) { + public SsoErrorType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoErrorType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 644d54d1e..244ab8292 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoRemoveCertType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoRemoveCertType(String description) { + public SsoRemoveCertType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoRemoveCertType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 82db17f7e..26ebf412d 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class SsoRemoveLoginUrlDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoRemoveLoginUrlDetails(String previousValue) { + public SsoRemoveLoginUrlDetails(@Nonnull String previousValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -45,6 +48,7 @@ public SsoRemoveLoginUrlDetails(String previousValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } 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 index 0995e5a14..926364bc5 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoRemoveLoginUrlType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoRemoveLoginUrlType(String description) { + public SsoRemoveLoginUrlType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoRemoveLoginUrlType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 311214417..3c30be142 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class SsoRemoveLogoutUrlDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoRemoveLogoutUrlDetails(String previousValue) { + public SsoRemoveLogoutUrlDetails(@Nonnull String previousValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -45,6 +48,7 @@ public SsoRemoveLogoutUrlDetails(String previousValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } 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 index 34846a0e1..ea3da2dd2 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class SsoRemoveLogoutUrlType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SsoRemoveLogoutUrlType(String description) { + public SsoRemoveLogoutUrlType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public SsoRemoveLogoutUrlType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e298da5ea..339e5f3aa 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class StartedEnterpriseAdminSessionDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public StartedEnterpriseAdminSessionDetails(FedExtraDetails federationExtraDetails) { + public StartedEnterpriseAdminSessionDetails(@Nonnull FedExtraDetails federationExtraDetails) { if (federationExtraDetails == null) { throw new IllegalArgumentException("Required value for 'federationExtraDetails' is null"); } @@ -45,6 +48,7 @@ public StartedEnterpriseAdminSessionDetails(FedExtraDetails federationExtraDetai * * @return value for this field, never {@code null}. */ + @Nonnull public FedExtraDetails getFederationExtraDetails() { return federationExtraDetails; } 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 index f52dd1b91..c25898b72 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class StartedEnterpriseAdminSessionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public StartedEnterpriseAdminSessionType(String description) { + public StartedEnterpriseAdminSessionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public StartedEnterpriseAdminSessionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 39953319a..832cc21c0 100644 --- 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 @@ -18,13 +18,17 @@ 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; /** @@ -36,7 +40,7 @@ public class TeamActivityCreateReportDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamActivityCreateReportDetails(Date startDate, Date endDate) { + public TeamActivityCreateReportDetails(@Nonnull Date startDate, @Nonnull Date endDate) { if (startDate == null) { throw new IllegalArgumentException("Required value for 'startDate' is null"); } @@ -52,6 +56,7 @@ public TeamActivityCreateReportDetails(Date startDate, Date endDate) { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getStartDate() { return startDate; } @@ -61,6 +66,7 @@ public Date getStartDate() { * * @return value for this field, never {@code null}. */ + @Nonnull public Date getEndDate() { return endDate; } 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 index 36fb00a2e..e07fc1d12 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamActivityCreateReportFailDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamActivityCreateReportFailDetails(TeamReportFailureReason failureReason) { + public TeamActivityCreateReportFailDetails(@Nonnull TeamReportFailureReason failureReason) { if (failureReason == null) { throw new IllegalArgumentException("Required value for 'failureReason' is null"); } @@ -45,6 +48,7 @@ public TeamActivityCreateReportFailDetails(TeamReportFailureReason failureReason * * @return value for this field, never {@code null}. */ + @Nonnull public TeamReportFailureReason getFailureReason() { return failureReason; } 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 index fca51bdd2..51aefc0b0 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamActivityCreateReportFailType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamActivityCreateReportFailType(String description) { + public TeamActivityCreateReportFailType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamActivityCreateReportFailType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e6bd782b2..f34391b70 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamActivityCreateReportType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamActivityCreateReportType(String description) { + public TeamActivityCreateReportType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamActivityCreateReportType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index a33432d4d..fb2650d62 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamBrandingPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamBrandingPolicyChangedDetails(TeamBrandingPolicy newValue, TeamBrandingPolicy previousValue) { + public TeamBrandingPolicyChangedDetails(@Nonnull TeamBrandingPolicy newValue, @Nonnull TeamBrandingPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public TeamBrandingPolicyChangedDetails(TeamBrandingPolicy newValue, TeamBrandin * * @return value for this field, never {@code null}. */ + @Nonnull public TeamBrandingPolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public TeamBrandingPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamBrandingPolicy getPreviousValue() { return previousValue; } 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 index 50c259b1b..134d5ae3d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamBrandingPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamBrandingPolicyChangedType(String description) { + public TeamBrandingPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamBrandingPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 328a3df40..1632cdf18 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class TeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamDetails(String team) { + public TeamDetails(@Nonnull String team) { if (team == null) { throw new IllegalArgumentException("Required value for 'team' is null"); } @@ -44,6 +47,7 @@ public TeamDetails(String team) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeam() { return team; } 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 index 72e136042..2c087f91c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamEncryptionKeyCancelKeyDeletionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamEncryptionKeyCancelKeyDeletionType(String description) { + public TeamEncryptionKeyCancelKeyDeletionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamEncryptionKeyCancelKeyDeletionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0f5f3d3c1..0a28aaf43 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamEncryptionKeyCreateKeyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamEncryptionKeyCreateKeyType(String description) { + public TeamEncryptionKeyCreateKeyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamEncryptionKeyCreateKeyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6787f7ede..f4a620324 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamEncryptionKeyDeleteKeyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamEncryptionKeyDeleteKeyType(String description) { + public TeamEncryptionKeyDeleteKeyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamEncryptionKeyDeleteKeyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 369eaf93e..285888936 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamEncryptionKeyDisableKeyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamEncryptionKeyDisableKeyType(String description) { + public TeamEncryptionKeyDisableKeyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamEncryptionKeyDisableKeyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4291ea1a3..eada43db9 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamEncryptionKeyEnableKeyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamEncryptionKeyEnableKeyType(String description) { + public TeamEncryptionKeyEnableKeyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamEncryptionKeyEnableKeyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c2b97226d..dcb1edc0f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamEncryptionKeyRotateKeyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamEncryptionKeyRotateKeyType(String description) { + public TeamEncryptionKeyRotateKeyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamEncryptionKeyRotateKeyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 34f9db500..eaf6b38e4 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamEncryptionKeyScheduleKeyDeletionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamEncryptionKeyScheduleKeyDeletionType(String description) { + public TeamEncryptionKeyScheduleKeyDeletionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamEncryptionKeyScheduleKeyDeletionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 212a2d2bd..b8e45a2b3 100644 --- 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 @@ -19,21 +19,34 @@ 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; /** @@ -73,7 +86,7 @@ public class TeamEvent { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamEvent(Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details, ActorLogInfo actor, OriginLogInfo origin, Boolean involveNonTeamMember, ContextLogInfo context, List participants, List assets) { + 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"); } @@ -130,7 +143,7 @@ public TeamEvent(Date timestamp, EventCategory eventCategory, EventType eventTyp * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamEvent(Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details) { + 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); } @@ -139,6 +152,7 @@ public TeamEvent(Date timestamp, EventCategory eventCategory, EventType eventTyp * * @return value for this field, never {@code null}. */ + @Nonnull public Date getTimestamp() { return timestamp; } @@ -148,6 +162,7 @@ public Date getTimestamp() { * * @return value for this field, never {@code null}. */ + @Nonnull public EventCategory getEventCategory() { return eventCategory; } @@ -157,6 +172,7 @@ public EventCategory getEventCategory() { * * @return value for this field, never {@code null}. */ + @Nonnull public EventType getEventType() { return eventType; } @@ -167,6 +183,7 @@ public EventType getEventType() { * * @return value for this field, never {@code null}. */ + @Nonnull public EventDetails getDetails() { return details; } @@ -177,6 +194,7 @@ public EventDetails getDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ActorLogInfo getActor() { return actor; } @@ -189,6 +207,7 @@ public ActorLogInfo getActor() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public OriginLogInfo getOrigin() { return origin; } @@ -199,6 +218,7 @@ public OriginLogInfo getOrigin() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getInvolveNonTeamMember() { return involveNonTeamMember; } @@ -209,6 +229,7 @@ public Boolean getInvolveNonTeamMember() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public ContextLogInfo getContext() { return context; } @@ -219,6 +240,7 @@ public ContextLogInfo getContext() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getParticipants() { return participants; } @@ -230,6 +252,7 @@ public List getParticipants() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public List getAssets() { return assets; } 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 index ba74d2ddc..82045063d 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamExtensionsPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamExtensionsPolicyChangedDetails(TeamExtensionsPolicy newValue, TeamExtensionsPolicy previousValue) { + public TeamExtensionsPolicyChangedDetails(@Nonnull TeamExtensionsPolicy newValue, @Nonnull TeamExtensionsPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public TeamExtensionsPolicyChangedDetails(TeamExtensionsPolicy newValue, TeamExt * * @return value for this field, never {@code null}. */ + @Nonnull public TeamExtensionsPolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public TeamExtensionsPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamExtensionsPolicy getPreviousValue() { return previousValue; } 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 index 3abf22c14..a2f12970f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamExtensionsPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamExtensionsPolicyChangedType(String description) { + public TeamExtensionsPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamExtensionsPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 548b50f89..d5fe199a2 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class TeamFolderChangeStatusDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderChangeStatusDetails(TeamFolderStatus newValue, TeamFolderStatus previousValue) { + public TeamFolderChangeStatusDetails(@Nonnull TeamFolderStatus newValue, @Nullable TeamFolderStatus previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -54,7 +59,7 @@ public TeamFolderChangeStatusDetails(TeamFolderStatus newValue, TeamFolderStatus * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderChangeStatusDetails(TeamFolderStatus newValue) { + public TeamFolderChangeStatusDetails(@Nonnull TeamFolderStatus newValue) { this(newValue, null); } @@ -63,6 +68,7 @@ public TeamFolderChangeStatusDetails(TeamFolderStatus newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamFolderStatus getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public TeamFolderStatus getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TeamFolderStatus getPreviousValue() { return previousValue; } 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 index ac88adafd..7cab48be7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamFolderChangeStatusType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderChangeStatusType(String description) { + public TeamFolderChangeStatusType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamFolderChangeStatusType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 09e042409..efaa8fbab 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamFolderCreateType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderCreateType(String description) { + public TeamFolderCreateType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamFolderCreateType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e12049e2b..9fa082e5f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamFolderDowngradeType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderDowngradeType(String description) { + public TeamFolderDowngradeType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamFolderDowngradeType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 57c8014ca..be3063362 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamFolderPermanentlyDeleteType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderPermanentlyDeleteType(String description) { + public TeamFolderPermanentlyDeleteType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamFolderPermanentlyDeleteType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e2163b1dd..7a13038d5 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamFolderRenameDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderRenameDetails(String previousFolderName, String newFolderName) { + public TeamFolderRenameDetails(@Nonnull String previousFolderName, @Nonnull String newFolderName) { if (previousFolderName == null) { throw new IllegalArgumentException("Required value for 'previousFolderName' is null"); } @@ -51,6 +55,7 @@ public TeamFolderRenameDetails(String previousFolderName, String newFolderName) * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousFolderName() { return previousFolderName; } @@ -60,6 +65,7 @@ public String getPreviousFolderName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewFolderName() { return newFolderName; } 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 index cc8b1142b..06e97dd4e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamFolderRenameType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamFolderRenameType(String description) { + public TeamFolderRenameType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamFolderRenameType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 110845e18..2a78a3817 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class TeamInviteDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamInviteDetails(InviteMethod inviteMethod, Boolean additionalLicensePurchase) { + public TeamInviteDetails(@Nonnull InviteMethod inviteMethod, @Nullable Boolean additionalLicensePurchase) { if (inviteMethod == null) { throw new IllegalArgumentException("Required value for 'inviteMethod' is null"); } @@ -55,7 +60,7 @@ public TeamInviteDetails(InviteMethod inviteMethod, Boolean additionalLicensePur * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamInviteDetails(InviteMethod inviteMethod) { + public TeamInviteDetails(@Nonnull InviteMethod inviteMethod) { this(inviteMethod, null); } @@ -64,6 +69,7 @@ public TeamInviteDetails(InviteMethod inviteMethod) { * * @return value for this field, never {@code null}. */ + @Nonnull public InviteMethod getInviteMethod() { return inviteMethod; } @@ -73,6 +79,7 @@ public InviteMethod getInviteMethod() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getAdditionalLicensePurchase() { return additionalLicensePurchase; } 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 index 5c2fc3441..f4e7269a6 100644 --- 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 @@ -15,6 +15,9 @@ import java.io.IOException; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Team linked app */ @@ -31,7 +34,7 @@ public class TeamLinkedAppLogInfo extends AppLogInfo { * @param appId App unique ID. * @param displayName App display name. */ - public TeamLinkedAppLogInfo(String appId, String displayName) { + public TeamLinkedAppLogInfo(@Nullable String appId, @Nullable String displayName) { super(appId, displayName); } @@ -49,6 +52,7 @@ public TeamLinkedAppLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAppId() { return appId; } @@ -58,6 +62,7 @@ public String getAppId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } 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 index 5220a9450..730932799 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class TeamLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamLogInfo(String displayName) { + public TeamLogInfo(@Nonnull String displayName) { if (displayName == null) { throw new IllegalArgumentException("Required value for 'displayName' is null"); } @@ -44,6 +47,7 @@ public TeamLogInfo(String displayName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDisplayName() { return displayName; } 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 index c3f9f846d..9c394021a 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -45,7 +51,7 @@ public class TeamMemberLogInfo extends UserLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberLogInfo(String accountId, String displayName, String email, String teamMemberId, String memberExternalId, TeamLogInfo team) { + 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) { @@ -71,6 +77,7 @@ public TeamMemberLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAccountId() { return accountId; } @@ -80,6 +87,7 @@ public String getAccountId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } @@ -89,6 +97,7 @@ public String getDisplayName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getEmail() { return email; } @@ -98,6 +107,7 @@ public String getEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTeamMemberId() { return teamMemberId; } @@ -107,6 +117,7 @@ public String getTeamMemberId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getMemberExternalId() { return memberExternalId; } @@ -116,6 +127,7 @@ public String getMemberExternalId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TeamLogInfo getTeam() { return team; } 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 index 0ba6dde34..319219c46 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamMergeFromDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeFromDetails(String teamName) { + public TeamMergeFromDetails(@Nonnull String teamName) { if (teamName == null) { throw new IllegalArgumentException("Required value for 'teamName' is null"); } @@ -45,6 +48,7 @@ public TeamMergeFromDetails(String teamName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamName() { return teamName; } 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 index ab5701d74..64365dd5a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeFromType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeFromType(String description) { + public TeamMergeFromType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeFromType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5b1ea110c..50c6cf19f 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamMergeRequestAcceptedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestAcceptedDetails(TeamMergeRequestAcceptedExtraDetails requestAcceptedDetails) { + public TeamMergeRequestAcceptedDetails(@Nonnull TeamMergeRequestAcceptedExtraDetails requestAcceptedDetails) { if (requestAcceptedDetails == null) { throw new IllegalArgumentException("Required value for 'requestAcceptedDetails' is null"); } @@ -45,6 +48,7 @@ public TeamMergeRequestAcceptedDetails(TeamMergeRequestAcceptedExtraDetails requ * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMergeRequestAcceptedExtraDetails getRequestAcceptedDetails() { return requestAcceptedDetails; } 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 index dcb3e41f7..a24953c0d 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamMergeRequestAcceptedShownToPrimaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestAcceptedShownToPrimaryTeamDetails(String secondaryTeam, String sentBy) { + public TeamMergeRequestAcceptedShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { if (secondaryTeam == null) { throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); } @@ -51,6 +55,7 @@ public TeamMergeRequestAcceptedShownToPrimaryTeamDetails(String secondaryTeam, S * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryTeam() { return secondaryTeam; } @@ -60,6 +65,7 @@ public String getSecondaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index 825c0ad90..dc609f193 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestAcceptedShownToPrimaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestAcceptedShownToPrimaryTeamType(String description) { + public TeamMergeRequestAcceptedShownToPrimaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestAcceptedShownToPrimaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c7e727347..64d37d88e 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamMergeRequestAcceptedShownToSecondaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestAcceptedShownToSecondaryTeamDetails(String primaryTeam, String sentBy) { + public TeamMergeRequestAcceptedShownToSecondaryTeamDetails(@Nonnull String primaryTeam, @Nonnull String sentBy) { if (primaryTeam == null) { throw new IllegalArgumentException("Required value for 'primaryTeam' is null"); } @@ -51,6 +55,7 @@ public TeamMergeRequestAcceptedShownToSecondaryTeamDetails(String primaryTeam, S * * @return value for this field, never {@code null}. */ + @Nonnull public String getPrimaryTeam() { return primaryTeam; } @@ -60,6 +65,7 @@ public String getPrimaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index 65afe307e..0e47f5eb7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestAcceptedShownToSecondaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestAcceptedShownToSecondaryTeamType(String description) { + public TeamMergeRequestAcceptedShownToSecondaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestAcceptedShownToSecondaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 743552456..c103b1e9c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestAcceptedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestAcceptedType(String description) { + public TeamMergeRequestAcceptedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestAcceptedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 34fecd5e4..2b36ba8ce 100644 --- 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 @@ -16,12 +16,16 @@ 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; /** @@ -29,7 +33,7 @@ public class TeamMergeRequestAutoCanceledDetails { * * @param details The cancellation reason. */ - public TeamMergeRequestAutoCanceledDetails(String details) { + public TeamMergeRequestAutoCanceledDetails(@Nullable String details) { this.details = details; } @@ -47,6 +51,7 @@ public TeamMergeRequestAutoCanceledDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDetails() { return details; } 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 index 2279fba5c..11ff71922 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestAutoCanceledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestAutoCanceledType(String description) { + public TeamMergeRequestAutoCanceledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestAutoCanceledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0e26b8654..a10ddf1c2 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamMergeRequestCanceledDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestCanceledDetails(TeamMergeRequestCanceledExtraDetails requestCanceledDetails) { + public TeamMergeRequestCanceledDetails(@Nonnull TeamMergeRequestCanceledExtraDetails requestCanceledDetails) { if (requestCanceledDetails == null) { throw new IllegalArgumentException("Required value for 'requestCanceledDetails' is null"); } @@ -45,6 +48,7 @@ public TeamMergeRequestCanceledDetails(TeamMergeRequestCanceledExtraDetails requ * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMergeRequestCanceledExtraDetails getRequestCanceledDetails() { return requestCanceledDetails; } 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 index 0984eaf4a..ab18fcb34 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamMergeRequestCanceledShownToPrimaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestCanceledShownToPrimaryTeamDetails(String secondaryTeam, String sentBy) { + public TeamMergeRequestCanceledShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { if (secondaryTeam == null) { throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); } @@ -51,6 +55,7 @@ public TeamMergeRequestCanceledShownToPrimaryTeamDetails(String secondaryTeam, S * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryTeam() { return secondaryTeam; } @@ -60,6 +65,7 @@ public String getSecondaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index b69e0e45d..493898538 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestCanceledShownToPrimaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestCanceledShownToPrimaryTeamType(String description) { + public TeamMergeRequestCanceledShownToPrimaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestCanceledShownToPrimaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 60cde5289..4bcf62b55 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class TeamMergeRequestCanceledShownToSecondaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestCanceledShownToSecondaryTeamDetails(String sentTo, String sentBy) { + public TeamMergeRequestCanceledShownToSecondaryTeamDetails(@Nonnull String sentTo, @Nonnull String sentBy) { if (sentTo == null) { throw new IllegalArgumentException("Required value for 'sentTo' is null"); } @@ -52,6 +56,7 @@ public TeamMergeRequestCanceledShownToSecondaryTeamDetails(String sentTo, String * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentTo() { return sentTo; } @@ -61,6 +66,7 @@ public String getSentTo() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index 23188ac2c..8f32aedf1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestCanceledShownToSecondaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestCanceledShownToSecondaryTeamType(String description) { + public TeamMergeRequestCanceledShownToSecondaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestCanceledShownToSecondaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bc33a8e32..a1f21dc00 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestCanceledType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestCanceledType(String description) { + public TeamMergeRequestCanceledType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestCanceledType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ca20020d4..d36bb68de 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamMergeRequestExpiredDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestExpiredDetails(TeamMergeRequestExpiredExtraDetails requestExpiredDetails) { + public TeamMergeRequestExpiredDetails(@Nonnull TeamMergeRequestExpiredExtraDetails requestExpiredDetails) { if (requestExpiredDetails == null) { throw new IllegalArgumentException("Required value for 'requestExpiredDetails' is null"); } @@ -45,6 +48,7 @@ public TeamMergeRequestExpiredDetails(TeamMergeRequestExpiredExtraDetails reques * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMergeRequestExpiredExtraDetails getRequestExpiredDetails() { return requestExpiredDetails; } 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 index 857da1b65..0f8ee9165 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamMergeRequestExpiredShownToPrimaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestExpiredShownToPrimaryTeamDetails(String secondaryTeam, String sentBy) { + public TeamMergeRequestExpiredShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { if (secondaryTeam == null) { throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); } @@ -51,6 +55,7 @@ public TeamMergeRequestExpiredShownToPrimaryTeamDetails(String secondaryTeam, St * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryTeam() { return secondaryTeam; } @@ -60,6 +65,7 @@ public String getSecondaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index 41c534270..64620deae 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestExpiredShownToPrimaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestExpiredShownToPrimaryTeamType(String description) { + public TeamMergeRequestExpiredShownToPrimaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestExpiredShownToPrimaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e25900628..3acb5b17c 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamMergeRequestExpiredShownToSecondaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestExpiredShownToSecondaryTeamDetails(String sentTo) { + public TeamMergeRequestExpiredShownToSecondaryTeamDetails(@Nonnull String sentTo) { if (sentTo == null) { throw new IllegalArgumentException("Required value for 'sentTo' is null"); } @@ -45,6 +48,7 @@ public TeamMergeRequestExpiredShownToSecondaryTeamDetails(String sentTo) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentTo() { return sentTo; } 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 index 3696f6009..6f6f123eb 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestExpiredShownToSecondaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestExpiredShownToSecondaryTeamType(String description) { + public TeamMergeRequestExpiredShownToSecondaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestExpiredShownToSecondaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index eb827b6e6..353076983 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestExpiredType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestExpiredType(String description) { + public TeamMergeRequestExpiredType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestExpiredType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 13924f1e5..b29697934 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamMergeRequestRejectedShownToPrimaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestRejectedShownToPrimaryTeamDetails(String secondaryTeam, String sentBy) { + public TeamMergeRequestRejectedShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { if (secondaryTeam == null) { throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); } @@ -51,6 +55,7 @@ public TeamMergeRequestRejectedShownToPrimaryTeamDetails(String secondaryTeam, S * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryTeam() { return secondaryTeam; } @@ -60,6 +65,7 @@ public String getSecondaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index 768c7cecf..7d4f8b19d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestRejectedShownToPrimaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestRejectedShownToPrimaryTeamType(String description) { + public TeamMergeRequestRejectedShownToPrimaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestRejectedShownToPrimaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 96a4a041e..be9aa15c1 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamMergeRequestRejectedShownToSecondaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestRejectedShownToSecondaryTeamDetails(String sentBy) { + public TeamMergeRequestRejectedShownToSecondaryTeamDetails(@Nonnull String sentBy) { if (sentBy == null) { throw new IllegalArgumentException("Required value for 'sentBy' is null"); } @@ -45,6 +48,7 @@ public TeamMergeRequestRejectedShownToSecondaryTeamDetails(String sentBy) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentBy() { return sentBy; } 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 index b3b481137..fda5db6d7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestRejectedShownToSecondaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestRejectedShownToSecondaryTeamType(String description) { + public TeamMergeRequestRejectedShownToSecondaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestRejectedShownToSecondaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 36b0b9b4b..f9accbabf 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamMergeRequestReminderDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestReminderDetails(TeamMergeRequestReminderExtraDetails requestReminderDetails) { + public TeamMergeRequestReminderDetails(@Nonnull TeamMergeRequestReminderExtraDetails requestReminderDetails) { if (requestReminderDetails == null) { throw new IllegalArgumentException("Required value for 'requestReminderDetails' is null"); } @@ -45,6 +48,7 @@ public TeamMergeRequestReminderDetails(TeamMergeRequestReminderExtraDetails requ * * @return value for this field, never {@code null}. */ + @Nonnull public TeamMergeRequestReminderExtraDetails getRequestReminderDetails() { return requestReminderDetails; } 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 index 9f008dabf..0fc22b2fd 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamMergeRequestReminderShownToPrimaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestReminderShownToPrimaryTeamDetails(String secondaryTeam, String sentTo) { + public TeamMergeRequestReminderShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentTo) { if (secondaryTeam == null) { throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); } @@ -51,6 +55,7 @@ public TeamMergeRequestReminderShownToPrimaryTeamDetails(String secondaryTeam, S * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryTeam() { return secondaryTeam; } @@ -60,6 +65,7 @@ public String getSecondaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentTo() { return sentTo; } 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 index d90fd6214..3ba7b4332 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestReminderShownToPrimaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestReminderShownToPrimaryTeamType(String description) { + public TeamMergeRequestReminderShownToPrimaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestReminderShownToPrimaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b73ccc674..6676628b2 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamMergeRequestReminderShownToSecondaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestReminderShownToSecondaryTeamDetails(String sentTo) { + public TeamMergeRequestReminderShownToSecondaryTeamDetails(@Nonnull String sentTo) { if (sentTo == null) { throw new IllegalArgumentException("Required value for 'sentTo' is null"); } @@ -45,6 +48,7 @@ public TeamMergeRequestReminderShownToSecondaryTeamDetails(String sentTo) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentTo() { return sentTo; } 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 index 68db3349f..1a2a1fc0f 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestReminderShownToSecondaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestReminderShownToSecondaryTeamType(String description) { + public TeamMergeRequestReminderShownToSecondaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestReminderShownToSecondaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e4f729d2d..72f125d1d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestReminderType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestReminderType(String description) { + public TeamMergeRequestReminderType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestReminderType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0e16cda61..92ef51a8e 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -32,7 +35,7 @@ public class TeamMergeRequestRevokedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestRevokedDetails(String team) { + public TeamMergeRequestRevokedDetails(@Nonnull String team) { if (team == null) { throw new IllegalArgumentException("Required value for 'team' is null"); } @@ -44,6 +47,7 @@ public TeamMergeRequestRevokedDetails(String team) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeam() { return team; } 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 index f2d5c06c0..781a90226 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestRevokedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestRevokedType(String description) { + public TeamMergeRequestRevokedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestRevokedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 08d376a1b..3edf639fa 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamMergeRequestSentShownToPrimaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestSentShownToPrimaryTeamDetails(String secondaryTeam, String sentTo) { + public TeamMergeRequestSentShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentTo) { if (secondaryTeam == null) { throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); } @@ -51,6 +55,7 @@ public TeamMergeRequestSentShownToPrimaryTeamDetails(String secondaryTeam, Strin * * @return value for this field, never {@code null}. */ + @Nonnull public String getSecondaryTeam() { return secondaryTeam; } @@ -60,6 +65,7 @@ public String getSecondaryTeam() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentTo() { return sentTo; } 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 index 5646d2e34..72ef70c50 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestSentShownToPrimaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestSentShownToPrimaryTeamType(String description) { + public TeamMergeRequestSentShownToPrimaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestSentShownToPrimaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c5752f6ed..c93a33f94 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamMergeRequestSentShownToSecondaryTeamDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestSentShownToSecondaryTeamDetails(String sentTo) { + public TeamMergeRequestSentShownToSecondaryTeamDetails(@Nonnull String sentTo) { if (sentTo == null) { throw new IllegalArgumentException("Required value for 'sentTo' is null"); } @@ -45,6 +48,7 @@ public TeamMergeRequestSentShownToSecondaryTeamDetails(String sentTo) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSentTo() { return sentTo; } 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 index 433a64628..48407df82 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeRequestSentShownToSecondaryTeamType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeRequestSentShownToSecondaryTeamType(String description) { + public TeamMergeRequestSentShownToSecondaryTeamType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeRequestSentShownToSecondaryTeamType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index b4494c3c3..a2bd39515 100644 --- 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 @@ -16,12 +16,15 @@ 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; /** @@ -33,7 +36,7 @@ public class TeamMergeToDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeToDetails(String teamName) { + public TeamMergeToDetails(@Nonnull String teamName) { if (teamName == null) { throw new IllegalArgumentException("Required value for 'teamName' is null"); } @@ -45,6 +48,7 @@ public TeamMergeToDetails(String teamName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamName() { return teamName; } 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 index c6676884c..e0bc78f3b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamMergeToType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMergeToType(String description) { + public TeamMergeToType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamMergeToType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 30b1bac7c..9cf45b854 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class TeamName { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamName(String teamDisplayName, String teamLegalName) { + public TeamName(@Nonnull String teamDisplayName, @Nonnull String teamLegalName) { if (teamDisplayName == null) { throw new IllegalArgumentException("Required value for 'teamDisplayName' is null"); } @@ -50,6 +54,7 @@ public TeamName(String teamDisplayName, String teamLegalName) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamDisplayName() { return teamDisplayName; } @@ -59,6 +64,7 @@ public String getTeamDisplayName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getTeamLegalName() { return teamLegalName; } 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 index 3f3f02433..a76e5d298 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamProfileAddBackgroundType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileAddBackgroundType(String description) { + public TeamProfileAddBackgroundType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamProfileAddBackgroundType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6f31a593d..9e1e59c40 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamProfileAddLogoType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileAddLogoType(String description) { + public TeamProfileAddLogoType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamProfileAddLogoType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index d8cb9b2b9..58da61167 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamProfileChangeBackgroundType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileChangeBackgroundType(String description) { + public TeamProfileChangeBackgroundType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamProfileChangeBackgroundType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6700c30f7..695e24f01 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class TeamProfileChangeDefaultLanguageDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileChangeDefaultLanguageDetails(String newValue, String previousValue) { + public TeamProfileChangeDefaultLanguageDetails(@Nonnull String newValue, @Nonnull String previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -58,6 +62,7 @@ public TeamProfileChangeDefaultLanguageDetails(String newValue, String previousV * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } @@ -67,6 +72,7 @@ public String getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } 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 index 14f2297e2..844bb5ce7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamProfileChangeDefaultLanguageType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileChangeDefaultLanguageType(String description) { + public TeamProfileChangeDefaultLanguageType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamProfileChangeDefaultLanguageType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e84a5bff4..96dbbcc85 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamProfileChangeLogoType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileChangeLogoType(String description) { + public TeamProfileChangeLogoType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamProfileChangeLogoType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 9343ea833..b64a1e411 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -35,7 +40,7 @@ public class TeamProfileChangeNameDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileChangeNameDetails(TeamName newValue, TeamName previousValue) { + public TeamProfileChangeNameDetails(@Nonnull TeamName newValue, @Nullable TeamName previousValue) { this.previousValue = previousValue; if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); @@ -53,7 +58,7 @@ public TeamProfileChangeNameDetails(TeamName newValue, TeamName previousValue) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileChangeNameDetails(TeamName newValue) { + public TeamProfileChangeNameDetails(@Nonnull TeamName newValue) { this(newValue, null); } @@ -62,6 +67,7 @@ public TeamProfileChangeNameDetails(TeamName newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamName getNewValue() { return newValue; } @@ -71,6 +77,7 @@ public TeamName getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TeamName getPreviousValue() { return previousValue; } 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 index 7e06ebf81..8e15f41d1 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamProfileChangeNameType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileChangeNameType(String description) { + public TeamProfileChangeNameType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamProfileChangeNameType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8361467b1..f35994971 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamProfileRemoveBackgroundType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileRemoveBackgroundType(String description) { + public TeamProfileRemoveBackgroundType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamProfileRemoveBackgroundType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6f78cff19..ea9b34063 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamProfileRemoveLogoType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamProfileRemoveLogoType(String description) { + public TeamProfileRemoveLogoType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamProfileRemoveLogoType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index c88fa8558..9e8d3c42e 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class TeamSelectiveSyncPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamSelectiveSyncPolicyChangedDetails(TeamSelectiveSyncPolicy newValue, TeamSelectiveSyncPolicy previousValue) { + public TeamSelectiveSyncPolicyChangedDetails(@Nonnull TeamSelectiveSyncPolicy newValue, @Nonnull TeamSelectiveSyncPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -52,6 +56,7 @@ public TeamSelectiveSyncPolicyChangedDetails(TeamSelectiveSyncPolicy newValue, T * * @return value for this field, never {@code null}. */ + @Nonnull public TeamSelectiveSyncPolicy getNewValue() { return newValue; } @@ -61,6 +66,7 @@ public TeamSelectiveSyncPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamSelectiveSyncPolicy getPreviousValue() { return previousValue; } 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 index 43da87534..bb986961d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamSelectiveSyncPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamSelectiveSyncPolicyChangedType(String description) { + public TeamSelectiveSyncPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamSelectiveSyncPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 6ca0922e5..615fe1b82 100644 --- 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 @@ -17,13 +17,17 @@ 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; /** @@ -35,7 +39,7 @@ public class TeamSelectiveSyncSettingsChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamSelectiveSyncSettingsChangedDetails(SyncSetting previousValue, SyncSetting newValue) { + public TeamSelectiveSyncSettingsChangedDetails(@Nonnull SyncSetting previousValue, @Nonnull SyncSetting newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public TeamSelectiveSyncSettingsChangedDetails(SyncSetting previousValue, SyncSe * * @return value for this field, never {@code null}. */ + @Nonnull public SyncSetting getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public SyncSetting getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public SyncSetting getNewValue() { return newValue; } 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 index 540fc59da..70cad9b56 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamSelectiveSyncSettingsChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamSelectiveSyncSettingsChangedType(String description) { + public TeamSelectiveSyncSettingsChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamSelectiveSyncSettingsChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 3ce811693..d561e935f 100644 --- 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 @@ -17,13 +17,17 @@ 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; /** @@ -39,7 +43,7 @@ public class TeamSharingWhitelistSubjectsChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamSharingWhitelistSubjectsChangedDetails(List addedWhitelistSubjects, List removedWhitelistSubjects) { + public TeamSharingWhitelistSubjectsChangedDetails(@Nonnull List addedWhitelistSubjects, @Nonnull List removedWhitelistSubjects) { if (addedWhitelistSubjects == null) { throw new IllegalArgumentException("Required value for 'addedWhitelistSubjects' is null"); } @@ -65,6 +69,7 @@ public TeamSharingWhitelistSubjectsChangedDetails(List addedWhitelistSub * * @return value for this field, never {@code null}. */ + @Nonnull public List getAddedWhitelistSubjects() { return addedWhitelistSubjects; } @@ -74,6 +79,7 @@ public List getAddedWhitelistSubjects() { * * @return value for this field, never {@code null}. */ + @Nonnull public List getRemovedWhitelistSubjects() { return removedWhitelistSubjects; } 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 index da6e4457a..7bbfbe337 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TeamSharingWhitelistSubjectsChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamSharingWhitelistSubjectsChangedType(String description) { + public TeamSharingWhitelistSubjectsChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TeamSharingWhitelistSubjectsChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 8bf8bd524..2aa9d5990 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TfaAddBackupPhoneType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaAddBackupPhoneType(String description) { + public TfaAddBackupPhoneType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TfaAddBackupPhoneType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 72a24ae77..b2a8f78ee 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TfaAddExceptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaAddExceptionType(String description) { + public TfaAddExceptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TfaAddExceptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 01c567ea1..3d28ed570 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TfaAddSecurityKeyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaAddSecurityKeyType(String description) { + public TfaAddSecurityKeyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TfaAddSecurityKeyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 9893f05fc..9ce37110e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TfaChangeBackupPhoneType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaChangeBackupPhoneType(String description) { + public TfaChangeBackupPhoneType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TfaChangeBackupPhoneType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index ef4cac2ad..4cb011401 100644 --- 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 @@ -17,13 +17,18 @@ 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; /** @@ -36,7 +41,7 @@ public class TfaChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaChangePolicyDetails(TwoStepVerificationPolicy newValue, TwoStepVerificationPolicy previousValue) { + public TfaChangePolicyDetails(@Nonnull TwoStepVerificationPolicy newValue, @Nullable TwoStepVerificationPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -54,7 +59,7 @@ public TfaChangePolicyDetails(TwoStepVerificationPolicy newValue, TwoStepVerific * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaChangePolicyDetails(TwoStepVerificationPolicy newValue) { + public TfaChangePolicyDetails(@Nonnull TwoStepVerificationPolicy newValue) { this(newValue, null); } @@ -63,6 +68,7 @@ public TfaChangePolicyDetails(TwoStepVerificationPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public TwoStepVerificationPolicy getNewValue() { return newValue; } @@ -72,6 +78,7 @@ public TwoStepVerificationPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TwoStepVerificationPolicy getPreviousValue() { return previousValue; } 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 index b9251242b..c64071a7a 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TfaChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaChangePolicyType(String description) { + public TfaChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TfaChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 969ce3ee4..b6199dbf4 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -43,7 +49,7 @@ public class TfaChangeStatusDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaChangeStatusDetails(TfaConfiguration newValue, TfaConfiguration previousValue, Boolean usedRescueCode) { + public TfaChangeStatusDetails(@Nonnull TfaConfiguration newValue, @Nullable TfaConfiguration previousValue, @Nullable Boolean usedRescueCode) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -63,7 +69,7 @@ public TfaChangeStatusDetails(TfaConfiguration newValue, TfaConfiguration previo * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaChangeStatusDetails(TfaConfiguration newValue) { + public TfaChangeStatusDetails(@Nonnull TfaConfiguration newValue) { this(newValue, null, null); } @@ -72,6 +78,7 @@ public TfaChangeStatusDetails(TfaConfiguration newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public TfaConfiguration getNewValue() { return newValue; } @@ -82,6 +89,7 @@ public TfaConfiguration getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TfaConfiguration getPreviousValue() { return previousValue; } @@ -92,6 +100,7 @@ public TfaConfiguration getPreviousValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Boolean getUsedRescueCode() { return usedRescueCode; } 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 index 568c29c58..ffefe3146 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TfaChangeStatusType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaChangeStatusType(String description) { + public TfaChangeStatusType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TfaChangeStatusType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 91ddad3f8..32b1018a3 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TfaRemoveBackupPhoneType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaRemoveBackupPhoneType(String description) { + public TfaRemoveBackupPhoneType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TfaRemoveBackupPhoneType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 303975137..25d9f3dda 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TfaRemoveExceptionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaRemoveExceptionType(String description) { + public TfaRemoveExceptionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TfaRemoveExceptionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e6f983a45..901105fb7 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TfaRemoveSecurityKeyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaRemoveSecurityKeyType(String description) { + public TfaRemoveSecurityKeyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TfaRemoveSecurityKeyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 97bb3e4ce..2dc54acdc 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TfaResetType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TfaResetType(String description) { + public TfaResetType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TfaResetType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index db64c914b..432b9225c 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -42,7 +47,7 @@ public class TrustedNonTeamMemberLogInfo extends UserLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TrustedNonTeamMemberLogInfo(TrustedNonTeamMemberType trustedNonTeamMemberType, String accountId, String displayName, String email, TeamLogInfo team) { + 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"); @@ -62,7 +67,7 @@ public TrustedNonTeamMemberLogInfo(TrustedNonTeamMemberType trustedNonTeamMember * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TrustedNonTeamMemberLogInfo(TrustedNonTeamMemberType trustedNonTeamMemberType) { + public TrustedNonTeamMemberLogInfo(@Nonnull TrustedNonTeamMemberType trustedNonTeamMemberType) { this(trustedNonTeamMemberType, null, null, null, null); } @@ -71,6 +76,7 @@ public TrustedNonTeamMemberLogInfo(TrustedNonTeamMemberType trustedNonTeamMember * * @return value for this field, never {@code null}. */ + @Nonnull public TrustedNonTeamMemberType getTrustedNonTeamMemberType() { return trustedNonTeamMemberType; } @@ -80,6 +86,7 @@ public TrustedNonTeamMemberType getTrustedNonTeamMemberType() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAccountId() { return accountId; } @@ -89,6 +96,7 @@ public String getAccountId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } @@ -98,6 +106,7 @@ public String getDisplayName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getEmail() { return email; } @@ -107,6 +116,7 @@ public String getEmail() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TeamLogInfo getTeam() { return team; } 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 index 3467ed23d..3669cad62 100644 --- 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 @@ -16,6 +16,9 @@ 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. @@ -23,7 +26,9 @@ public class TwoAccountChangePolicyDetails { // struct team_log.TwoAccountChangePolicyDetails (team_log_generated.stone) + @Nonnull protected final TwoAccountPolicy newValue; + @Nullable protected final TwoAccountPolicy previousValue; /** @@ -37,7 +42,7 @@ public class TwoAccountChangePolicyDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TwoAccountChangePolicyDetails(TwoAccountPolicy newValue, TwoAccountPolicy previousValue) { + public TwoAccountChangePolicyDetails(@Nonnull TwoAccountPolicy newValue, @Nullable TwoAccountPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -56,7 +61,7 @@ public TwoAccountChangePolicyDetails(TwoAccountPolicy newValue, TwoAccountPolicy * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TwoAccountChangePolicyDetails(TwoAccountPolicy newValue) { + public TwoAccountChangePolicyDetails(@Nonnull TwoAccountPolicy newValue) { this(newValue, null); } @@ -65,6 +70,7 @@ public TwoAccountChangePolicyDetails(TwoAccountPolicy newValue) { * * @return value for this field, never {@code null}. */ + @Nonnull public TwoAccountPolicy getNewValue() { return newValue; } @@ -74,6 +80,7 @@ public TwoAccountPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public TwoAccountPolicy getPreviousValue() { return previousValue; } 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 index 4cb764579..61e30ac3b 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class TwoAccountChangePolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TwoAccountChangePolicyType(String description) { + public TwoAccountChangePolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public TwoAccountChangePolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index bc8d721df..7f9f2d292 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class UndoNamingConventionType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UndoNamingConventionType(String description) { + public UndoNamingConventionType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public UndoNamingConventionType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 444ab7459..31ba61a09 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class UndoOrganizeFolderWithTidyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UndoOrganizeFolderWithTidyType(String description) { + public UndoOrganizeFolderWithTidyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public UndoOrganizeFolderWithTidyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 19451be06..6afc3eefb 100644 --- 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 @@ -15,6 +15,9 @@ import java.io.IOException; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * User linked app */ @@ -31,7 +34,7 @@ public class UserLinkedAppLogInfo extends AppLogInfo { * @param appId App unique ID. * @param displayName App display name. */ - public UserLinkedAppLogInfo(String appId, String displayName) { + public UserLinkedAppLogInfo(@Nullable String appId, @Nullable String displayName) { super(appId, displayName); } @@ -49,6 +52,7 @@ public UserLinkedAppLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAppId() { return appId; } @@ -58,6 +62,7 @@ public String getAppId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } 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 index abf544352..cf4a500ee 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -40,7 +46,7 @@ public class UserLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserLogInfo(String accountId, String displayName, String email) { + 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"); @@ -73,6 +79,7 @@ public UserLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAccountId() { return accountId; } @@ -82,6 +89,7 @@ public String getAccountId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } @@ -91,6 +99,7 @@ public String getDisplayName() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getEmail() { return email; } 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 index 74d6e19f3..d4e591e64 100644 --- 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 @@ -16,14 +16,20 @@ 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; /** @@ -36,7 +42,7 @@ public class UserNameLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserNameLogInfo(String givenName, String surname, String locale) { + public UserNameLogInfo(@Nonnull String givenName, @Nonnull String surname, @Nullable String locale) { if (givenName == null) { throw new IllegalArgumentException("Required value for 'givenName' is null"); } @@ -59,7 +65,7 @@ public UserNameLogInfo(String givenName, String surname, String locale) { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserNameLogInfo(String givenName, String surname) { + public UserNameLogInfo(@Nonnull String givenName, @Nonnull String surname) { this(givenName, surname, null); } @@ -68,6 +74,7 @@ public UserNameLogInfo(String givenName, String surname) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getGivenName() { return givenName; } @@ -77,6 +84,7 @@ public String getGivenName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSurname() { return surname; } @@ -86,6 +94,7 @@ public String getSurname() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getLocale() { return locale; } 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 index 6687d1007..f4f99782e 100644 --- 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 @@ -15,6 +15,9 @@ 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. @@ -33,7 +36,7 @@ public class UserOrTeamLinkedAppLogInfo extends AppLogInfo { * @param appId App unique ID. * @param displayName App display name. */ - public UserOrTeamLinkedAppLogInfo(String appId, String displayName) { + public UserOrTeamLinkedAppLogInfo(@Nullable String appId, @Nullable String displayName) { super(appId, displayName); } @@ -52,6 +55,7 @@ public UserOrTeamLinkedAppLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getAppId() { return appId; } @@ -61,6 +65,7 @@ public String getAppId() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getDisplayName() { return displayName; } 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 index 6810c8d27..78da996af 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class UserTagsAddedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserTagsAddedDetails(List values) { + public UserTagsAddedDetails(@Nonnull List values) { if (values == null) { throw new IllegalArgumentException("Required value for 'values' is null"); } @@ -51,6 +54,7 @@ public UserTagsAddedDetails(List values) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getValues() { return values; } 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 index e73907c6f..1ffe30d32 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class UserTagsAddedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserTagsAddedType(String description) { + public UserTagsAddedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public UserTagsAddedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e86011039..9f23ce3f5 100644 --- 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 @@ -17,12 +17,15 @@ 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; /** @@ -34,7 +37,7 @@ public class UserTagsRemovedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserTagsRemovedDetails(List values) { + public UserTagsRemovedDetails(@Nonnull List values) { if (values == null) { throw new IllegalArgumentException("Required value for 'values' is null"); } @@ -51,6 +54,7 @@ public UserTagsRemovedDetails(List values) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getValues() { return values; } 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 index 7537dacda..e0eeeff3e 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class UserTagsRemovedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserTagsRemovedType(String description) { + public UserTagsRemovedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public UserTagsRemovedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f5c829be1..bf94cdf54 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class ViewerInfoPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ViewerInfoPolicyChangedDetails(PassPolicy previousValue, PassPolicy newValue) { + public ViewerInfoPolicyChangedDetails(@Nonnull PassPolicy previousValue, @Nonnull PassPolicy newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -51,6 +55,7 @@ public ViewerInfoPolicyChangedDetails(PassPolicy previousValue, PassPolicy newVa * * @return value for this field, never {@code null}. */ + @Nonnull public PassPolicy getPreviousValue() { return previousValue; } @@ -60,6 +65,7 @@ public PassPolicy getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public PassPolicy getNewValue() { return newValue; } 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 index 391c93564..b53caf9e6 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class ViewerInfoPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public ViewerInfoPolicyChangedType(String description) { + public ViewerInfoPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public ViewerInfoPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index f22e366d4..d5f16e4b6 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -35,7 +39,7 @@ public class WatermarkingPolicyChangedDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public WatermarkingPolicyChangedDetails(WatermarkingPolicy newValue, WatermarkingPolicy previousValue) { + public WatermarkingPolicyChangedDetails(@Nonnull WatermarkingPolicy newValue, @Nonnull WatermarkingPolicy previousValue) { if (newValue == null) { throw new IllegalArgumentException("Required value for 'newValue' is null"); } @@ -51,6 +55,7 @@ public WatermarkingPolicyChangedDetails(WatermarkingPolicy newValue, Watermarkin * * @return value for this field, never {@code null}. */ + @Nonnull public WatermarkingPolicy getNewValue() { return newValue; } @@ -60,6 +65,7 @@ public WatermarkingPolicy getNewValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public WatermarkingPolicy getPreviousValue() { return previousValue; } 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 index 85705d6e2..a63068373 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class WatermarkingPolicyChangedType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public WatermarkingPolicyChangedType(String description) { + public WatermarkingPolicyChangedType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public WatermarkingPolicyChangedType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 0fa308d67..611db10f8 100644 --- 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 @@ -18,15 +18,22 @@ 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; /** @@ -49,7 +56,7 @@ public class WebDeviceSessionLogInfo extends DeviceSessionLogInfo { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public WebDeviceSessionLogInfo(String userAgent, String os, String browser, String ipAddress, Date created, Date updated, WebSessionLogInfo sessionInfo) { + 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) { @@ -81,7 +88,7 @@ public WebDeviceSessionLogInfo(String userAgent, String os, String browser, Stri * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public WebDeviceSessionLogInfo(String userAgent, String os, String browser) { + public WebDeviceSessionLogInfo(@Nonnull String userAgent, @Nonnull String os, @Nonnull String browser) { this(userAgent, os, browser, null, null, null, null); } @@ -90,6 +97,7 @@ public WebDeviceSessionLogInfo(String userAgent, String os, String browser) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getUserAgent() { return userAgent; } @@ -99,6 +107,7 @@ public String getUserAgent() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getOs() { return os; } @@ -108,6 +117,7 @@ public String getOs() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getBrowser() { return browser; } @@ -117,6 +127,7 @@ public String getBrowser() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getIpAddress() { return ipAddress; } @@ -126,6 +137,7 @@ public String getIpAddress() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getCreated() { return created; } @@ -135,6 +147,7 @@ public Date getCreated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public Date getUpdated() { return updated; } @@ -144,6 +157,7 @@ public Date getUpdated() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public WebSessionLogInfo getSessionInfo() { return sessionInfo; } 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 index 5276cdf31..bb9413453 100644 --- 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 @@ -15,6 +15,9 @@ import java.io.IOException; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Web session. */ @@ -27,7 +30,7 @@ public class WebSessionLogInfo extends SessionLogInfo { * * @param sessionId Session ID. */ - public WebSessionLogInfo(String sessionId) { + public WebSessionLogInfo(@Nullable String sessionId) { super(sessionId); } @@ -45,6 +48,7 @@ public WebSessionLogInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getSessionId() { return sessionId; } 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 index 2b575a338..9c7ad5582 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -36,7 +40,7 @@ public class WebSessionsChangeActiveSessionLimitDetails { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public WebSessionsChangeActiveSessionLimitDetails(String previousValue, String newValue) { + public WebSessionsChangeActiveSessionLimitDetails(@Nonnull String previousValue, @Nonnull String newValue) { if (previousValue == null) { throw new IllegalArgumentException("Required value for 'previousValue' is null"); } @@ -52,6 +56,7 @@ public WebSessionsChangeActiveSessionLimitDetails(String previousValue, String n * * @return value for this field, never {@code null}. */ + @Nonnull public String getPreviousValue() { return previousValue; } @@ -61,6 +66,7 @@ public String getPreviousValue() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getNewValue() { return newValue; } 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 index 3daf8cb66..f6c9971bf 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class WebSessionsChangeActiveSessionLimitType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public WebSessionsChangeActiveSessionLimitType(String description) { + public WebSessionsChangeActiveSessionLimitType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public WebSessionsChangeActiveSessionLimitType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 4d566f3f2..3093d25c6 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class WebSessionsChangeFixedLengthPolicyDetails { * @param previousValue Previous session length policy. Might be missing * due to historical data gap. */ - public WebSessionsChangeFixedLengthPolicyDetails(WebSessionsFixedLengthPolicy newValue, WebSessionsFixedLengthPolicy previousValue) { + public WebSessionsChangeFixedLengthPolicyDetails(@Nullable WebSessionsFixedLengthPolicy newValue, @Nullable WebSessionsFixedLengthPolicy previousValue) { this.newValue = newValue; this.previousValue = previousValue; } @@ -55,6 +60,7 @@ public WebSessionsChangeFixedLengthPolicyDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public WebSessionsFixedLengthPolicy getNewValue() { return newValue; } @@ -65,6 +71,7 @@ public WebSessionsFixedLengthPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public WebSessionsFixedLengthPolicy getPreviousValue() { return previousValue; } 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 index 90ef928c1..a0d004f3c 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class WebSessionsChangeFixedLengthPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public WebSessionsChangeFixedLengthPolicyType(String description) { + public WebSessionsChangeFixedLengthPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public WebSessionsChangeFixedLengthPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index 5339db52d..f21852d5f 100644 --- 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 @@ -16,13 +16,18 @@ 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; /** @@ -36,7 +41,7 @@ public class WebSessionsChangeIdleLengthPolicyDetails { * @param previousValue Previous idle length policy. Might be missing due * to historical data gap. */ - public WebSessionsChangeIdleLengthPolicyDetails(WebSessionsIdleLengthPolicy newValue, WebSessionsIdleLengthPolicy previousValue) { + public WebSessionsChangeIdleLengthPolicyDetails(@Nullable WebSessionsIdleLengthPolicy newValue, @Nullable WebSessionsIdleLengthPolicy previousValue) { this.newValue = newValue; this.previousValue = previousValue; } @@ -55,6 +60,7 @@ public WebSessionsChangeIdleLengthPolicyDetails() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public WebSessionsIdleLengthPolicy getNewValue() { return newValue; } @@ -64,6 +70,7 @@ public WebSessionsIdleLengthPolicy getNewValue() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public WebSessionsIdleLengthPolicy getPreviousValue() { return previousValue; } 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 index a3279d7e0..77cf7a339 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -28,7 +31,7 @@ public class WebSessionsChangeIdleLengthPolicyType { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public WebSessionsChangeIdleLengthPolicyType(String description) { + public WebSessionsChangeIdleLengthPolicyType(@Nonnull String description) { if (description == null) { throw new IllegalArgumentException("Required value for 'description' is null"); } @@ -39,6 +42,7 @@ public WebSessionsChangeIdleLengthPolicyType(String description) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDescription() { return description; } 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 index e9492333d..903bd5940 100644 --- 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 @@ -16,15 +16,21 @@ 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; /** @@ -46,7 +52,7 @@ public class TeamMemberPolicies { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamMemberPolicies(TeamSharingPolicies sharing, EmmState emmState, OfficeAddInPolicy officeAddin, SuggestMembersPolicy suggestMembersPolicy) { + 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"); } @@ -70,6 +76,7 @@ public TeamMemberPolicies(TeamSharingPolicies sharing, EmmState emmState, Office * * @return value for this field, never {@code null}. */ + @Nonnull public TeamSharingPolicies getSharing() { return sharing; } @@ -84,6 +91,7 @@ public TeamSharingPolicies getSharing() { * * @return value for this field, never {@code null}. */ + @Nonnull public EmmState getEmmState() { return emmState; } @@ -93,6 +101,7 @@ public EmmState getEmmState() { * * @return value for this field, never {@code null}. */ + @Nonnull public OfficeAddInPolicy getOfficeAddin() { return officeAddin; } @@ -103,6 +112,7 @@ public OfficeAddInPolicy getOfficeAddin() { * * @return value for this field, never {@code null}. */ + @Nonnull public SuggestMembersPolicy getSuggestMembersPolicy() { return suggestMembersPolicy; } 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 index 73afe88aa..689bc40e1 100644 --- 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 @@ -16,16 +16,23 @@ 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; /** @@ -45,7 +52,7 @@ public class TeamSharingPolicies { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamSharingPolicies(SharedFolderMemberPolicy sharedFolderMemberPolicy, SharedFolderJoinPolicy sharedFolderJoinPolicy, SharedLinkCreatePolicy sharedLinkCreatePolicy, GroupCreation groupCreationPolicy, SharedFolderBlanketLinkRestrictionPolicy sharedFolderLinkRestrictionPolicy) { + 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"); } @@ -73,6 +80,7 @@ public TeamSharingPolicies(SharedFolderMemberPolicy sharedFolderMemberPolicy, Sh * * @return value for this field, never {@code null}. */ + @Nonnull public SharedFolderMemberPolicy getSharedFolderMemberPolicy() { return sharedFolderMemberPolicy; } @@ -82,6 +90,7 @@ public SharedFolderMemberPolicy getSharedFolderMemberPolicy() { * * @return value for this field, never {@code null}. */ + @Nonnull public SharedFolderJoinPolicy getSharedFolderJoinPolicy() { return sharedFolderJoinPolicy; } @@ -91,6 +100,7 @@ public SharedFolderJoinPolicy getSharedFolderJoinPolicy() { * * @return value for this field, never {@code null}. */ + @Nonnull public SharedLinkCreatePolicy getSharedLinkCreatePolicy() { return sharedLinkCreatePolicy; } @@ -100,6 +110,7 @@ public SharedLinkCreatePolicy getSharedLinkCreatePolicy() { * * @return value for this field, never {@code null}. */ + @Nonnull public GroupCreation getGroupCreationPolicy() { return groupCreationPolicy; } @@ -109,6 +120,7 @@ public GroupCreation getGroupCreationPolicy() { * * @return value for this field, never {@code null}. */ + @Nonnull public SharedFolderBlanketLinkRestrictionPolicy getSharedFolderLinkRestrictionPolicy() { return sharedFolderLinkRestrictionPolicy; } 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 index 2ab9ba82e..72b67361e 100644 --- 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 @@ -16,6 +16,9 @@ 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. @@ -23,10 +26,14 @@ 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; @@ -49,7 +56,7 @@ public class Account { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Account(String accountId, Name name, String email, boolean emailVerified, boolean disabled, String profilePhotoUrl) { + 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"); } @@ -92,7 +99,7 @@ public Account(String accountId, Name name, String email, boolean emailVerified, * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Account(String accountId, Name name, String email, boolean emailVerified, boolean disabled) { + public Account(@Nonnull String accountId, @Nonnull Name name, @Nonnull String email, boolean emailVerified, boolean disabled) { this(accountId, name, email, emailVerified, disabled, null); } @@ -101,6 +108,7 @@ public Account(String accountId, Name name, String email, boolean emailVerified, * * @return value for this field, never {@code null}. */ + @Nonnull public String getAccountId() { return accountId; } @@ -110,6 +118,7 @@ public String getAccountId() { * * @return value for this field, never {@code null}. */ + @Nonnull public Name getName() { return name; } @@ -121,6 +130,7 @@ public Name getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEmail() { return email; } @@ -148,6 +158,7 @@ public boolean getDisabled() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getProfilePhotoUrl() { return profilePhotoUrl; } 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 index 3933d3c86..41e5da978 100644 --- 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 @@ -16,6 +16,9 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + /** * Basic information about any account. */ @@ -23,6 +26,7 @@ public class BasicAccount extends Account { // struct users.BasicAccount (users.stone) protected final boolean isTeammate; + @Nullable protected final String teamMemberId; /** @@ -52,7 +56,7 @@ public class BasicAccount extends Account { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BasicAccount(String accountId, Name name, String email, boolean emailVerified, boolean disabled, boolean isTeammate, String profilePhotoUrl, String teamMemberId) { + 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; @@ -79,7 +83,7 @@ public BasicAccount(String accountId, Name name, String email, boolean emailVeri * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public BasicAccount(String accountId, Name name, String email, boolean emailVerified, boolean disabled, boolean isTeammate) { + 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); } @@ -88,6 +92,7 @@ public BasicAccount(String accountId, Name name, String email, boolean emailVeri * * @return value for this field, never {@code null}. */ + @Nonnull public String getAccountId() { return accountId; } @@ -97,6 +102,7 @@ public String getAccountId() { * * @return value for this field, never {@code null}. */ + @Nonnull public Name getName() { return name; } @@ -108,6 +114,7 @@ public Name getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEmail() { return email; } @@ -145,6 +152,7 @@ public boolean getIsTeammate() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getProfilePhotoUrl() { return profilePhotoUrl; } @@ -156,6 +164,7 @@ public String getProfilePhotoUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTeamMemberId() { return teamMemberId; } 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 index e2f02980a..53508df39 100644 --- 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 @@ -18,19 +18,29 @@ 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; /** @@ -77,7 +87,7 @@ public class FullAccount extends Account { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FullAccount(String accountId, Name name, String email, boolean emailVerified, boolean disabled, String locale, String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo, String profilePhotoUrl, String country, FullTeam team, String teamMemberId) { + 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) { @@ -145,7 +155,7 @@ public FullAccount(String accountId, Name name, String email, boolean emailVerif * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FullAccount(String accountId, Name name, String email, boolean emailVerified, boolean disabled, String locale, String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo) { + 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); } @@ -154,6 +164,7 @@ public FullAccount(String accountId, Name name, String email, boolean emailVerif * * @return value for this field, never {@code null}. */ + @Nonnull public String getAccountId() { return accountId; } @@ -163,6 +174,7 @@ public String getAccountId() { * * @return value for this field, never {@code null}. */ + @Nonnull public Name getName() { return name; } @@ -174,6 +186,7 @@ public Name getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getEmail() { return email; } @@ -203,6 +216,7 @@ public boolean getDisabled() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getLocale() { return locale; } @@ -212,6 +226,7 @@ public String getLocale() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getReferralLink() { return referralLink; } @@ -233,6 +248,7 @@ public boolean getIsPaired() { * * @return value for this field, never {@code null}. */ + @Nonnull public AccountType getAccountType() { return accountType; } @@ -242,6 +258,7 @@ public AccountType getAccountType() { * * @return value for this field, never {@code null}. */ + @Nonnull public RootInfo getRootInfo() { return rootInfo; } @@ -251,6 +268,7 @@ public RootInfo getRootInfo() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getProfilePhotoUrl() { return profilePhotoUrl; } @@ -261,6 +279,7 @@ public String getProfilePhotoUrl() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getCountry() { return country; } @@ -270,6 +289,7 @@ public String getCountry() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public FullTeam getTeam() { return team; } @@ -280,6 +300,7 @@ public FullTeam getTeam() { * * @return value for this field, or {@code null} if not present. */ + @Nullable public String getTeamMemberId() { return teamMemberId; } 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 index 893f346ed..bef19bc4d 100644 --- 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 @@ -18,13 +18,17 @@ 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; /** @@ -40,7 +44,7 @@ public class FullTeam extends Team { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public FullTeam(String id, String name, TeamSharingPolicies sharingPolicies, OfficeAddInPolicy officeAddinPolicy) { + 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"); @@ -57,6 +61,7 @@ public FullTeam(String id, String name, TeamSharingPolicies sharingPolicies, Off * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -66,6 +71,7 @@ public String getId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } @@ -75,6 +81,7 @@ public String getName() { * * @return value for this field, never {@code null}. */ + @Nonnull public TeamSharingPolicies getSharingPolicies() { return sharingPolicies; } @@ -84,6 +91,7 @@ public TeamSharingPolicies getSharingPolicies() { * * @return value for this field, never {@code null}. */ + @Nonnull public OfficeAddInPolicy getOfficeAddinPolicy() { return officeAddinPolicy; } 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 index 63ebc7a32..6dbe1a43d 100644 --- 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 @@ -16,9 +16,12 @@ 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; /** @@ -29,7 +32,7 @@ public class GetAccountArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetAccountArg(String accountId) { + public GetAccountArg(@Nonnull String accountId) { if (accountId == null) { throw new IllegalArgumentException("Required value for 'accountId' is null"); } @@ -47,6 +50,7 @@ public GetAccountArg(String accountId) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAccountId() { return accountId; } 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 index 52c6e892c..1d67eb881 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -31,7 +34,7 @@ public class GetAccountBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public GetAccountBatchArg(List accountIds) { + public GetAccountBatchArg(@Nonnull List accountIds) { if (accountIds == null) { throw new IllegalArgumentException("Required value for 'accountIds' is null"); } @@ -58,6 +61,7 @@ public GetAccountBatchArg(List accountIds) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getAccountIds() { return accountIds; } 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 index 3e9a686b4..abe869300 100644 --- 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 @@ -16,16 +16,23 @@ 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; /** @@ -46,7 +53,7 @@ public class Name { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Name(String givenName, String surname, String familiarName, String displayName, String abbreviatedName) { + 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"); } @@ -74,6 +81,7 @@ public Name(String givenName, String surname, String familiarName, String displa * * @return value for this field, never {@code null}. */ + @Nonnull public String getGivenName() { return givenName; } @@ -83,6 +91,7 @@ public String getGivenName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getSurname() { return surname; } @@ -94,6 +103,7 @@ public String getSurname() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getFamiliarName() { return familiarName; } @@ -104,6 +114,7 @@ public String getFamiliarName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getDisplayName() { return displayName; } @@ -113,6 +124,7 @@ public String getDisplayName() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getAbbreviatedName() { return abbreviatedName; } 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 index c8f278926..551646bb6 100644 --- 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 @@ -16,6 +16,8 @@ import java.io.IOException; import java.util.Arrays; +import javax.annotation.Nonnull; + /** * Information about a user's space usage and quota. */ @@ -23,6 +25,7 @@ public class SpaceUsage { // struct users.SpaceUsage (users.stone) protected final long used; + @Nonnull protected final SpaceAllocation allocation; /** @@ -34,7 +37,7 @@ public class SpaceUsage { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public SpaceUsage(long used, SpaceAllocation allocation) { + public SpaceUsage(long used, @Nonnull SpaceAllocation allocation) { this.used = used; if (allocation == null) { throw new IllegalArgumentException("Required value for 'allocation' is null"); @@ -56,6 +59,7 @@ public long getUsed() { * * @return value for this field, never {@code null}. */ + @Nonnull public SpaceAllocation getAllocation() { return allocation; } 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 index afee93c2a..e264f0d09 100644 --- 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 @@ -16,13 +16,17 @@ 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; /** @@ -34,7 +38,7 @@ public class Team { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public Team(String id, String name) { + public Team(@Nonnull String id, @Nonnull String name) { if (id == null) { throw new IllegalArgumentException("Required value for 'id' is null"); } @@ -50,6 +54,7 @@ public Team(String id, String name) { * * @return value for this field, never {@code null}. */ + @Nonnull public String getId() { return id; } @@ -59,6 +64,7 @@ public String getId() { * * @return value for this field, never {@code null}. */ + @Nonnull public String getName() { return name; } 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 index 9d3d20331..6cba7c89b 100644 --- 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 @@ -17,12 +17,15 @@ 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; @@ -42,7 +45,7 @@ public class TeamSpaceAllocation { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public TeamSpaceAllocation(long used, long allocated, long userWithinTeamSpaceAllocated, MemberSpaceLimitType userWithinTeamSpaceLimitType, long userWithinTeamSpaceUsedCached) { + public TeamSpaceAllocation(long used, long allocated, long userWithinTeamSpaceAllocated, @Nonnull MemberSpaceLimitType userWithinTeamSpaceLimitType, long userWithinTeamSpaceUsedCached) { this.used = used; this.allocated = allocated; this.userWithinTeamSpaceAllocated = userWithinTeamSpaceAllocated; @@ -88,6 +91,7 @@ public long getUserWithinTeamSpaceAllocated() { * * @return value for this field, never {@code null}. */ + @Nonnull public MemberSpaceLimitType getUserWithinTeamSpaceLimitType() { return userWithinTeamSpaceLimitType; } 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 index e9fda78ea..75afe519e 100644 --- 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 @@ -17,9 +17,12 @@ import java.util.Arrays; import java.util.List; +import javax.annotation.Nonnull; + class UserFeaturesGetValuesBatchArg { // struct users.UserFeaturesGetValuesBatchArg (users.stone) + @Nonnull protected final List features; /** @@ -32,7 +35,7 @@ class UserFeaturesGetValuesBatchArg { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserFeaturesGetValuesBatchArg(List features) { + public UserFeaturesGetValuesBatchArg(@Nonnull List features) { if (features == null) { throw new IllegalArgumentException("Required value for 'features' is null"); } @@ -50,6 +53,7 @@ public UserFeaturesGetValuesBatchArg(List features) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getFeatures() { return features; } 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 index 870076d95..2915913ce 100644 --- 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 @@ -17,9 +17,12 @@ 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; /** @@ -30,7 +33,7 @@ public class UserFeaturesGetValuesBatchResult { * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ - public UserFeaturesGetValuesBatchResult(List values) { + public UserFeaturesGetValuesBatchResult(@Nonnull List values) { if (values == null) { throw new IllegalArgumentException("Required value for 'values' is null"); } @@ -46,6 +49,7 @@ public UserFeaturesGetValuesBatchResult(List values) { * * @return value for this field, never {@code null}. */ + @Nonnull public List getValues() { return values; } diff --git a/core/dependencies/runtimeClasspath.txt b/core/dependencies/runtimeClasspath.txt index 9f215f930..cb8c1810a 100644 --- a/core/dependencies/runtimeClasspath.txt +++ b/core/dependencies/runtimeClasspath.txt @@ -1,3 +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/core/generator/java/java.stoneg.py b/core/generator/java/java.stoneg.py index bd575d255..23137de83 100644 --- a/core/generator/java/java.stoneg.py +++ b/core/generator/java/java.stoneg.py @@ -825,6 +825,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) @@ -1890,6 +1898,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() @@ -3357,6 +3374,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)) @@ -3366,7 +3386,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 '' @@ -3393,7 +3413,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('') @@ -3433,6 +3453,9 @@ 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)) diff --git a/examples/android/dependencies/releaseRuntimeClasspath.txt b/examples/android/dependencies/releaseRuntimeClasspath.txt index 1a1032fa0..16f3912ea 100644 --- a/examples/android/dependencies/releaseRuntimeClasspath.txt +++ b/examples/android/dependencies/releaseRuntimeClasspath.txt @@ -54,6 +54,7 @@ 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 diff --git a/examples/java/dependencies/compileClasspath.txt b/examples/java/dependencies/compileClasspath.txt index 9f215f930..cb8c1810a 100644 --- a/examples/java/dependencies/compileClasspath.txt +++ b/examples/java/dependencies/compileClasspath.txt @@ -1,3 +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/examples/java/dependencies/runtimeClasspath.txt b/examples/java/dependencies/runtimeClasspath.txt index 9f215f930..cb8c1810a 100644 --- a/examples/java/dependencies/runtimeClasspath.txt +++ b/examples/java/dependencies/runtimeClasspath.txt @@ -1,3 +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/gradle/dropboxJavaSdkLibs.versions.toml b/gradle/dropboxJavaSdkLibs.versions.toml index da08792f2..f5e8adfda 100644 --- a/gradle/dropboxJavaSdkLibs.versions.toml +++ b/gradle/dropboxJavaSdkLibs.versions.toml @@ -29,6 +29,7 @@ jackson-databind = 'com.fasterxml.jackson.core:jackson-databind:2.15.0' jetty-server = "org.eclipse.jetty:jetty-server:11.0.15" json = "org.json:json:20230618" jakarta-servlet-api = 'jakarta.servlet:jakarta.servlet-api:5.0.0' +jsr305 = 'com.google.code.findbugs:jsr305:3.0.2' kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" } kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }