public static class ListFolderArg.Builder extends Object
ListFolderArg
.Modifier and Type | Field and Description |
---|---|
protected boolean |
includeDeleted |
protected boolean |
includeHasExplicitSharedMembers |
protected boolean |
includeMediaInfo |
protected String |
path |
protected boolean |
recursive |
Modifier | Constructor and Description |
---|---|
protected |
Builder(String path) |
Modifier and Type | Method and Description |
---|---|
ListFolderArg |
build()
Builds an instance of
ListFolderArg configured with this
builder's values |
ListFolderArg.Builder |
withIncludeDeleted(Boolean includeDeleted)
Set value for optional field.
|
ListFolderArg.Builder |
withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers)
Set value for optional field.
|
ListFolderArg.Builder |
withIncludeMediaInfo(Boolean includeMediaInfo)
Set value for optional field.
|
ListFolderArg.Builder |
withRecursive(Boolean recursive)
Set value for optional field.
|
protected final String path
protected boolean recursive
protected boolean includeMediaInfo
protected boolean includeDeleted
protected boolean includeHasExplicitSharedMembers
protected Builder(String path)
public ListFolderArg.Builder withRecursive(Boolean recursive)
If left unset or set to null
, defaults to false
.
recursive
- If true, the list folder operation will be applied
recursively to all subfolders and the response will contain
contents of all subfolders. Defaults to false
when set to
null
.public ListFolderArg.Builder withIncludeMediaInfo(Boolean includeMediaInfo)
If left unset or set to null
, defaults to false
.
includeMediaInfo
- If true, FileMetadata.getMediaInfo()
is set for photo and video. Defaults to false
when set to
null
.public ListFolderArg.Builder withIncludeDeleted(Boolean includeDeleted)
If left unset or set to null
, defaults to false
.
includeDeleted
- If true, the results will include entries for
files and folders that used to exist but were deleted. Defaults
to false
when set to null
.public ListFolderArg.Builder withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers)
If left unset or set to null
, defaults to false
.
includeHasExplicitSharedMembers
- If true, the results will
include a flag for each file indicating whether or not that file
has any explicit members. Defaults to false
when set to
null
.public ListFolderArg build()
ListFolderArg
configured with this
builder's valuesListFolderArg