Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions core/api/core.api
Original file line number Diff line number Diff line change
Expand Up @@ -3747,7 +3747,6 @@ public class com/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder : com/dropbox
public fun withFormat (Lcom/dropbox/core/v2/files/ThumbnailFormat;)Lcom/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder;
public fun withMode (Lcom/dropbox/core/v2/files/ThumbnailMode;)Lcom/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder;
public fun withPreserveTransparency (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder;
public fun withQuality (Lcom/dropbox/core/v2/files/ThumbnailQuality;)Lcom/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder;
public fun withSize (Lcom/dropbox/core/v2/files/ThumbnailSize;)Lcom/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder;
}

Expand Down Expand Up @@ -3882,7 +3881,6 @@ public class com/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder : com/dropbo
public fun withFormat (Lcom/dropbox/core/v2/files/ThumbnailFormat;)Lcom/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder;
public fun withMode (Lcom/dropbox/core/v2/files/ThumbnailMode;)Lcom/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder;
public fun withPreserveTransparency (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder;
public fun withQuality (Lcom/dropbox/core/v2/files/ThumbnailQuality;)Lcom/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder;
public fun withSize (Lcom/dropbox/core/v2/files/ThumbnailSize;)Lcom/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder;
}

Expand Down Expand Up @@ -4797,7 +4795,6 @@ public class com/dropbox/core/v2/files/GetThumbnailBuilder : com/dropbox/core/v2
public fun withExcludeMediaInfo (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/GetThumbnailBuilder;
public fun withFormat (Lcom/dropbox/core/v2/files/ThumbnailFormat;)Lcom/dropbox/core/v2/files/GetThumbnailBuilder;
public fun withMode (Lcom/dropbox/core/v2/files/ThumbnailMode;)Lcom/dropbox/core/v2/files/GetThumbnailBuilder;
public fun withQuality (Lcom/dropbox/core/v2/files/ThumbnailQuality;)Lcom/dropbox/core/v2/files/GetThumbnailBuilder;
public fun withSize (Lcom/dropbox/core/v2/files/ThumbnailSize;)Lcom/dropbox/core/v2/files/GetThumbnailBuilder;
}

