public static class GetMetadataArg.Builder extends Object
GetMetadataArg
.Modifier and Type | Field and Description |
---|---|
protected boolean |
includeDeleted |
protected boolean |
includeHasExplicitSharedMembers |
protected boolean |
includeMediaInfo |
protected String |
path |
Modifier | Constructor and Description |
---|---|
protected |
Builder(String path) |
Modifier and Type | Method and Description |
---|---|
GetMetadataArg |
build()
Builds an instance of
GetMetadataArg configured with this
builder's values |
GetMetadataArg.Builder |
withIncludeDeleted(Boolean includeDeleted)
Set value for optional field.
|
GetMetadataArg.Builder |
withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers)
Set value for optional field.
|
GetMetadataArg.Builder |
withIncludeMediaInfo(Boolean includeMediaInfo)
Set value for optional field.
|
protected final String path
protected boolean includeMediaInfo
protected boolean includeDeleted
protected boolean includeHasExplicitSharedMembers
protected Builder(String path)
public GetMetadataArg.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 GetMetadataArg.Builder withIncludeDeleted(Boolean includeDeleted)
If left unset or set to null
, defaults to false
.
includeDeleted
- If true, DeletedMetadata
will be
returned for deleted file or folder, otherwise LookupError.NOT_FOUND
will be returned. Defaults to false
when set to null
.public GetMetadataArg.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 GetMetadataArg build()
GetMetadataArg
configured with this
builder's valuesGetMetadataArg