public class UserInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UserInfo.Builder
Builder for
UserInfo . |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
email |
protected java.lang.String |
id |
Constructor and Description |
---|
UserInfo()
None
|
UserInfo(java.lang.String id,
java.lang.String email)
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) |
java.lang.String |
getEmail()
Email associated with the user.
|
java.lang.String |
getId()
ID associated with the user.
|
int |
hashCode() |
static UserInfo.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.
|
public UserInfo(java.lang.String id, java.lang.String email)
newBuilder
to create instances of this class without
specifying values for all optional fields.id
- ID associated with the user. Must not be null
.email
- Email associated with the user. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public UserInfo()
The default values for unset fields will be used.
public java.lang.String getId()
null
if not present. Defaults to
"\"\"".public java.lang.String getEmail()
null
if not present. Defaults to
"\"\"".public static UserInfo.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.