Package ai.heavy.thrift.server
Class Heavy.switch_database_args
- java.lang.Object
-
- ai.heavy.thrift.server.Heavy.switch_database_args
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Heavy.switch_database_args>,org.apache.thrift.TBase<Heavy.switch_database_args,Heavy.switch_database_args._Fields>,org.apache.thrift.TSerializable
- Enclosing class:
- Heavy
public static class Heavy.switch_database_args extends Object implements org.apache.thrift.TBase<Heavy.switch_database_args,Heavy.switch_database_args._Fields>, Serializable, Cloneable, Comparable<Heavy.switch_database_args>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHeavy.switch_database_args._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description Stringdbnamestatic Map<Heavy.switch_database_args._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringsession
-
Constructor Summary
Constructors Constructor Description switch_database_args()switch_database_args(Heavy.switch_database_args other)Performs a deep copy on other.switch_database_args(String session, String dbname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(Heavy.switch_database_args other)Heavy.switch_database_argsdeepCopy()booleanequals(Heavy.switch_database_args that)booleanequals(Object that)Heavy.switch_database_args._FieldsfieldForId(int fieldId)StringgetDbname()ObjectgetFieldValue(Heavy.switch_database_args._Fields field)StringgetSession()inthashCode()booleanisSet(Heavy.switch_database_args._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetDbname()Returns true if field dbname is set (has been assigned a value) and false otherwisebooleanisSetSession()Returns true if field session is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)Heavy.switch_database_argssetDbname(String dbname)voidsetDbnameIsSet(boolean value)voidsetFieldValue(Heavy.switch_database_args._Fields field, Object value)Heavy.switch_database_argssetSession(String session)voidsetSessionIsSet(boolean value)StringtoString()voidunsetDbname()voidunsetSession()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
session
public String session
-
dbname
public String dbname
-
metaDataMap
public static final Map<Heavy.switch_database_args._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
switch_database_args
public switch_database_args()
-
switch_database_args
public switch_database_args(Heavy.switch_database_args other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public Heavy.switch_database_args deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Heavy.switch_database_args,Heavy.switch_database_args._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<Heavy.switch_database_args,Heavy.switch_database_args._Fields>
-
getSession
public String getSession()
-
setSession
public Heavy.switch_database_args setSession(String session)
-
unsetSession
public void unsetSession()
-
isSetSession
public boolean isSetSession()
Returns true if field session is set (has been assigned a value) and false otherwise
-
setSessionIsSet
public void setSessionIsSet(boolean value)
-
getDbname
public String getDbname()
-
setDbname
public Heavy.switch_database_args setDbname(String dbname)
-
unsetDbname
public void unsetDbname()
-
isSetDbname
public boolean isSetDbname()
Returns true if field dbname is set (has been assigned a value) and false otherwise
-
setDbnameIsSet
public void setDbnameIsSet(boolean value)
-
setFieldValue
public void setFieldValue(Heavy.switch_database_args._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Heavy.switch_database_args,Heavy.switch_database_args._Fields>
-
getFieldValue
public Object getFieldValue(Heavy.switch_database_args._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Heavy.switch_database_args,Heavy.switch_database_args._Fields>
-
isSet
public boolean isSet(Heavy.switch_database_args._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<Heavy.switch_database_args,Heavy.switch_database_args._Fields>
-
equals
public boolean equals(Heavy.switch_database_args that)
-
compareTo
public int compareTo(Heavy.switch_database_args other)
- Specified by:
compareToin interfaceComparable<Heavy.switch_database_args>
-
fieldForId
public Heavy.switch_database_args._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Heavy.switch_database_args,Heavy.switch_database_args._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-