public class GetLicenseResp extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<GetLicenseResp>
| Modifier and Type | Class and Description |
|---|---|
static class |
GetLicenseResp.Builder |
| Modifier and Type | Field and Description |
|---|---|
ErrorCode |
code |
static int |
CODE |
byte[] |
error_msg |
static int |
ERROR_MSG |
HostAddr |
leader |
static int |
LEADER |
byte[] |
licenseContent |
static int |
LICENSECONTENT |
byte[] |
licenseKey |
static int |
LICENSEKEY |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
GetLicenseResp() |
GetLicenseResp(ErrorCode code,
HostAddr leader,
byte[] licenseContent,
byte[] licenseKey) |
GetLicenseResp(ErrorCode code,
HostAddr leader,
byte[] licenseContent,
byte[] licenseKey,
byte[] error_msg) |
GetLicenseResp(GetLicenseResp other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static GetLicenseResp.Builder |
builder() |
int |
compareTo(GetLicenseResp other) |
GetLicenseResp |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
ErrorCode |
getCode() |
byte[] |
getError_msg() |
Object |
getFieldValue(int fieldID) |
HostAddr |
getLeader() |
byte[] |
getLicenseContent() |
byte[] |
getLicenseKey() |
int |
hashCode() |
boolean |
isSetCode() |
boolean |
isSetError_msg() |
boolean |
isSetLeader() |
boolean |
isSetLicenseContent() |
boolean |
isSetLicenseKey() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
GetLicenseResp |
setCode(ErrorCode code) |
void |
setCodeIsSet(boolean __value) |
GetLicenseResp |
setError_msg(byte[] error_msg) |
void |
setError_msgIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
GetLicenseResp |
setLeader(HostAddr leader) |
void |
setLeaderIsSet(boolean __value) |
GetLicenseResp |
setLicenseContent(byte[] licenseContent) |
void |
setLicenseContentIsSet(boolean __value) |
GetLicenseResp |
setLicenseKey(byte[] licenseKey) |
void |
setLicenseKeyIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetCode() |
void |
unsetError_msg() |
void |
unsetLeader() |
void |
unsetLicenseContent() |
void |
unsetLicenseKey() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public HostAddr leader
public byte[] licenseContent
public byte[] licenseKey
public byte[] error_msg
public static final int CODE
public static final int LEADER
public static final int LICENSECONTENT
public static final int LICENSEKEY
public static final int ERROR_MSG
public GetLicenseResp()
public GetLicenseResp(ErrorCode code, HostAddr leader, byte[] licenseContent, byte[] licenseKey)
public GetLicenseResp(ErrorCode code, HostAddr leader, byte[] licenseContent, byte[] licenseKey, byte[] error_msg)
public GetLicenseResp(GetLicenseResp other)
public static GetLicenseResp.Builder builder()
public GetLicenseResp deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic GetLicenseResp setCode(ErrorCode code)
ErrorCodepublic void unsetCode()
public boolean isSetCode()
public void setCodeIsSet(boolean __value)
public HostAddr getLeader()
public GetLicenseResp setLeader(HostAddr leader)
public void unsetLeader()
public boolean isSetLeader()
public void setLeaderIsSet(boolean __value)
public byte[] getLicenseContent()
public GetLicenseResp setLicenseContent(byte[] licenseContent)
public void unsetLicenseContent()
public boolean isSetLicenseContent()
public void setLicenseContentIsSet(boolean __value)
public byte[] getLicenseKey()
public GetLicenseResp setLicenseKey(byte[] licenseKey)
public void unsetLicenseKey()
public boolean isSetLicenseKey()
public void setLicenseKeyIsSet(boolean __value)
public byte[] getError_msg()
public GetLicenseResp setError_msg(byte[] error_msg)
public void unsetError_msg()
public boolean isSetError_msg()
public void setError_msgIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(GetLicenseResp other)
compareTo in interface Comparable<GetLicenseResp>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 © 2024. All rights reserved.