@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class ErrorInfo extends Object implements org.apache.thrift.TBase<ErrorInfo,ErrorInfo._Fields>, Serializable, Cloneable, Comparable<ErrorInfo>
Modifier and Type | Class and Description |
---|---|
static class |
ErrorInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<ErrorInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
ErrorInfo() |
ErrorInfo(ErrorInfo other)
Performs a deep copy on other.
|
ErrorInfo(String error,
int error_time_secs) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(ErrorInfo other) |
ErrorInfo |
deepCopy() |
boolean |
equals(ErrorInfo that) |
boolean |
equals(Object that) |
ErrorInfo._Fields |
fieldForId(int fieldId) |
int |
get_error_time_secs() |
String |
get_error() |
String |
get_host() |
int |
get_port() |
Object |
getFieldValue(ErrorInfo._Fields field) |
int |
hashCode() |
boolean |
is_set_error_time_secs()
Returns true if field error_time_secs is set (has been assigned a value) and false otherwise
|
boolean |
is_set_error()
Returns true if field error is set (has been assigned a value) and false otherwise
|
boolean |
is_set_host()
Returns true if field host is set (has been assigned a value) and false otherwise
|
boolean |
is_set_port()
Returns true if field port is set (has been assigned a value) and false otherwise
|
boolean |
isSet(ErrorInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
set_error_isSet(boolean value) |
void |
set_error_time_secs_isSet(boolean value) |
void |
set_error_time_secs(int error_time_secs) |
void |
set_error(String error) |
void |
set_host_isSet(boolean value) |
void |
set_host(String host) |
void |
set_port_isSet(boolean value) |
void |
set_port(int port) |
void |
setFieldValue(ErrorInfo._Fields field,
Object value) |
String |
toString() |
void |
unset_error_time_secs() |
void |
unset_error() |
void |
unset_host() |
void |
unset_port() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<ErrorInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public ErrorInfo()
public ErrorInfo(String error, int error_time_secs)
public ErrorInfo(ErrorInfo other)
Performs a deep copy on other.
public ErrorInfo deepCopy()
deepCopy
in interface org.apache.thrift.TBase<ErrorInfo,ErrorInfo._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<ErrorInfo,ErrorInfo._Fields>
public String get_error()
public void set_error(String error)
public void unset_error()
public boolean is_set_error()
Returns true if field error is set (has been assigned a value) and false otherwise
public void set_error_isSet(boolean value)
public int get_error_time_secs()
public void set_error_time_secs(int error_time_secs)
public void unset_error_time_secs()
public boolean is_set_error_time_secs()
Returns true if field error_time_secs is set (has been assigned a value) and false otherwise
public void set_error_time_secs_isSet(boolean value)
public String get_host()
public void set_host(String host)
public void unset_host()
public boolean is_set_host()
Returns true if field host is set (has been assigned a value) and false otherwise
public void set_host_isSet(boolean value)
public int get_port()
public void set_port(int port)
public void unset_port()
public boolean is_set_port()
Returns true if field port is set (has been assigned a value) and false otherwise
public void set_port_isSet(boolean value)
public void setFieldValue(ErrorInfo._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<ErrorInfo,ErrorInfo._Fields>
public Object getFieldValue(ErrorInfo._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<ErrorInfo,ErrorInfo._Fields>
public boolean isSet(ErrorInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
isSet
in interface org.apache.thrift.TBase<ErrorInfo,ErrorInfo._Fields>
public boolean equals(ErrorInfo that)
public int compareTo(ErrorInfo other)
compareTo
in interface Comparable<ErrorInfo>
public ErrorInfo._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<ErrorInfo,ErrorInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<ErrorInfo,ErrorInfo._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<ErrorInfo,ErrorInfo._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.