Expand Down Expand Up @@ -6477,16 +6474,14 @@ public class com/dropbox/core/v2/files/ThumbnailArg {
protected final field format Lcom/dropbox/core/v2/files/ThumbnailFormat;
protected final field mode Lcom/dropbox/core/v2/files/ThumbnailMode;
protected final field path Ljava/lang/String;
protected final field quality Lcom/dropbox/core/v2/files/ThumbnailQuality;
protected final field size Lcom/dropbox/core/v2/files/ThumbnailSize;
public fun <init> (Ljava/lang/String;)V
public fun <init> (Ljava/lang/String;Lcom/dropbox/core/v2/files/ThumbnailFormat;Lcom/dropbox/core/v2/files/ThumbnailSize;Lcom/dropbox/core/v2/files/ThumbnailMode;Lcom/dropbox/core/v2/files/ThumbnailQuality;Ljava/lang/Boolean;)V
public fun <init> (Ljava/lang/String;Lcom/dropbox/core/v2/files/ThumbnailFormat;Lcom/dropbox/core/v2/files/ThumbnailSize;Lcom/dropbox/core/v2/files/ThumbnailMode;Ljava/lang/Boolean;)V
public fun equals (Ljava/lang/Object;)Z
public fun getExcludeMediaInfo ()Ljava/lang/Boolean;
public fun getFormat ()Lcom/dropbox/core/v2/files/ThumbnailFormat;
public fun getMode ()Lcom/dropbox/core/v2/files/ThumbnailMode;
public fun getPath ()Ljava/lang/String;
public fun getQuality ()Lcom/dropbox/core/v2/files/ThumbnailQuality;
public fun getSize ()Lcom/dropbox/core/v2/files/ThumbnailSize;
public fun hashCode ()I
public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ThumbnailArg$Builder;
Expand All @@ -6499,14 +6494,12 @@ public class com/dropbox/core/v2/files/ThumbnailArg$Builder {
protected field format Lcom/dropbox/core/v2/files/ThumbnailFormat;
protected field mode Lcom/dropbox/core/v2/files/ThumbnailMode;
protected final field path Ljava/lang/String;
protected field quality Lcom/dropbox/core/v2/files/ThumbnailQuality;
protected field size Lcom/dropbox/core/v2/files/ThumbnailSize;
protected fun <init> (Ljava/lang/String;)V
public fun build ()Lcom/dropbox/core/v2/files/ThumbnailArg;
public fun withExcludeMediaInfo (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/ThumbnailArg$Builder;
public fun withFormat (Lcom/dropbox/core/v2/files/ThumbnailFormat;)Lcom/dropbox/core/v2/files/ThumbnailArg$Builder;
public fun withMode (Lcom/dropbox/core/v2/files/ThumbnailMode;)Lcom/dropbox/core/v2/files/ThumbnailArg$Builder;
public fun withQuality (Lcom/dropbox/core/v2/files/ThumbnailQuality;)Lcom/dropbox/core/v2/files/ThumbnailArg$Builder;
public fun withSize (Lcom/dropbox/core/v2/files/ThumbnailSize;)Lcom/dropbox/core/v2/files/ThumbnailArg$Builder;
}

Expand Down Expand Up @@ -6561,19 +6554,11 @@ public final class com/dropbox/core/v2/files/ThumbnailMode : java/lang/Enum {
public static fun values ()[Lcom/dropbox/core/v2/files/ThumbnailMode;
}

public final class com/dropbox/core/v2/files/ThumbnailQuality : java/lang/Enum {
public static final field QUALITY_80 Lcom/dropbox/core/v2/files/ThumbnailQuality;
public static final field QUALITY_90 Lcom/dropbox/core/v2/files/ThumbnailQuality;
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ThumbnailQuality;
public static fun values ()[Lcom/dropbox/core/v2/files/ThumbnailQuality;
}

public final class com/dropbox/core/v2/files/ThumbnailSize : java/lang/Enum {
public static final field W1024H768 Lcom/dropbox/core/v2/files/ThumbnailSize;
public static final field W128H128 Lcom/dropbox/core/v2/files/ThumbnailSize;
public static final field W2048H1536 Lcom/dropbox/core/v2/files/ThumbnailSize;
public static final field W256H256 Lcom/dropbox/core/v2/files/ThumbnailSize;
public static final field W3200H2400 Lcom/dropbox/core/v2/files/ThumbnailSize;
public static final field W32H32 Lcom/dropbox/core/v2/files/ThumbnailSize;
public static final field W480H320 Lcom/dropbox/core/v2/files/ThumbnailSize;
public static final field W640H480 Lcom/dropbox/core/v2/files/ThumbnailSize;
Expand Down Expand Up @@ -9086,7 +9071,6 @@ public class com/dropbox/core/v2/sharing/AddFileMemberBuilder {
public fun withAccessLevel (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/AddFileMemberBuilder;
public fun withAddMessageAsComment (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/AddFileMemberBuilder;
public fun withCustomMessage (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddFileMemberBuilder;
public fun withFpSealedResult (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddFileMemberBuilder;
public fun withQuiet (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/AddFileMemberBuilder;
}

Expand Down Expand Up @@ -9131,7 +9115,6 @@ public class com/dropbox/core/v2/sharing/AddFileMemberErrorException : com/dropb
public class com/dropbox/core/v2/sharing/AddFolderMemberBuilder {
public fun start ()V
public fun withCustomMessage (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddFolderMemberBuilder;
public fun withFpSealedResult (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddFolderMemberBuilder;
public fun withQuiet (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/AddFolderMemberBuilder;
}

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,6 @@ public DbxAppGetThumbnailV2Builder withMode(ThumbnailMode mode) {
return this;
}

/**
* Set value for optional field.
*
* <p> If left unset or set to {@code null}, defaults to {@code
* ThumbnailQuality.QUALITY_80}. </p>
*
* @param quality Field is only returned for "internal" callers. Quality of
* the thumbnail image. Must not be {@code null}. Defaults to {@code
* ThumbnailQuality.QUALITY_80} when set to {@code null}.
*
* @return this builder
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public DbxAppGetThumbnailV2Builder withQuality(ThumbnailQuality quality) {
this._builder.withQuality(quality);
return this;
}

/**
* Set value for optional field.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,6 @@ public DbxUserGetThumbnailV2Builder withMode(ThumbnailMode mode) {
return this;
}

/**
* Set value for optional field.
*
* <p> If left unset or set to {@code null}, defaults to {@code
* ThumbnailQuality.QUALITY_80}. </p>
*
* @param quality Field is only returned for "internal" callers. Quality of
* the thumbnail image. Must not be {@code null}. Defaults to {@code
* ThumbnailQuality.QUALITY_80} when set to {@code null}.
*
* @return this builder
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public DbxUserGetThumbnailV2Builder withQuality(ThumbnailQuality quality) {
this._builder.withQuality(quality);
return this;
}

/**
* Set value for optional field.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,6 @@ public GetThumbnailBuilder withMode(ThumbnailMode mode) {
return this;
}

/**
* Set value for optional field.
*
* <p> If left unset or set to {@code null}, defaults to {@code
* ThumbnailQuality.QUALITY_80}. </p>
*
* @param quality Field is only returned for "internal" callers. Quality of
* the thumbnail image. Must not be {@code null}. Defaults to {@code
* ThumbnailQuality.QUALITY_80} when set to {@code null}.
*
* @return this builder
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public GetThumbnailBuilder withQuality(ThumbnailQuality quality) {
this._builder.withQuality(quality);
return this;
}

/**
* Set value for optional field.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public class ThumbnailArg {
protected final ThumbnailSize size;
@Nonnull
protected final ThumbnailMode mode;
@Nonnull
protected final ThumbnailQuality quality;
@Nullable
protected final Boolean excludeMediaInfo;

Expand All @@ -51,8 +49,6 @@ public class ThumbnailArg {
* @param size The size for the thumbnail image. Must not be {@code null}.
* @param mode How to resize and crop the image to achieve the desired
* size. Must not be {@code null}.
* @param quality Field is only returned for "internal" callers. Quality of
* the thumbnail image. Must not be {@code null}.
* @param excludeMediaInfo Normally, {@link FileMetadata#getMediaInfo} is
* set for photo and video. When this flag is true, {@link
* FileMetadata#getMediaInfo} is not populated. This improves latency
Expand All @@ -61,7 +57,7 @@ public class ThumbnailArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public ThumbnailArg(@Nonnull String path, @Nonnull ThumbnailFormat format, @Nonnull ThumbnailSize size, @Nonnull ThumbnailMode mode, @Nonnull ThumbnailQuality quality, @Nullable Boolean excludeMediaInfo) {
public ThumbnailArg(@Nonnull String path, @Nonnull ThumbnailFormat format, @Nonnull ThumbnailSize size, @Nonnull ThumbnailMode mode, @Nullable Boolean excludeMediaInfo) {
if (path == null) {
throw new IllegalArgumentException("Required value for 'path' is null");
}
Expand All @@ -81,10 +77,6 @@ public ThumbnailArg(@Nonnull String path, @Nonnull ThumbnailFormat format, @Nonn
throw new IllegalArgumentException("Required value for 'mode' is null");
}
this.mode = mode;
if (quality == null) {
throw new IllegalArgumentException("Required value for 'quality' is null");
}
this.quality = quality;
this.excludeMediaInfo = excludeMediaInfo;
}

Expand All @@ -102,7 +94,7 @@ public ThumbnailArg(@Nonnull String path, @Nonnull ThumbnailFormat format, @Nonn
* preconditions.
*/
public ThumbnailArg(@Nonnull String path) {
this(path, ThumbnailFormat.JPEG, ThumbnailSize.W64H64, ThumbnailMode.STRICT, ThumbnailQuality.QUALITY_80, null);
this(path, ThumbnailFormat.JPEG, ThumbnailSize.W64H64, ThumbnailMode.STRICT, null);
}

/**
Expand Down Expand Up @@ -150,18 +142,6 @@ public ThumbnailMode getMode() {
return mode;
}

/**
* Field is only returned for "internal" callers. Quality of the thumbnail
* image.
*
* @return value for this field, or {@code null} if not present. Defaults to
* ThumbnailQuality.QUALITY_80.
*/
@Nonnull
public ThumbnailQuality getQuality() {
return quality;
}

/**
* Normally, {@link FileMetadata#getMediaInfo} is set for photo and video.
* When this flag is true, {@link FileMetadata#getMediaInfo} is not
Expand Down Expand Up @@ -201,7 +181,6 @@ public static class Builder {
protected ThumbnailFormat format;
protected ThumbnailSize size;
protected ThumbnailMode mode;
protected ThumbnailQuality quality;
protected Boolean excludeMediaInfo;

protected Builder(String path) {
Expand All @@ -215,7 +194,6 @@ protected Builder(String path) {
this.format = ThumbnailFormat.JPEG;
this.size = ThumbnailSize.W64H64;
this.mode = ThumbnailMode.STRICT;
this.quality = ThumbnailQuality.QUALITY_80;
this.excludeMediaInfo = null;
}

Expand Down Expand Up @@ -296,32 +274,6 @@ public Builder withMode(ThumbnailMode mode) {
return this;
}

/**
* Set value for optional field.
*
* <p> If left unset or set to {@code null}, defaults to {@code
* ThumbnailQuality.QUALITY_80}. </p>
*
* @param quality Field is only returned for "internal" callers.
* Quality of the thumbnail image. Must not be {@code null}.
* Defaults to {@code ThumbnailQuality.QUALITY_80} when set to
* {@code null}.
*
* @return this builder
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public Builder withQuality(ThumbnailQuality quality) {
if (quality != null) {
this.quality = quality;
}
else {
this.quality = ThumbnailQuality.QUALITY_80;
}
return this;
}

/**
* Set value for optional field.
*
Expand All @@ -344,7 +296,7 @@ public Builder withExcludeMediaInfo(Boolean excludeMediaInfo) {
* @return new instance of {@link ThumbnailArg}
*/
public ThumbnailArg build() {
return new ThumbnailArg(path, format, size, mode, quality, excludeMediaInfo);
return new ThumbnailArg(path, format, size, mode, excludeMediaInfo);
}
}

Expand All @@ -355,7 +307,6 @@ public int hashCode() {
this.format,
this.size,
this.mode,
this.quality,
this.excludeMediaInfo
});
return hash;
Expand All @@ -376,7 +327,6 @@ else if (obj.getClass().equals(this.getClass())) {
&& ((this.format == other.format) || (this.format.equals(other.format)))
&& ((this.size == other.size) || (this.size.equals(other.size)))
&& ((this.mode == other.mode) || (this.mode.equals(other.mode)))
&& ((this.quality == other.quality) || (this.quality.equals(other.quality)))
&& ((this.excludeMediaInfo == other.excludeMediaInfo) || (this.excludeMediaInfo != null && this.excludeMediaInfo.equals(other.excludeMediaInfo)))
;
}
Expand Down Expand Up @@ -421,8 +371,6 @@ public void serialize(ThumbnailArg value, JsonGenerator g, boolean collapse) thr
ThumbnailSize.Serializer.INSTANCE.serialize(value.size, g);
g.writeFieldName("mode");
ThumbnailMode.Serializer.INSTANCE.serialize(value.mode, g);
g.writeFieldName("quality");
ThumbnailQuality.Serializer.INSTANCE.serialize(value.quality, g);
if (value.excludeMediaInfo != null) {
g.writeFieldName("exclude_media_info");
StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.excludeMediaInfo, g);
Expand All @@ -445,7 +393,6 @@ public ThumbnailArg deserialize(JsonParser p, boolean collapsed) throws IOExcept
ThumbnailFormat f_format = ThumbnailFormat.JPEG;
ThumbnailSize f_size = ThumbnailSize.W64H64;
ThumbnailMode f_mode = ThumbnailMode.STRICT;
ThumbnailQuality f_quality = ThumbnailQuality.QUALITY_80;
Boolean f_excludeMediaInfo = null;
while (p.getCurrentToken() == JsonToken.FIELD_NAME) {
String field = p.getCurrentName();
Expand All @@ -462,9 +409,6 @@ else if ("size".equals(field)) {
else if ("mode".equals(field)) {
f_mode = ThumbnailMode.Serializer.INSTANCE.deserialize(p);
}
else if ("quality".equals(field)) {
f_quality = ThumbnailQuality.Serializer.INSTANCE.deserialize(p);
}
else if ("exclude_media_info".equals(field)) {
f_excludeMediaInfo = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p);
}
Expand All @@ -475,7 +419,7 @@ else if ("exclude_media_info".equals(field)) {
if (f_path == null) {
throw new JsonParseException(p, "Required field \"path\" missing.");
}
value = new ThumbnailArg(f_path, f_format, f_size, f_mode, f_quality, f_excludeMediaInfo);
value = new ThumbnailArg(f_path, f_format, f_size, f_mode, f_excludeMediaInfo);
}
else {
throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\"");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ public enum ThumbnailSize {
/**
* 2048 by 1536 px.
*/
W2048H1536,
/**
* Field is only returned for "internal" callers. 3200 by 2400 px.
*/
W3200H2400;
W2048H1536;

/**
* For internal use only.
Expand Down Expand Up @@ -104,10 +100,6 @@ public void serialize(ThumbnailSize value, JsonGenerator g) throws IOException,
g.writeString("w2048h1536");
break;
}
case W3200H2400: {
g.writeString("w3200h2400");
break;
}
default: {
throw new IllegalArgumentException("Unrecognized tag: " + value);
}
Expand Down Expand Up @@ -159,9 +151,6 @@ else if ("w1024h768".equals(tag)) {
else if ("w2048h1536".equals(tag)) {
value = ThumbnailSize.W2048H1536;
}
else if ("w3200h2400".equals(tag)) {
value = ThumbnailSize.W3200H2400;
}
else {
throw new JsonParseException(p, "Unknown tag: " + tag);
}
Expand Down
Loading
Loading