public class LockResult
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LockResult.Builder
Builder for
LockResult . |
Modifier and Type | Field and Description |
---|---|
protected long |
expiresAt |
protected java.lang.String |
fileId |
Constructor and Description |
---|
LockResult()
None
|
LockResult(java.lang.String fileId,
long expiresAt)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getExpiresAt()
The timestamp after which the lock will expire, measured in seconds since
1970-01-01 00:00:00 UTC
|
java.lang.String |
getFileId() |
int |
hashCode() |
static LockResult.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String fileId
protected final long expiresAt
public LockResult(java.lang.String fileId, long expiresAt)
newBuilder
to create instances of this class without
specifying values for all optional fields.fileId
- Must not be null
.expiresAt
- The timestamp after which the lock will expire,
measured in seconds since 1970-01-01 00:00:00 UTC.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public LockResult()
The default values for unset fields will be used.
public java.lang.String getFileId()
null
if not present. Defaults to
"\"\"".public long getExpiresAt()
null
if not present. Defaults to
0L.public static LockResult.Builder newBuilder()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.