public class FileSharingInfo extends SharingInfo
| Modifier and Type | Field and Description |
|---|---|
protected String |
modifiedBy |
protected String |
parentSharedFolderId |
readOnly| Constructor and Description |
|---|
FileSharingInfo(boolean readOnly,
String parentSharedFolderId)
Sharing info for a file which is contained by a shared folder.
|
FileSharingInfo(boolean readOnly,
String parentSharedFolderId,
String modifiedBy)
Sharing info for a file which is contained by a shared folder.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getModifiedBy()
The last user who modified the file.
|
String |
getParentSharedFolderId()
ID of shared folder that holds this file.
|
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
getReadOnlyprotected final String parentSharedFolderId
protected final String modifiedBy
public FileSharingInfo(boolean readOnly,
String parentSharedFolderId,
String modifiedBy)
readOnly - True if the file or folder is inside a read-only shared
folder.parentSharedFolderId - ID of shared folder that holds this file.
Must match pattern "[-_0-9a-zA-Z:]+" and not be null.modifiedBy - The last user who modified the file. This field will
be null if the user's account has been deleted. Must have length of
at least 40 and have length of at most 40.IllegalArgumentException - If any argument does not meet its
preconditions.public FileSharingInfo(boolean readOnly,
String parentSharedFolderId)
The default values for unset fields will be used.
readOnly - True if the file or folder is inside a read-only shared
folder.parentSharedFolderId - ID of shared folder that holds this file.
Must match pattern "[-_0-9a-zA-Z:]+" and not be null.IllegalArgumentException - If any argument does not meet its
preconditions.public String getParentSharedFolderId()
null.public String getModifiedBy()
null if not present.public int hashCode()
hashCode in class SharingInfopublic boolean equals(Object obj)
equals in class SharingInfopublic String toString()
toString in class SharingInfopublic String toStringMultiline()
The returned String may contain newlines.
toStringMultiline in class SharingInfo