public class UserItem extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<UserItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
UserItem.Builder |
| Modifier and Type | Field and Description |
|---|---|
byte[] |
account |
static int |
ACCOUNT |
boolean |
is_lock |
static int |
IS_LOCK |
int |
max_connections_per_hour |
static int |
MAX_CONNECTIONS_PER_HOUR |
int |
max_queries_per_hour |
static int |
MAX_QUERIES_PER_HOUR |
int |
max_updates_per_hour |
static int |
MAX_UPDATES_PER_HOUR |
int |
max_user_connections |
static int |
MAX_USER_CONNECTIONS |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
UserItem() |
UserItem(byte[] account,
boolean is_lock,
int max_queries_per_hour,
int max_updates_per_hour,
int max_connections_per_hour,
int max_user_connections) |
UserItem(UserItem other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static UserItem.Builder |
builder() |
int |
compareTo(UserItem other) |
UserItem |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
byte[] |
getAccount() |
Object |
getFieldValue(int fieldID) |
int |
getMax_connections_per_hour() |
int |
getMax_queries_per_hour() |
int |
getMax_updates_per_hour() |
int |
getMax_user_connections() |
int |
hashCode() |
boolean |
isIs_lock() |
boolean |
isSetAccount() |
boolean |
isSetIs_lock() |
boolean |
isSetMax_connections_per_hour() |
boolean |
isSetMax_queries_per_hour() |
boolean |
isSetMax_updates_per_hour() |
boolean |
isSetMax_user_connections() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
UserItem |
setAccount(byte[] account) |
void |
setAccountIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
UserItem |
setIs_lock(boolean is_lock) |
void |
setIs_lockIsSet(boolean __value) |
UserItem |
setMax_connections_per_hour(int max_connections_per_hour) |
void |
setMax_connections_per_hourIsSet(boolean __value) |
UserItem |
setMax_queries_per_hour(int max_queries_per_hour) |
void |
setMax_queries_per_hourIsSet(boolean __value) |
UserItem |
setMax_updates_per_hour(int max_updates_per_hour) |
void |
setMax_updates_per_hourIsSet(boolean __value) |
UserItem |
setMax_user_connections(int max_user_connections) |
void |
setMax_user_connectionsIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetAccount() |
void |
unsetIs_lock() |
void |
unsetMax_connections_per_hour() |
void |
unsetMax_queries_per_hour() |
void |
unsetMax_updates_per_hour() |
void |
unsetMax_user_connections() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public byte[] account
public boolean is_lock
public int max_queries_per_hour
public int max_updates_per_hour
public int max_connections_per_hour
public int max_user_connections
public static final int ACCOUNT
public static final int IS_LOCK
public static final int MAX_QUERIES_PER_HOUR
public static final int MAX_UPDATES_PER_HOUR
public static final int MAX_CONNECTIONS_PER_HOUR
public static final int MAX_USER_CONNECTIONS
public UserItem()
public UserItem(byte[] account,
boolean is_lock,
int max_queries_per_hour,
int max_updates_per_hour,
int max_connections_per_hour,
int max_user_connections)
public UserItem(UserItem other)
public static UserItem.Builder builder()
public UserItem deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic byte[] getAccount()
public UserItem setAccount(byte[] account)
public void unsetAccount()
public boolean isSetAccount()
public void setAccountIsSet(boolean __value)
public boolean isIs_lock()
public UserItem setIs_lock(boolean is_lock)
public void unsetIs_lock()
public boolean isSetIs_lock()
public void setIs_lockIsSet(boolean __value)
public int getMax_queries_per_hour()
public UserItem setMax_queries_per_hour(int max_queries_per_hour)
public void unsetMax_queries_per_hour()
public boolean isSetMax_queries_per_hour()
public void setMax_queries_per_hourIsSet(boolean __value)
public int getMax_updates_per_hour()
public UserItem setMax_updates_per_hour(int max_updates_per_hour)
public void unsetMax_updates_per_hour()
public boolean isSetMax_updates_per_hour()
public void setMax_updates_per_hourIsSet(boolean __value)
public int getMax_connections_per_hour()
public UserItem setMax_connections_per_hour(int max_connections_per_hour)
public void unsetMax_connections_per_hour()
public boolean isSetMax_connections_per_hour()
public void setMax_connections_per_hourIsSet(boolean __value)
public int getMax_user_connections()
public UserItem setMax_user_connections(int max_user_connections)
public void unsetMax_user_connections()
public boolean isSetMax_user_connections()
public void setMax_user_connectionsIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(UserItem other)
compareTo in interface Comparable<UserItem>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.