public class RoleItem extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<RoleItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
RoleItem.Builder |
| Modifier and Type | Field and Description |
|---|---|
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
RoleType |
role_type |
static int |
ROLE_TYPE |
int |
space_id |
static int |
SPACE_ID |
byte[] |
user_id |
static int |
USER_ID |
| Constructor and Description |
|---|
RoleItem() |
RoleItem(byte[] user_id,
int space_id,
RoleType role_type) |
RoleItem(RoleItem other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static RoleItem.Builder |
builder() |
int |
compareTo(RoleItem other) |
RoleItem |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
Object |
getFieldValue(int fieldID) |
RoleType |
getRole_type() |
int |
getSpace_id() |
byte[] |
getUser_id() |
int |
hashCode() |
boolean |
isSetRole_type() |
boolean |
isSetSpace_id() |
boolean |
isSetUser_id() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
void |
setFieldValue(int fieldID,
Object __value) |
RoleItem |
setRole_type(RoleType role_type) |
void |
setRole_typeIsSet(boolean __value) |
RoleItem |
setSpace_id(int space_id) |
void |
setSpace_idIsSet(boolean __value) |
RoleItem |
setUser_id(byte[] user_id) |
void |
setUser_idIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetRole_type() |
void |
unsetSpace_id() |
void |
unsetUser_id() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public byte[] user_id
public int space_id
public static final int USER_ID
public static final int SPACE_ID
public static final int ROLE_TYPE
public RoleItem()
public RoleItem(byte[] user_id,
int space_id,
RoleType role_type)
public RoleItem(RoleItem other)
public static RoleItem.Builder builder()
public RoleItem deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic byte[] getUser_id()
public RoleItem setUser_id(byte[] user_id)
public void unsetUser_id()
public boolean isSetUser_id()
public void setUser_idIsSet(boolean __value)
public int getSpace_id()
public RoleItem setSpace_id(int space_id)
public void unsetSpace_id()
public boolean isSetSpace_id()
public void setSpace_idIsSet(boolean __value)
public void unsetRole_type()
public boolean isSetRole_type()
public void setRole_typeIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(RoleItem other)
compareTo in interface Comparable<RoleItem>public void read(com.facebook.thrift.protocol.TProtocol iprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBaseread in interface com.facebook.thrift.TBaseiprot - Input protocolcom.facebook.thrift.TExceptionpublic void write(com.facebook.thrift.protocol.TProtocol oprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBasewrite in interface com.facebook.thrift.TBaseoprot - Output protocolcom.facebook.thrift.TExceptionpublic String toString(int indent, boolean prettyPrint)
com.facebook.thrift.TBasetoString in interface com.facebook.thrift.TBaseindent - The level of indentation desiredprettyPrint - Set pretty printing on/offpublic void validate()
throws com.facebook.thrift.TException
com.facebook.thrift.TExceptionCopyright © 2022. All rights reserved.