Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.lingyi365.bms.thrift.pay.PayService Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.lingyi365.bms.thrift.pay;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2018-01-24")
public class PayService {
public interface Iface {
public GetAccountInfoRet GetAccountByUserId(java.lang.String userBaseId) throws org.apache.thrift.TException;
public GetFreezeRet Freeze(FreezeParam freezeParam) throws org.apache.thrift.TException;
public GetUnfreezeRet Unfreeze(java.lang.String userBaseId, java.lang.String orderId) throws org.apache.thrift.TException;
public GetReceiveRet ReceiveMoney(ReceiveMoneyParam param) throws org.apache.thrift.TException;
public GetBankReceiveRet BankReceiveMoney(BankReceiveParam param) throws org.apache.thrift.TException;
public GetPayRet PayMoney(PayMoneyParam param) throws org.apache.thrift.TException;
public GetSetDefaultPayChannelRet SetDefaultPayChannel(SetDefaultPayChannelParam param) throws org.apache.thrift.TException;
public GetDefaultPayChannelRet GetDefaultPayChannel(java.lang.String userBaseId) throws org.apache.thrift.TException;
public GetTradeDetailRet GetTradeDetail(TradeDetailParam tradeDetailParam) throws org.apache.thrift.TException;
public GetBankCashRet BankCash(java.lang.String tradeOrderId) throws org.apache.thrift.TException;
public GetCoinPayRet CoinPay(CoinParam param) throws org.apache.thrift.TException;
public GetReceiveCoinRet ReceiveCoin(CoinParam param) throws org.apache.thrift.TException;
public GetScorePayRet ScorePay(ScoreParam param) throws org.apache.thrift.TException;
public GetReceiveScoreRet ReceiveScore(ScoreParam param) throws org.apache.thrift.TException;
public GetScoreTradeDetailRet GetScoreTradeDetail(TradeDetailParam tradeDetailParam) throws org.apache.thrift.TException;
}
public interface AsyncIface {
public void GetAccountByUserId(java.lang.String userBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void Freeze(FreezeParam freezeParam, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void Unfreeze(java.lang.String userBaseId, java.lang.String orderId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void ReceiveMoney(ReceiveMoneyParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void BankReceiveMoney(BankReceiveParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void PayMoney(PayMoneyParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void SetDefaultPayChannel(SetDefaultPayChannelParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void GetDefaultPayChannel(java.lang.String userBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void GetTradeDetail(TradeDetailParam tradeDetailParam, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void BankCash(java.lang.String tradeOrderId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void CoinPay(CoinParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void ReceiveCoin(CoinParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void ScorePay(ScoreParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void ReceiveScore(ScoreParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void GetScoreTradeDetail(TradeDetailParam tradeDetailParam, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
public static class Factory implements org.apache.thrift.TServiceClientFactory {
public Factory() {}
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
public Client(org.apache.thrift.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public GetAccountInfoRet GetAccountByUserId(java.lang.String userBaseId) throws org.apache.thrift.TException
{
send_GetAccountByUserId(userBaseId);
return recv_GetAccountByUserId();
}
public void send_GetAccountByUserId(java.lang.String userBaseId) throws org.apache.thrift.TException
{
GetAccountByUserId_args args = new GetAccountByUserId_args();
args.setUserBaseId(userBaseId);
sendBase("GetAccountByUserId", args);
}
public GetAccountInfoRet recv_GetAccountByUserId() throws org.apache.thrift.TException
{
GetAccountByUserId_result result = new GetAccountByUserId_result();
receiveBase(result, "GetAccountByUserId");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetAccountByUserId failed: unknown result");
}
public GetFreezeRet Freeze(FreezeParam freezeParam) throws org.apache.thrift.TException
{
send_Freeze(freezeParam);
return recv_Freeze();
}
public void send_Freeze(FreezeParam freezeParam) throws org.apache.thrift.TException
{
Freeze_args args = new Freeze_args();
args.setFreezeParam(freezeParam);
sendBase("Freeze", args);
}
public GetFreezeRet recv_Freeze() throws org.apache.thrift.TException
{
Freeze_result result = new Freeze_result();
receiveBase(result, "Freeze");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "Freeze failed: unknown result");
}
public GetUnfreezeRet Unfreeze(java.lang.String userBaseId, java.lang.String orderId) throws org.apache.thrift.TException
{
send_Unfreeze(userBaseId, orderId);
return recv_Unfreeze();
}
public void send_Unfreeze(java.lang.String userBaseId, java.lang.String orderId) throws org.apache.thrift.TException
{
Unfreeze_args args = new Unfreeze_args();
args.setUserBaseId(userBaseId);
args.setOrderId(orderId);
sendBase("Unfreeze", args);
}
public GetUnfreezeRet recv_Unfreeze() throws org.apache.thrift.TException
{
Unfreeze_result result = new Unfreeze_result();
receiveBase(result, "Unfreeze");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "Unfreeze failed: unknown result");
}
public GetReceiveRet ReceiveMoney(ReceiveMoneyParam param) throws org.apache.thrift.TException
{
send_ReceiveMoney(param);
return recv_ReceiveMoney();
}
public void send_ReceiveMoney(ReceiveMoneyParam param) throws org.apache.thrift.TException
{
ReceiveMoney_args args = new ReceiveMoney_args();
args.setParam(param);
sendBase("ReceiveMoney", args);
}
public GetReceiveRet recv_ReceiveMoney() throws org.apache.thrift.TException
{
ReceiveMoney_result result = new ReceiveMoney_result();
receiveBase(result, "ReceiveMoney");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ReceiveMoney failed: unknown result");
}
public GetBankReceiveRet BankReceiveMoney(BankReceiveParam param) throws org.apache.thrift.TException
{
send_BankReceiveMoney(param);
return recv_BankReceiveMoney();
}
public void send_BankReceiveMoney(BankReceiveParam param) throws org.apache.thrift.TException
{
BankReceiveMoney_args args = new BankReceiveMoney_args();
args.setParam(param);
sendBase("BankReceiveMoney", args);
}
public GetBankReceiveRet recv_BankReceiveMoney() throws org.apache.thrift.TException
{
BankReceiveMoney_result result = new BankReceiveMoney_result();
receiveBase(result, "BankReceiveMoney");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "BankReceiveMoney failed: unknown result");
}
public GetPayRet PayMoney(PayMoneyParam param) throws org.apache.thrift.TException
{
send_PayMoney(param);
return recv_PayMoney();
}
public void send_PayMoney(PayMoneyParam param) throws org.apache.thrift.TException
{
PayMoney_args args = new PayMoney_args();
args.setParam(param);
sendBase("PayMoney", args);
}
public GetPayRet recv_PayMoney() throws org.apache.thrift.TException
{
PayMoney_result result = new PayMoney_result();
receiveBase(result, "PayMoney");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "PayMoney failed: unknown result");
}
public GetSetDefaultPayChannelRet SetDefaultPayChannel(SetDefaultPayChannelParam param) throws org.apache.thrift.TException
{
send_SetDefaultPayChannel(param);
return recv_SetDefaultPayChannel();
}
public void send_SetDefaultPayChannel(SetDefaultPayChannelParam param) throws org.apache.thrift.TException
{
SetDefaultPayChannel_args args = new SetDefaultPayChannel_args();
args.setParam(param);
sendBase("SetDefaultPayChannel", args);
}
public GetSetDefaultPayChannelRet recv_SetDefaultPayChannel() throws org.apache.thrift.TException
{
SetDefaultPayChannel_result result = new SetDefaultPayChannel_result();
receiveBase(result, "SetDefaultPayChannel");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "SetDefaultPayChannel failed: unknown result");
}
public GetDefaultPayChannelRet GetDefaultPayChannel(java.lang.String userBaseId) throws org.apache.thrift.TException
{
send_GetDefaultPayChannel(userBaseId);
return recv_GetDefaultPayChannel();
}
public void send_GetDefaultPayChannel(java.lang.String userBaseId) throws org.apache.thrift.TException
{
GetDefaultPayChannel_args args = new GetDefaultPayChannel_args();
args.setUserBaseId(userBaseId);
sendBase("GetDefaultPayChannel", args);
}
public GetDefaultPayChannelRet recv_GetDefaultPayChannel() throws org.apache.thrift.TException
{
GetDefaultPayChannel_result result = new GetDefaultPayChannel_result();
receiveBase(result, "GetDefaultPayChannel");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetDefaultPayChannel failed: unknown result");
}
public GetTradeDetailRet GetTradeDetail(TradeDetailParam tradeDetailParam) throws org.apache.thrift.TException
{
send_GetTradeDetail(tradeDetailParam);
return recv_GetTradeDetail();
}
public void send_GetTradeDetail(TradeDetailParam tradeDetailParam) throws org.apache.thrift.TException
{
GetTradeDetail_args args = new GetTradeDetail_args();
args.setTradeDetailParam(tradeDetailParam);
sendBase("GetTradeDetail", args);
}
public GetTradeDetailRet recv_GetTradeDetail() throws org.apache.thrift.TException
{
GetTradeDetail_result result = new GetTradeDetail_result();
receiveBase(result, "GetTradeDetail");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTradeDetail failed: unknown result");
}
public GetBankCashRet BankCash(java.lang.String tradeOrderId) throws org.apache.thrift.TException
{
send_BankCash(tradeOrderId);
return recv_BankCash();
}
public void send_BankCash(java.lang.String tradeOrderId) throws org.apache.thrift.TException
{
BankCash_args args = new BankCash_args();
args.setTradeOrderId(tradeOrderId);
sendBase("BankCash", args);
}
public GetBankCashRet recv_BankCash() throws org.apache.thrift.TException
{
BankCash_result result = new BankCash_result();
receiveBase(result, "BankCash");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "BankCash failed: unknown result");
}
public GetCoinPayRet CoinPay(CoinParam param) throws org.apache.thrift.TException
{
send_CoinPay(param);
return recv_CoinPay();
}
public void send_CoinPay(CoinParam param) throws org.apache.thrift.TException
{
CoinPay_args args = new CoinPay_args();
args.setParam(param);
sendBase("CoinPay", args);
}
public GetCoinPayRet recv_CoinPay() throws org.apache.thrift.TException
{
CoinPay_result result = new CoinPay_result();
receiveBase(result, "CoinPay");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CoinPay failed: unknown result");
}
public GetReceiveCoinRet ReceiveCoin(CoinParam param) throws org.apache.thrift.TException
{
send_ReceiveCoin(param);
return recv_ReceiveCoin();
}
public void send_ReceiveCoin(CoinParam param) throws org.apache.thrift.TException
{
ReceiveCoin_args args = new ReceiveCoin_args();
args.setParam(param);
sendBase("ReceiveCoin", args);
}
public GetReceiveCoinRet recv_ReceiveCoin() throws org.apache.thrift.TException
{
ReceiveCoin_result result = new ReceiveCoin_result();
receiveBase(result, "ReceiveCoin");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ReceiveCoin failed: unknown result");
}
public GetScorePayRet ScorePay(ScoreParam param) throws org.apache.thrift.TException
{
send_ScorePay(param);
return recv_ScorePay();
}
public void send_ScorePay(ScoreParam param) throws org.apache.thrift.TException
{
ScorePay_args args = new ScorePay_args();
args.setParam(param);
sendBase("ScorePay", args);
}
public GetScorePayRet recv_ScorePay() throws org.apache.thrift.TException
{
ScorePay_result result = new ScorePay_result();
receiveBase(result, "ScorePay");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ScorePay failed: unknown result");
}
public GetReceiveScoreRet ReceiveScore(ScoreParam param) throws org.apache.thrift.TException
{
send_ReceiveScore(param);
return recv_ReceiveScore();
}
public void send_ReceiveScore(ScoreParam param) throws org.apache.thrift.TException
{
ReceiveScore_args args = new ReceiveScore_args();
args.setParam(param);
sendBase("ReceiveScore", args);
}
public GetReceiveScoreRet recv_ReceiveScore() throws org.apache.thrift.TException
{
ReceiveScore_result result = new ReceiveScore_result();
receiveBase(result, "ReceiveScore");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ReceiveScore failed: unknown result");
}
public GetScoreTradeDetailRet GetScoreTradeDetail(TradeDetailParam tradeDetailParam) throws org.apache.thrift.TException
{
send_GetScoreTradeDetail(tradeDetailParam);
return recv_GetScoreTradeDetail();
}
public void send_GetScoreTradeDetail(TradeDetailParam tradeDetailParam) throws org.apache.thrift.TException
{
GetScoreTradeDetail_args args = new GetScoreTradeDetail_args();
args.setTradeDetailParam(tradeDetailParam);
sendBase("GetScoreTradeDetail", args);
}
public GetScoreTradeDetailRet recv_GetScoreTradeDetail() throws org.apache.thrift.TException
{
GetScoreTradeDetail_result result = new GetScoreTradeDetail_result();
receiveBase(result, "GetScoreTradeDetail");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetScoreTradeDetail failed: unknown result");
}
}
public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory {
private org.apache.thrift.async.TAsyncClientManager clientManager;
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
}
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
super(protocolFactory, clientManager, transport);
}
public void GetAccountByUserId(java.lang.String userBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetAccountByUserId_call method_call = new GetAccountByUserId_call(userBaseId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetAccountByUserId_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String userBaseId;
public GetAccountByUserId_call(java.lang.String userBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.userBaseId = userBaseId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetAccountByUserId", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetAccountByUserId_args args = new GetAccountByUserId_args();
args.setUserBaseId(userBaseId);
args.write(prot);
prot.writeMessageEnd();
}
public GetAccountInfoRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetAccountByUserId();
}
}
public void Freeze(FreezeParam freezeParam, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
Freeze_call method_call = new Freeze_call(freezeParam, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class Freeze_call extends org.apache.thrift.async.TAsyncMethodCall {
private FreezeParam freezeParam;
public Freeze_call(FreezeParam freezeParam, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.freezeParam = freezeParam;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("Freeze", org.apache.thrift.protocol.TMessageType.CALL, 0));
Freeze_args args = new Freeze_args();
args.setFreezeParam(freezeParam);
args.write(prot);
prot.writeMessageEnd();
}
public GetFreezeRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_Freeze();
}
}
public void Unfreeze(java.lang.String userBaseId, java.lang.String orderId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
Unfreeze_call method_call = new Unfreeze_call(userBaseId, orderId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class Unfreeze_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String userBaseId;
private java.lang.String orderId;
public Unfreeze_call(java.lang.String userBaseId, java.lang.String orderId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.userBaseId = userBaseId;
this.orderId = orderId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("Unfreeze", org.apache.thrift.protocol.TMessageType.CALL, 0));
Unfreeze_args args = new Unfreeze_args();
args.setUserBaseId(userBaseId);
args.setOrderId(orderId);
args.write(prot);
prot.writeMessageEnd();
}
public GetUnfreezeRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_Unfreeze();
}
}
public void ReceiveMoney(ReceiveMoneyParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
ReceiveMoney_call method_call = new ReceiveMoney_call(param, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class ReceiveMoney_call extends org.apache.thrift.async.TAsyncMethodCall {
private ReceiveMoneyParam param;
public ReceiveMoney_call(ReceiveMoneyParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.param = param;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ReceiveMoney", org.apache.thrift.protocol.TMessageType.CALL, 0));
ReceiveMoney_args args = new ReceiveMoney_args();
args.setParam(param);
args.write(prot);
prot.writeMessageEnd();
}
public GetReceiveRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_ReceiveMoney();
}
}
public void BankReceiveMoney(BankReceiveParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
BankReceiveMoney_call method_call = new BankReceiveMoney_call(param, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class BankReceiveMoney_call extends org.apache.thrift.async.TAsyncMethodCall {
private BankReceiveParam param;
public BankReceiveMoney_call(BankReceiveParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.param = param;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("BankReceiveMoney", org.apache.thrift.protocol.TMessageType.CALL, 0));
BankReceiveMoney_args args = new BankReceiveMoney_args();
args.setParam(param);
args.write(prot);
prot.writeMessageEnd();
}
public GetBankReceiveRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_BankReceiveMoney();
}
}
public void PayMoney(PayMoneyParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
PayMoney_call method_call = new PayMoney_call(param, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class PayMoney_call extends org.apache.thrift.async.TAsyncMethodCall {
private PayMoneyParam param;
public PayMoney_call(PayMoneyParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.param = param;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("PayMoney", org.apache.thrift.protocol.TMessageType.CALL, 0));
PayMoney_args args = new PayMoney_args();
args.setParam(param);
args.write(prot);
prot.writeMessageEnd();
}
public GetPayRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_PayMoney();
}
}
public void SetDefaultPayChannel(SetDefaultPayChannelParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
SetDefaultPayChannel_call method_call = new SetDefaultPayChannel_call(param, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class SetDefaultPayChannel_call extends org.apache.thrift.async.TAsyncMethodCall {
private SetDefaultPayChannelParam param;
public SetDefaultPayChannel_call(SetDefaultPayChannelParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.param = param;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("SetDefaultPayChannel", org.apache.thrift.protocol.TMessageType.CALL, 0));
SetDefaultPayChannel_args args = new SetDefaultPayChannel_args();
args.setParam(param);
args.write(prot);
prot.writeMessageEnd();
}
public GetSetDefaultPayChannelRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_SetDefaultPayChannel();
}
}
public void GetDefaultPayChannel(java.lang.String userBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetDefaultPayChannel_call method_call = new GetDefaultPayChannel_call(userBaseId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetDefaultPayChannel_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String userBaseId;
public GetDefaultPayChannel_call(java.lang.String userBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.userBaseId = userBaseId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetDefaultPayChannel", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetDefaultPayChannel_args args = new GetDefaultPayChannel_args();
args.setUserBaseId(userBaseId);
args.write(prot);
prot.writeMessageEnd();
}
public GetDefaultPayChannelRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetDefaultPayChannel();
}
}
public void GetTradeDetail(TradeDetailParam tradeDetailParam, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetTradeDetail_call method_call = new GetTradeDetail_call(tradeDetailParam, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetTradeDetail_call extends org.apache.thrift.async.TAsyncMethodCall {
private TradeDetailParam tradeDetailParam;
public GetTradeDetail_call(TradeDetailParam tradeDetailParam, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tradeDetailParam = tradeDetailParam;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTradeDetail", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetTradeDetail_args args = new GetTradeDetail_args();
args.setTradeDetailParam(tradeDetailParam);
args.write(prot);
prot.writeMessageEnd();
}
public GetTradeDetailRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetTradeDetail();
}
}
public void BankCash(java.lang.String tradeOrderId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
BankCash_call method_call = new BankCash_call(tradeOrderId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class BankCash_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String tradeOrderId;
public BankCash_call(java.lang.String tradeOrderId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tradeOrderId = tradeOrderId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("BankCash", org.apache.thrift.protocol.TMessageType.CALL, 0));
BankCash_args args = new BankCash_args();
args.setTradeOrderId(tradeOrderId);
args.write(prot);
prot.writeMessageEnd();
}
public GetBankCashRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_BankCash();
}
}
public void CoinPay(CoinParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
CoinPay_call method_call = new CoinPay_call(param, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class CoinPay_call extends org.apache.thrift.async.TAsyncMethodCall {
private CoinParam param;
public CoinPay_call(CoinParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.param = param;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CoinPay", org.apache.thrift.protocol.TMessageType.CALL, 0));
CoinPay_args args = new CoinPay_args();
args.setParam(param);
args.write(prot);
prot.writeMessageEnd();
}
public GetCoinPayRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_CoinPay();
}
}
public void ReceiveCoin(CoinParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
ReceiveCoin_call method_call = new ReceiveCoin_call(param, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class ReceiveCoin_call extends org.apache.thrift.async.TAsyncMethodCall {
private CoinParam param;
public ReceiveCoin_call(CoinParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.param = param;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ReceiveCoin", org.apache.thrift.protocol.TMessageType.CALL, 0));
ReceiveCoin_args args = new ReceiveCoin_args();
args.setParam(param);
args.write(prot);
prot.writeMessageEnd();
}
public GetReceiveCoinRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_ReceiveCoin();
}
}
public void ScorePay(ScoreParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
ScorePay_call method_call = new ScorePay_call(param, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class ScorePay_call extends org.apache.thrift.async.TAsyncMethodCall {
private ScoreParam param;
public ScorePay_call(ScoreParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.param = param;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ScorePay", org.apache.thrift.protocol.TMessageType.CALL, 0));
ScorePay_args args = new ScorePay_args();
args.setParam(param);
args.write(prot);
prot.writeMessageEnd();
}
public GetScorePayRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_ScorePay();
}
}
public void ReceiveScore(ScoreParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
ReceiveScore_call method_call = new ReceiveScore_call(param, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class ReceiveScore_call extends org.apache.thrift.async.TAsyncMethodCall {
private ScoreParam param;
public ReceiveScore_call(ScoreParam param, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.param = param;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ReceiveScore", org.apache.thrift.protocol.TMessageType.CALL, 0));
ReceiveScore_args args = new ReceiveScore_args();
args.setParam(param);
args.write(prot);
prot.writeMessageEnd();
}
public GetReceiveScoreRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_ReceiveScore();
}
}
public void GetScoreTradeDetail(TradeDetailParam tradeDetailParam, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetScoreTradeDetail_call method_call = new GetScoreTradeDetail_call(tradeDetailParam, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetScoreTradeDetail_call extends org.apache.thrift.async.TAsyncMethodCall {
private TradeDetailParam tradeDetailParam;
public GetScoreTradeDetail_call(TradeDetailParam tradeDetailParam, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tradeDetailParam = tradeDetailParam;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetScoreTradeDetail", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetScoreTradeDetail_args args = new GetScoreTradeDetail_args();
args.setTradeDetailParam(tradeDetailParam);
args.write(prot);
prot.writeMessageEnd();
}
public GetScoreTradeDetailRet getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetScoreTradeDetail();
}
}
}
public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new java.util.HashMap>()));
}
protected Processor(I iface, java.util.Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static java.util.Map> getProcessMap(java.util.Map> processMap) {
processMap.put("GetAccountByUserId", new GetAccountByUserId());
processMap.put("Freeze", new Freeze());
processMap.put("Unfreeze", new Unfreeze());
processMap.put("ReceiveMoney", new ReceiveMoney());
processMap.put("BankReceiveMoney", new BankReceiveMoney());
processMap.put("PayMoney", new PayMoney());
processMap.put("SetDefaultPayChannel", new SetDefaultPayChannel());
processMap.put("GetDefaultPayChannel", new GetDefaultPayChannel());
processMap.put("GetTradeDetail", new GetTradeDetail());
processMap.put("BankCash", new BankCash());
processMap.put("CoinPay", new CoinPay());
processMap.put("ReceiveCoin", new ReceiveCoin());
processMap.put("ScorePay", new ScorePay());
processMap.put("ReceiveScore", new ReceiveScore());
processMap.put("GetScoreTradeDetail", new GetScoreTradeDetail());
return processMap;
}
public static class GetAccountByUserId extends org.apache.thrift.ProcessFunction {
public GetAccountByUserId() {
super("GetAccountByUserId");
}
public GetAccountByUserId_args getEmptyArgsInstance() {
return new GetAccountByUserId_args();
}
protected boolean isOneway() {
return false;
}
public GetAccountByUserId_result getResult(I iface, GetAccountByUserId_args args) throws org.apache.thrift.TException {
GetAccountByUserId_result result = new GetAccountByUserId_result();
result.success = iface.GetAccountByUserId(args.userBaseId);
return result;
}
}
public static class Freeze extends org.apache.thrift.ProcessFunction {
public Freeze() {
super("Freeze");
}
public Freeze_args getEmptyArgsInstance() {
return new Freeze_args();
}
protected boolean isOneway() {
return false;
}
public Freeze_result getResult(I iface, Freeze_args args) throws org.apache.thrift.TException {
Freeze_result result = new Freeze_result();
result.success = iface.Freeze(args.freezeParam);
return result;
}
}
public static class Unfreeze extends org.apache.thrift.ProcessFunction {
public Unfreeze() {
super("Unfreeze");
}
public Unfreeze_args getEmptyArgsInstance() {
return new Unfreeze_args();
}
protected boolean isOneway() {
return false;
}
public Unfreeze_result getResult(I iface, Unfreeze_args args) throws org.apache.thrift.TException {
Unfreeze_result result = new Unfreeze_result();
result.success = iface.Unfreeze(args.userBaseId, args.orderId);
return result;
}
}
public static class ReceiveMoney extends org.apache.thrift.ProcessFunction {
public ReceiveMoney() {
super("ReceiveMoney");
}
public ReceiveMoney_args getEmptyArgsInstance() {
return new ReceiveMoney_args();
}
protected boolean isOneway() {
return false;
}
public ReceiveMoney_result getResult(I iface, ReceiveMoney_args args) throws org.apache.thrift.TException {
ReceiveMoney_result result = new ReceiveMoney_result();
result.success = iface.ReceiveMoney(args.param);
return result;
}
}
public static class BankReceiveMoney extends org.apache.thrift.ProcessFunction {
public BankReceiveMoney() {
super("BankReceiveMoney");
}
public BankReceiveMoney_args getEmptyArgsInstance() {
return new BankReceiveMoney_args();
}
protected boolean isOneway() {
return false;
}
public BankReceiveMoney_result getResult(I iface, BankReceiveMoney_args args) throws org.apache.thrift.TException {
BankReceiveMoney_result result = new BankReceiveMoney_result();
result.success = iface.BankReceiveMoney(args.param);
return result;
}
}
public static class PayMoney extends org.apache.thrift.ProcessFunction {
public PayMoney() {
super("PayMoney");
}
public PayMoney_args getEmptyArgsInstance() {
return new PayMoney_args();
}
protected boolean isOneway() {
return false;
}
public PayMoney_result getResult(I iface, PayMoney_args args) throws org.apache.thrift.TException {
PayMoney_result result = new PayMoney_result();
result.success = iface.PayMoney(args.param);
return result;
}
}
public static class SetDefaultPayChannel extends org.apache.thrift.ProcessFunction {
public SetDefaultPayChannel() {
super("SetDefaultPayChannel");
}
public SetDefaultPayChannel_args getEmptyArgsInstance() {
return new SetDefaultPayChannel_args();
}
protected boolean isOneway() {
return false;
}
public SetDefaultPayChannel_result getResult(I iface, SetDefaultPayChannel_args args) throws org.apache.thrift.TException {
SetDefaultPayChannel_result result = new SetDefaultPayChannel_result();
result.success = iface.SetDefaultPayChannel(args.param);
return result;
}
}
public static class GetDefaultPayChannel extends org.apache.thrift.ProcessFunction {
public GetDefaultPayChannel() {
super("GetDefaultPayChannel");
}
public GetDefaultPayChannel_args getEmptyArgsInstance() {
return new GetDefaultPayChannel_args();
}
protected boolean isOneway() {
return false;
}
public GetDefaultPayChannel_result getResult(I iface, GetDefaultPayChannel_args args) throws org.apache.thrift.TException {
GetDefaultPayChannel_result result = new GetDefaultPayChannel_result();
result.success = iface.GetDefaultPayChannel(args.userBaseId);
return result;
}
}
public static class GetTradeDetail extends org.apache.thrift.ProcessFunction {
public GetTradeDetail() {
super("GetTradeDetail");
}
public GetTradeDetail_args getEmptyArgsInstance() {
return new GetTradeDetail_args();
}
protected boolean isOneway() {
return false;
}
public GetTradeDetail_result getResult(I iface, GetTradeDetail_args args) throws org.apache.thrift.TException {
GetTradeDetail_result result = new GetTradeDetail_result();
result.success = iface.GetTradeDetail(args.tradeDetailParam);
return result;
}
}
public static class BankCash extends org.apache.thrift.ProcessFunction {
public BankCash() {
super("BankCash");
}
public BankCash_args getEmptyArgsInstance() {
return new BankCash_args();
}
protected boolean isOneway() {
return false;
}
public BankCash_result getResult(I iface, BankCash_args args) throws org.apache.thrift.TException {
BankCash_result result = new BankCash_result();
result.success = iface.BankCash(args.tradeOrderId);
return result;
}
}
public static class CoinPay extends org.apache.thrift.ProcessFunction {
public CoinPay() {
super("CoinPay");
}
public CoinPay_args getEmptyArgsInstance() {
return new CoinPay_args();
}
protected boolean isOneway() {
return false;
}
public CoinPay_result getResult(I iface, CoinPay_args args) throws org.apache.thrift.TException {
CoinPay_result result = new CoinPay_result();
result.success = iface.CoinPay(args.param);
return result;
}
}
public static class ReceiveCoin extends org.apache.thrift.ProcessFunction {
public ReceiveCoin() {
super("ReceiveCoin");
}
public ReceiveCoin_args getEmptyArgsInstance() {
return new ReceiveCoin_args();
}
protected boolean isOneway() {
return false;
}
public ReceiveCoin_result getResult(I iface, ReceiveCoin_args args) throws org.apache.thrift.TException {
ReceiveCoin_result result = new ReceiveCoin_result();
result.success = iface.ReceiveCoin(args.param);
return result;
}
}
public static class ScorePay extends org.apache.thrift.ProcessFunction {
public ScorePay() {
super("ScorePay");
}
public ScorePay_args getEmptyArgsInstance() {
return new ScorePay_args();
}
protected boolean isOneway() {
return false;
}
public ScorePay_result getResult(I iface, ScorePay_args args) throws org.apache.thrift.TException {
ScorePay_result result = new ScorePay_result();
result.success = iface.ScorePay(args.param);
return result;
}
}
public static class ReceiveScore extends org.apache.thrift.ProcessFunction {
public ReceiveScore() {
super("ReceiveScore");
}
public ReceiveScore_args getEmptyArgsInstance() {
return new ReceiveScore_args();
}
protected boolean isOneway() {
return false;
}
public ReceiveScore_result getResult(I iface, ReceiveScore_args args) throws org.apache.thrift.TException {
ReceiveScore_result result = new ReceiveScore_result();
result.success = iface.ReceiveScore(args.param);
return result;
}
}
public static class GetScoreTradeDetail extends org.apache.thrift.ProcessFunction {
public GetScoreTradeDetail() {
super("GetScoreTradeDetail");
}
public GetScoreTradeDetail_args getEmptyArgsInstance() {
return new GetScoreTradeDetail_args();
}
protected boolean isOneway() {
return false;
}
public GetScoreTradeDetail_result getResult(I iface, GetScoreTradeDetail_args args) throws org.apache.thrift.TException {
GetScoreTradeDetail_result result = new GetScoreTradeDetail_result();
result.success = iface.GetScoreTradeDetail(args.tradeDetailParam);
return result;
}
}
}
public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor {
private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName());
public AsyncProcessor(I iface) {
super(iface, getProcessMap(new java.util.HashMap>()));
}
protected AsyncProcessor(I iface, java.util.Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static java.util.Map> getProcessMap(java.util.Map> processMap) {
processMap.put("GetAccountByUserId", new GetAccountByUserId());
processMap.put("Freeze", new Freeze());
processMap.put("Unfreeze", new Unfreeze());
processMap.put("ReceiveMoney", new ReceiveMoney());
processMap.put("BankReceiveMoney", new BankReceiveMoney());
processMap.put("PayMoney", new PayMoney());
processMap.put("SetDefaultPayChannel", new SetDefaultPayChannel());
processMap.put("GetDefaultPayChannel", new GetDefaultPayChannel());
processMap.put("GetTradeDetail", new GetTradeDetail());
processMap.put("BankCash", new BankCash());
processMap.put("CoinPay", new CoinPay());
processMap.put("ReceiveCoin", new ReceiveCoin());
processMap.put("ScorePay", new ScorePay());
processMap.put("ReceiveScore", new ReceiveScore());
processMap.put("GetScoreTradeDetail", new GetScoreTradeDetail());
return processMap;
}
public static class GetAccountByUserId extends org.apache.thrift.AsyncProcessFunction {
public GetAccountByUserId() {
super("GetAccountByUserId");
}
public GetAccountByUserId_args getEmptyArgsInstance() {
return new GetAccountByUserId_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetAccountInfoRet o) {
GetAccountByUserId_result result = new GetAccountByUserId_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetAccountByUserId_result result = new GetAccountByUserId_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, GetAccountByUserId_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.GetAccountByUserId(args.userBaseId,resultHandler);
}
}
public static class Freeze extends org.apache.thrift.AsyncProcessFunction {
public Freeze() {
super("Freeze");
}
public Freeze_args getEmptyArgsInstance() {
return new Freeze_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetFreezeRet o) {
Freeze_result result = new Freeze_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
Freeze_result result = new Freeze_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, Freeze_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.Freeze(args.freezeParam,resultHandler);
}
}
public static class Unfreeze extends org.apache.thrift.AsyncProcessFunction {
public Unfreeze() {
super("Unfreeze");
}
public Unfreeze_args getEmptyArgsInstance() {
return new Unfreeze_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetUnfreezeRet o) {
Unfreeze_result result = new Unfreeze_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
Unfreeze_result result = new Unfreeze_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, Unfreeze_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.Unfreeze(args.userBaseId, args.orderId,resultHandler);
}
}
public static class ReceiveMoney extends org.apache.thrift.AsyncProcessFunction {
public ReceiveMoney() {
super("ReceiveMoney");
}
public ReceiveMoney_args getEmptyArgsInstance() {
return new ReceiveMoney_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetReceiveRet o) {
ReceiveMoney_result result = new ReceiveMoney_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
ReceiveMoney_result result = new ReceiveMoney_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, ReceiveMoney_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.ReceiveMoney(args.param,resultHandler);
}
}
public static class BankReceiveMoney extends org.apache.thrift.AsyncProcessFunction {
public BankReceiveMoney() {
super("BankReceiveMoney");
}
public BankReceiveMoney_args getEmptyArgsInstance() {
return new BankReceiveMoney_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetBankReceiveRet o) {
BankReceiveMoney_result result = new BankReceiveMoney_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
BankReceiveMoney_result result = new BankReceiveMoney_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, BankReceiveMoney_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.BankReceiveMoney(args.param,resultHandler);
}
}
public static class PayMoney extends org.apache.thrift.AsyncProcessFunction {
public PayMoney() {
super("PayMoney");
}
public PayMoney_args getEmptyArgsInstance() {
return new PayMoney_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetPayRet o) {
PayMoney_result result = new PayMoney_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
PayMoney_result result = new PayMoney_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, PayMoney_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.PayMoney(args.param,resultHandler);
}
}
public static class SetDefaultPayChannel extends org.apache.thrift.AsyncProcessFunction {
public SetDefaultPayChannel() {
super("SetDefaultPayChannel");
}
public SetDefaultPayChannel_args getEmptyArgsInstance() {
return new SetDefaultPayChannel_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetSetDefaultPayChannelRet o) {
SetDefaultPayChannel_result result = new SetDefaultPayChannel_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
SetDefaultPayChannel_result result = new SetDefaultPayChannel_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, SetDefaultPayChannel_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.SetDefaultPayChannel(args.param,resultHandler);
}
}
public static class GetDefaultPayChannel extends org.apache.thrift.AsyncProcessFunction {
public GetDefaultPayChannel() {
super("GetDefaultPayChannel");
}
public GetDefaultPayChannel_args getEmptyArgsInstance() {
return new GetDefaultPayChannel_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetDefaultPayChannelRet o) {
GetDefaultPayChannel_result result = new GetDefaultPayChannel_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetDefaultPayChannel_result result = new GetDefaultPayChannel_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, GetDefaultPayChannel_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.GetDefaultPayChannel(args.userBaseId,resultHandler);
}
}
public static class GetTradeDetail extends org.apache.thrift.AsyncProcessFunction {
public GetTradeDetail() {
super("GetTradeDetail");
}
public GetTradeDetail_args getEmptyArgsInstance() {
return new GetTradeDetail_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetTradeDetailRet o) {
GetTradeDetail_result result = new GetTradeDetail_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetTradeDetail_result result = new GetTradeDetail_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, GetTradeDetail_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.GetTradeDetail(args.tradeDetailParam,resultHandler);
}
}
public static class BankCash extends org.apache.thrift.AsyncProcessFunction {
public BankCash() {
super("BankCash");
}
public BankCash_args getEmptyArgsInstance() {
return new BankCash_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetBankCashRet o) {
BankCash_result result = new BankCash_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
BankCash_result result = new BankCash_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, BankCash_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.BankCash(args.tradeOrderId,resultHandler);
}
}
public static class CoinPay extends org.apache.thrift.AsyncProcessFunction {
public CoinPay() {
super("CoinPay");
}
public CoinPay_args getEmptyArgsInstance() {
return new CoinPay_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetCoinPayRet o) {
CoinPay_result result = new CoinPay_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
CoinPay_result result = new CoinPay_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, CoinPay_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.CoinPay(args.param,resultHandler);
}
}
public static class ReceiveCoin extends org.apache.thrift.AsyncProcessFunction {
public ReceiveCoin() {
super("ReceiveCoin");
}
public ReceiveCoin_args getEmptyArgsInstance() {
return new ReceiveCoin_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetReceiveCoinRet o) {
ReceiveCoin_result result = new ReceiveCoin_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
ReceiveCoin_result result = new ReceiveCoin_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, ReceiveCoin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.ReceiveCoin(args.param,resultHandler);
}
}
public static class ScorePay extends org.apache.thrift.AsyncProcessFunction {
public ScorePay() {
super("ScorePay");
}
public ScorePay_args getEmptyArgsInstance() {
return new ScorePay_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetScorePayRet o) {
ScorePay_result result = new ScorePay_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
ScorePay_result result = new ScorePay_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, ScorePay_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.ScorePay(args.param,resultHandler);
}
}
public static class ReceiveScore extends org.apache.thrift.AsyncProcessFunction {
public ReceiveScore() {
super("ReceiveScore");
}
public ReceiveScore_args getEmptyArgsInstance() {
return new ReceiveScore_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetReceiveScoreRet o) {
ReceiveScore_result result = new ReceiveScore_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
ReceiveScore_result result = new ReceiveScore_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, ReceiveScore_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.ReceiveScore(args.param,resultHandler);
}
}
public static class GetScoreTradeDetail extends org.apache.thrift.AsyncProcessFunction {
public GetScoreTradeDetail() {
super("GetScoreTradeDetail");
}
public GetScoreTradeDetail_args getEmptyArgsInstance() {
return new GetScoreTradeDetail_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(GetScoreTradeDetailRet o) {
GetScoreTradeDetail_result result = new GetScoreTradeDetail_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetScoreTradeDetail_result result = new GetScoreTradeDetail_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, GetScoreTradeDetail_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.GetScoreTradeDetail(args.tradeDetailParam,resultHandler);
}
}
}
public static class GetAccountByUserId_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetAccountByUserId_args");
private static final org.apache.thrift.protocol.TField USER_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userBaseId", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new GetAccountByUserId_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new GetAccountByUserId_argsTupleSchemeFactory();
public java.lang.String userBaseId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
USER_BASE_ID((short)1, "userBaseId");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // USER_BASE_ID
return USER_BASE_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.USER_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("userBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetAccountByUserId_args.class, metaDataMap);
}
public GetAccountByUserId_args() {
}
public GetAccountByUserId_args(
java.lang.String userBaseId)
{
this();
this.userBaseId = userBaseId;
}
/**
* Performs a deep copy on other .
*/
public GetAccountByUserId_args(GetAccountByUserId_args other) {
if (other.isSetUserBaseId()) {
this.userBaseId = other.userBaseId;
}
}
public GetAccountByUserId_args deepCopy() {
return new GetAccountByUserId_args(this);
}
@Override
public void clear() {
this.userBaseId = null;
}
public java.lang.String getUserBaseId() {
return this.userBaseId;
}
public GetAccountByUserId_args setUserBaseId(java.lang.String userBaseId) {
this.userBaseId = userBaseId;
return this;
}
public void unsetUserBaseId() {
this.userBaseId = null;
}
/** Returns true if field userBaseId is set (has been assigned a value) and false otherwise */
public boolean isSetUserBaseId() {
return this.userBaseId != null;
}
public void setUserBaseIdIsSet(boolean value) {
if (!value) {
this.userBaseId = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case USER_BASE_ID:
if (value == null) {
unsetUserBaseId();
} else {
setUserBaseId((java.lang.String)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_BASE_ID:
return getUserBaseId();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case USER_BASE_ID:
return isSetUserBaseId();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof GetAccountByUserId_args)
return this.equals((GetAccountByUserId_args)that);
return false;
}
public boolean equals(GetAccountByUserId_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_userBaseId = true && this.isSetUserBaseId();
boolean that_present_userBaseId = true && that.isSetUserBaseId();
if (this_present_userBaseId || that_present_userBaseId) {
if (!(this_present_userBaseId && that_present_userBaseId))
return false;
if (!this.userBaseId.equals(that.userBaseId))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetUserBaseId()) ? 131071 : 524287);
if (isSetUserBaseId())
hashCode = hashCode * 8191 + userBaseId.hashCode();
return hashCode;
}
@Override
public int compareTo(GetAccountByUserId_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetUserBaseId()).compareTo(other.isSetUserBaseId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUserBaseId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userBaseId, other.userBaseId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("GetAccountByUserId_args(");
boolean first = true;
sb.append("userBaseId:");
if (this.userBaseId == null) {
sb.append("null");
} else {
sb.append(this.userBaseId);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class GetAccountByUserId_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public GetAccountByUserId_argsStandardScheme getScheme() {
return new GetAccountByUserId_argsStandardScheme();
}
}
private static class GetAccountByUserId_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, GetAccountByUserId_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // USER_BASE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.userBaseId = iprot.readString();
struct.setUserBaseIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, GetAccountByUserId_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.userBaseId != null) {
oprot.writeFieldBegin(USER_BASE_ID_FIELD_DESC);
oprot.writeString(struct.userBaseId);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class GetAccountByUserId_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public GetAccountByUserId_argsTupleScheme getScheme() {
return new GetAccountByUserId_argsTupleScheme();
}
}
private static class GetAccountByUserId_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, GetAccountByUserId_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetUserBaseId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetUserBaseId()) {
oprot.writeString(struct.userBaseId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, GetAccountByUserId_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.userBaseId = iprot.readString();
struct.setUserBaseIdIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class GetAccountByUserId_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetAccountByUserId_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new GetAccountByUserId_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new GetAccountByUserId_resultTupleSchemeFactory();
public GetAccountInfoRet success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetAccountInfoRet.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetAccountByUserId_result.class, metaDataMap);
}
public GetAccountByUserId_result() {
}
public GetAccountByUserId_result(
GetAccountInfoRet success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on other .
*/
public GetAccountByUserId_result(GetAccountByUserId_result other) {
if (other.isSetSuccess()) {
this.success = new GetAccountInfoRet(other.success);
}
}
public GetAccountByUserId_result deepCopy() {
return new GetAccountByUserId_result(this);
}
@Override
public void clear() {
this.success = null;
}
public GetAccountInfoRet getSuccess() {
return this.success;
}
public GetAccountByUserId_result setSuccess(GetAccountInfoRet success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((GetAccountInfoRet)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof GetAccountByUserId_result)
return this.equals((GetAccountByUserId_result)that);
return false;
}
public boolean equals(GetAccountByUserId_result that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(GetAccountByUserId_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("GetAccountByUserId_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class GetAccountByUserId_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public GetAccountByUserId_resultStandardScheme getScheme() {
return new GetAccountByUserId_resultStandardScheme();
}
}
private static class GetAccountByUserId_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, GetAccountByUserId_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new GetAccountInfoRet();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, GetAccountByUserId_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class GetAccountByUserId_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public GetAccountByUserId_resultTupleScheme getScheme() {
return new GetAccountByUserId_resultTupleScheme();
}
}
private static class GetAccountByUserId_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, GetAccountByUserId_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, GetAccountByUserId_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new GetAccountInfoRet();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class Freeze_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Freeze_args");
private static final org.apache.thrift.protocol.TField FREEZE_PARAM_FIELD_DESC = new org.apache.thrift.protocol.TField("freezeParam", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new Freeze_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new Freeze_argsTupleSchemeFactory();
public FreezeParam freezeParam; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FREEZE_PARAM((short)1, "freezeParam");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FREEZE_PARAM
return FREEZE_PARAM;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FREEZE_PARAM, new org.apache.thrift.meta_data.FieldMetaData("freezeParam", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FreezeParam.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Freeze_args.class, metaDataMap);
}
public Freeze_args() {
}
public Freeze_args(
FreezeParam freezeParam)
{
this();
this.freezeParam = freezeParam;
}
/**
* Performs a deep copy on other .
*/
public Freeze_args(Freeze_args other) {
if (other.isSetFreezeParam()) {
this.freezeParam = new FreezeParam(other.freezeParam);
}
}
public Freeze_args deepCopy() {
return new Freeze_args(this);
}
@Override
public void clear() {
this.freezeParam = null;
}
public FreezeParam getFreezeParam() {
return this.freezeParam;
}
public Freeze_args setFreezeParam(FreezeParam freezeParam) {
this.freezeParam = freezeParam;
return this;
}
public void unsetFreezeParam() {
this.freezeParam = null;
}
/** Returns true if field freezeParam is set (has been assigned a value) and false otherwise */
public boolean isSetFreezeParam() {
return this.freezeParam != null;
}
public void setFreezeParamIsSet(boolean value) {
if (!value) {
this.freezeParam = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case FREEZE_PARAM:
if (value == null) {
unsetFreezeParam();
} else {
setFreezeParam((FreezeParam)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case FREEZE_PARAM:
return getFreezeParam();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case FREEZE_PARAM:
return isSetFreezeParam();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof Freeze_args)
return this.equals((Freeze_args)that);
return false;
}
public boolean equals(Freeze_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_freezeParam = true && this.isSetFreezeParam();
boolean that_present_freezeParam = true && that.isSetFreezeParam();
if (this_present_freezeParam || that_present_freezeParam) {
if (!(this_present_freezeParam && that_present_freezeParam))
return false;
if (!this.freezeParam.equals(that.freezeParam))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetFreezeParam()) ? 131071 : 524287);
if (isSetFreezeParam())
hashCode = hashCode * 8191 + freezeParam.hashCode();
return hashCode;
}
@Override
public int compareTo(Freeze_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetFreezeParam()).compareTo(other.isSetFreezeParam());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFreezeParam()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freezeParam, other.freezeParam);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("Freeze_args(");
boolean first = true;
sb.append("freezeParam:");
if (this.freezeParam == null) {
sb.append("null");
} else {
sb.append(this.freezeParam);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (freezeParam != null) {
freezeParam.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class Freeze_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public Freeze_argsStandardScheme getScheme() {
return new Freeze_argsStandardScheme();
}
}
private static class Freeze_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, Freeze_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FREEZE_PARAM
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.freezeParam = new FreezeParam();
struct.freezeParam.read(iprot);
struct.setFreezeParamIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, Freeze_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.freezeParam != null) {
oprot.writeFieldBegin(FREEZE_PARAM_FIELD_DESC);
struct.freezeParam.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class Freeze_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public Freeze_argsTupleScheme getScheme() {
return new Freeze_argsTupleScheme();
}
}
private static class Freeze_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, Freeze_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetFreezeParam()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetFreezeParam()) {
struct.freezeParam.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Freeze_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.freezeParam = new FreezeParam();
struct.freezeParam.read(iprot);
struct.setFreezeParamIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class Freeze_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Freeze_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new Freeze_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new Freeze_resultTupleSchemeFactory();
public GetFreezeRet success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFreezeRet.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Freeze_result.class, metaDataMap);
}
public Freeze_result() {
}
public Freeze_result(
GetFreezeRet success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on other .
*/
public Freeze_result(Freeze_result other) {
if (other.isSetSuccess()) {
this.success = new GetFreezeRet(other.success);
}
}
public Freeze_result deepCopy() {
return new Freeze_result(this);
}
@Override
public void clear() {
this.success = null;
}
public GetFreezeRet getSuccess() {
return this.success;
}
public Freeze_result setSuccess(GetFreezeRet success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((GetFreezeRet)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof Freeze_result)
return this.equals((Freeze_result)that);
return false;
}
public boolean equals(Freeze_result that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(Freeze_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("Freeze_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class Freeze_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public Freeze_resultStandardScheme getScheme() {
return new Freeze_resultStandardScheme();
}
}
private static class Freeze_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, Freeze_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new GetFreezeRet();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, Freeze_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class Freeze_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public Freeze_resultTupleScheme getScheme() {
return new Freeze_resultTupleScheme();
}
}
private static class Freeze_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, Freeze_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Freeze_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new GetFreezeRet();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class Unfreeze_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Unfreeze_args");
private static final org.apache.thrift.protocol.TField USER_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userBaseId", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new Unfreeze_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new Unfreeze_argsTupleSchemeFactory();
public java.lang.String userBaseId; // required
public java.lang.String orderId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
USER_BASE_ID((short)1, "userBaseId"),
ORDER_ID((short)2, "orderId");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // USER_BASE_ID
return USER_BASE_ID;
case 2: // ORDER_ID
return ORDER_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.USER_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("userBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Unfreeze_args.class, metaDataMap);
}
public Unfreeze_args() {
}
public Unfreeze_args(
java.lang.String userBaseId,
java.lang.String orderId)
{
this();
this.userBaseId = userBaseId;
this.orderId = orderId;
}
/**
* Performs a deep copy on other .
*/
public Unfreeze_args(Unfreeze_args other) {
if (other.isSetUserBaseId()) {
this.userBaseId = other.userBaseId;
}
if (other.isSetOrderId()) {
this.orderId = other.orderId;
}
}
public Unfreeze_args deepCopy() {
return new Unfreeze_args(this);
}
@Override
public void clear() {
this.userBaseId = null;
this.orderId = null;
}
public java.lang.String getUserBaseId() {
return this.userBaseId;
}
public Unfreeze_args setUserBaseId(java.lang.String userBaseId) {
this.userBaseId = userBaseId;
return this;
}
public void unsetUserBaseId() {
this.userBaseId = null;
}
/** Returns true if field userBaseId is set (has been assigned a value) and false otherwise */
public boolean isSetUserBaseId() {
return this.userBaseId != null;
}
public void setUserBaseIdIsSet(boolean value) {
if (!value) {
this.userBaseId = null;
}
}
public java.lang.String getOrderId() {
return this.orderId;
}
public Unfreeze_args setOrderId(java.lang.String orderId) {
this.orderId = orderId;
return this;
}
public void unsetOrderId() {
this.orderId = null;
}
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
public boolean isSetOrderId() {
return this.orderId != null;
}
public void setOrderIdIsSet(boolean value) {
if (!value) {
this.orderId = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case USER_BASE_ID:
if (value == null) {
unsetUserBaseId();
} else {
setUserBaseId((java.lang.String)value);
}
break;
case ORDER_ID:
if (value == null) {
unsetOrderId();
} else {
setOrderId((java.lang.String)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_BASE_ID:
return getUserBaseId();
case ORDER_ID:
return getOrderId();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case USER_BASE_ID:
return isSetUserBaseId();
case ORDER_ID:
return isSetOrderId();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof Unfreeze_args)
return this.equals((Unfreeze_args)that);
return false;
}
public boolean equals(Unfreeze_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_userBaseId = true && this.isSetUserBaseId();
boolean that_present_userBaseId = true && that.isSetUserBaseId();
if (this_present_userBaseId || that_present_userBaseId) {
if (!(this_present_userBaseId && that_present_userBaseId))
return false;
if (!this.userBaseId.equals(that.userBaseId))
return false;
}
boolean this_present_orderId = true && this.isSetOrderId();
boolean that_present_orderId = true && that.isSetOrderId();
if (this_present_orderId || that_present_orderId) {
if (!(this_present_orderId && that_present_orderId))
return false;
if (!this.orderId.equals(that.orderId))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetUserBaseId()) ? 131071 : 524287);
if (isSetUserBaseId())
hashCode = hashCode * 8191 + userBaseId.hashCode();
hashCode = hashCode * 8191 + ((isSetOrderId()) ? 131071 : 524287);
if (isSetOrderId())
hashCode = hashCode * 8191 + orderId.hashCode();
return hashCode;
}
@Override
public int compareTo(Unfreeze_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetUserBaseId()).compareTo(other.isSetUserBaseId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUserBaseId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userBaseId, other.userBaseId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetOrderId()).compareTo(other.isSetOrderId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetOrderId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, other.orderId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("Unfreeze_args(");
boolean first = true;
sb.append("userBaseId:");
if (this.userBaseId == null) {
sb.append("null");
} else {
sb.append(this.userBaseId);
}
first = false;
if (!first) sb.append(", ");
sb.append("orderId:");
if (this.orderId == null) {
sb.append("null");
} else {
sb.append(this.orderId);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class Unfreeze_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public Unfreeze_argsStandardScheme getScheme() {
return new Unfreeze_argsStandardScheme();
}
}
private static class Unfreeze_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, Unfreeze_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // USER_BASE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.userBaseId = iprot.readString();
struct.setUserBaseIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // ORDER_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.orderId = iprot.readString();
struct.setOrderIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, Unfreeze_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.userBaseId != null) {
oprot.writeFieldBegin(USER_BASE_ID_FIELD_DESC);
oprot.writeString(struct.userBaseId);
oprot.writeFieldEnd();
}
if (struct.orderId != null) {
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
oprot.writeString(struct.orderId);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class Unfreeze_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public Unfreeze_argsTupleScheme getScheme() {
return new Unfreeze_argsTupleScheme();
}
}
private static class Unfreeze_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, Unfreeze_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetUserBaseId()) {
optionals.set(0);
}
if (struct.isSetOrderId()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetUserBaseId()) {
oprot.writeString(struct.userBaseId);
}
if (struct.isSetOrderId()) {
oprot.writeString(struct.orderId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Unfreeze_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.userBaseId = iprot.readString();
struct.setUserBaseIdIsSet(true);
}
if (incoming.get(1)) {
struct.orderId = iprot.readString();
struct.setOrderIdIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class Unfreeze_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Unfreeze_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new Unfreeze_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new Unfreeze_resultTupleSchemeFactory();
/**
*
* @see GetUnfreezeRet
*/
public GetUnfreezeRet success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
/**
*
* @see GetUnfreezeRet
*/
SUCCESS((short)0, "success");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, GetUnfreezeRet.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Unfreeze_result.class, metaDataMap);
}
public Unfreeze_result() {
}
public Unfreeze_result(
GetUnfreezeRet success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on other .
*/
public Unfreeze_result(Unfreeze_result other) {
if (other.isSetSuccess()) {
this.success = other.success;
}
}
public Unfreeze_result deepCopy() {
return new Unfreeze_result(this);
}
@Override
public void clear() {
this.success = null;
}
/**
*
* @see GetUnfreezeRet
*/
public GetUnfreezeRet getSuccess() {
return this.success;
}
/**
*
* @see GetUnfreezeRet
*/
public Unfreeze_result setSuccess(GetUnfreezeRet success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((GetUnfreezeRet)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof Unfreeze_result)
return this.equals((Unfreeze_result)that);
return false;
}
public boolean equals(Unfreeze_result that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.getValue();
return hashCode;
}
@Override
public int compareTo(Unfreeze_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("Unfreeze_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class Unfreeze_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public Unfreeze_resultStandardScheme getScheme() {
return new Unfreeze_resultStandardScheme();
}
}
private static class Unfreeze_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, Unfreeze_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.success = com.lingyi365.bms.thrift.pay.GetUnfreezeRet.findByValue(iprot.readI32());
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, Unfreeze_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI32(struct.success.getValue());
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class Unfreeze_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public Unfreeze_resultTupleScheme getScheme() {
return new Unfreeze_resultTupleScheme();
}
}
private static class Unfreeze_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, Unfreeze_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
oprot.writeI32(struct.success.getValue());
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Unfreeze_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = com.lingyi365.bms.thrift.pay.GetUnfreezeRet.findByValue(iprot.readI32());
struct.setSuccessIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class ReceiveMoney_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ReceiveMoney_args");
private static final org.apache.thrift.protocol.TField PARAM_FIELD_DESC = new org.apache.thrift.protocol.TField("param", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ReceiveMoney_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ReceiveMoney_argsTupleSchemeFactory();
public ReceiveMoneyParam param; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PARAM((short)1, "param");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PARAM
return PARAM;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PARAM, new org.apache.thrift.meta_data.FieldMetaData("param", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReceiveMoneyParam.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ReceiveMoney_args.class, metaDataMap);
}
public ReceiveMoney_args() {
}
public ReceiveMoney_args(
ReceiveMoneyParam param)
{
this();
this.param = param;
}
/**
* Performs a deep copy on other .
*/
public ReceiveMoney_args(ReceiveMoney_args other) {
if (other.isSetParam()) {
this.param = new ReceiveMoneyParam(other.param);
}
}
public ReceiveMoney_args deepCopy() {
return new ReceiveMoney_args(this);
}
@Override
public void clear() {
this.param = null;
}
public ReceiveMoneyParam getParam() {
return this.param;
}
public ReceiveMoney_args setParam(ReceiveMoneyParam param) {
this.param = param;
return this;
}
public void unsetParam() {
this.param = null;
}
/** Returns true if field param is set (has been assigned a value) and false otherwise */
public boolean isSetParam() {
return this.param != null;
}
public void setParamIsSet(boolean value) {
if (!value) {
this.param = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case PARAM:
if (value == null) {
unsetParam();
} else {
setParam((ReceiveMoneyParam)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PARAM:
return getParam();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case PARAM:
return isSetParam();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof ReceiveMoney_args)
return this.equals((ReceiveMoney_args)that);
return false;
}
public boolean equals(ReceiveMoney_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_param = true && this.isSetParam();
boolean that_present_param = true && that.isSetParam();
if (this_present_param || that_present_param) {
if (!(this_present_param && that_present_param))
return false;
if (!this.param.equals(that.param))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetParam()) ? 131071 : 524287);
if (isSetParam())
hashCode = hashCode * 8191 + param.hashCode();
return hashCode;
}
@Override
public int compareTo(ReceiveMoney_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetParam()).compareTo(other.isSetParam());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetParam()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.param, other.param);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("ReceiveMoney_args(");
boolean first = true;
sb.append("param:");
if (this.param == null) {
sb.append("null");
} else {
sb.append(this.param);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (param != null) {
param.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class ReceiveMoney_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ReceiveMoney_argsStandardScheme getScheme() {
return new ReceiveMoney_argsStandardScheme();
}
}
private static class ReceiveMoney_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, ReceiveMoney_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PARAM
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.param = new ReceiveMoneyParam();
struct.param.read(iprot);
struct.setParamIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, ReceiveMoney_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.param != null) {
oprot.writeFieldBegin(PARAM_FIELD_DESC);
struct.param.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class ReceiveMoney_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ReceiveMoney_argsTupleScheme getScheme() {
return new ReceiveMoney_argsTupleScheme();
}
}
private static class ReceiveMoney_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ReceiveMoney_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetParam()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetParam()) {
struct.param.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ReceiveMoney_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.param = new ReceiveMoneyParam();
struct.param.read(iprot);
struct.setParamIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class ReceiveMoney_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ReceiveMoney_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ReceiveMoney_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ReceiveMoney_resultTupleSchemeFactory();
public GetReceiveRet success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetReceiveRet.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ReceiveMoney_result.class, metaDataMap);
}
public ReceiveMoney_result() {
}
public ReceiveMoney_result(
GetReceiveRet success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on other .
*/
public ReceiveMoney_result(ReceiveMoney_result other) {
if (other.isSetSuccess()) {
this.success = new GetReceiveRet(other.success);
}
}
public ReceiveMoney_result deepCopy() {
return new ReceiveMoney_result(this);
}
@Override
public void clear() {
this.success = null;
}
public GetReceiveRet getSuccess() {
return this.success;
}
public ReceiveMoney_result setSuccess(GetReceiveRet success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((GetReceiveRet)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof ReceiveMoney_result)
return this.equals((ReceiveMoney_result)that);
return false;
}
public boolean equals(ReceiveMoney_result that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(ReceiveMoney_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("ReceiveMoney_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class ReceiveMoney_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ReceiveMoney_resultStandardScheme getScheme() {
return new ReceiveMoney_resultStandardScheme();
}
}
private static class ReceiveMoney_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, ReceiveMoney_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new GetReceiveRet();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, ReceiveMoney_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class ReceiveMoney_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ReceiveMoney_resultTupleScheme getScheme() {
return new ReceiveMoney_resultTupleScheme();
}
}
private static class ReceiveMoney_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ReceiveMoney_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ReceiveMoney_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new GetReceiveRet();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class BankReceiveMoney_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BankReceiveMoney_args");
private static final org.apache.thrift.protocol.TField PARAM_FIELD_DESC = new org.apache.thrift.protocol.TField("param", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new BankReceiveMoney_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new BankReceiveMoney_argsTupleSchemeFactory();
public BankReceiveParam param; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PARAM((short)1, "param");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PARAM
return PARAM;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PARAM, new org.apache.thrift.meta_data.FieldMetaData("param", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BankReceiveParam.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BankReceiveMoney_args.class, metaDataMap);
}
public BankReceiveMoney_args() {
}
public BankReceiveMoney_args(
BankReceiveParam param)
{
this();
this.param = param;
}
/**
* Performs a deep copy on other .
*/
public BankReceiveMoney_args(BankReceiveMoney_args other) {
if (other.isSetParam()) {
this.param = new BankReceiveParam(other.param);
}
}
public BankReceiveMoney_args deepCopy() {
return new BankReceiveMoney_args(this);
}
@Override
public void clear() {
this.param = null;
}
public BankReceiveParam getParam() {
return this.param;
}
public BankReceiveMoney_args setParam(BankReceiveParam param) {
this.param = param;
return this;
}
public void unsetParam() {
this.param = null;
}
/** Returns true if field param is set (has been assigned a value) and false otherwise */
public boolean isSetParam() {
return this.param != null;
}
public void setParamIsSet(boolean value) {
if (!value) {
this.param = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case PARAM:
if (value == null) {
unsetParam();
} else {
setParam((BankReceiveParam)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PARAM:
return getParam();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case PARAM:
return isSetParam();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof BankReceiveMoney_args)
return this.equals((BankReceiveMoney_args)that);
return false;
}
public boolean equals(BankReceiveMoney_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_param = true && this.isSetParam();
boolean that_present_param = true && that.isSetParam();
if (this_present_param || that_present_param) {
if (!(this_present_param && that_present_param))
return false;
if (!this.param.equals(that.param))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetParam()) ? 131071 : 524287);
if (isSetParam())
hashCode = hashCode * 8191 + param.hashCode();
return hashCode;
}
@Override
public int compareTo(BankReceiveMoney_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetParam()).compareTo(other.isSetParam());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetParam()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.param, other.param);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("BankReceiveMoney_args(");
boolean first = true;
sb.append("param:");
if (this.param == null) {
sb.append("null");
} else {
sb.append(this.param);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (param != null) {
param.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class BankReceiveMoney_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public BankReceiveMoney_argsStandardScheme getScheme() {
return new BankReceiveMoney_argsStandardScheme();
}
}
private static class BankReceiveMoney_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, BankReceiveMoney_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PARAM
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.param = new BankReceiveParam();
struct.param.read(iprot);
struct.setParamIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, BankReceiveMoney_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.param != null) {
oprot.writeFieldBegin(PARAM_FIELD_DESC);
struct.param.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class BankReceiveMoney_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public BankReceiveMoney_argsTupleScheme getScheme() {
return new BankReceiveMoney_argsTupleScheme();
}
}
private static class BankReceiveMoney_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, BankReceiveMoney_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetParam()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetParam()) {
struct.param.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, BankReceiveMoney_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.param = new BankReceiveParam();
struct.param.read(iprot);
struct.setParamIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class BankReceiveMoney_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BankReceiveMoney_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new BankReceiveMoney_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new BankReceiveMoney_resultTupleSchemeFactory();
public GetBankReceiveRet success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetBankReceiveRet.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BankReceiveMoney_result.class, metaDataMap);
}
public BankReceiveMoney_result() {
}
public BankReceiveMoney_result(
GetBankReceiveRet success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on other .
*/
public BankReceiveMoney_result(BankReceiveMoney_result other) {
if (other.isSetSuccess()) {
this.success = new GetBankReceiveRet(other.success);
}
}
public BankReceiveMoney_result deepCopy() {
return new BankReceiveMoney_result(this);
}
@Override
public void clear() {
this.success = null;
}
public GetBankReceiveRet getSuccess() {
return this.success;
}
public BankReceiveMoney_result setSuccess(GetBankReceiveRet success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((GetBankReceiveRet)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof BankReceiveMoney_result)
return this.equals((BankReceiveMoney_result)that);
return false;
}
public boolean equals(BankReceiveMoney_result that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(BankReceiveMoney_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("BankReceiveMoney_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class BankReceiveMoney_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public BankReceiveMoney_resultStandardScheme getScheme() {
return new BankReceiveMoney_resultStandardScheme();
}
}
private static class BankReceiveMoney_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, BankReceiveMoney_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new GetBankReceiveRet();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, BankReceiveMoney_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class BankReceiveMoney_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public BankReceiveMoney_resultTupleScheme getScheme() {
return new BankReceiveMoney_resultTupleScheme();
}
}
private static class BankReceiveMoney_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, BankReceiveMoney_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, BankReceiveMoney_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new GetBankReceiveRet();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class PayMoney_args implements org.apache.thrift.TBase