public class ListFolderArg extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ListFolderArg.Builder
Builder for
ListFolderArg . |
Modifier and Type | Field and Description |
---|---|
protected boolean |
includeDeleted |
protected boolean |
includeHasExplicitSharedMembers |
protected boolean |
includeMediaInfo |
protected String |
path |
protected boolean |
recursive |
Constructor and Description |
---|
ListFolderArg(String path)
The default values for unset fields will be used.
|
ListFolderArg(String path,
boolean recursive,
boolean includeMediaInfo,
boolean includeDeleted,
boolean includeHasExplicitSharedMembers)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
getIncludeDeleted()
If true, the results will include entries for files and folders that used
to exist but were deleted.
|
boolean |
getIncludeHasExplicitSharedMembers()
If true, the results will include a flag for each file indicating whether
or not that file has any explicit members.
|
boolean |
getIncludeMediaInfo()
If true,
FileMetadata.getMediaInfo() is set for photo and video. |
String |
getPath()
The path to the folder you want to see the contents of.
|
boolean |
getRecursive()
If true, the list folder operation will be applied recursively to all
subfolders and the response will contain contents of all subfolders.
|
int |
hashCode() |
static ListFolderArg.Builder |
newBuilder(String path)
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final String path
protected final boolean recursive
protected final boolean includeMediaInfo
protected final boolean includeDeleted
protected final boolean includeHasExplicitSharedMembers
public ListFolderArg(String path, boolean recursive, boolean includeMediaInfo, boolean includeDeleted, boolean includeHasExplicitSharedMembers)
newBuilder
to create instances of this class without
specifying values for all optional fields.path
- The path to the folder you want to see the contents of. Must
match pattern "(/(.|[\\r\\n])*)?
" and not be null
.recursive
- If true, the list folder operation will be applied
recursively to all subfolders and the response will contain contents
of all subfolders.includeMediaInfo
- If true, FileMetadata.getMediaInfo()
is
set for photo and video.includeDeleted
- If true, the results will include entries for
files and folders that used to exist but were deleted.includeHasExplicitSharedMembers
- If true, the results will include
a flag for each file indicating whether or not that file has any
explicit members.IllegalArgumentException
- If any argument does not meet its
preconditions.public ListFolderArg(String path)
path
- The path to the folder you want to see the contents of. Must
match pattern "(/(.|[\\r\\n])*)?
" and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getPath()
null
.public boolean getRecursive()
null
if not present. Defaults to
false.public boolean getIncludeMediaInfo()
FileMetadata.getMediaInfo()
is set for photo and video.null
if not present. Defaults to
false.public boolean getIncludeDeleted()
null
if not present. Defaults to
false.public boolean getIncludeHasExplicitSharedMembers()
null
if not present. Defaults to
false.public static ListFolderArg.Builder newBuilder(String path)
path
- The path to the folder you want to see the contents of. Must
match pattern "(/(.|[\\r\\n])*)?
" and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public String toStringMultiline()
The returned String may contain newlines.