public static class ThumbnailArg.Builder
extends java.lang.Object
ThumbnailArg.| Modifier and Type | Field and Description | 
|---|---|
| protected ThumbnailFormat | format | 
| protected ThumbnailMode | mode | 
| protected java.lang.String | path | 
| protected ThumbnailSize | size | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | Builder(java.lang.String path) | 
| Modifier and Type | Method and Description | 
|---|---|
| ThumbnailArg | build()Builds an instance of  ThumbnailArgconfigured with this
 builder's values | 
| ThumbnailArg.Builder | withFormat(ThumbnailFormat format)Set value for optional field. | 
| ThumbnailArg.Builder | withMode(ThumbnailMode mode)Set value for optional field. | 
| ThumbnailArg.Builder | withSize(ThumbnailSize size)Set value for optional field. | 
protected final java.lang.String path
protected ThumbnailFormat format
protected ThumbnailSize size
protected ThumbnailMode mode
public ThumbnailArg.Builder withFormat(ThumbnailFormat format)
 If left unset or set to null, defaults to ThumbnailFormat.JPEG. 
format - The format for the thumbnail image, jpeg (default) or
     png. For  images that are photos, jpeg should be preferred, while
     png is  better for screenshots and digital arts. Must not be
     null. Defaults to ThumbnailFormat.JPEG when set
     to null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.public ThumbnailArg.Builder withSize(ThumbnailSize size)
 If left unset or set to null, defaults to ThumbnailSize.W64H64. 
size - The size for the thumbnail image. Must not be null. Defaults to ThumbnailSize.W64H64 when set to
     null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.public ThumbnailArg.Builder withMode(ThumbnailMode mode)
 If left unset or set to null, defaults to ThumbnailMode.STRICT. 
mode - How to resize and crop the image to achieve the desired
     size. Must not be null. Defaults to ThumbnailMode.STRICT when set to null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.public ThumbnailArg build()
ThumbnailArg configured with this
 builder's valuesThumbnailArg