id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
d74157b3-8792-4e37-937f-d94d36913dbf | public java.lang.String getCustomText15() {
return this.customText15;
} |
c7c4d9f1-5e48-44b2-b7d6-00d424a5e412 | public void actionPerformed(java.awt.event.ActionEvent evt) {
manualUpdateMenuItemActionPerformed(evt);
} |
89d39580-f86d-4863-a284-d60af86b421f | public java.lang.String getCustomObject8ExternalSystemId() {
return this.customObject8ExternalSystemId;
} |
f7de3972-651e-483d-9238-abaf182322a5 | public java.lang.String getCustomText27() {
return this.customText27;
} |
26d17cea-e4ba-4d5d-86e2-1db7e89819aa | public java.lang.String getOwnerFirstName() {
return this.ownerFirstName;
} |
541851d5-dbe1-41a9-80c9-67432bd3122c | public Builder newBuilderForType() { return newBuilder(); } |
a14cffde-31e9-48eb-8023-525d11f482fd | public void setMedEdStatus(crmondemand.xml.opportunity.query.QueryType medEdStatus) {
this.medEdStatus = medEdStatus;
} |
a4c97dd5-fde7-493a-9e23-31bb759657a4 | public void setCustomObject9Id(java.lang.String customObject9Id) {
this.customObject9Id = customObject9Id;
} |
378e7666-4d5c-4706-a140-41892590d37a | public KeyReleasedEvent(int keyCode, char character) {
this.keyCode = keyCode;
} |
c70286eb-7b71-4c7f-b55c-794ae95e5b37 | public void setCustomObject2ExternalSystemId(crmondemand.xml.customobject3.query.QueryType customObject2ExternalSystemId) {
this.customObject2ExternalSystemId = customObject2ExternalSystemId;
} |
40c57d7b-a0ad-4dc0-900f-7107a5c440ca | public void setCustomNumber18(crmondemand.xml.customobject3.query.QueryType customNumber18) {
this.customNumber18 = customNumber18;
} |
0325cfa7-ba46-42d1-b08b-fad57c3cd13d | public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
int a, b, c, max;
System.out.print("整数aを入力 >");
a = scan.nextInt();
System.out.print("整数bを入力 >");
b = scan.nextInt();
System.out.print("整数cを入力 >");
c = scan.nextInt();
if(a > b && a > c){
max = a;
System.out.println("最大値maxは" + max + "です。");
} else if(b > a && b > c){
max = b;
System.out.println("最大値maxは" + max + "です。");
}else if(c > a && c >b){
max = c;
System.out.println("最大値maxは" + max + "です。");
}
} |
def8d4bc-46c4-4666-9515-aba9109a53ea | public void setCustomNumber43(java.math.BigDecimal customNumber43) {
this.customNumber43 = customNumber43;
} |
b57c4932-9813-40f9-9db1-ed081d5631d2 | @Override
public String makeSound(){
return "Roar";
} |
c1948443-04fe-4478-afca-aae3613321ae | public void setCustomNumber1(java.math.BigDecimal customNumber1) {
this.customNumber1 = customNumber1;
} |
9454c99b-dba2-4d66-9aff-152ac4362afb | public java.lang.String getActivityCallType() {
return this.activityCallType;
} |
d1588875-f2e3-4e77-8b5d-b0d24a6de6cb | public void setCustomObject6Id(java.lang.String customObject6Id) {
this.customObject6Id = customObject6Id;
} |
180664ef-3f8b-4f4e-9170-979b97916a25 | public crmondemand.xml.customobject6.query.QueryType getCustomPickList40() {
return this.customPickList40;
} |
da538fc6-2259-4012-90ae-5c4f92e49a31 | public crmondemand.xml.customobject6.query.QueryType getCustomText51() {
return this.customText51;
} |
99e822b2-a062-497f-aed2-62c77f09c96d | public crmondemand.xml.contact.query.QueryType getCustomText74() {
return this.customText74;
} |
c37aaae1-4b05-4b0b-a482-32c94d0a66df | public void setCustomPickList80(crmondemand.xml.customobject3.query.QueryType customPickList80) {
this.customPickList80 = customPickList80;
} |
b194af2c-6e4e-4e2a-a429-26af280946bd | public void setCustomText78(java.lang.String customText78) {
this.customText78 = customText78;
} |
b0a872b5-c582-4ffe-9a61-5f75178cfe90 | public java.lang.String getIDXCarrierName() {
return this.iDXCarrierName;
} |
520585c0-fe53-4ff8-a008-7cc03924e5a9 | public void init(GameContainer gc, StateBasedGame sbg) throws SlickException {
player = new Player("Toby");
toolbar = new Toolbar();
toolbar.setWidth(gc.getWidth());
hungerWidth = hungerMaxWidth;
waterWidth = waterMaxWidth;
playerHungerStatus = Integer.toString((int)Math.round(player.getHunger()));
world = new World();
humanityX = gc.getWidth() - 180;
humanityY = gc.getHeight() - 44;
try {
robot = new Robot();
} catch (AWTException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} |
0bf757f6-b9e3-4729-af77-8759cd3b01fb | public crmondemand.xml.customobject3.query.QueryType getCustomText49() {
return this.customText49;
} |
9a2ca1e8-53a5-407b-aa4e-258042149879 | public java.lang.String getCustomText30() {
return this.customText30;
} |
b5850607-535b-418a-8a77-dc65f72a2492 | public crmondemand.xml.opportunity.query.QueryType getCustomInteger11() {
return this.customInteger11;
} |
f68c0283-8380-44b6-92f3-8356e1319ca4 | public java.lang.String getFundRequestStatus() {
return this.fundRequestStatus;
} |
195da8ef-8114-4757-b514-0392be1fa74b | public void setCustomInteger16(java.lang.Integer customInteger16) {
this.customInteger16 = customInteger16;
} |
9b31f8af-f285-4511-a8de-5550ec2d2911 | public java.lang.Boolean getCustomBoolean13() {
return this.customBoolean13;
} |
687adeaf-7689-4108-8bf5-40354f7a4415 | */
public void minmax (int target, int internal_format, boolean sink) {
RequestOutputStream o = display.out;
synchronized (o) {
begin_render_request (o, 4111, 16);
o.write_int32 (target);
o.write_int32 (internal_format);
o.write_bool(sink);
o.write_pad (3);
}
} |
0ceff0e0-a0a3-4191-84dc-1ed7a2e51b14 | public java.lang.String getOwnerFullName() {
return this.ownerFullName;
} |
b162c47c-5234-4273-87c1-3e360ffee0b0 | public void setCustomNumber34(crmondemand.xml.opportunity.query.QueryType customNumber34) {
this.customNumber34 = customNumber34;
} |
584a5fa8-df60-49cb-9d32-c213bfd076f0 | public crmondemand.xml.opportunity.query.QueryType getPortfolioNumber() {
return this.portfolioNumber;
} |
4676d317-fda5-4eda-8c9a-8a40340f1af7 | public void setCustomText11(crmondemand.xml.opportunity.query.QueryType customText11) {
this.customText11 = customText11;
} |
b9044b7f-0eee-4d9c-a092-88cd5ac05ef4 | public void setCustomPhone5(crmondemand.xml.customobject6.query.QueryType customPhone5) {
this.customPhone5 = customPhone5;
} |
2a62485b-aee5-4f75-801a-9883b9a2e01d | public void setCustomDate9(java.util.Calendar customDate9) {
this.customDate9 = customDate9;
} |
d72a551a-6144-41c8-8828-53b9ec935f29 | public void setCustomPhone12(java.lang.String customPhone12) {
this.customPhone12 = customPhone12;
} |
6009aba2-583e-49b3-8350-cca2ebc7fd5c | public void setCustomPickList18(java.lang.String customPickList18) {
this.customPickList18 = customPickList18;
} |
70cffac8-9228-416c-84a3-7bda7ec8b080 | public void setFinancialAccountCurrencyCode(crmondemand.xml.customobject3.query.QueryType financialAccountCurrencyCode) {
this.financialAccountCurrencyCode = financialAccountCurrencyCode;
} |
b15c024e-d3b0-4646-a89f-41ebe2779216 | public void setCertficationId(crmondemand.xml.contact.query.QueryType certficationId) {
this.certficationId = certficationId;
} |
9f1e2492-1917-4469-b77c-16e2e43dc1d0 | public void setCustomText31(java.lang.String customText31) {
this.customText31 = customText31;
} |
c9e7f8cd-236e-4f13-8302-f62b1b9a580e | public void setCustomNumber33(java.math.BigDecimal customNumber33) {
this.customNumber33 = customNumber33;
} |
958544d5-72a4-4c0e-8bb1-b061a035b218 | public void handler() {
long src = MAKE_INT_16(m68ki_read_16(EA_AI()));
long dst = get_AX();
long res = MASK_OUT_ABOVE_32(dst - src);
m68k_cpu.n_flag = GET_MSB_32(res);
m68k_cpu.not_z_flag = res;
m68k_cpu.v_flag = VFLAG_SUB_32(src, dst, res);
m68k_cpu.c_flag = CFLAG_SUB_32(src, dst, res);
USE_CLKS(6 + 4);
if (m68klog != null) {
fprintf(m68klog, "cmpa_ai_16 :PC:%d,PPC:%d,mode:%d,dr0:%d,dr1:%d,dr2:%d,dr3:%d,dr4:%d,dr5:%d,dr6:%d,dr7:%d,ar0:%d,ar1:%d,ar2:%d,ar3:%d,ar4:%d,ar5:%d,ar6:%d,ar7:%d,sp0:%d,sp1:%d,sp2:%d,sp3:%d,vbr:%d,sfc:%d,dfc:%d,cacr:%d,caar:%d,ir:%d,t1:%d,t0:%d,s:%d,m:%d,x:%d,n:%d,nz:%d,v:%d,c:%d,intm:%d,ints:%d,stop:%d,halt:%d,intc:%d,prefa:%d,prefd:%d\n", m68k_cpu.pc, m68k_cpu.ppc, m68k_cpu.mode, m68k_cpu.dr[0], m68k_cpu.dr[1], m68k_cpu.dr[2], m68k_cpu.dr[3], m68k_cpu.dr[4], m68k_cpu.dr[5], m68k_cpu.dr[6], m68k_cpu.dr[7], m68k_cpu.ar[0], m68k_cpu.ar[1], m68k_cpu.ar[2], m68k_cpu.ar[3], m68k_cpu.ar[4], m68k_cpu.ar[5], m68k_cpu.ar[6], m68k_cpu.ar[7], m68k_cpu.sp[0], m68k_cpu.sp[1], m68k_cpu.sp[2], m68k_cpu.sp[3], m68k_cpu.vbr, m68k_cpu.sfc, m68k_cpu.dfc, m68k_cpu.cacr, m68k_cpu.caar, m68k_cpu.ir, m68k_cpu.t1_flag, m68k_cpu.t0_flag, m68k_cpu.s_flag, m68k_cpu.m_flag, m68k_cpu.x_flag, m68k_cpu.n_flag, m68k_cpu.not_z_flag, m68k_cpu.v_flag, m68k_cpu.c_flag, m68k_cpu.int_mask, m68k_cpu.int_state, m68k_cpu.stopped, m68k_cpu.halted, m68k_cpu.int_cycles, m68k_cpu.pref_addr, m68k_cpu.pref_data);
}
} |
d8dcf160-ff44-47e9-b031-1159fe20f504 | public Roof getRoof(int index){
return Roofs.get(index);
} |
d7c8c51d-dce2-4262-9787-60c4fdce6f55 | public void setCustomPickList67(java.lang.String customPickList67) {
this.customPickList67 = customPickList67;
} |
9d107d9b-01aa-4ba9-ba70-e7ac87e69e37 | public void writeEnergy(String type, String inc) {
client.getSession().write(CWvsContext.sendPyramidEnergy(type, inc));
} |
efe0bfe6-f593-47a4-9032-3180fd6974fa | public java.lang.Integer getCustomInteger3() {
return this.customInteger3;
} |
27e0f648-cca4-4acf-a40b-148310e29d7e | public void setFundRequestExternalSystemId(crmondemand.xml.opportunity.query.QueryType fundRequestExternalSystemId) {
this.fundRequestExternalSystemId = fundRequestExternalSystemId;
} |
6f92b7ec-6048-44d1-8327-37fee3e2829d | public void setExamStatus(crmondemand.xml.contact.query.QueryType examStatus) {
this.examStatus = examStatus;
} |
4e88c7f7-5be5-4740-a063-aadaf7b6fab4 | public crmondemand.xml.customobject6.query.QueryType getCustomBoolean22() {
return this.customBoolean22;
} |
72436aef-e8cb-47cc-a5ff-34d6ceaab678 | public void setCustomText54(java.lang.String customText54) {
this.customText54 = customText54;
} |
b2d627bd-8b77-484e-ab26-708eb11fd931 | */
public void read_buffer (int mode) {
RequestOutputStream o = display.out;
synchronized (o) {
begin_render_request (o, 171, 8);
o.write_int32 (mode);
}
} |
477a45ed-2315-498c-96b4-163486a2764e | public java.lang.String getCustomPhone14() {
return this.customPhone14;
} |
9e8c5b79-9c73-475e-b673-00f65d9e671e | private void addInput(String type) {
StyledDocument doc = jTextPane_Source.getStyledDocument();
int pos = jTextPane_Source.getCaretPosition();
try {
doc.insertString(pos, "<input type=\"" + type + "\" >", null);
} catch (BadLocationException ex) {
Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);
}
} |
20f39061-c66c-4475-b1ba-d41b30a4e3f4 | public ServerListener()
{
sc = ServerController.getInstance();
} |
4b9fe07a-b092-4d74-81c3-d6145f1da0b3 | public crmondemand.xml.customobject6.query.QueryType getCustomNumber22() {
return this.customNumber22;
} |
10e85a89-7374-4387-bcce-f160f7b948f3 | public java.lang.String getModifiedById() {
return this.modifiedById;
} |
d3cd3907-4a65-4f20-9373-4aa5428122dd | public java.util.Calendar getCustomDate12() {
return this.customDate12;
} |
7b8c9590-88b5-4932-8847-ab779e84f40e | @SuppressWarnings("unchecked")
@Override
public void recoverCharStats()
{
baseCharStats.setClassLevel(baseCharStats.getCurrentClass(), basePhyStats().level()
- baseCharStats().combinedSubLevels());
baseCharStats().copyInto(charStats);
final Rideable riding = riding();
if (riding != null)
riding.affectCharStats(this, charStats);
final Deity deity = getMyDeity();
if (deity != null)
deity.affectCharStats(this, charStats);
final int num = charStats.numClasses();
for (int c = 0; c < num; c++)
charStats.getMyClass(c).affectCharStats(this, charStats);
charStats.getMyRace().affectCharStats(this, charStats);
baseCharStats.getMyRace().agingAffects(this, baseCharStats, charStats);
eachEffect(affectCharStats);
eachItem(affectCharStats);
if (location() != null)
location().affectCharStats(this, charStats);
for (final Enumeration<FData> e = factions.elements(); e.hasMoreElements();)
e.nextElement().affectCharStats(this, charStats);
if ((playerStats != null) && (soulMate == null) && (playerStats.getHygiene() >= PlayerStats.HYGIENE_DELIMIT))
{
final int chaAdjust = (int) (playerStats.getHygiene() / PlayerStats.HYGIENE_DELIMIT);
if ((charStats.getStat(CharStats.STAT_CHARISMA) / 2) > chaAdjust)
charStats.setStat(CharStats.STAT_CHARISMA, charStats.getStat(CharStats.STAT_CHARISMA) - chaAdjust);
else
charStats.setStat(CharStats.STAT_CHARISMA, charStats.getStat(CharStats.STAT_CHARISMA) / 2);
}
} |
c3b92559-eea3-44b1-92a8-405d38ef3f79 | public void setCustomBoolean26(crmondemand.xml.customobject3.query.QueryType customBoolean26) {
this.customBoolean26 = customBoolean26;
} |
f23b4f89-c595-4300-bc91-26355052978c | public Component getConsolePane() {
return scrollPane;
} |
0623f98b-35f9-41ad-9497-2f11a3c97e60 | public void setAccountOwner(crmondemand.xml.customobject6.query.QueryType accountOwner) {
this.accountOwner = accountOwner;
} |
f48fa563-2eb4-4c86-82fe-571daa9b2151 | opcode xxcb_b3 = new opcode() { public void handler(){ throw new UnsupportedOperationException("unimplemented");}} |
e71f5a64-d1a8-4f01-b965-56839610d8bd | public java.lang.String getPartnerId() {
return this.partnerId;
} |
283e6d38-8401-446c-825e-5dea5e9fd58b | public final short getUseLevel() {
return useLevel;
} |
1c3472da-5243-4fce-85d9-5690b3d0d08b | public Meal getMeal(); |
8e7f208b-655e-4bf6-84cc-7ebf40113847 | public crmondemand.xml.contact.query.QueryType getCustomInteger13() {
return this.customInteger13;
} |
dbebc89b-054b-4b0e-aa36-53ea05ff3646 | public BookData(){
books = new ArrayList<Book>();
uniqueWords = new ArrayList<String>();
uniqueAuthor = new ArrayList<String>();
} |
f66e8fd2-6287-4433-9f88-75654bf1d08f | public EntityPlayer getClosestPlayer(double par1, double par3, double par5, double par7)
{
double var9 = -1.0D;
EntityPlayer var11 = null;
for (int var12 = 0; var12 < this.playerEntities.size(); ++var12)
{
EntityPlayer var13 = (EntityPlayer)this.playerEntities.get(var12);
double var14 = var13.getDistanceSq(par1, par3, par5);
if ((par7 < 0.0D || var14 < par7 * par7) && (var9 == -1.0D || var14 < var9))
{
var9 = var14;
var11 = var13;
}
}
return var11;
} |
c8b33c5c-f9d6-4054-a1a5-0663c4e89b57 | public void setCustomDate38(java.util.Calendar customDate38) {
this.customDate38 = customDate38;
} |
01cfbcf2-0746-42c4-9a67-f4f0254bc152 | public java.lang.String getObjectiveType() {
return this.objectiveType;
} |
83bb46b3-7ef6-45b3-8e8e-fc6ff12e823a | public void screenConfig()
{
} |
fd5b4f3d-0b3d-4664-b12a-9d90cffb4dc7 | public double Centrifugal(double distance,double mass_planet, double mass_sun, Force gravity){
return gravity.Centrifugal(distance,mass_planet,mass_sun);
} |
ded68141-a372-4ee8-8335-eab57ccf44b0 | public void setCustomText27(java.lang.String customText27) {
this.customText27 = customText27;
} |
52dc07a9-f990-4dc2-a965-d30772422145 | public void setCustomNumber54(java.math.BigDecimal customNumber54) {
this.customNumber54 = customNumber54;
} |
5fcef8f1-c123-44d3-924d-a3f1e6f9b000 | public String getSuccess() {
return this.success;
} |
bd0d6674-0670-4f96-9e70-d818cc508e97 | public crmondemand.xml.contact.query.QueryType getCustomPickList41() {
return this.customPickList41;
} |
a09fcd92-383b-4377-995c-f5ed72479a91 | public crmondemand.xml.contact.query.QueryType getCustomCurrency19() {
return this.customCurrency19;
} |
8891a263-e0e6-4ed1-a07b-e8bd21473697 | public crmondemand.xml.customobject6.query.QueryType getCustomPhone7() {
return this.customPhone7;
} |
d851bc9d-eca5-4f11-9346-ee5892f89d86 | public void setCustomNumber47(java.math.BigDecimal customNumber47) {
this.customNumber47 = customNumber47;
} |
a0a4829b-03c5-4d31-bd1a-a951232ded68 | public crmondemand.xml.opportunity.query.QueryType getCustomNumber12() {
return this.customNumber12;
} |
947bd63b-fff7-4b3c-8088-84af415849bd | public void setOrderItemOrderItemNum(java.math.BigDecimal orderItemOrderItemNum) {
this.orderItemOrderItemNum = orderItemOrderItemNum;
} |
83b635f6-2384-48e8-85a6-47b704e24747 | public void setCustomPickList2(java.lang.String customPickList2)
{
this.customPickList2 = customPickList2;
} |
26d3df15-969f-4ccc-913b-e639be8e24d4 | public int getId() {
return id_;
} |
596d82fb-ded3-4015-b20e-a9d046e05784 | public void write(org.apache.thrift.protocol.TProtocol oprot, exists_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.interfaceName != null) {
oprot.writeFieldBegin(INTERFACE_NAME_FIELD_DESC);
oprot.writeString(struct.interfaceName);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class exists_argsTupleSchemeFactory implements SchemeFactory {
public exists_argsTupleScheme getScheme() {
return new exists_argsTupleScheme();
}
}
private static class exists_argsTupleScheme extends TupleScheme<exists_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, exists_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetInterfaceName()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetInterfaceName()) {
oprot.writeString(struct.interfaceName);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, exists_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(true);
}
}
}
}
public static class exists_result implements org.apache.thrift.TBase<exists_result, exists_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exists_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new exists_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new exists_resultTupleSchemeFactory());
}
public boolean 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 Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : 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 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(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exists_result.class, metaDataMap);
}
public exists_result() {
}
public exists_result(
boolean success)
{
this();
this.success = success;
setSuccessIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public exists_result(exists_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
}
public exists_result deepCopy() {
return new exists_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = false;
}
public boolean isSuccess() {
return this.success;
}
public exists_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Boolean.valueOf(isSuccess());
}
throw new 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 IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof exists_result)
return this.equals((exists_result)that);
return false;
}
public boolean equals(exists_result that) {
if (that == null)
return false;
boolean this_present_success = true;
boolean that_present_success = true;
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (this.success != that.success)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(exists_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
exists_result typedOther = (exists_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.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 {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("exists_result(");
boolean first = true;
sb.append("success:");
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, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
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 exists_resultStandardSchemeFactory implements SchemeFactory {
public exists_resultStandardScheme getScheme() {
return new exists_resultStandardScheme();
}
}
private static class exists_resultStandardScheme extends StandardScheme<exists_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, exists_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.BOOL) {
struct.success = iprot.readBool();
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, exists_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBool(struct.success);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class exists_resultTupleSchemeFactory implements SchemeFactory {
public exists_resultTupleScheme getScheme() {
return new exists_resultTupleScheme();
}
}
private static class exists_resultTupleScheme extends TupleScheme<exists_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
oprot.writeBool(struct.success);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
}
}
}
}
public static class put_args implements org.apache.thrift.TBase<put_args, put_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("put_args");
private static final org.apache.thrift.protocol.TField INTERFACE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("interfaceName", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMPL_CLASS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("implClassName", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField CLASS_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("classNames", org.apache.thrift.protocol.TType.LIST, (short)3);
private static final org.apache.thrift.protocol.TField CLASSES_FIELD_DESC = new org.apache.thrift.protocol.TField("classes", org.apache.thrift.protocol.TType.LIST, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new put_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new put_argsTupleSchemeFactory());
}
public String interfaceName; // required
public String implClassName; // required
public List<String> classNames; // required
public List<ByteBuffer> classes; // 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 {
INTERFACE_NAME((short)1, "interfaceName"),
IMPL_CLASS_NAME((short)2, "implClassName"),
CLASS_NAMES((short)3, "classNames"),
CLASSES((short)4, "classes");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : 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: // INTERFACE_NAME
return INTERFACE_NAME;
case 2: // IMPL_CLASS_NAME
return IMPL_CLASS_NAME;
case 3: // CLASS_NAMES
return CLASS_NAMES;
case 4: // CLASSES
return CLASSES;
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 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(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.INTERFACE_NAME, new org.apache.thrift.meta_data.FieldMetaData("interfaceName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.IMPL_CLASS_NAME, new org.apache.thrift.meta_data.FieldMetaData("implClassName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CLASS_NAMES, new org.apache.thrift.meta_data.FieldMetaData("classNames", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.CLASSES, new org.apache.thrift.meta_data.FieldMetaData("classes", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_args.class, metaDataMap);
}
public put_args() {
}
public put_args(
String interfaceName,
String implClassName,
List<String> classNames,
List<ByteBuffer> classes)
{
this();
this.interfaceName = interfaceName;
this.implClassName = implClassName;
this.classNames = classNames;
this.classes = classes;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public put_args(put_args other) {
if (other.isSetInterfaceName()) {
this.interfaceName = other.interfaceName;
}
if (other.isSetImplClassName()) {
this.implClassName = other.implClassName;
}
if (other.isSetClassNames()) {
List<String> __this__classNames = new ArrayList<String>();
for (String other_element : other.classNames) {
__this__classNames.add(other_element);
}
this.classNames = __this__classNames;
}
if (other.isSetClasses()) {
List<ByteBuffer> __this__classes = new ArrayList<ByteBuffer>();
for (ByteBuffer other_element : other.classes) {
ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element);
;
__this__classes.add(temp_binary_element);
}
this.classes = __this__classes;
}
}
public put_args deepCopy() {
return new put_args(this);
}
@Override
public void clear() {
this.interfaceName = null;
this.implClassName = null;
this.classNames = null;
this.classes = null;
}
public String getInterfaceName() {
return this.interfaceName;
}
public put_args setInterfaceName(String interfaceName) {
this.interfaceName = interfaceName;
return this;
}
public void unsetInterfaceName() {
this.interfaceName = null;
}
/** Returns true if field interfaceName is set (has been assigned a value) and false otherwise */
public boolean isSetInterfaceName() {
return this.interfaceName != null;
}
public void setInterfaceNameIsSet(boolean value) {
if (!value) {
this.interfaceName = null;
}
}
public String getImplClassName() {
return this.implClassName;
}
public put_args setImplClassName(String implClassName) {
this.implClassName = implClassName;
return this;
}
public void unsetImplClassName() {
this.implClassName = null;
}
/** Returns true if field implClassName is set (has been assigned a value) and false otherwise */
public boolean isSetImplClassName() {
return this.implClassName != null;
}
public void setImplClassNameIsSet(boolean value) {
if (!value) {
this.implClassName = null;
}
}
public int getClassNamesSize() {
return (this.classNames == null) ? 0 : this.classNames.size();
}
public java.util.Iterator<String> getClassNamesIterator() {
return (this.classNames == null) ? null : this.classNames.iterator();
}
public void addToClassNames(String elem) {
if (this.classNames == null) {
this.classNames = new ArrayList<String>();
}
this.classNames.add(elem);
}
public List<String> getClassNames() {
return this.classNames;
}
public put_args setClassNames(List<String> classNames) {
this.classNames = classNames;
return this;
}
public void unsetClassNames() {
this.classNames = null;
}
/** Returns true if field classNames is set (has been assigned a value) and false otherwise */
public boolean isSetClassNames() {
return this.classNames != null;
}
public void setClassNamesIsSet(boolean value) {
if (!value) {
this.classNames = null;
}
}
public int getClassesSize() {
return (this.classes == null) ? 0 : this.classes.size();
}
public java.util.Iterator<ByteBuffer> getClassesIterator() {
return (this.classes == null) ? null : this.classes.iterator();
}
public void addToClasses(ByteBuffer elem) {
if (this.classes == null) {
this.classes = new ArrayList<ByteBuffer>();
}
this.classes.add(elem);
}
public List<ByteBuffer> getClasses() {
return this.classes;
}
public put_args setClasses(List<ByteBuffer> classes) {
this.classes = classes;
return this;
}
public void unsetClasses() {
this.classes = null;
}
/** Returns true if field classes is set (has been assigned a value) and false otherwise */
public boolean isSetClasses() {
return this.classes != null;
}
public void setClassesIsSet(boolean value) {
if (!value) {
this.classes = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case INTERFACE_NAME:
if (value == null) {
unsetInterfaceName();
} else {
setInterfaceName((String)value);
}
break;
case IMPL_CLASS_NAME:
if (value == null) {
unsetImplClassName();
} else {
setImplClassName((String)value);
}
break;
case CLASS_NAMES:
if (value == null) {
unsetClassNames();
} else {
setClassNames((List<String>)value);
}
break;
case CLASSES:
if (value == null) {
unsetClasses();
} else {
setClasses((List<ByteBuffer>)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case INTERFACE_NAME:
return getInterfaceName();
case IMPL_CLASS_NAME:
return getImplClassName();
case CLASS_NAMES:
return getClassNames();
case CLASSES:
return getClasses();
}
throw new 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 IllegalArgumentException();
}
switch (field) {
case INTERFACE_NAME:
return isSetInterfaceName();
case IMPL_CLASS_NAME:
return isSetImplClassName();
case CLASS_NAMES:
return isSetClassNames();
case CLASSES:
return isSetClasses();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof put_args)
return this.equals((put_args)that);
return false;
}
public boolean equals(put_args that) {
if (that == null)
return false;
boolean this_present_interfaceName = true && this.isSetInterfaceName();
boolean that_present_interfaceName = true && that.isSetInterfaceName();
if (this_present_interfaceName || that_present_interfaceName) {
if (!(this_present_interfaceName && that_present_interfaceName))
return false;
if (!this.interfaceName.equals(that.interfaceName))
return false;
}
boolean this_present_implClassName = true && this.isSetImplClassName();
boolean that_present_implClassName = true && that.isSetImplClassName();
if (this_present_implClassName || that_present_implClassName) {
if (!(this_present_implClassName && that_present_implClassName))
return false;
if (!this.implClassName.equals(that.implClassName))
return false;
}
boolean this_present_classNames = true && this.isSetClassNames();
boolean that_present_classNames = true && that.isSetClassNames();
if (this_present_classNames || that_present_classNames) {
if (!(this_present_classNames && that_present_classNames))
return false;
if (!this.classNames.equals(that.classNames))
return false;
}
boolean this_present_classes = true && this.isSetClasses();
boolean that_present_classes = true && that.isSetClasses();
if (this_present_classes || that_present_classes) {
if (!(this_present_classes && that_present_classes))
return false;
if (!this.classes.equals(that.classes))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(put_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
put_args typedOther = (put_args)other;
lastComparison = Boolean.valueOf(isSetInterfaceName()).compareTo(typedOther.isSetInterfaceName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetInterfaceName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.interfaceName, typedOther.interfaceName);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetImplClassName()).compareTo(typedOther.isSetImplClassName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetImplClassName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.implClassName, typedOther.implClassName);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetClassNames()).compareTo(typedOther.isSetClassNames());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetClassNames()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.classNames, typedOther.classNames);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetClasses()).compareTo(typedOther.isSetClasses());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetClasses()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.classes, typedOther.classes);
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 {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("put_args(");
boolean first = true;
sb.append("interfaceName:");
if (this.interfaceName == null) {
sb.append("null");
} else {
sb.append(this.interfaceName);
}
first = false;
if (!first) sb.append(", ");
sb.append("implClassName:");
if (this.implClassName == null) {
sb.append("null");
} else {
sb.append(this.implClassName);
}
first = false;
if (!first) sb.append(", ");
sb.append("classNames:");
if (this.classNames == null) {
sb.append("null");
} else {
sb.append(this.classNames);
}
first = false;
if (!first) sb.append(", ");
sb.append("classes:");
if (this.classes == null) {
sb.append("null");
} else {
sb.append(this.classes);
}
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, 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 put_argsStandardSchemeFactory implements SchemeFactory {
public put_argsStandardScheme getScheme() {
return new put_argsStandardScheme();
}
}
private static class put_argsStandardScheme extends StandardScheme<put_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, put_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: // INTERFACE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // IMPL_CLASS_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.implClassName = iprot.readString();
struct.setImplClassNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // CLASS_NAMES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
struct.classNames = new ArrayList<String>(_list0.size);
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
{
String _elem2; // required
_elem2 = iprot.readString();
struct.classNames.add(_elem2);
}
iprot.readListEnd();
}
struct.setClassNamesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // CLASSES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list3 = iprot.readListBegin();
struct.classes = new ArrayList<ByteBuffer>(_list3.size);
for (int _i4 = 0; _i4 < _list3.size; ++_i4)
{
ByteBuffer _elem5; // required
_elem5 = iprot.readBinary();
struct.classes.add(_elem5);
}
iprot.readListEnd();
}
struct.setClassesIsSet(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, put_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.interfaceName != null) {
oprot.writeFieldBegin(INTERFACE_NAME_FIELD_DESC);
oprot.writeString(struct.interfaceName);
oprot.writeFieldEnd();
}
if (struct.implClassName != null) {
oprot.writeFieldBegin(IMPL_CLASS_NAME_FIELD_DESC);
oprot.writeString(struct.implClassName);
oprot.writeFieldEnd();
}
if (struct.classNames != null) {
oprot.writeFieldBegin(CLASS_NAMES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.classNames.size()));
for (String _iter6 : struct.classNames)
{
oprot.writeString(_iter6);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.classes != null) {
oprot.writeFieldBegin(CLASSES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.classes.size()));
for (ByteBuffer _iter7 : struct.classes)
{
oprot.writeBinary(_iter7);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class put_argsTupleSchemeFactory implements SchemeFactory {
public put_argsTupleScheme getScheme() {
return new put_argsTupleScheme();
}
}
private static class put_argsTupleScheme extends TupleScheme<put_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, put_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetInterfaceName()) {
optionals.set(0);
}
if (struct.isSetImplClassName()) {
optionals.set(1);
}
if (struct.isSetClassNames()) {
optionals.set(2);
}
if (struct.isSetClasses()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetInterfaceName()) {
oprot.writeString(struct.interfaceName);
}
if (struct.isSetImplClassName()) {
oprot.writeString(struct.implClassName);
}
if (struct.isSetClassNames()) {
{
oprot.writeI32(struct.classNames.size());
for (String _iter8 : struct.classNames)
{
oprot.writeString(_iter8);
}
}
}
if (struct.isSetClasses()) {
{
oprot.writeI32(struct.classes.size());
for (ByteBuffer _iter9 : struct.classes)
{
oprot.writeBinary(_iter9);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, put_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(true);
}
if (incoming.get(1)) {
struct.implClassName = iprot.readString();
struct.setImplClassNameIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TList _list10 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.classNames = new ArrayList<String>(_list10.size);
for (int _i11 = 0; _i11 < _list10.size; ++_i11)
{
String _elem12; // required
_elem12 = iprot.readString();
struct.classNames.add(_elem12);
}
}
struct.setClassNamesIsSet(true);
}
if (incoming.get(3)) {
{
org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.classes = new ArrayList<ByteBuffer>(_list13.size);
for (int _i14 = 0; _i14 < _list13.size; ++_i14)
{
ByteBuffer _elem15; // required
_elem15 = iprot.readBinary();
struct.classes.add(_elem15);
}
}
struct.setClassesIsSet(true);
}
}
}
}
public static class put_result implements org.apache.thrift.TBase<put_result, put_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("put_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new put_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new put_resultTupleSchemeFactory());
}
public boolean 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 Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : 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 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(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_result.class, metaDataMap);
}
public put_result() {
}
public put_result(
boolean success)
{
this();
this.success = success;
setSuccessIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public put_result(put_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
}
public put_result deepCopy() {
return new put_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = false;
}
public boolean isSuccess() {
return this.success;
}
public put_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Boolean.valueOf(isSuccess());
}
throw new 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 IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof put_result)
return this.equals((put_result)that);
return false;
}
public boolean equals(put_result that) {
if (that == null)
return false;
boolean this_present_success = true;
boolean that_present_success = true;
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (this.success != that.success)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(put_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
put_result typedOther = (put_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.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 {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("put_result(");
boolean first = true;
sb.append("success:");
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, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
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 put_resultStandardSchemeFactory implements SchemeFactory {
public put_resultStandardScheme getScheme() {
return new put_resultStandardScheme();
}
}
private static class put_resultStandardScheme extends StandardScheme<put_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, put_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.BOOL) {
struct.success = iprot.readBool();
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, put_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBool(struct.success);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class put_resultTupleSchemeFactory implements SchemeFactory {
public put_resultTupleScheme getScheme() {
return new put_resultTupleScheme();
}
}
private static class put_resultTupleScheme extends TupleScheme<put_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, put_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
oprot.writeBool(struct.success);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, put_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
}
}
}
}
public static class remove_args implements org.apache.thrift.TBase<remove_args, remove_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("remove_args");
private static final org.apache.thrift.protocol.TField INTERFACE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("interfaceName", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new remove_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new remove_argsTupleSchemeFactory());
}
public String interfaceName; // 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 {
INTERFACE_NAME((short)1, "interfaceName");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : 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: // INTERFACE_NAME
return INTERFACE_NAME;
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 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(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.INTERFACE_NAME, new org.apache.thrift.meta_data.FieldMetaData("interfaceName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(remove_args.class, metaDataMap);
}
public remove_args() {
}
public remove_args(
String interfaceName)
{
this();
this.interfaceName = interfaceName;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public remove_args(remove_args other) {
if (other.isSetInterfaceName()) {
this.interfaceName = other.interfaceName;
}
}
public remove_args deepCopy() {
return new remove_args(this);
}
@Override
public void clear() {
this.interfaceName = null;
}
public String getInterfaceName() {
return this.interfaceName;
}
public remove_args setInterfaceName(String interfaceName) {
this.interfaceName = interfaceName;
return this;
}
public void unsetInterfaceName() {
this.interfaceName = null;
}
/** Returns true if field interfaceName is set (has been assigned a value) and false otherwise */
public boolean isSetInterfaceName() {
return this.interfaceName != null;
}
public void setInterfaceNameIsSet(boolean value) {
if (!value) {
this.interfaceName = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case INTERFACE_NAME:
if (value == null) {
unsetInterfaceName();
} else {
setInterfaceName((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case INTERFACE_NAME:
return getInterfaceName();
}
throw new 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 IllegalArgumentException();
}
switch (field) {
case INTERFACE_NAME:
return isSetInterfaceName();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof remove_args)
return this.equals((remove_args)that);
return false;
}
public boolean equals(remove_args that) {
if (that == null)
return false;
boolean this_present_interfaceName = true && this.isSetInterfaceName();
boolean that_present_interfaceName = true && that.isSetInterfaceName();
if (this_present_interfaceName || that_present_interfaceName) {
if (!(this_present_interfaceName && that_present_interfaceName))
return false;
if (!this.interfaceName.equals(that.interfaceName))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(remove_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
remove_args typedOther = (remove_args)other;
lastComparison = Boolean.valueOf(isSetInterfaceName()).compareTo(typedOther.isSetInterfaceName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetInterfaceName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.interfaceName, typedOther.interfaceName);
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 {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("remove_args(");
boolean first = true;
sb.append("interfaceName:");
if (this.interfaceName == null) {
sb.append("null");
} else {
sb.append(this.interfaceName);
}
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, 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 remove_argsStandardSchemeFactory implements SchemeFactory {
public remove_argsStandardScheme getScheme() {
return new remove_argsStandardScheme();
}
}
private static class remove_argsStandardScheme extends StandardScheme<remove_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, remove_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: // INTERFACE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(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, remove_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.interfaceName != null) {
oprot.writeFieldBegin(INTERFACE_NAME_FIELD_DESC);
oprot.writeString(struct.interfaceName);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class remove_argsTupleSchemeFactory implements SchemeFactory {
public remove_argsTupleScheme getScheme() {
return new remove_argsTupleScheme();
}
}
private static class remove_argsTupleScheme extends TupleScheme<remove_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, remove_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetInterfaceName()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetInterfaceName()) {
oprot.writeString(struct.interfaceName);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, remove_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(true);
}
}
}
}
public static class remove_result implements org.apache.thrift.TBase<remove_result, remove_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("remove_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new remove_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new remove_resultTupleSchemeFactory());
}
public boolean 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 Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : 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 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(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(remove_result.class, metaDataMap);
}
public remove_result() {
}
public remove_result(
boolean success)
{
this();
this.success = success;
setSuccessIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public remove_result(remove_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
}
public remove_result deepCopy() {
return new remove_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = false;
}
public boolean isSuccess() {
return this.success;
}
public remove_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Boolean.valueOf(isSuccess());
}
throw new 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 IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof remove_result)
return this.equals((remove_result)that);
return false;
}
public boolean equals(remove_result that) {
if (that == null)
return false;
boolean this_present_success = true;
boolean that_present_success = true;
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (this.success != that.success)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(remove_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
remove_result typedOther = (remove_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.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 {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("remove_result(");
boolean first = true;
sb.append("success:");
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, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
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 remove_resultStandardSchemeFactory implements SchemeFactory {
public remove_resultStandardScheme getScheme() {
return new remove_resultStandardScheme();
}
}
private static class remove_resultStandardScheme extends StandardScheme<remove_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, remove_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.BOOL) {
struct.success = iprot.readBool();
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, remove_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBool(struct.success);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class remove_resultTupleSchemeFactory implements SchemeFactory {
public remove_resultTupleScheme getScheme() {
return new remove_resultTupleScheme();
}
}
private static class remove_resultTupleScheme extends TupleScheme<remove_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, remove_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
oprot.writeBool(struct.success);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, remove_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
}
}
}
}
public static class execute_args implements org.apache.thrift.TBase<execute_args, execute_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_args");
private static final org.apache.thrift.protocol.TField INTERFACE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("interfaceName", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField THRIFT_BINARIES_FIELD_DESC = new org.apache.thrift.protocol.TField("thriftBinaries", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new execute_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new execute_argsTupleSchemeFactory());
}
public String interfaceName; // required
public ByteBuffer thriftBinaries; // 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 {
INTERFACE_NAME((short)1, "interfaceName"),
THRIFT_BINARIES((short)2, "thriftBinaries");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : 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: // INTERFACE_NAME
return INTERFACE_NAME;
case 2: // THRIFT_BINARIES
return THRIFT_BINARIES;
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 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(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.INTERFACE_NAME, new org.apache.thrift.meta_data.FieldMetaData("interfaceName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.THRIFT_BINARIES, new org.apache.thrift.meta_data.FieldMetaData("thriftBinaries", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(execute_args.class, metaDataMap);
}
public execute_args() {
}
public execute_args(
String interfaceName,
ByteBuffer thriftBinaries)
{
this();
this.interfaceName = interfaceName;
this.thriftBinaries = thriftBinaries;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public execute_args(execute_args other) {
if (other.isSetInterfaceName()) {
this.interfaceName = other.interfaceName;
}
if (other.isSetThriftBinaries()) {
this.thriftBinaries = org.apache.thrift.TBaseHelper.copyBinary(other.thriftBinaries);
;
}
}
public execute_args deepCopy() {
return new execute_args(this);
}
@Override
public void clear() {
this.interfaceName = null;
this.thriftBinaries = null;
}
public String getInterfaceName() {
return this.interfaceName;
}
public execute_args setInterfaceName(String interfaceName) {
this.interfaceName = interfaceName;
return this;
}
public void unsetInterfaceName() {
this.interfaceName = null;
}
/** Returns true if field interfaceName is set (has been assigned a value) and false otherwise */
public boolean isSetInterfaceName() {
return this.interfaceName != null;
}
public void setInterfaceNameIsSet(boolean value) {
if (!value) {
this.interfaceName = null;
}
}
public byte[] getThriftBinaries() {
setThriftBinaries(org.apache.thrift.TBaseHelper.rightSize(thriftBinaries));
return thriftBinaries == null ? null : thriftBinaries.array();
}
public ByteBuffer bufferForThriftBinaries() {
return thriftBinaries;
}
public execute_args setThriftBinaries(byte[] thriftBinaries) {
setThriftBinaries(thriftBinaries == null ? (ByteBuffer)null : ByteBuffer.wrap(thriftBinaries));
return this;
}
public execute_args setThriftBinaries(ByteBuffer thriftBinaries) {
this.thriftBinaries = thriftBinaries;
return this;
}
public void unsetThriftBinaries() {
this.thriftBinaries = null;
}
/** Returns true if field thriftBinaries is set (has been assigned a value) and false otherwise */
public boolean isSetThriftBinaries() {
return this.thriftBinaries != null;
}
public void setThriftBinariesIsSet(boolean value) {
if (!value) {
this.thriftBinaries = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case INTERFACE_NAME:
if (value == null) {
unsetInterfaceName();
} else {
setInterfaceName((String)value);
}
break;
case THRIFT_BINARIES:
if (value == null) {
unsetThriftBinaries();
} else {
setThriftBinaries((ByteBuffer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case INTERFACE_NAME:
return getInterfaceName();
case THRIFT_BINARIES:
return getThriftBinaries();
}
throw new 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 IllegalArgumentException();
}
switch (field) {
case INTERFACE_NAME:
return isSetInterfaceName();
case THRIFT_BINARIES:
return isSetThriftBinaries();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof execute_args)
return this.equals((execute_args)that);
return false;
}
public boolean equals(execute_args that) {
if (that == null)
return false;
boolean this_present_interfaceName = true && this.isSetInterfaceName();
boolean that_present_interfaceName = true && that.isSetInterfaceName();
if (this_present_interfaceName || that_present_interfaceName) {
if (!(this_present_interfaceName && that_present_interfaceName))
return false;
if (!this.interfaceName.equals(that.interfaceName))
return false;
}
boolean this_present_thriftBinaries = true && this.isSetThriftBinaries();
boolean that_present_thriftBinaries = true && that.isSetThriftBinaries();
if (this_present_thriftBinaries || that_present_thriftBinaries) {
if (!(this_present_thriftBinaries && that_present_thriftBinaries))
return false;
if (!this.thriftBinaries.equals(that.thriftBinaries))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(execute_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
execute_args typedOther = (execute_args)other;
lastComparison = Boolean.valueOf(isSetInterfaceName()).compareTo(typedOther.isSetInterfaceName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetInterfaceName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.interfaceName, typedOther.interfaceName);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetThriftBinaries()).compareTo(typedOther.isSetThriftBinaries());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetThriftBinaries()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.thriftBinaries, typedOther.thriftBinaries);
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 {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("execute_args(");
boolean first = true;
sb.append("interfaceName:");
if (this.interfaceName == null) {
sb.append("null");
} else {
sb.append(this.interfaceName);
}
first = false;
if (!first) sb.append(", ");
sb.append("thriftBinaries:");
if (this.thriftBinaries == null) {
sb.append("null");
} else {
org.apache.thrift.TBaseHelper.toString(this.thriftBinaries, sb);
}
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, 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 execute_argsStandardSchemeFactory implements SchemeFactory {
public execute_argsStandardScheme getScheme() {
return new execute_argsStandardScheme();
}
}
private static class execute_argsStandardScheme extends StandardScheme<execute_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, execute_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: // INTERFACE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // THRIFT_BINARIES
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.thriftBinaries = iprot.readBinary();
struct.setThriftBinariesIsSet(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, execute_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.interfaceName != null) {
oprot.writeFieldBegin(INTERFACE_NAME_FIELD_DESC);
oprot.writeString(struct.interfaceName);
oprot.writeFieldEnd();
}
if (struct.thriftBinaries != null) {
oprot.writeFieldBegin(THRIFT_BINARIES_FIELD_DESC);
oprot.writeBinary(struct.thriftBinaries);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class execute_argsTupleSchemeFactory implements SchemeFactory {
public execute_argsTupleScheme getScheme() {
return new execute_argsTupleScheme();
}
}
private static class execute_argsTupleScheme extends TupleScheme<execute_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, execute_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetInterfaceName()) {
optionals.set(0);
}
if (struct.isSetThriftBinaries()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetInterfaceName()) {
oprot.writeString(struct.interfaceName);
}
if (struct.isSetThriftBinaries()) {
oprot.writeBinary(struct.thriftBinaries);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, execute_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(true);
}
if (incoming.get(1)) {
struct.thriftBinaries = iprot.readBinary();
struct.setThriftBinariesIsSet(true);
}
}
}
}
public static class execute_result implements org.apache.thrift.TBase<execute_result, execute_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new execute_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new execute_resultTupleSchemeFactory());
}
public ByteBuffer success; // required
public InvalidExcuteException e; // 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"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : 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;
case 1: // E
return E;
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 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(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(execute_result.class, metaDataMap);
}
public execute_result() {
}
public execute_result(
ByteBuffer success,
InvalidExcuteException e)
{
this();
this.success = success;
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public execute_result(execute_result other) {
if (other.isSetSuccess()) {
this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success);
;
}
if (other.isSetE()) {
this.e = new InvalidExcuteException(other.e);
}
}
public execute_result deepCopy() {
return new execute_result(this);
}
@Override
public void clear() {
this.success = null;
this.e = null;
}
public byte[] getSuccess() {
setSuccess(org.apache.thrift.TBaseHelper.rightSize(success));
return success == null ? null : success.array();
}
public ByteBuffer bufferForSuccess() {
return success;
}
public execute_result setSuccess(byte[] success) {
setSuccess(success == null ? (ByteBuffer)null : ByteBuffer.wrap(success));
return this;
}
public execute_result setSuccess(ByteBuffer 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 InvalidExcuteException getE() {
return this.e;
}
public execute_result setE(InvalidExcuteException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((ByteBuffer)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((InvalidExcuteException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E:
return getE();
}
throw new 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 IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof execute_result)
return this.equals((execute_result)that);
return false;
}
public boolean equals(execute_result that) {
if (that == null)
return false;
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;
}
boolean this_present_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(execute_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
execute_result typedOther = (execute_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
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 {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("execute_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
org.apache.thrift.TBaseHelper.toString(this.success, sb);
}
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
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, 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 execute_resultStandardSchemeFactory implements SchemeFactory {
public execute_resultStandardScheme getScheme() {
return new execute_resultStandardScheme();
}
}
private static class execute_resultStandardScheme extends StandardScheme<execute_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, execute_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.STRING) {
struct.success = iprot.readBinary();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new InvalidExcuteException();
struct.e.read(iprot);
struct.setEIsSet(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, execute_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBinary(struct.success);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class execute_resultTupleSchemeFactory implements SchemeFactory {
public execute_resultTupleScheme getScheme() {
return new execute_resultTupleScheme();
}
}
private static class execute_resultTupleScheme extends TupleScheme<execute_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, execute_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
oprot.writeBinary(struct.success);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, execute_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = iprot.readBinary();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new InvalidExcuteException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
} |
945c5d33-6a3b-4a7b-9a38-cc9ba4638741 | public crmondemand.xml.opportunity.query.QueryType getOpportunityRevenue() {
return this.opportunityRevenue;
} |
de7fadf3-d269-4d62-ae03-d78debb201a0 | public crmondemand.xml.customobject6.query.QueryType getCustomNumber19() {
return this.customNumber19;
} |
17a47bfc-b549-434b-9191-10f77397e036 | public void setCustomDate27(java.util.Calendar customDate27) {
this.customDate27 = customDate27;
} |
d6f67793-75be-41e5-91d7-5d9a6eacee6b | public void setCustomPickList97(java.lang.String customPickList97) {
this.customPickList97 = customPickList97;
} |
380f62f2-1e89-4e74-b332-e317b47d361e | public java.lang.String getCustomPickList69() {
return this.customPickList69;
} |
5d05b80b-1383-48db-9eb0-64648634b319 | public IndexOutput createOutput(String name, IOContext context) throws IOException {
ensureOpen();
// Paranoia defense: if this trips we have a bug somewhere...
IndexWriter.this.ensureOpen(false);
// This Directory is only supposed to be used during merging,
// so all writes should have MERGE context, else there is a bug
// somewhere that is failing to pass down the right IOContext:
assert context.context == IOContext.Context.MERGE: "got context=" + context.context;
MergeRateLimiter rateLimiter = rateLimiters.get();
assert rateLimiter != null;
return new RateLimitedIndexOutput(rateLimiter, in.createOutput(name, context));
} |
7b217e4b-5f3b-440e-b7f9-3c5de5584dab | public java.lang.Boolean getCustomBoolean3() {
return this.customBoolean3;
} |
f32fae98-40f3-429e-8a7b-49db3e435400 | @Override
public void resolve() {
card.addCounter(Counters.P1P1, countKithkin());
//System.out.println("all counters: " +card.sumAllCounters());
} |
03fd5549-a39b-438c-86f1-183af17aa45a | public crmondemand.xml.customobject3.query.QueryType getCustomPickList49() {
return this.customPickList49;
} |
92b2e611-8ddd-4cf5-8a3f-6d72529cb685 | public crmondemand.xml.customobject3.query.QueryType getSolutionId() {
return this.solutionId;
} |
a66c1f8d-b5c1-41fc-a10f-334f59de189b | public void setCustomNumber61(java.math.BigDecimal customNumber61) {
this.customNumber61 = customNumber61;
} |
6b1ea143-03d8-4afc-9792-19deed6cc077 | public void handler() {
if (m68klog != null) {
fclose(m68klog);
}
throw new UnsupportedOperationException("Unimplemented");
} |
33df70aa-a819-42e9-8011-5b84249d30af | public void setCustomNumber11(java.math.BigDecimal customNumber11) {
this.customNumber11 = customNumber11;
} |
935c49b1-19f1-4712-a064-20a4aa7a903b | public void setCustomObject2Type(crmondemand.xml.contact.query.QueryType customObject2Type) {
this.customObject2Type = customObject2Type;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.