@Generated(value="Autogenerated by Thrift Compiler (0.9.3)",
date="2017-12-22")
public class PeerResponse_thrift
extends java.lang.Object
implements org.apache.thrift.TBase<PeerResponse_thrift,PeerResponse_thrift._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<PeerResponse_thrift>
| Modifier and Type | Class and Description |
|---|---|
static class |
PeerResponse_thrift._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<PeerResponse_thrift._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
responseType |
int |
serverId |
| Constructor and Description |
|---|
PeerResponse_thrift() |
PeerResponse_thrift(int responseType,
int serverId) |
PeerResponse_thrift(PeerResponse_thrift other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(PeerResponse_thrift other) |
PeerResponse_thrift |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(PeerResponse_thrift that) |
PeerResponse_thrift._Fields |
fieldForId(int fieldId) |
java.lang.Object |
getFieldValue(PeerResponse_thrift._Fields field) |
int |
getResponseType() |
int |
getServerId() |
int |
hashCode() |
boolean |
isSet(PeerResponse_thrift._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetResponseType()
Returns true if field responseType is set (has been assigned a value) and false otherwise
|
boolean |
isSetServerId()
Returns true if field serverId is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(PeerResponse_thrift._Fields field,
java.lang.Object value) |
PeerResponse_thrift |
setResponseType(int responseType) |
void |
setResponseTypeIsSet(boolean value) |
PeerResponse_thrift |
setServerId(int serverId) |
void |
setServerIdIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetResponseType() |
void |
unsetServerId() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public int responseType
public int serverId
public static final java.util.Map<PeerResponse_thrift._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public PeerResponse_thrift()
public PeerResponse_thrift(int responseType,
int serverId)
public PeerResponse_thrift(PeerResponse_thrift other)
public PeerResponse_thrift deepCopy()
deepCopy in interface org.apache.thrift.TBase<PeerResponse_thrift,PeerResponse_thrift._Fields>public void clear()
clear in interface org.apache.thrift.TBase<PeerResponse_thrift,PeerResponse_thrift._Fields>public int getResponseType()
public PeerResponse_thrift setResponseType(int responseType)
public void unsetResponseType()
public boolean isSetResponseType()
public void setResponseTypeIsSet(boolean value)
public int getServerId()
public PeerResponse_thrift setServerId(int serverId)
public void unsetServerId()
public boolean isSetServerId()
public void setServerIdIsSet(boolean value)
public void setFieldValue(PeerResponse_thrift._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<PeerResponse_thrift,PeerResponse_thrift._Fields>public java.lang.Object getFieldValue(PeerResponse_thrift._Fields field)
getFieldValue in interface org.apache.thrift.TBase<PeerResponse_thrift,PeerResponse_thrift._Fields>public boolean isSet(PeerResponse_thrift._Fields field)
isSet in interface org.apache.thrift.TBase<PeerResponse_thrift,PeerResponse_thrift._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(PeerResponse_thrift that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(PeerResponse_thrift other)
compareTo in interface java.lang.Comparable<PeerResponse_thrift>public PeerResponse_thrift._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<PeerResponse_thrift,PeerResponse_thrift._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<PeerResponse_thrift,PeerResponse_thrift._Fields>org.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TBase<PeerResponse_thrift,PeerResponse_thrift._Fields>org.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TException