From c2a576b6dd36d14cf8ee9814b37f4521f84039c0 Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Tue, 23 Nov 2021 09:57:13 +0800 Subject: [PATCH 01/10] update thrift --- .../src/main/generated/AppendLogRequest.java | 112 +- client/src/main/generated/ErrorCode.java | 76 +- .../com/vesoft/nebula/ErrorCode.java | 2 +- .../generated/com/vesoft/nebula/LogEntry.java | 357 ++++ .../nebula/graph/ExecutionResponse.java | 28 +- .../com/vesoft/nebula/meta/AddGroupReq.java | 20 +- .../vesoft/nebula/meta/AddListenerReq.java | 22 +- .../com/vesoft/nebula/meta/AddZoneReq.java | 22 +- .../com/vesoft/nebula/meta/AdminCmd.java | 3 + .../com/vesoft/nebula/meta/BackupInfo.java | 22 +- .../com/vesoft/nebula/meta/BackupMeta.java | 48 +- .../com/vesoft/nebula/meta/BalanceTask.java | 267 ++- .../vesoft/nebula/meta/CreateBackupReq.java | 20 +- .../com/vesoft/nebula/meta/FTIndex.java | 20 +- .../com/vesoft/nebula/meta/GetConfigResp.java | 22 +- .../com/vesoft/nebula/meta/GetGroupResp.java | 20 +- .../com/vesoft/nebula/meta/GetZoneResp.java | 22 +- .../com/vesoft/nebula/meta/Group.java | 20 +- .../com/vesoft/nebula/meta/KillQueryReq.java | 44 +- .../nebula/meta/ListClusterInfoResp.java | 44 +- .../vesoft/nebula/meta/ListConfigsResp.java | 22 +- .../vesoft/nebula/meta/ListFTClientsResp.java | 22 +- .../vesoft/nebula/meta/ListFTIndexesResp.java | 28 +- .../vesoft/nebula/meta/ListGroupsResp.java | 22 +- .../nebula/meta/ListIndexStatusResp.java | 22 +- .../vesoft/nebula/meta/ListListenerResp.java | 22 +- .../vesoft/nebula/meta/ListSessionsResp.java | 22 +- .../vesoft/nebula/meta/ListSnapshotsResp.java | 22 +- .../com/vesoft/nebula/meta/ListZonesResp.java | 22 +- .../com/vesoft/nebula/meta/MetaService.java | 1780 ++++------------- .../com/vesoft/nebula/meta/RegConfigReq.java | 22 +- .../vesoft/nebula/meta/RestoreMetaReq.java | 42 +- .../com/vesoft/nebula/meta/Session.java | 56 +- .../nebula/meta/SignInFTServiceReq.java | 22 +- .../vesoft/nebula/meta/SpaceBackupInfo.java | 22 +- .../vesoft/nebula/meta/UpdateSessionsReq.java | 22 +- .../nebula/meta/UpdateSessionsResp.java | 52 +- .../com/vesoft/nebula/meta/Zone.java | 22 +- .../storage/InternalStorageService.java | 1136 ----------- .../nebula/storage/InternalTxnRequest.java | 644 ------ .../com/vesoft/nebula/storage/TaskPara.java | 88 +- .../nebula/client/graph/data/ResultSet.java | 2 +- 42 files changed, 1505 insertions(+), 3800 deletions(-) create mode 100644 client/src/main/generated/com/vesoft/nebula/LogEntry.java delete mode 100644 client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java delete mode 100644 client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java diff --git a/client/src/main/generated/AppendLogRequest.java b/client/src/main/generated/AppendLogRequest.java index fd8a542f2..693fce6c0 100644 --- a/client/src/main/generated/AppendLogRequest.java +++ b/client/src/main/generated/AppendLogRequest.java @@ -35,7 +35,6 @@ public class AppendLogRequest implements TBase, java.io.Serializable, Cloneable, private static final TField LAST_LOG_ID_SENT_FIELD_DESC = new TField("last_log_id_sent", TType.I64, (short)9); private static final TField LOG_TERM_FIELD_DESC = new TField("log_term", TType.I64, (short)10); private static final TField LOG_STR_LIST_FIELD_DESC = new TField("log_str_list", TType.LIST, (short)11); - private static final TField SENDING_SNAPSHOT_FIELD_DESC = new TField("sending_snapshot", TType.BOOL, (short)12); public int space; public int part; @@ -47,8 +46,7 @@ public class AppendLogRequest implements TBase, java.io.Serializable, Cloneable, public long last_log_term_sent; public long last_log_id_sent; public long log_term; - public List log_str_list; - public boolean sending_snapshot; + public List log_str_list; public static final int SPACE = 1; public static final int PART = 2; public static final int CURRENT_TERM = 3; @@ -60,7 +58,6 @@ public class AppendLogRequest implements TBase, java.io.Serializable, Cloneable, public static final int LAST_LOG_ID_SENT = 9; public static final int LOG_TERM = 10; public static final int LOG_STR_LIST = 11; - public static final int SENDING_SNAPSHOT = 12; // isset id assignments private static final int __SPACE_ISSET_ID = 0; @@ -72,8 +69,7 @@ public class AppendLogRequest implements TBase, java.io.Serializable, Cloneable, private static final int __LAST_LOG_TERM_SENT_ISSET_ID = 6; private static final int __LAST_LOG_ID_SENT_ISSET_ID = 7; private static final int __LOG_TERM_ISSET_ID = 8; - private static final int __SENDING_SNAPSHOT_ISSET_ID = 9; - private BitSet __isset_bit_vector = new BitSet(10); + private BitSet __isset_bit_vector = new BitSet(9); public static final Map metaDataMap; @@ -101,9 +97,7 @@ public class AppendLogRequest implements TBase, java.io.Serializable, Cloneable, new FieldValueMetaData(TType.I64))); tmpMetaDataMap.put(LOG_STR_LIST, new FieldMetaData("log_str_list", TFieldRequirementType.DEFAULT, new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, LogEntry.class)))); - tmpMetaDataMap.put(SENDING_SNAPSHOT, new FieldMetaData("sending_snapshot", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + new StructMetaData(TType.STRUCT, com.vesoft.nebula.LogEntry.class)))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -125,8 +119,7 @@ public AppendLogRequest( long last_log_term_sent, long last_log_id_sent, long log_term, - List log_str_list, - boolean sending_snapshot) { + List log_str_list) { this(); this.space = space; setSpaceIsSet(true); @@ -148,8 +141,6 @@ public AppendLogRequest( this.log_term = log_term; setLog_termIsSet(true); this.log_str_list = log_str_list; - this.sending_snapshot = sending_snapshot; - setSending_snapshotIsSet(true); } public static class Builder { @@ -163,10 +154,9 @@ public static class Builder { private long last_log_term_sent; private long last_log_id_sent; private long log_term; - private List log_str_list; - private boolean sending_snapshot; + private List log_str_list; - BitSet __optional_isset = new BitSet(10); + BitSet __optional_isset = new BitSet(9); public Builder() { } @@ -230,17 +220,11 @@ public Builder setLog_term(final long log_term) { return this; } - public Builder setLog_str_list(final List log_str_list) { + public Builder setLog_str_list(final List log_str_list) { this.log_str_list = log_str_list; return this; } - public Builder setSending_snapshot(final boolean sending_snapshot) { - this.sending_snapshot = sending_snapshot; - __optional_isset.set(__SENDING_SNAPSHOT_ISSET_ID, true); - return this; - } - public AppendLogRequest build() { AppendLogRequest result = new AppendLogRequest(); if (__optional_isset.get(__SPACE_ISSET_ID)) { @@ -272,9 +256,6 @@ public AppendLogRequest build() { result.setLog_term(this.log_term); } result.setLog_str_list(this.log_str_list); - if (__optional_isset.get(__SENDING_SNAPSHOT_ISSET_ID)) { - result.setSending_snapshot(this.sending_snapshot); - } return result; } } @@ -304,7 +285,6 @@ public AppendLogRequest(AppendLogRequest other) { if (other.isSetLog_str_list()) { this.log_str_list = TBaseHelper.deepCopy(other.log_str_list); } - this.sending_snapshot = TBaseHelper.deepCopy(other.sending_snapshot); } public AppendLogRequest deepCopy() { @@ -542,11 +522,11 @@ public void setLog_termIsSet(boolean __value) { __isset_bit_vector.set(__LOG_TERM_ISSET_ID, __value); } - public List getLog_str_list() { + public List getLog_str_list() { return this.log_str_list; } - public AppendLogRequest setLog_str_list(List log_str_list) { + public AppendLogRequest setLog_str_list(List log_str_list) { this.log_str_list = log_str_list; return this; } @@ -566,29 +546,6 @@ public void setLog_str_listIsSet(boolean __value) { } } - public boolean isSending_snapshot() { - return this.sending_snapshot; - } - - public AppendLogRequest setSending_snapshot(boolean sending_snapshot) { - this.sending_snapshot = sending_snapshot; - setSending_snapshotIsSet(true); - return this; - } - - public void unsetSending_snapshot() { - __isset_bit_vector.clear(__SENDING_SNAPSHOT_ISSET_ID); - } - - // Returns true if field sending_snapshot is set (has been assigned a value) and false otherwise - public boolean isSetSending_snapshot() { - return __isset_bit_vector.get(__SENDING_SNAPSHOT_ISSET_ID); - } - - public void setSending_snapshotIsSet(boolean __value) { - __isset_bit_vector.set(__SENDING_SNAPSHOT_ISSET_ID, __value); - } - @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -676,15 +633,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetLog_str_list(); } else { - setLog_str_list((List)__value); - } - break; - - case SENDING_SNAPSHOT: - if (__value == null) { - unsetSending_snapshot(); - } else { - setSending_snapshot((Boolean)__value); + setLog_str_list((List)__value); } break; @@ -728,9 +677,6 @@ public Object getFieldValue(int fieldID) { case LOG_STR_LIST: return getLog_str_list(); - case SENDING_SNAPSHOT: - return new Boolean(isSending_snapshot()); - default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -768,14 +714,12 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.isSetLog_str_list(), that.isSetLog_str_list(), this.log_str_list, that.log_str_list)) { return false; } - if (!TBaseHelper.equalsNobinary(this.sending_snapshot, that.sending_snapshot)) { return false; } - return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space, part, current_term, last_log_id, committed_log_id, leader_addr, leader_port, last_log_term_sent, last_log_id_sent, log_term, log_str_list, sending_snapshot}); + return Arrays.deepHashCode(new Object[] {space, part, current_term, last_log_id, committed_log_id, leader_addr, leader_port, last_log_term_sent, last_log_id_sent, log_term, log_str_list}); } @Override @@ -878,14 +822,6 @@ public int compareTo(AppendLogRequest other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetSending_snapshot()).compareTo(other.isSetSending_snapshot()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(sending_snapshot, other.sending_snapshot); - if (lastComparison != 0) { - return lastComparison; - } return 0; } @@ -983,13 +919,13 @@ public void read(TProtocol iprot) throws TException { if (__field.type == TType.LIST) { { TList _list0 = iprot.readListBegin(); - this.log_str_list = new ArrayList(Math.max(0, _list0.size)); + this.log_str_list = new ArrayList(Math.max(0, _list0.size)); for (int _i1 = 0; (_list0.size < 0) ? iprot.peekList() : (_i1 < _list0.size); ++_i1) { - LogEntry _elem2; - _elem2 = new LogEntry(); + com.vesoft.nebula.LogEntry _elem2; + _elem2 = new com.vesoft.nebula.LogEntry(); _elem2.read(iprot); this.log_str_list.add(_elem2); } @@ -999,14 +935,6 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case SENDING_SNAPSHOT: - if (__field.type == TType.BOOL) { - this.sending_snapshot = iprot.readBool(); - setSending_snapshotIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -1060,16 +988,13 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(LOG_STR_LIST_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.log_str_list.size())); - for (LogEntry _iter3 : this.log_str_list) { + for (com.vesoft.nebula.LogEntry _iter3 : this.log_str_list) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } - oprot.writeFieldBegin(SENDING_SNAPSHOT_FIELD_DESC); - oprot.writeBool(this.sending_snapshot); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1174,13 +1099,6 @@ public String toString(int indent, boolean prettyPrint) { sb.append(TBaseHelper.toString(this.getLog_str_list(), indent + 1, prettyPrint)); } first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("sending_snapshot"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.isSending_snapshot(), indent + 1, prettyPrint)); - first = false; sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); sb.append(")"); return sb.toString(); diff --git a/client/src/main/generated/ErrorCode.java b/client/src/main/generated/ErrorCode.java index f2d9a87db..c3e2942b9 100644 --- a/client/src/main/generated/ErrorCode.java +++ b/client/src/main/generated/ErrorCode.java @@ -12,32 +12,21 @@ @SuppressWarnings({ "unused" }) public enum ErrorCode implements com.facebook.thrift.TEnum { SUCCEEDED(0), - E_LOG_GAP(-1), - E_LOG_STALE(-2), - E_MISSING_COMMIT(-3), - E_WAITING_SNAPSHOT(-4), - E_UNKNOWN_PART(-5), - E_TERM_OUT_OF_DATE(-6), - E_LAST_LOG_TERM_TOO_OLD(-7), - E_BAD_STATE(-8), - E_WRONG_LEADER(-9), + E_UNKNOWN_PART(-1), + E_LOG_GAP(-2), + E_LOG_STALE(-3), + E_TERM_OUT_OF_DATE(-4), + E_WAITING_SNAPSHOT(-5), + E_BAD_STATE(-6), + E_WRONG_LEADER(-7), + E_NOT_READY(-8), + E_BAD_ROLE(-9), E_WAL_FAIL(-10), - E_NOT_READY(-11), - E_HOST_STOPPED(-12), - E_NOT_A_LEADER(-13), - E_HOST_DISCONNECTED(-14), - E_TOO_MANY_REQUESTS(-15), - E_PERSIST_SNAPSHOT_FAILED(-16), - E_BAD_ROLE(-17), - E_EXCEPTION(-20); - - private static final Map INDEXED_VALUES = new HashMap(); - - static { - for (ErrorCode e: values()) { - INDEXED_VALUES.put(e.getValue(), e); - } - } + E_HOST_STOPPED(-11), + E_TOO_MANY_REQUESTS(-12), + E_PERSIST_SNAPSHOT_FAILED(-13), + E_RPC_EXCEPTION(-14), + E_NO_WAL_FOUND(-15); private final int value; @@ -57,6 +46,41 @@ public int getValue() { * @return null if the value is not found. */ public static ErrorCode findByValue(int value) { - return INDEXED_VALUES.get(value); + switch (value) { + case 0: + return SUCCEEDED; + case -1: + return E_UNKNOWN_PART; + case -2: + return E_LOG_GAP; + case -3: + return E_LOG_STALE; + case -4: + return E_TERM_OUT_OF_DATE; + case -5: + return E_WAITING_SNAPSHOT; + case -6: + return E_BAD_STATE; + case -7: + return E_WRONG_LEADER; + case -8: + return E_NOT_READY; + case -9: + return E_BAD_ROLE; + case -10: + return E_WAL_FAIL; + case -11: + return E_HOST_STOPPED; + case -12: + return E_TOO_MANY_REQUESTS; + case -13: + return E_PERSIST_SNAPSHOT_FAILED; + case -14: + return E_RPC_EXCEPTION; + case -15: + return E_NO_WAL_FOUND; + default: + return null; + } } } diff --git a/client/src/main/generated/com/vesoft/nebula/ErrorCode.java b/client/src/main/generated/com/vesoft/nebula/ErrorCode.java index c31b591bd..cd84b2ceb 100644 --- a/client/src/main/generated/com/vesoft/nebula/ErrorCode.java +++ b/client/src/main/generated/com/vesoft/nebula/ErrorCode.java @@ -66,7 +66,7 @@ public enum ErrorCode implements com.facebook.thrift.TEnum { E_BALANCED(-2024), E_NO_RUNNING_BALANCE_PLAN(-2025), E_NO_VALID_HOST(-2026), - E_CORRUPTTED_BALANCE_PLAN(-2027), + E_CORRUPTED_BALANCE_PLAN(-2027), E_NO_INVALID_BALANCE_PLAN(-2028), E_IMPROPER_ROLE(-2030), E_INVALID_PARTITION_NUM(-2031), diff --git a/client/src/main/generated/com/vesoft/nebula/LogEntry.java b/client/src/main/generated/com/vesoft/nebula/LogEntry.java new file mode 100644 index 000000000..3b03c984f --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/LogEntry.java @@ -0,0 +1,357 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula; + +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import java.util.Collections; +import java.util.BitSet; +import java.util.Arrays; +import com.facebook.thrift.*; +import com.facebook.thrift.annotations.*; +import com.facebook.thrift.async.*; +import com.facebook.thrift.meta_data.*; +import com.facebook.thrift.server.*; +import com.facebook.thrift.transport.*; +import com.facebook.thrift.protocol.*; + +@SuppressWarnings({ "unused", "serial" }) +public class LogEntry implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("LogEntry"); + private static final TField CLUSTER_FIELD_DESC = new TField("cluster", TType.I64, (short)1); + private static final TField LOG_STR_FIELD_DESC = new TField("log_str", TType.STRING, (short)2); + + public long cluster; + public byte[] log_str; + public static final int CLUSTER = 1; + public static final int LOG_STR = 2; + + // isset id assignments + private static final int __CLUSTER_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(CLUSTER, new FieldMetaData("cluster", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(LOG_STR, new FieldMetaData("log_str", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(LogEntry.class, metaDataMap); + } + + public LogEntry() { + } + + public LogEntry( + long cluster, + byte[] log_str) { + this(); + this.cluster = cluster; + setClusterIsSet(true); + this.log_str = log_str; + } + + public static class Builder { + private long cluster; + private byte[] log_str; + + BitSet __optional_isset = new BitSet(1); + + public Builder() { + } + + public Builder setCluster(final long cluster) { + this.cluster = cluster; + __optional_isset.set(__CLUSTER_ISSET_ID, true); + return this; + } + + public Builder setLog_str(final byte[] log_str) { + this.log_str = log_str; + return this; + } + + public LogEntry build() { + LogEntry result = new LogEntry(); + if (__optional_isset.get(__CLUSTER_ISSET_ID)) { + result.setCluster(this.cluster); + } + result.setLog_str(this.log_str); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public LogEntry(LogEntry other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.cluster = TBaseHelper.deepCopy(other.cluster); + if (other.isSetLog_str()) { + this.log_str = TBaseHelper.deepCopy(other.log_str); + } + } + + public LogEntry deepCopy() { + return new LogEntry(this); + } + + public long getCluster() { + return this.cluster; + } + + public LogEntry setCluster(long cluster) { + this.cluster = cluster; + setClusterIsSet(true); + return this; + } + + public void unsetCluster() { + __isset_bit_vector.clear(__CLUSTER_ISSET_ID); + } + + // Returns true if field cluster is set (has been assigned a value) and false otherwise + public boolean isSetCluster() { + return __isset_bit_vector.get(__CLUSTER_ISSET_ID); + } + + public void setClusterIsSet(boolean __value) { + __isset_bit_vector.set(__CLUSTER_ISSET_ID, __value); + } + + public byte[] getLog_str() { + return this.log_str; + } + + public LogEntry setLog_str(byte[] log_str) { + this.log_str = log_str; + return this; + } + + public void unsetLog_str() { + this.log_str = null; + } + + // Returns true if field log_str is set (has been assigned a value) and false otherwise + public boolean isSetLog_str() { + return this.log_str != null; + } + + public void setLog_strIsSet(boolean __value) { + if (!__value) { + this.log_str = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case CLUSTER: + if (__value == null) { + unsetCluster(); + } else { + setCluster((Long)__value); + } + break; + + case LOG_STR: + if (__value == null) { + unsetLog_str(); + } else { + setLog_str((byte[])__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case CLUSTER: + return new Long(getCluster()); + + case LOG_STR: + return getLog_str(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof LogEntry)) + return false; + LogEntry that = (LogEntry)_that; + + if (!TBaseHelper.equalsNobinary(this.cluster, that.cluster)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetLog_str(), that.isSetLog_str(), this.log_str, that.log_str)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {cluster, log_str}); + } + + @Override + public int compareTo(LogEntry other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetCluster()).compareTo(other.isSetCluster()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(cluster, other.cluster); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLog_str()).compareTo(other.isSetLog_str()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(log_str, other.log_str); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case CLUSTER: + if (__field.type == TType.I64) { + this.cluster = iprot.readI64(); + setClusterIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LOG_STR: + if (__field.type == TType.STRING) { + this.log_str = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(CLUSTER_FIELD_DESC); + oprot.writeI64(this.cluster); + oprot.writeFieldEnd(); + if (this.log_str != null) { + oprot.writeFieldBegin(LOG_STR_FIELD_DESC); + oprot.writeBinary(this.log_str); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("LogEntry"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("cluster"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getCluster(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("log_str"); + sb.append(space); + sb.append(":").append(space); + if (this.getLog_str() == null) { + sb.append("null"); + } else { + int __log_str_size = Math.min(this.getLog_str().length, 128); + for (int i = 0; i < __log_str_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getLog_str()[i]).length() > 1 ? Integer.toHexString(this.getLog_str()[i]).substring(Integer.toHexString(this.getLog_str()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getLog_str()[i]).toUpperCase()); + } + if (this.getLog_str().length > 128) sb.append(" ..."); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + +} + diff --git a/client/src/main/generated/com/vesoft/nebula/graph/ExecutionResponse.java b/client/src/main/generated/com/vesoft/nebula/graph/ExecutionResponse.java index 3a538c63c..8c265d9f6 100644 --- a/client/src/main/generated/com/vesoft/nebula/graph/ExecutionResponse.java +++ b/client/src/main/generated/com/vesoft/nebula/graph/ExecutionResponse.java @@ -27,7 +27,7 @@ public class ExecutionResponse implements TBase, java.io.Serializable, Cloneable { private static final TStruct STRUCT_DESC = new TStruct("ExecutionResponse"); private static final TField ERROR_CODE_FIELD_DESC = new TField("error_code", TType.I32, (short)1); - private static final TField LATENCY_IN_US_FIELD_DESC = new TField("latency_in_us", TType.I32, (short)2); + private static final TField LATENCY_IN_US_FIELD_DESC = new TField("latency_in_us", TType.I64, (short)2); private static final TField DATA_FIELD_DESC = new TField("data", TType.STRUCT, (short)3); private static final TField SPACE_NAME_FIELD_DESC = new TField("space_name", TType.STRING, (short)4); private static final TField ERROR_MSG_FIELD_DESC = new TField("error_msg", TType.STRING, (short)5); @@ -39,7 +39,7 @@ public class ExecutionResponse implements TBase, java.io.Serializable, Cloneable * @see com.vesoft.nebula.ErrorCode */ public com.vesoft.nebula.ErrorCode error_code; - public int latency_in_us; + public long latency_in_us; public com.vesoft.nebula.DataSet data; public byte[] space_name; public byte[] error_msg; @@ -64,7 +64,7 @@ public class ExecutionResponse implements TBase, java.io.Serializable, Cloneable tmpMetaDataMap.put(ERROR_CODE, new FieldMetaData("error_code", TFieldRequirementType.REQUIRED, new FieldValueMetaData(TType.I32))); tmpMetaDataMap.put(LATENCY_IN_US, new FieldMetaData("latency_in_us", TFieldRequirementType.REQUIRED, - new FieldValueMetaData(TType.I32))); + new FieldValueMetaData(TType.I64))); tmpMetaDataMap.put(DATA, new FieldMetaData("data", TFieldRequirementType.OPTIONAL, new StructMetaData(TType.STRUCT, com.vesoft.nebula.DataSet.class))); tmpMetaDataMap.put(SPACE_NAME, new FieldMetaData("space_name", TFieldRequirementType.OPTIONAL, @@ -87,7 +87,7 @@ public ExecutionResponse() { public ExecutionResponse( com.vesoft.nebula.ErrorCode error_code, - int latency_in_us) { + long latency_in_us) { this(); this.error_code = error_code; this.latency_in_us = latency_in_us; @@ -96,7 +96,7 @@ public ExecutionResponse( public ExecutionResponse( com.vesoft.nebula.ErrorCode error_code, - int latency_in_us, + long latency_in_us, com.vesoft.nebula.DataSet data, byte[] space_name, byte[] error_msg, @@ -115,7 +115,7 @@ public ExecutionResponse( public static class Builder { private com.vesoft.nebula.ErrorCode error_code; - private int latency_in_us; + private long latency_in_us; private com.vesoft.nebula.DataSet data; private byte[] space_name; private byte[] error_msg; @@ -132,7 +132,7 @@ public Builder setError_code(final com.vesoft.nebula.ErrorCode error_code) { return this; } - public Builder setLatency_in_us(final int latency_in_us) { + public Builder setLatency_in_us(final long latency_in_us) { this.latency_in_us = latency_in_us; __optional_isset.set(__LATENCY_IN_US_ISSET_ID, true); return this; @@ -245,11 +245,11 @@ public void setError_codeIsSet(boolean __value) { } } - public int getLatency_in_us() { + public long getLatency_in_us() { return this.latency_in_us; } - public ExecutionResponse setLatency_in_us(int latency_in_us) { + public ExecutionResponse setLatency_in_us(long latency_in_us) { this.latency_in_us = latency_in_us; setLatency_in_usIsSet(true); return this; @@ -402,7 +402,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetLatency_in_us(); } else { - setLatency_in_us((Integer)__value); + setLatency_in_us((Long)__value); } break; @@ -457,7 +457,7 @@ public Object getFieldValue(int fieldID) { return getError_code(); case LATENCY_IN_US: - return new Integer(getLatency_in_us()); + return new Long(getLatency_in_us()); case DATA: return getData(); @@ -530,8 +530,8 @@ public void read(TProtocol iprot) throws TException { } break; case LATENCY_IN_US: - if (__field.type == TType.I32) { - this.latency_in_us = iprot.readI32(); + if (__field.type == TType.I64) { + this.latency_in_us = iprot.readI64(); setLatency_in_usIsSet(true); } else { TProtocolUtil.skip(iprot, __field.type); @@ -600,7 +600,7 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } oprot.writeFieldBegin(LATENCY_IN_US_FIELD_DESC); - oprot.writeI32(this.latency_in_us); + oprot.writeI64(this.latency_in_us); oprot.writeFieldEnd(); if (this.data != null) { if (isSetData()) { diff --git a/client/src/main/generated/com/vesoft/nebula/meta/AddGroupReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddGroupReq.java index 7dc4e4772..8f33f1678 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddGroupReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AddGroupReq.java @@ -267,15 +267,15 @@ public void read(TProtocol iprot) throws TException { case ZONE_NAMES: if (__field.type == TType.LIST) { { - TList _list218 = iprot.readListBegin(); - this.zone_names = new ArrayList(Math.max(0, _list218.size)); - for (int _i219 = 0; - (_list218.size < 0) ? iprot.peekList() : (_i219 < _list218.size); - ++_i219) + TList _list210 = iprot.readListBegin(); + this.zone_names = new ArrayList(Math.max(0, _list210.size)); + for (int _i211 = 0; + (_list210.size < 0) ? iprot.peekList() : (_i211 < _list210.size); + ++_i211) { - byte[] _elem220; - _elem220 = iprot.readBinary(); - this.zone_names.add(_elem220); + byte[] _elem212; + _elem212 = iprot.readBinary(); + this.zone_names.add(_elem212); } iprot.readListEnd(); } @@ -309,8 +309,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ZONE_NAMES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.zone_names.size())); - for (byte[] _iter221 : this.zone_names) { - oprot.writeBinary(_iter221); + for (byte[] _iter213 : this.zone_names) { + oprot.writeBinary(_iter213); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java index e9c62041d..5991ae7d1 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java @@ -356,16 +356,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - TList _list234 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list234.size)); - for (int _i235 = 0; - (_list234.size < 0) ? iprot.peekList() : (_i235 < _list234.size); - ++_i235) + TList _list226 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list226.size)); + for (int _i227 = 0; + (_list226.size < 0) ? iprot.peekList() : (_i227 < _list226.size); + ++_i227) { - com.vesoft.nebula.HostAddr _elem236; - _elem236 = new com.vesoft.nebula.HostAddr(); - _elem236.read(iprot); - this.hosts.add(_elem236); + com.vesoft.nebula.HostAddr _elem228; + _elem228 = new com.vesoft.nebula.HostAddr(); + _elem228.read(iprot); + this.hosts.add(_elem228); } iprot.readListEnd(); } @@ -402,8 +402,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(HOSTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.hosts.size())); - for (com.vesoft.nebula.HostAddr _iter237 : this.hosts) { - _iter237.write(oprot); + for (com.vesoft.nebula.HostAddr _iter229 : this.hosts) { + _iter229.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/AddZoneReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddZoneReq.java index 92bc14f6d..49c5d11a0 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddZoneReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AddZoneReq.java @@ -267,16 +267,16 @@ public void read(TProtocol iprot) throws TException { case NODES: if (__field.type == TType.LIST) { { - TList _list202 = iprot.readListBegin(); - this.nodes = new ArrayList(Math.max(0, _list202.size)); - for (int _i203 = 0; - (_list202.size < 0) ? iprot.peekList() : (_i203 < _list202.size); - ++_i203) + TList _list194 = iprot.readListBegin(); + this.nodes = new ArrayList(Math.max(0, _list194.size)); + for (int _i195 = 0; + (_list194.size < 0) ? iprot.peekList() : (_i195 < _list194.size); + ++_i195) { - com.vesoft.nebula.HostAddr _elem204; - _elem204 = new com.vesoft.nebula.HostAddr(); - _elem204.read(iprot); - this.nodes.add(_elem204); + com.vesoft.nebula.HostAddr _elem196; + _elem196 = new com.vesoft.nebula.HostAddr(); + _elem196.read(iprot); + this.nodes.add(_elem196); } iprot.readListEnd(); } @@ -310,8 +310,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(NODES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.nodes.size())); - for (com.vesoft.nebula.HostAddr _iter205 : this.nodes) { - _iter205.write(oprot); + for (com.vesoft.nebula.HostAddr _iter197 : this.nodes) { + _iter197.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/AdminCmd.java b/client/src/main/generated/com/vesoft/nebula/meta/AdminCmd.java index 4cd410204..7fad7f713 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/AdminCmd.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AdminCmd.java @@ -22,6 +22,7 @@ public enum AdminCmd implements com.facebook.thrift.TEnum { DATA_BALANCE(6), DOWNLOAD(7), INGEST(8), + LEADER_BALANCE(9), UNKNOWN(99); private final int value; @@ -61,6 +62,8 @@ public static AdminCmd findByValue(int value) { return DOWNLOAD; case 8: return INGEST; + case 9: + return LEADER_BALANCE; case 99: return UNKNOWN; default: diff --git a/client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java index 1a9f68888..fffc2edce 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java @@ -268,16 +268,16 @@ public void read(TProtocol iprot) throws TException { case INFO: if (__field.type == TType.LIST) { { - TList _list242 = iprot.readListBegin(); - this.info = new ArrayList(Math.max(0, _list242.size)); - for (int _i243 = 0; - (_list242.size < 0) ? iprot.peekList() : (_i243 < _list242.size); - ++_i243) + TList _list234 = iprot.readListBegin(); + this.info = new ArrayList(Math.max(0, _list234.size)); + for (int _i235 = 0; + (_list234.size < 0) ? iprot.peekList() : (_i235 < _list234.size); + ++_i235) { - com.vesoft.nebula.CheckpointInfo _elem244; - _elem244 = new com.vesoft.nebula.CheckpointInfo(); - _elem244.read(iprot); - this.info.add(_elem244); + com.vesoft.nebula.CheckpointInfo _elem236; + _elem236 = new com.vesoft.nebula.CheckpointInfo(); + _elem236.read(iprot); + this.info.add(_elem236); } iprot.readListEnd(); } @@ -311,8 +311,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(INFO_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.info.size())); - for (com.vesoft.nebula.CheckpointInfo _iter245 : this.info) { - _iter245.write(oprot); + for (com.vesoft.nebula.CheckpointInfo _iter237 : this.info) { + _iter237.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java b/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java index 96348ed68..29b681a68 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java @@ -521,18 +521,18 @@ public void read(TProtocol iprot) throws TException { case BACKUP_INFO: if (__field.type == TType.MAP) { { - TMap _map250 = iprot.readMapBegin(); - this.backup_info = new HashMap(Math.max(0, 2*_map250.size)); - for (int _i251 = 0; - (_map250.size < 0) ? iprot.peekMap() : (_i251 < _map250.size); - ++_i251) + TMap _map242 = iprot.readMapBegin(); + this.backup_info = new HashMap(Math.max(0, 2*_map242.size)); + for (int _i243 = 0; + (_map242.size < 0) ? iprot.peekMap() : (_i243 < _map242.size); + ++_i243) { - int _key252; - SpaceBackupInfo _val253; - _key252 = iprot.readI32(); - _val253 = new SpaceBackupInfo(); - _val253.read(iprot); - this.backup_info.put(_key252, _val253); + int _key244; + SpaceBackupInfo _val245; + _key244 = iprot.readI32(); + _val245 = new SpaceBackupInfo(); + _val245.read(iprot); + this.backup_info.put(_key244, _val245); } iprot.readMapEnd(); } @@ -543,15 +543,15 @@ public void read(TProtocol iprot) throws TException { case META_FILES: if (__field.type == TType.LIST) { { - TList _list254 = iprot.readListBegin(); - this.meta_files = new ArrayList(Math.max(0, _list254.size)); - for (int _i255 = 0; - (_list254.size < 0) ? iprot.peekList() : (_i255 < _list254.size); - ++_i255) + TList _list246 = iprot.readListBegin(); + this.meta_files = new ArrayList(Math.max(0, _list246.size)); + for (int _i247 = 0; + (_list246.size < 0) ? iprot.peekList() : (_i247 < _list246.size); + ++_i247) { - byte[] _elem256; - _elem256 = iprot.readBinary(); - this.meta_files.add(_elem256); + byte[] _elem248; + _elem248 = iprot.readBinary(); + this.meta_files.add(_elem248); } iprot.readListEnd(); } @@ -611,9 +611,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(BACKUP_INFO_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.backup_info.size())); - for (Map.Entry _iter257 : this.backup_info.entrySet()) { - oprot.writeI32(_iter257.getKey()); - _iter257.getValue().write(oprot); + for (Map.Entry _iter249 : this.backup_info.entrySet()) { + oprot.writeI32(_iter249.getKey()); + _iter249.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -623,8 +623,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(META_FILES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.meta_files.size())); - for (byte[] _iter258 : this.meta_files) { - oprot.writeBinary(_iter258); + for (byte[] _iter250 : this.meta_files) { + oprot.writeBinary(_iter250); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/BalanceTask.java b/client/src/main/generated/com/vesoft/nebula/meta/BalanceTask.java index cf8fcf9ac..1ae5700f3 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/BalanceTask.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/BalanceTask.java @@ -27,18 +27,30 @@ public class BalanceTask implements TBase, java.io.Serializable, Cloneable, Comparable { private static final TStruct STRUCT_DESC = new TStruct("BalanceTask"); private static final TField ID_FIELD_DESC = new TField("id", TType.STRING, (short)1); - private static final TField RESULT_FIELD_DESC = new TField("result", TType.I32, (short)2); + private static final TField COMMAND_FIELD_DESC = new TField("command", TType.STRING, (short)2); + private static final TField RESULT_FIELD_DESC = new TField("result", TType.I32, (short)3); + private static final TField START_TIME_FIELD_DESC = new TField("start_time", TType.I64, (short)4); + private static final TField STOP_TIME_FIELD_DESC = new TField("stop_time", TType.I64, (short)5); public byte[] id; + public byte[] command; /** * * @see TaskResult */ public TaskResult result; + public long start_time; + public long stop_time; public static final int ID = 1; - public static final int RESULT = 2; + public static final int COMMAND = 2; + public static final int RESULT = 3; + public static final int START_TIME = 4; + public static final int STOP_TIME = 5; // isset id assignments + private static final int __START_TIME_ISSET_ID = 0; + private static final int __STOP_TIME_ISSET_ID = 1; + private BitSet __isset_bit_vector = new BitSet(2); public static final Map metaDataMap; @@ -46,8 +58,14 @@ public class BalanceTask implements TBase, java.io.Serializable, Cloneable, Comp Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(COMMAND, new FieldMetaData("command", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); tmpMetaDataMap.put(RESULT, new FieldMetaData("result", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(START_TIME, new FieldMetaData("start_time", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(STOP_TIME, new FieldMetaData("stop_time", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -60,15 +78,28 @@ public BalanceTask() { public BalanceTask( byte[] id, - TaskResult result) { + byte[] command, + TaskResult result, + long start_time, + long stop_time) { this(); this.id = id; + this.command = command; this.result = result; + this.start_time = start_time; + setStart_timeIsSet(true); + this.stop_time = stop_time; + setStop_timeIsSet(true); } public static class Builder { private byte[] id; + private byte[] command; private TaskResult result; + private long start_time; + private long stop_time; + + BitSet __optional_isset = new BitSet(2); public Builder() { } @@ -78,15 +109,39 @@ public Builder setId(final byte[] id) { return this; } + public Builder setCommand(final byte[] command) { + this.command = command; + return this; + } + public Builder setResult(final TaskResult result) { this.result = result; return this; } + public Builder setStart_time(final long start_time) { + this.start_time = start_time; + __optional_isset.set(__START_TIME_ISSET_ID, true); + return this; + } + + public Builder setStop_time(final long stop_time) { + this.stop_time = stop_time; + __optional_isset.set(__STOP_TIME_ISSET_ID, true); + return this; + } + public BalanceTask build() { BalanceTask result = new BalanceTask(); result.setId(this.id); + result.setCommand(this.command); result.setResult(this.result); + if (__optional_isset.get(__START_TIME_ISSET_ID)) { + result.setStart_time(this.start_time); + } + if (__optional_isset.get(__STOP_TIME_ISSET_ID)) { + result.setStop_time(this.stop_time); + } return result; } } @@ -99,12 +154,19 @@ public static Builder builder() { * Performs a deep copy on other. */ public BalanceTask(BalanceTask other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); if (other.isSetId()) { this.id = TBaseHelper.deepCopy(other.id); } + if (other.isSetCommand()) { + this.command = TBaseHelper.deepCopy(other.command); + } if (other.isSetResult()) { this.result = TBaseHelper.deepCopy(other.result); } + this.start_time = TBaseHelper.deepCopy(other.start_time); + this.stop_time = TBaseHelper.deepCopy(other.stop_time); } public BalanceTask deepCopy() { @@ -135,6 +197,30 @@ public void setIdIsSet(boolean __value) { } } + public byte[] getCommand() { + return this.command; + } + + public BalanceTask setCommand(byte[] command) { + this.command = command; + return this; + } + + public void unsetCommand() { + this.command = null; + } + + // Returns true if field command is set (has been assigned a value) and false otherwise + public boolean isSetCommand() { + return this.command != null; + } + + public void setCommandIsSet(boolean __value) { + if (!__value) { + this.command = null; + } + } + /** * * @see TaskResult @@ -167,6 +253,52 @@ public void setResultIsSet(boolean __value) { } } + public long getStart_time() { + return this.start_time; + } + + public BalanceTask setStart_time(long start_time) { + this.start_time = start_time; + setStart_timeIsSet(true); + return this; + } + + public void unsetStart_time() { + __isset_bit_vector.clear(__START_TIME_ISSET_ID); + } + + // Returns true if field start_time is set (has been assigned a value) and false otherwise + public boolean isSetStart_time() { + return __isset_bit_vector.get(__START_TIME_ISSET_ID); + } + + public void setStart_timeIsSet(boolean __value) { + __isset_bit_vector.set(__START_TIME_ISSET_ID, __value); + } + + public long getStop_time() { + return this.stop_time; + } + + public BalanceTask setStop_time(long stop_time) { + this.stop_time = stop_time; + setStop_timeIsSet(true); + return this; + } + + public void unsetStop_time() { + __isset_bit_vector.clear(__STOP_TIME_ISSET_ID); + } + + // Returns true if field stop_time is set (has been assigned a value) and false otherwise + public boolean isSetStop_time() { + return __isset_bit_vector.get(__STOP_TIME_ISSET_ID); + } + + public void setStop_timeIsSet(boolean __value) { + __isset_bit_vector.set(__STOP_TIME_ISSET_ID, __value); + } + public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { case ID: @@ -177,6 +309,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case COMMAND: + if (__value == null) { + unsetCommand(); + } else { + setCommand((byte[])__value); + } + break; + case RESULT: if (__value == null) { unsetResult(); @@ -185,6 +325,22 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case START_TIME: + if (__value == null) { + unsetStart_time(); + } else { + setStart_time((Long)__value); + } + break; + + case STOP_TIME: + if (__value == null) { + unsetStop_time(); + } else { + setStop_time((Long)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -195,9 +351,18 @@ public Object getFieldValue(int fieldID) { case ID: return getId(); + case COMMAND: + return getCommand(); + case RESULT: return getResult(); + case START_TIME: + return new Long(getStart_time()); + + case STOP_TIME: + return new Long(getStop_time()); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -215,14 +380,20 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetId(), that.isSetId(), this.id, that.id)) { return false; } + if (!TBaseHelper.equalsSlow(this.isSetCommand(), that.isSetCommand(), this.command, that.command)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetResult(), that.isSetResult(), this.result, that.result)) { return false; } + if (!TBaseHelper.equalsNobinary(this.start_time, that.start_time)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.stop_time, that.stop_time)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {id, result}); + return Arrays.deepHashCode(new Object[] {id, command, result, start_time, stop_time}); } @Override @@ -245,6 +416,14 @@ public int compareTo(BalanceTask other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetCommand()).compareTo(other.isSetCommand()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(command, other.command); + if (lastComparison != 0) { + return lastComparison; + } lastComparison = Boolean.valueOf(isSetResult()).compareTo(other.isSetResult()); if (lastComparison != 0) { return lastComparison; @@ -253,6 +432,22 @@ public int compareTo(BalanceTask other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetStart_time()).compareTo(other.isSetStart_time()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(start_time, other.start_time); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetStop_time()).compareTo(other.isSetStop_time()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(stop_time, other.stop_time); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -274,6 +469,13 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case COMMAND: + if (__field.type == TType.STRING) { + this.command = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; case RESULT: if (__field.type == TType.I32) { this.result = TaskResult.findByValue(iprot.readI32()); @@ -281,6 +483,22 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case START_TIME: + if (__field.type == TType.I64) { + this.start_time = iprot.readI64(); + setStart_timeIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case STOP_TIME: + if (__field.type == TType.I64) { + this.stop_time = iprot.readI64(); + setStop_timeIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -303,11 +521,22 @@ public void write(TProtocol oprot) throws TException { oprot.writeBinary(this.id); oprot.writeFieldEnd(); } + if (this.command != null) { + oprot.writeFieldBegin(COMMAND_FIELD_DESC); + oprot.writeBinary(this.command); + oprot.writeFieldEnd(); + } if (this.result != null) { oprot.writeFieldBegin(RESULT_FIELD_DESC); oprot.writeI32(this.result == null ? 0 : this.result.getValue()); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(START_TIME_FIELD_DESC); + oprot.writeI64(this.start_time); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(STOP_TIME_FIELD_DESC); + oprot.writeI64(this.stop_time); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -345,6 +574,22 @@ public String toString(int indent, boolean prettyPrint) { first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); + sb.append("command"); + sb.append(space); + sb.append(":").append(space); + if (this.getCommand() == null) { + sb.append("null"); + } else { + int __command_size = Math.min(this.getCommand().length, 128); + for (int i = 0; i < __command_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getCommand()[i]).length() > 1 ? Integer.toHexString(this.getCommand()[i]).substring(Integer.toHexString(this.getCommand()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getCommand()[i]).toUpperCase()); + } + if (this.getCommand().length > 128) sb.append(" ..."); + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); sb.append("result"); sb.append(space); sb.append(":").append(space); @@ -362,6 +607,20 @@ public String toString(int indent, boolean prettyPrint) { } } first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("start_time"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getStart_time(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("stop_time"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getStop_time(), indent + 1, prettyPrint)); + first = false; sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); sb.append(")"); return sb.toString(); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java b/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java index aeff353f4..ce7a035da 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java @@ -198,15 +198,15 @@ public void read(TProtocol iprot) throws TException { case SPACES: if (__field.type == TType.LIST) { { - TList _list259 = iprot.readListBegin(); - this.spaces = new ArrayList(Math.max(0, _list259.size)); - for (int _i260 = 0; - (_list259.size < 0) ? iprot.peekList() : (_i260 < _list259.size); - ++_i260) + TList _list251 = iprot.readListBegin(); + this.spaces = new ArrayList(Math.max(0, _list251.size)); + for (int _i252 = 0; + (_list251.size < 0) ? iprot.peekList() : (_i252 < _list251.size); + ++_i252) { - byte[] _elem261; - _elem261 = iprot.readBinary(); - this.spaces.add(_elem261); + byte[] _elem253; + _elem253 = iprot.readBinary(); + this.spaces.add(_elem253); } iprot.readListEnd(); } @@ -236,8 +236,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SPACES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.spaces.size())); - for (byte[] _iter262 : this.spaces) { - oprot.writeBinary(_iter262); + for (byte[] _iter254 : this.spaces) { + oprot.writeBinary(_iter254); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java b/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java index 6050baa48..d80fb68bc 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java @@ -345,15 +345,15 @@ public void read(TProtocol iprot) throws TException { case FIELDS: if (__field.type == TType.LIST) { { - TList _list279 = iprot.readListBegin(); - this.fields = new ArrayList(Math.max(0, _list279.size)); - for (int _i280 = 0; - (_list279.size < 0) ? iprot.peekList() : (_i280 < _list279.size); - ++_i280) + TList _list271 = iprot.readListBegin(); + this.fields = new ArrayList(Math.max(0, _list271.size)); + for (int _i272 = 0; + (_list271.size < 0) ? iprot.peekList() : (_i272 < _list271.size); + ++_i272) { - byte[] _elem281; - _elem281 = iprot.readBinary(); - this.fields.add(_elem281); + byte[] _elem273; + _elem273 = iprot.readBinary(); + this.fields.add(_elem273); } iprot.readListEnd(); } @@ -390,8 +390,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(FIELDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.fields.size())); - for (byte[] _iter282 : this.fields) { - oprot.writeBinary(_iter282); + for (byte[] _iter274 : this.fields) { + oprot.writeBinary(_iter274); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/GetConfigResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetConfigResp.java index 5bebbe62c..4ec8e5b08 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/GetConfigResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetConfigResp.java @@ -310,16 +310,16 @@ public void read(TProtocol iprot) throws TException { case ITEMS: if (__field.type == TType.LIST) { { - TList _list186 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list186.size)); - for (int _i187 = 0; - (_list186.size < 0) ? iprot.peekList() : (_i187 < _list186.size); - ++_i187) + TList _list178 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list178.size)); + for (int _i179 = 0; + (_list178.size < 0) ? iprot.peekList() : (_i179 < _list178.size); + ++_i179) { - ConfigItem _elem188; - _elem188 = new ConfigItem(); - _elem188.read(iprot); - this.items.add(_elem188); + ConfigItem _elem180; + _elem180 = new ConfigItem(); + _elem180.read(iprot); + this.items.add(_elem180); } iprot.readListEnd(); } @@ -358,8 +358,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ITEMS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.items.size())); - for (ConfigItem _iter189 : this.items) { - _iter189.write(oprot); + for (ConfigItem _iter181 : this.items) { + _iter181.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/GetGroupResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetGroupResp.java index a1757fff3..83be4c9b1 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/GetGroupResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetGroupResp.java @@ -349,15 +349,15 @@ public void read(TProtocol iprot) throws TException { case ZONE_NAMES: if (__field.type == TType.LIST) { { - TList _list222 = iprot.readListBegin(); - this.zone_names = new ArrayList(Math.max(0, _list222.size)); - for (int _i223 = 0; - (_list222.size < 0) ? iprot.peekList() : (_i223 < _list222.size); - ++_i223) + TList _list214 = iprot.readListBegin(); + this.zone_names = new ArrayList(Math.max(0, _list214.size)); + for (int _i215 = 0; + (_list214.size < 0) ? iprot.peekList() : (_i215 < _list214.size); + ++_i215) { - byte[] _elem224; - _elem224 = iprot.readBinary(); - this.zone_names.add(_elem224); + byte[] _elem216; + _elem216 = iprot.readBinary(); + this.zone_names.add(_elem216); } iprot.readListEnd(); } @@ -396,8 +396,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ZONE_NAMES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.zone_names.size())); - for (byte[] _iter225 : this.zone_names) { - oprot.writeBinary(_iter225); + for (byte[] _iter217 : this.zone_names) { + oprot.writeBinary(_iter217); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/GetZoneResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetZoneResp.java index b68e90a4c..968cd76d3 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/GetZoneResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetZoneResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - TList _list206 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list206.size)); - for (int _i207 = 0; - (_list206.size < 0) ? iprot.peekList() : (_i207 < _list206.size); - ++_i207) + TList _list198 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list198.size)); + for (int _i199 = 0; + (_list198.size < 0) ? iprot.peekList() : (_i199 < _list198.size); + ++_i199) { - com.vesoft.nebula.HostAddr _elem208; - _elem208 = new com.vesoft.nebula.HostAddr(); - _elem208.read(iprot); - this.hosts.add(_elem208); + com.vesoft.nebula.HostAddr _elem200; + _elem200 = new com.vesoft.nebula.HostAddr(); + _elem200.read(iprot); + this.hosts.add(_elem200); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(HOSTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.hosts.size())); - for (com.vesoft.nebula.HostAddr _iter209 : this.hosts) { - _iter209.write(oprot); + for (com.vesoft.nebula.HostAddr _iter201 : this.hosts) { + _iter201.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/Group.java b/client/src/main/generated/com/vesoft/nebula/meta/Group.java index dad0ad82f..4dd7090c1 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/Group.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/Group.java @@ -267,15 +267,15 @@ public void read(TProtocol iprot) throws TException { case ZONE_NAMES: if (__field.type == TType.LIST) { { - TList _list226 = iprot.readListBegin(); - this.zone_names = new ArrayList(Math.max(0, _list226.size)); - for (int _i227 = 0; - (_list226.size < 0) ? iprot.peekList() : (_i227 < _list226.size); - ++_i227) + TList _list218 = iprot.readListBegin(); + this.zone_names = new ArrayList(Math.max(0, _list218.size)); + for (int _i219 = 0; + (_list218.size < 0) ? iprot.peekList() : (_i219 < _list218.size); + ++_i219) { - byte[] _elem228; - _elem228 = iprot.readBinary(); - this.zone_names.add(_elem228); + byte[] _elem220; + _elem220 = iprot.readBinary(); + this.zone_names.add(_elem220); } iprot.readListEnd(); } @@ -309,8 +309,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ZONE_NAMES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.zone_names.size())); - for (byte[] _iter229 : this.zone_names) { - oprot.writeBinary(_iter229); + for (byte[] _iter221 : this.zone_names) { + oprot.writeBinary(_iter221); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/KillQueryReq.java b/client/src/main/generated/com/vesoft/nebula/meta/KillQueryReq.java index 1e217fb6b..97ce92736 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/KillQueryReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/KillQueryReq.java @@ -200,29 +200,29 @@ public void read(TProtocol iprot) throws TException { case KILL_QUERIES: if (__field.type == TType.MAP) { { - TMap _map316 = iprot.readMapBegin(); - this.kill_queries = new HashMap>(Math.max(0, 2*_map316.size)); - for (int _i317 = 0; - (_map316.size < 0) ? iprot.peekMap() : (_i317 < _map316.size); - ++_i317) + TMap _map308 = iprot.readMapBegin(); + this.kill_queries = new HashMap>(Math.max(0, 2*_map308.size)); + for (int _i309 = 0; + (_map308.size < 0) ? iprot.peekMap() : (_i309 < _map308.size); + ++_i309) { - long _key318; - Set _val319; - _key318 = iprot.readI64(); + long _key310; + Set _val311; + _key310 = iprot.readI64(); { - TSet _set320 = iprot.readSetBegin(); - _val319 = new HashSet(Math.max(0, 2*_set320.size)); - for (int _i321 = 0; - (_set320.size < 0) ? iprot.peekSet() : (_i321 < _set320.size); - ++_i321) + TSet _set312 = iprot.readSetBegin(); + _val311 = new HashSet(Math.max(0, 2*_set312.size)); + for (int _i313 = 0; + (_set312.size < 0) ? iprot.peekSet() : (_i313 < _set312.size); + ++_i313) { - long _elem322; - _elem322 = iprot.readI64(); - _val319.add(_elem322); + long _elem314; + _elem314 = iprot.readI64(); + _val311.add(_elem314); } iprot.readSetEnd(); } - this.kill_queries.put(_key318, _val319); + this.kill_queries.put(_key310, _val311); } iprot.readMapEnd(); } @@ -251,12 +251,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(KILL_QUERIES_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I64, TType.SET, this.kill_queries.size())); - for (Map.Entry> _iter323 : this.kill_queries.entrySet()) { - oprot.writeI64(_iter323.getKey()); + for (Map.Entry> _iter315 : this.kill_queries.entrySet()) { + oprot.writeI64(_iter315.getKey()); { - oprot.writeSetBegin(new TSet(TType.I64, _iter323.getValue().size())); - for (long _iter324 : _iter323.getValue()) { - oprot.writeI64(_iter324); + oprot.writeSetBegin(new TSet(TType.I64, _iter315.getValue().size())); + for (long _iter316 : _iter315.getValue()) { + oprot.writeI64(_iter316); } oprot.writeSetEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java index b36692e5b..e45e1f169 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java @@ -412,16 +412,16 @@ public void read(TProtocol iprot) throws TException { case META_SERVERS: if (__field.type == TType.LIST) { { - TList _list325 = iprot.readListBegin(); - this.meta_servers = new ArrayList(Math.max(0, _list325.size)); - for (int _i326 = 0; - (_list325.size < 0) ? iprot.peekList() : (_i326 < _list325.size); - ++_i326) + TList _list317 = iprot.readListBegin(); + this.meta_servers = new ArrayList(Math.max(0, _list317.size)); + for (int _i318 = 0; + (_list317.size < 0) ? iprot.peekList() : (_i318 < _list317.size); + ++_i318) { - com.vesoft.nebula.HostAddr _elem327; - _elem327 = new com.vesoft.nebula.HostAddr(); - _elem327.read(iprot); - this.meta_servers.add(_elem327); + com.vesoft.nebula.HostAddr _elem319; + _elem319 = new com.vesoft.nebula.HostAddr(); + _elem319.read(iprot); + this.meta_servers.add(_elem319); } iprot.readListEnd(); } @@ -432,16 +432,16 @@ public void read(TProtocol iprot) throws TException { case STORAGE_SERVERS: if (__field.type == TType.LIST) { { - TList _list328 = iprot.readListBegin(); - this.storage_servers = new ArrayList(Math.max(0, _list328.size)); - for (int _i329 = 0; - (_list328.size < 0) ? iprot.peekList() : (_i329 < _list328.size); - ++_i329) + TList _list320 = iprot.readListBegin(); + this.storage_servers = new ArrayList(Math.max(0, _list320.size)); + for (int _i321 = 0; + (_list320.size < 0) ? iprot.peekList() : (_i321 < _list320.size); + ++_i321) { - com.vesoft.nebula.NodeInfo _elem330; - _elem330 = new com.vesoft.nebula.NodeInfo(); - _elem330.read(iprot); - this.storage_servers.add(_elem330); + com.vesoft.nebula.NodeInfo _elem322; + _elem322 = new com.vesoft.nebula.NodeInfo(); + _elem322.read(iprot); + this.storage_servers.add(_elem322); } iprot.readListEnd(); } @@ -480,8 +480,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(META_SERVERS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.meta_servers.size())); - for (com.vesoft.nebula.HostAddr _iter331 : this.meta_servers) { - _iter331.write(oprot); + for (com.vesoft.nebula.HostAddr _iter323 : this.meta_servers) { + _iter323.write(oprot); } oprot.writeListEnd(); } @@ -491,8 +491,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(STORAGE_SERVERS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.storage_servers.size())); - for (com.vesoft.nebula.NodeInfo _iter332 : this.storage_servers) { - _iter332.write(oprot); + for (com.vesoft.nebula.NodeInfo _iter324 : this.storage_servers) { + _iter324.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListConfigsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListConfigsResp.java index 72ea27d8b..3220aaa10 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListConfigsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListConfigsResp.java @@ -310,16 +310,16 @@ public void read(TProtocol iprot) throws TException { case ITEMS: if (__field.type == TType.LIST) { { - TList _list190 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list190.size)); - for (int _i191 = 0; - (_list190.size < 0) ? iprot.peekList() : (_i191 < _list190.size); - ++_i191) + TList _list182 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list182.size)); + for (int _i183 = 0; + (_list182.size < 0) ? iprot.peekList() : (_i183 < _list182.size); + ++_i183) { - ConfigItem _elem192; - _elem192 = new ConfigItem(); - _elem192.read(iprot); - this.items.add(_elem192); + ConfigItem _elem184; + _elem184 = new ConfigItem(); + _elem184.read(iprot); + this.items.add(_elem184); } iprot.readListEnd(); } @@ -358,8 +358,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ITEMS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.items.size())); - for (ConfigItem _iter193 : this.items) { - _iter193.write(oprot); + for (ConfigItem _iter185 : this.items) { + _iter185.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListFTClientsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListFTClientsResp.java index e635736be..716ac4feb 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListFTClientsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListFTClientsResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case CLIENTS: if (__field.type == TType.LIST) { { - TList _list275 = iprot.readListBegin(); - this.clients = new ArrayList(Math.max(0, _list275.size)); - for (int _i276 = 0; - (_list275.size < 0) ? iprot.peekList() : (_i276 < _list275.size); - ++_i276) + TList _list267 = iprot.readListBegin(); + this.clients = new ArrayList(Math.max(0, _list267.size)); + for (int _i268 = 0; + (_list267.size < 0) ? iprot.peekList() : (_i268 < _list267.size); + ++_i268) { - FTClient _elem277; - _elem277 = new FTClient(); - _elem277.read(iprot); - this.clients.add(_elem277); + FTClient _elem269; + _elem269 = new FTClient(); + _elem269.read(iprot); + this.clients.add(_elem269); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(CLIENTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.clients.size())); - for (FTClient _iter278 : this.clients) { - _iter278.write(oprot); + for (FTClient _iter270 : this.clients) { + _iter270.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListFTIndexesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListFTIndexesResp.java index 7da068dd9..054576646 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListFTIndexesResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListFTIndexesResp.java @@ -350,18 +350,18 @@ public void read(TProtocol iprot) throws TException { case INDEXES: if (__field.type == TType.MAP) { { - TMap _map283 = iprot.readMapBegin(); - this.indexes = new HashMap(Math.max(0, 2*_map283.size)); - for (int _i284 = 0; - (_map283.size < 0) ? iprot.peekMap() : (_i284 < _map283.size); - ++_i284) + TMap _map275 = iprot.readMapBegin(); + this.indexes = new HashMap(Math.max(0, 2*_map275.size)); + for (int _i276 = 0; + (_map275.size < 0) ? iprot.peekMap() : (_i276 < _map275.size); + ++_i276) { - byte[] _key285; - FTIndex _val286; - _key285 = iprot.readBinary(); - _val286 = new FTIndex(); - _val286.read(iprot); - this.indexes.put(_key285, _val286); + byte[] _key277; + FTIndex _val278; + _key277 = iprot.readBinary(); + _val278 = new FTIndex(); + _val278.read(iprot); + this.indexes.put(_key277, _val278); } iprot.readMapEnd(); } @@ -400,9 +400,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(INDEXES_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.indexes.size())); - for (Map.Entry _iter287 : this.indexes.entrySet()) { - oprot.writeBinary(_iter287.getKey()); - _iter287.getValue().write(oprot); + for (Map.Entry _iter279 : this.indexes.entrySet()) { + oprot.writeBinary(_iter279.getKey()); + _iter279.getValue().write(oprot); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListGroupsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListGroupsResp.java index c0e46c967..c7ddca52f 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListGroupsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListGroupsResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case GROUPS: if (__field.type == TType.LIST) { { - TList _list230 = iprot.readListBegin(); - this.groups = new ArrayList(Math.max(0, _list230.size)); - for (int _i231 = 0; - (_list230.size < 0) ? iprot.peekList() : (_i231 < _list230.size); - ++_i231) + TList _list222 = iprot.readListBegin(); + this.groups = new ArrayList(Math.max(0, _list222.size)); + for (int _i223 = 0; + (_list222.size < 0) ? iprot.peekList() : (_i223 < _list222.size); + ++_i223) { - Group _elem232; - _elem232 = new Group(); - _elem232.read(iprot); - this.groups.add(_elem232); + Group _elem224; + _elem224 = new Group(); + _elem224.read(iprot); + this.groups.add(_elem224); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(GROUPS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.groups.size())); - for (Group _iter233 : this.groups) { - _iter233.write(oprot); + for (Group _iter225 : this.groups) { + _iter225.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListIndexStatusResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListIndexStatusResp.java index 8373f7057..f9d77465a 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListIndexStatusResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListIndexStatusResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case STATUSES: if (__field.type == TType.LIST) { { - TList _list198 = iprot.readListBegin(); - this.statuses = new ArrayList(Math.max(0, _list198.size)); - for (int _i199 = 0; - (_list198.size < 0) ? iprot.peekList() : (_i199 < _list198.size); - ++_i199) + TList _list190 = iprot.readListBegin(); + this.statuses = new ArrayList(Math.max(0, _list190.size)); + for (int _i191 = 0; + (_list190.size < 0) ? iprot.peekList() : (_i191 < _list190.size); + ++_i191) { - IndexStatus _elem200; - _elem200 = new IndexStatus(); - _elem200.read(iprot); - this.statuses.add(_elem200); + IndexStatus _elem192; + _elem192 = new IndexStatus(); + _elem192.read(iprot); + this.statuses.add(_elem192); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(STATUSES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.statuses.size())); - for (IndexStatus _iter201 : this.statuses) { - _iter201.write(oprot); + for (IndexStatus _iter193 : this.statuses) { + _iter193.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListListenerResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListListenerResp.java index 957b1fab3..3636d2124 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListListenerResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListListenerResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case LISTENERS: if (__field.type == TType.LIST) { { - TList _list238 = iprot.readListBegin(); - this.listeners = new ArrayList(Math.max(0, _list238.size)); - for (int _i239 = 0; - (_list238.size < 0) ? iprot.peekList() : (_i239 < _list238.size); - ++_i239) + TList _list230 = iprot.readListBegin(); + this.listeners = new ArrayList(Math.max(0, _list230.size)); + for (int _i231 = 0; + (_list230.size < 0) ? iprot.peekList() : (_i231 < _list230.size); + ++_i231) { - ListenerInfo _elem240; - _elem240 = new ListenerInfo(); - _elem240.read(iprot); - this.listeners.add(_elem240); + ListenerInfo _elem232; + _elem232 = new ListenerInfo(); + _elem232.read(iprot); + this.listeners.add(_elem232); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(LISTENERS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.listeners.size())); - for (ListenerInfo _iter241 : this.listeners) { - _iter241.write(oprot); + for (ListenerInfo _iter233 : this.listeners) { + _iter233.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListSessionsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListSessionsResp.java index 747ff9085..601212bfc 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListSessionsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListSessionsResp.java @@ -310,16 +310,16 @@ public void read(TProtocol iprot) throws TException { case SESSIONS: if (__field.type == TType.LIST) { { - TList _list312 = iprot.readListBegin(); - this.sessions = new ArrayList(Math.max(0, _list312.size)); - for (int _i313 = 0; - (_list312.size < 0) ? iprot.peekList() : (_i313 < _list312.size); - ++_i313) + TList _list304 = iprot.readListBegin(); + this.sessions = new ArrayList(Math.max(0, _list304.size)); + for (int _i305 = 0; + (_list304.size < 0) ? iprot.peekList() : (_i305 < _list304.size); + ++_i305) { - Session _elem314; - _elem314 = new Session(); - _elem314.read(iprot); - this.sessions.add(_elem314); + Session _elem306; + _elem306 = new Session(); + _elem306.read(iprot); + this.sessions.add(_elem306); } iprot.readListEnd(); } @@ -358,8 +358,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SESSIONS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.sessions.size())); - for (Session _iter315 : this.sessions) { - _iter315.write(oprot); + for (Session _iter307 : this.sessions) { + _iter307.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListSnapshotsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListSnapshotsResp.java index a81d9d8fb..d02617438 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListSnapshotsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListSnapshotsResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case SNAPSHOTS: if (__field.type == TType.LIST) { { - TList _list194 = iprot.readListBegin(); - this.snapshots = new ArrayList(Math.max(0, _list194.size)); - for (int _i195 = 0; - (_list194.size < 0) ? iprot.peekList() : (_i195 < _list194.size); - ++_i195) + TList _list186 = iprot.readListBegin(); + this.snapshots = new ArrayList(Math.max(0, _list186.size)); + for (int _i187 = 0; + (_list186.size < 0) ? iprot.peekList() : (_i187 < _list186.size); + ++_i187) { - Snapshot _elem196; - _elem196 = new Snapshot(); - _elem196.read(iprot); - this.snapshots.add(_elem196); + Snapshot _elem188; + _elem188 = new Snapshot(); + _elem188.read(iprot); + this.snapshots.add(_elem188); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SNAPSHOTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.snapshots.size())); - for (Snapshot _iter197 : this.snapshots) { - _iter197.write(oprot); + for (Snapshot _iter189 : this.snapshots) { + _iter189.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListZonesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListZonesResp.java index 0312f1aa4..a6340ea74 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListZonesResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListZonesResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case ZONES: if (__field.type == TType.LIST) { { - TList _list214 = iprot.readListBegin(); - this.zones = new ArrayList(Math.max(0, _list214.size)); - for (int _i215 = 0; - (_list214.size < 0) ? iprot.peekList() : (_i215 < _list214.size); - ++_i215) + TList _list206 = iprot.readListBegin(); + this.zones = new ArrayList(Math.max(0, _list206.size)); + for (int _i207 = 0; + (_list206.size < 0) ? iprot.peekList() : (_i207 < _list206.size); + ++_i207) { - Zone _elem216; - _elem216 = new Zone(); - _elem216.read(iprot); - this.zones.add(_elem216); + Zone _elem208; + _elem208 = new Zone(); + _elem208.read(iprot); + this.zones.add(_elem208); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ZONES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.zones.size())); - for (Zone _iter217 : this.zones) { - _iter217.write(oprot); + for (Zone _iter209 : this.zones) { + _iter209.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java b/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java index 818acaa9e..d727d5037 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java @@ -123,10 +123,6 @@ public interface Iface { public HBResp heartBeat(HBReq req) throws TException; - public BalanceResp balance(BalanceReq req) throws TException; - - public ExecResp leaderBalance(LeaderBalanceReq req) throws TException; - public ExecResp regConfig(RegConfigReq req) throws TException; public GetConfigResp getConfig(GetConfigReq req) throws TException; @@ -307,10 +303,6 @@ public interface AsyncIface { public void heartBeat(HBReq req, AsyncMethodCallback resultHandler) throws TException; - public void balance(BalanceReq req, AsyncMethodCallback resultHandler) throws TException; - - public void leaderBalance(LeaderBalanceReq req, AsyncMethodCallback resultHandler) throws TException; - public void regConfig(RegConfigReq req, AsyncMethodCallback resultHandler) throws TException; public void getConfig(GetConfigReq req, AsyncMethodCallback resultHandler) throws TException; @@ -2496,96 +2488,6 @@ public HBResp recv_heartBeat() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "heartBeat failed: unknown result"); } - public BalanceResp balance(BalanceReq req) throws TException - { - ContextStack ctx = getContextStack("MetaService.balance", null); - this.setContextStack(ctx); - send_balance(req); - return recv_balance(); - } - - public void send_balance(BalanceReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.balance", null); - oprot_.writeMessageBegin(new TMessage("balance", TMessageType.CALL, seqid_)); - balance_args args = new balance_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.balance", args); - return; - } - - public BalanceResp recv_balance() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "MetaService.balance"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - balance_result result = new balance_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.balance", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "balance failed: unknown result"); - } - - public ExecResp leaderBalance(LeaderBalanceReq req) throws TException - { - ContextStack ctx = getContextStack("MetaService.leaderBalance", null); - this.setContextStack(ctx); - send_leaderBalance(req); - return recv_leaderBalance(); - } - - public void send_leaderBalance(LeaderBalanceReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.leaderBalance", null); - oprot_.writeMessageBegin(new TMessage("leaderBalance", TMessageType.CALL, seqid_)); - leaderBalance_args args = new leaderBalance_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.leaderBalance", args); - return; - } - - public ExecResp recv_leaderBalance() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "MetaService.leaderBalance"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - leaderBalance_result result = new leaderBalance_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.leaderBalance", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "leaderBalance failed: unknown result"); - } - public ExecResp regConfig(RegConfigReq req) throws TException { ContextStack ctx = getContextStack("MetaService.regConfig", null); @@ -4494,17 +4396,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void createSpace(CreateSpaceReq req, AsyncMethodCallback resultHandler426) throws TException { + public void createSpace(CreateSpaceReq req, AsyncMethodCallback resultHandler416) throws TException { checkReady(); - createSpace_call method_call = new createSpace_call(req, resultHandler426, this, ___protocolFactory, ___transport); + createSpace_call method_call = new createSpace_call(req, resultHandler416, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createSpace_call extends TAsyncMethodCall { private CreateSpaceReq req; - public createSpace_call(CreateSpaceReq req, AsyncMethodCallback resultHandler427, TAsyncClient client423, TProtocolFactory protocolFactory424, TNonblockingTransport transport425) throws TException { - super(client423, protocolFactory424, transport425, resultHandler427, false); + public createSpace_call(CreateSpaceReq req, AsyncMethodCallback resultHandler417, TAsyncClient client413, TProtocolFactory protocolFactory414, TNonblockingTransport transport415) throws TException { + super(client413, protocolFactory414, transport415, resultHandler417, false); this.req = req; } @@ -4526,17 +4428,17 @@ public ExecResp getResult() throws TException { } } - public void dropSpace(DropSpaceReq req, AsyncMethodCallback resultHandler431) throws TException { + public void dropSpace(DropSpaceReq req, AsyncMethodCallback resultHandler421) throws TException { checkReady(); - dropSpace_call method_call = new dropSpace_call(req, resultHandler431, this, ___protocolFactory, ___transport); + dropSpace_call method_call = new dropSpace_call(req, resultHandler421, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropSpace_call extends TAsyncMethodCall { private DropSpaceReq req; - public dropSpace_call(DropSpaceReq req, AsyncMethodCallback resultHandler432, TAsyncClient client428, TProtocolFactory protocolFactory429, TNonblockingTransport transport430) throws TException { - super(client428, protocolFactory429, transport430, resultHandler432, false); + public dropSpace_call(DropSpaceReq req, AsyncMethodCallback resultHandler422, TAsyncClient client418, TProtocolFactory protocolFactory419, TNonblockingTransport transport420) throws TException { + super(client418, protocolFactory419, transport420, resultHandler422, false); this.req = req; } @@ -4558,17 +4460,17 @@ public ExecResp getResult() throws TException { } } - public void getSpace(GetSpaceReq req, AsyncMethodCallback resultHandler436) throws TException { + public void getSpace(GetSpaceReq req, AsyncMethodCallback resultHandler426) throws TException { checkReady(); - getSpace_call method_call = new getSpace_call(req, resultHandler436, this, ___protocolFactory, ___transport); + getSpace_call method_call = new getSpace_call(req, resultHandler426, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getSpace_call extends TAsyncMethodCall { private GetSpaceReq req; - public getSpace_call(GetSpaceReq req, AsyncMethodCallback resultHandler437, TAsyncClient client433, TProtocolFactory protocolFactory434, TNonblockingTransport transport435) throws TException { - super(client433, protocolFactory434, transport435, resultHandler437, false); + public getSpace_call(GetSpaceReq req, AsyncMethodCallback resultHandler427, TAsyncClient client423, TProtocolFactory protocolFactory424, TNonblockingTransport transport425) throws TException { + super(client423, protocolFactory424, transport425, resultHandler427, false); this.req = req; } @@ -4590,17 +4492,17 @@ public GetSpaceResp getResult() throws TException { } } - public void listSpaces(ListSpacesReq req, AsyncMethodCallback resultHandler441) throws TException { + public void listSpaces(ListSpacesReq req, AsyncMethodCallback resultHandler431) throws TException { checkReady(); - listSpaces_call method_call = new listSpaces_call(req, resultHandler441, this, ___protocolFactory, ___transport); + listSpaces_call method_call = new listSpaces_call(req, resultHandler431, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listSpaces_call extends TAsyncMethodCall { private ListSpacesReq req; - public listSpaces_call(ListSpacesReq req, AsyncMethodCallback resultHandler442, TAsyncClient client438, TProtocolFactory protocolFactory439, TNonblockingTransport transport440) throws TException { - super(client438, protocolFactory439, transport440, resultHandler442, false); + public listSpaces_call(ListSpacesReq req, AsyncMethodCallback resultHandler432, TAsyncClient client428, TProtocolFactory protocolFactory429, TNonblockingTransport transport430) throws TException { + super(client428, protocolFactory429, transport430, resultHandler432, false); this.req = req; } @@ -4622,17 +4524,17 @@ public ListSpacesResp getResult() throws TException { } } - public void createSpaceAs(CreateSpaceAsReq req, AsyncMethodCallback resultHandler446) throws TException { + public void createSpaceAs(CreateSpaceAsReq req, AsyncMethodCallback resultHandler436) throws TException { checkReady(); - createSpaceAs_call method_call = new createSpaceAs_call(req, resultHandler446, this, ___protocolFactory, ___transport); + createSpaceAs_call method_call = new createSpaceAs_call(req, resultHandler436, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createSpaceAs_call extends TAsyncMethodCall { private CreateSpaceAsReq req; - public createSpaceAs_call(CreateSpaceAsReq req, AsyncMethodCallback resultHandler447, TAsyncClient client443, TProtocolFactory protocolFactory444, TNonblockingTransport transport445) throws TException { - super(client443, protocolFactory444, transport445, resultHandler447, false); + public createSpaceAs_call(CreateSpaceAsReq req, AsyncMethodCallback resultHandler437, TAsyncClient client433, TProtocolFactory protocolFactory434, TNonblockingTransport transport435) throws TException { + super(client433, protocolFactory434, transport435, resultHandler437, false); this.req = req; } @@ -4654,17 +4556,17 @@ public ExecResp getResult() throws TException { } } - public void createTag(CreateTagReq req, AsyncMethodCallback resultHandler451) throws TException { + public void createTag(CreateTagReq req, AsyncMethodCallback resultHandler441) throws TException { checkReady(); - createTag_call method_call = new createTag_call(req, resultHandler451, this, ___protocolFactory, ___transport); + createTag_call method_call = new createTag_call(req, resultHandler441, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createTag_call extends TAsyncMethodCall { private CreateTagReq req; - public createTag_call(CreateTagReq req, AsyncMethodCallback resultHandler452, TAsyncClient client448, TProtocolFactory protocolFactory449, TNonblockingTransport transport450) throws TException { - super(client448, protocolFactory449, transport450, resultHandler452, false); + public createTag_call(CreateTagReq req, AsyncMethodCallback resultHandler442, TAsyncClient client438, TProtocolFactory protocolFactory439, TNonblockingTransport transport440) throws TException { + super(client438, protocolFactory439, transport440, resultHandler442, false); this.req = req; } @@ -4686,17 +4588,17 @@ public ExecResp getResult() throws TException { } } - public void alterTag(AlterTagReq req, AsyncMethodCallback resultHandler456) throws TException { + public void alterTag(AlterTagReq req, AsyncMethodCallback resultHandler446) throws TException { checkReady(); - alterTag_call method_call = new alterTag_call(req, resultHandler456, this, ___protocolFactory, ___transport); + alterTag_call method_call = new alterTag_call(req, resultHandler446, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class alterTag_call extends TAsyncMethodCall { private AlterTagReq req; - public alterTag_call(AlterTagReq req, AsyncMethodCallback resultHandler457, TAsyncClient client453, TProtocolFactory protocolFactory454, TNonblockingTransport transport455) throws TException { - super(client453, protocolFactory454, transport455, resultHandler457, false); + public alterTag_call(AlterTagReq req, AsyncMethodCallback resultHandler447, TAsyncClient client443, TProtocolFactory protocolFactory444, TNonblockingTransport transport445) throws TException { + super(client443, protocolFactory444, transport445, resultHandler447, false); this.req = req; } @@ -4718,17 +4620,17 @@ public ExecResp getResult() throws TException { } } - public void dropTag(DropTagReq req, AsyncMethodCallback resultHandler461) throws TException { + public void dropTag(DropTagReq req, AsyncMethodCallback resultHandler451) throws TException { checkReady(); - dropTag_call method_call = new dropTag_call(req, resultHandler461, this, ___protocolFactory, ___transport); + dropTag_call method_call = new dropTag_call(req, resultHandler451, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropTag_call extends TAsyncMethodCall { private DropTagReq req; - public dropTag_call(DropTagReq req, AsyncMethodCallback resultHandler462, TAsyncClient client458, TProtocolFactory protocolFactory459, TNonblockingTransport transport460) throws TException { - super(client458, protocolFactory459, transport460, resultHandler462, false); + public dropTag_call(DropTagReq req, AsyncMethodCallback resultHandler452, TAsyncClient client448, TProtocolFactory protocolFactory449, TNonblockingTransport transport450) throws TException { + super(client448, protocolFactory449, transport450, resultHandler452, false); this.req = req; } @@ -4750,17 +4652,17 @@ public ExecResp getResult() throws TException { } } - public void getTag(GetTagReq req, AsyncMethodCallback resultHandler466) throws TException { + public void getTag(GetTagReq req, AsyncMethodCallback resultHandler456) throws TException { checkReady(); - getTag_call method_call = new getTag_call(req, resultHandler466, this, ___protocolFactory, ___transport); + getTag_call method_call = new getTag_call(req, resultHandler456, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getTag_call extends TAsyncMethodCall { private GetTagReq req; - public getTag_call(GetTagReq req, AsyncMethodCallback resultHandler467, TAsyncClient client463, TProtocolFactory protocolFactory464, TNonblockingTransport transport465) throws TException { - super(client463, protocolFactory464, transport465, resultHandler467, false); + public getTag_call(GetTagReq req, AsyncMethodCallback resultHandler457, TAsyncClient client453, TProtocolFactory protocolFactory454, TNonblockingTransport transport455) throws TException { + super(client453, protocolFactory454, transport455, resultHandler457, false); this.req = req; } @@ -4782,17 +4684,17 @@ public GetTagResp getResult() throws TException { } } - public void listTags(ListTagsReq req, AsyncMethodCallback resultHandler471) throws TException { + public void listTags(ListTagsReq req, AsyncMethodCallback resultHandler461) throws TException { checkReady(); - listTags_call method_call = new listTags_call(req, resultHandler471, this, ___protocolFactory, ___transport); + listTags_call method_call = new listTags_call(req, resultHandler461, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listTags_call extends TAsyncMethodCall { private ListTagsReq req; - public listTags_call(ListTagsReq req, AsyncMethodCallback resultHandler472, TAsyncClient client468, TProtocolFactory protocolFactory469, TNonblockingTransport transport470) throws TException { - super(client468, protocolFactory469, transport470, resultHandler472, false); + public listTags_call(ListTagsReq req, AsyncMethodCallback resultHandler462, TAsyncClient client458, TProtocolFactory protocolFactory459, TNonblockingTransport transport460) throws TException { + super(client458, protocolFactory459, transport460, resultHandler462, false); this.req = req; } @@ -4814,17 +4716,17 @@ public ListTagsResp getResult() throws TException { } } - public void createEdge(CreateEdgeReq req, AsyncMethodCallback resultHandler476) throws TException { + public void createEdge(CreateEdgeReq req, AsyncMethodCallback resultHandler466) throws TException { checkReady(); - createEdge_call method_call = new createEdge_call(req, resultHandler476, this, ___protocolFactory, ___transport); + createEdge_call method_call = new createEdge_call(req, resultHandler466, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createEdge_call extends TAsyncMethodCall { private CreateEdgeReq req; - public createEdge_call(CreateEdgeReq req, AsyncMethodCallback resultHandler477, TAsyncClient client473, TProtocolFactory protocolFactory474, TNonblockingTransport transport475) throws TException { - super(client473, protocolFactory474, transport475, resultHandler477, false); + public createEdge_call(CreateEdgeReq req, AsyncMethodCallback resultHandler467, TAsyncClient client463, TProtocolFactory protocolFactory464, TNonblockingTransport transport465) throws TException { + super(client463, protocolFactory464, transport465, resultHandler467, false); this.req = req; } @@ -4846,17 +4748,17 @@ public ExecResp getResult() throws TException { } } - public void alterEdge(AlterEdgeReq req, AsyncMethodCallback resultHandler481) throws TException { + public void alterEdge(AlterEdgeReq req, AsyncMethodCallback resultHandler471) throws TException { checkReady(); - alterEdge_call method_call = new alterEdge_call(req, resultHandler481, this, ___protocolFactory, ___transport); + alterEdge_call method_call = new alterEdge_call(req, resultHandler471, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class alterEdge_call extends TAsyncMethodCall { private AlterEdgeReq req; - public alterEdge_call(AlterEdgeReq req, AsyncMethodCallback resultHandler482, TAsyncClient client478, TProtocolFactory protocolFactory479, TNonblockingTransport transport480) throws TException { - super(client478, protocolFactory479, transport480, resultHandler482, false); + public alterEdge_call(AlterEdgeReq req, AsyncMethodCallback resultHandler472, TAsyncClient client468, TProtocolFactory protocolFactory469, TNonblockingTransport transport470) throws TException { + super(client468, protocolFactory469, transport470, resultHandler472, false); this.req = req; } @@ -4878,17 +4780,17 @@ public ExecResp getResult() throws TException { } } - public void dropEdge(DropEdgeReq req, AsyncMethodCallback resultHandler486) throws TException { + public void dropEdge(DropEdgeReq req, AsyncMethodCallback resultHandler476) throws TException { checkReady(); - dropEdge_call method_call = new dropEdge_call(req, resultHandler486, this, ___protocolFactory, ___transport); + dropEdge_call method_call = new dropEdge_call(req, resultHandler476, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropEdge_call extends TAsyncMethodCall { private DropEdgeReq req; - public dropEdge_call(DropEdgeReq req, AsyncMethodCallback resultHandler487, TAsyncClient client483, TProtocolFactory protocolFactory484, TNonblockingTransport transport485) throws TException { - super(client483, protocolFactory484, transport485, resultHandler487, false); + public dropEdge_call(DropEdgeReq req, AsyncMethodCallback resultHandler477, TAsyncClient client473, TProtocolFactory protocolFactory474, TNonblockingTransport transport475) throws TException { + super(client473, protocolFactory474, transport475, resultHandler477, false); this.req = req; } @@ -4910,17 +4812,17 @@ public ExecResp getResult() throws TException { } } - public void getEdge(GetEdgeReq req, AsyncMethodCallback resultHandler491) throws TException { + public void getEdge(GetEdgeReq req, AsyncMethodCallback resultHandler481) throws TException { checkReady(); - getEdge_call method_call = new getEdge_call(req, resultHandler491, this, ___protocolFactory, ___transport); + getEdge_call method_call = new getEdge_call(req, resultHandler481, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getEdge_call extends TAsyncMethodCall { private GetEdgeReq req; - public getEdge_call(GetEdgeReq req, AsyncMethodCallback resultHandler492, TAsyncClient client488, TProtocolFactory protocolFactory489, TNonblockingTransport transport490) throws TException { - super(client488, protocolFactory489, transport490, resultHandler492, false); + public getEdge_call(GetEdgeReq req, AsyncMethodCallback resultHandler482, TAsyncClient client478, TProtocolFactory protocolFactory479, TNonblockingTransport transport480) throws TException { + super(client478, protocolFactory479, transport480, resultHandler482, false); this.req = req; } @@ -4942,17 +4844,17 @@ public GetEdgeResp getResult() throws TException { } } - public void listEdges(ListEdgesReq req, AsyncMethodCallback resultHandler496) throws TException { + public void listEdges(ListEdgesReq req, AsyncMethodCallback resultHandler486) throws TException { checkReady(); - listEdges_call method_call = new listEdges_call(req, resultHandler496, this, ___protocolFactory, ___transport); + listEdges_call method_call = new listEdges_call(req, resultHandler486, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listEdges_call extends TAsyncMethodCall { private ListEdgesReq req; - public listEdges_call(ListEdgesReq req, AsyncMethodCallback resultHandler497, TAsyncClient client493, TProtocolFactory protocolFactory494, TNonblockingTransport transport495) throws TException { - super(client493, protocolFactory494, transport495, resultHandler497, false); + public listEdges_call(ListEdgesReq req, AsyncMethodCallback resultHandler487, TAsyncClient client483, TProtocolFactory protocolFactory484, TNonblockingTransport transport485) throws TException { + super(client483, protocolFactory484, transport485, resultHandler487, false); this.req = req; } @@ -4974,17 +4876,17 @@ public ListEdgesResp getResult() throws TException { } } - public void listHosts(ListHostsReq req, AsyncMethodCallback resultHandler501) throws TException { + public void listHosts(ListHostsReq req, AsyncMethodCallback resultHandler491) throws TException { checkReady(); - listHosts_call method_call = new listHosts_call(req, resultHandler501, this, ___protocolFactory, ___transport); + listHosts_call method_call = new listHosts_call(req, resultHandler491, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listHosts_call extends TAsyncMethodCall { private ListHostsReq req; - public listHosts_call(ListHostsReq req, AsyncMethodCallback resultHandler502, TAsyncClient client498, TProtocolFactory protocolFactory499, TNonblockingTransport transport500) throws TException { - super(client498, protocolFactory499, transport500, resultHandler502, false); + public listHosts_call(ListHostsReq req, AsyncMethodCallback resultHandler492, TAsyncClient client488, TProtocolFactory protocolFactory489, TNonblockingTransport transport490) throws TException { + super(client488, protocolFactory489, transport490, resultHandler492, false); this.req = req; } @@ -5006,17 +4908,17 @@ public ListHostsResp getResult() throws TException { } } - public void getPartsAlloc(GetPartsAllocReq req, AsyncMethodCallback resultHandler506) throws TException { + public void getPartsAlloc(GetPartsAllocReq req, AsyncMethodCallback resultHandler496) throws TException { checkReady(); - getPartsAlloc_call method_call = new getPartsAlloc_call(req, resultHandler506, this, ___protocolFactory, ___transport); + getPartsAlloc_call method_call = new getPartsAlloc_call(req, resultHandler496, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getPartsAlloc_call extends TAsyncMethodCall { private GetPartsAllocReq req; - public getPartsAlloc_call(GetPartsAllocReq req, AsyncMethodCallback resultHandler507, TAsyncClient client503, TProtocolFactory protocolFactory504, TNonblockingTransport transport505) throws TException { - super(client503, protocolFactory504, transport505, resultHandler507, false); + public getPartsAlloc_call(GetPartsAllocReq req, AsyncMethodCallback resultHandler497, TAsyncClient client493, TProtocolFactory protocolFactory494, TNonblockingTransport transport495) throws TException { + super(client493, protocolFactory494, transport495, resultHandler497, false); this.req = req; } @@ -5038,17 +4940,17 @@ public GetPartsAllocResp getResult() throws TException { } } - public void listParts(ListPartsReq req, AsyncMethodCallback resultHandler511) throws TException { + public void listParts(ListPartsReq req, AsyncMethodCallback resultHandler501) throws TException { checkReady(); - listParts_call method_call = new listParts_call(req, resultHandler511, this, ___protocolFactory, ___transport); + listParts_call method_call = new listParts_call(req, resultHandler501, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listParts_call extends TAsyncMethodCall { private ListPartsReq req; - public listParts_call(ListPartsReq req, AsyncMethodCallback resultHandler512, TAsyncClient client508, TProtocolFactory protocolFactory509, TNonblockingTransport transport510) throws TException { - super(client508, protocolFactory509, transport510, resultHandler512, false); + public listParts_call(ListPartsReq req, AsyncMethodCallback resultHandler502, TAsyncClient client498, TProtocolFactory protocolFactory499, TNonblockingTransport transport500) throws TException { + super(client498, protocolFactory499, transport500, resultHandler502, false); this.req = req; } @@ -5070,17 +4972,17 @@ public ListPartsResp getResult() throws TException { } } - public void multiPut(MultiPutReq req, AsyncMethodCallback resultHandler516) throws TException { + public void multiPut(MultiPutReq req, AsyncMethodCallback resultHandler506) throws TException { checkReady(); - multiPut_call method_call = new multiPut_call(req, resultHandler516, this, ___protocolFactory, ___transport); + multiPut_call method_call = new multiPut_call(req, resultHandler506, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class multiPut_call extends TAsyncMethodCall { private MultiPutReq req; - public multiPut_call(MultiPutReq req, AsyncMethodCallback resultHandler517, TAsyncClient client513, TProtocolFactory protocolFactory514, TNonblockingTransport transport515) throws TException { - super(client513, protocolFactory514, transport515, resultHandler517, false); + public multiPut_call(MultiPutReq req, AsyncMethodCallback resultHandler507, TAsyncClient client503, TProtocolFactory protocolFactory504, TNonblockingTransport transport505) throws TException { + super(client503, protocolFactory504, transport505, resultHandler507, false); this.req = req; } @@ -5102,17 +5004,17 @@ public ExecResp getResult() throws TException { } } - public void get(GetReq req, AsyncMethodCallback resultHandler521) throws TException { + public void get(GetReq req, AsyncMethodCallback resultHandler511) throws TException { checkReady(); - get_call method_call = new get_call(req, resultHandler521, this, ___protocolFactory, ___transport); + get_call method_call = new get_call(req, resultHandler511, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class get_call extends TAsyncMethodCall { private GetReq req; - public get_call(GetReq req, AsyncMethodCallback resultHandler522, TAsyncClient client518, TProtocolFactory protocolFactory519, TNonblockingTransport transport520) throws TException { - super(client518, protocolFactory519, transport520, resultHandler522, false); + public get_call(GetReq req, AsyncMethodCallback resultHandler512, TAsyncClient client508, TProtocolFactory protocolFactory509, TNonblockingTransport transport510) throws TException { + super(client508, protocolFactory509, transport510, resultHandler512, false); this.req = req; } @@ -5134,17 +5036,17 @@ public GetResp getResult() throws TException { } } - public void multiGet(MultiGetReq req, AsyncMethodCallback resultHandler526) throws TException { + public void multiGet(MultiGetReq req, AsyncMethodCallback resultHandler516) throws TException { checkReady(); - multiGet_call method_call = new multiGet_call(req, resultHandler526, this, ___protocolFactory, ___transport); + multiGet_call method_call = new multiGet_call(req, resultHandler516, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class multiGet_call extends TAsyncMethodCall { private MultiGetReq req; - public multiGet_call(MultiGetReq req, AsyncMethodCallback resultHandler527, TAsyncClient client523, TProtocolFactory protocolFactory524, TNonblockingTransport transport525) throws TException { - super(client523, protocolFactory524, transport525, resultHandler527, false); + public multiGet_call(MultiGetReq req, AsyncMethodCallback resultHandler517, TAsyncClient client513, TProtocolFactory protocolFactory514, TNonblockingTransport transport515) throws TException { + super(client513, protocolFactory514, transport515, resultHandler517, false); this.req = req; } @@ -5166,17 +5068,17 @@ public MultiGetResp getResult() throws TException { } } - public void remove(RemoveReq req, AsyncMethodCallback resultHandler531) throws TException { + public void remove(RemoveReq req, AsyncMethodCallback resultHandler521) throws TException { checkReady(); - remove_call method_call = new remove_call(req, resultHandler531, this, ___protocolFactory, ___transport); + remove_call method_call = new remove_call(req, resultHandler521, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class remove_call extends TAsyncMethodCall { private RemoveReq req; - public remove_call(RemoveReq req, AsyncMethodCallback resultHandler532, TAsyncClient client528, TProtocolFactory protocolFactory529, TNonblockingTransport transport530) throws TException { - super(client528, protocolFactory529, transport530, resultHandler532, false); + public remove_call(RemoveReq req, AsyncMethodCallback resultHandler522, TAsyncClient client518, TProtocolFactory protocolFactory519, TNonblockingTransport transport520) throws TException { + super(client518, protocolFactory519, transport520, resultHandler522, false); this.req = req; } @@ -5198,17 +5100,17 @@ public ExecResp getResult() throws TException { } } - public void removeRange(RemoveRangeReq req, AsyncMethodCallback resultHandler536) throws TException { + public void removeRange(RemoveRangeReq req, AsyncMethodCallback resultHandler526) throws TException { checkReady(); - removeRange_call method_call = new removeRange_call(req, resultHandler536, this, ___protocolFactory, ___transport); + removeRange_call method_call = new removeRange_call(req, resultHandler526, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeRange_call extends TAsyncMethodCall { private RemoveRangeReq req; - public removeRange_call(RemoveRangeReq req, AsyncMethodCallback resultHandler537, TAsyncClient client533, TProtocolFactory protocolFactory534, TNonblockingTransport transport535) throws TException { - super(client533, protocolFactory534, transport535, resultHandler537, false); + public removeRange_call(RemoveRangeReq req, AsyncMethodCallback resultHandler527, TAsyncClient client523, TProtocolFactory protocolFactory524, TNonblockingTransport transport525) throws TException { + super(client523, protocolFactory524, transport525, resultHandler527, false); this.req = req; } @@ -5230,17 +5132,17 @@ public ExecResp getResult() throws TException { } } - public void scan(ScanReq req, AsyncMethodCallback resultHandler541) throws TException { + public void scan(ScanReq req, AsyncMethodCallback resultHandler531) throws TException { checkReady(); - scan_call method_call = new scan_call(req, resultHandler541, this, ___protocolFactory, ___transport); + scan_call method_call = new scan_call(req, resultHandler531, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class scan_call extends TAsyncMethodCall { private ScanReq req; - public scan_call(ScanReq req, AsyncMethodCallback resultHandler542, TAsyncClient client538, TProtocolFactory protocolFactory539, TNonblockingTransport transport540) throws TException { - super(client538, protocolFactory539, transport540, resultHandler542, false); + public scan_call(ScanReq req, AsyncMethodCallback resultHandler532, TAsyncClient client528, TProtocolFactory protocolFactory529, TNonblockingTransport transport530) throws TException { + super(client528, protocolFactory529, transport530, resultHandler532, false); this.req = req; } @@ -5262,17 +5164,17 @@ public ScanResp getResult() throws TException { } } - public void createTagIndex(CreateTagIndexReq req, AsyncMethodCallback resultHandler546) throws TException { + public void createTagIndex(CreateTagIndexReq req, AsyncMethodCallback resultHandler536) throws TException { checkReady(); - createTagIndex_call method_call = new createTagIndex_call(req, resultHandler546, this, ___protocolFactory, ___transport); + createTagIndex_call method_call = new createTagIndex_call(req, resultHandler536, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createTagIndex_call extends TAsyncMethodCall { private CreateTagIndexReq req; - public createTagIndex_call(CreateTagIndexReq req, AsyncMethodCallback resultHandler547, TAsyncClient client543, TProtocolFactory protocolFactory544, TNonblockingTransport transport545) throws TException { - super(client543, protocolFactory544, transport545, resultHandler547, false); + public createTagIndex_call(CreateTagIndexReq req, AsyncMethodCallback resultHandler537, TAsyncClient client533, TProtocolFactory protocolFactory534, TNonblockingTransport transport535) throws TException { + super(client533, protocolFactory534, transport535, resultHandler537, false); this.req = req; } @@ -5294,17 +5196,17 @@ public ExecResp getResult() throws TException { } } - public void dropTagIndex(DropTagIndexReq req, AsyncMethodCallback resultHandler551) throws TException { + public void dropTagIndex(DropTagIndexReq req, AsyncMethodCallback resultHandler541) throws TException { checkReady(); - dropTagIndex_call method_call = new dropTagIndex_call(req, resultHandler551, this, ___protocolFactory, ___transport); + dropTagIndex_call method_call = new dropTagIndex_call(req, resultHandler541, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropTagIndex_call extends TAsyncMethodCall { private DropTagIndexReq req; - public dropTagIndex_call(DropTagIndexReq req, AsyncMethodCallback resultHandler552, TAsyncClient client548, TProtocolFactory protocolFactory549, TNonblockingTransport transport550) throws TException { - super(client548, protocolFactory549, transport550, resultHandler552, false); + public dropTagIndex_call(DropTagIndexReq req, AsyncMethodCallback resultHandler542, TAsyncClient client538, TProtocolFactory protocolFactory539, TNonblockingTransport transport540) throws TException { + super(client538, protocolFactory539, transport540, resultHandler542, false); this.req = req; } @@ -5326,17 +5228,17 @@ public ExecResp getResult() throws TException { } } - public void getTagIndex(GetTagIndexReq req, AsyncMethodCallback resultHandler556) throws TException { + public void getTagIndex(GetTagIndexReq req, AsyncMethodCallback resultHandler546) throws TException { checkReady(); - getTagIndex_call method_call = new getTagIndex_call(req, resultHandler556, this, ___protocolFactory, ___transport); + getTagIndex_call method_call = new getTagIndex_call(req, resultHandler546, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getTagIndex_call extends TAsyncMethodCall { private GetTagIndexReq req; - public getTagIndex_call(GetTagIndexReq req, AsyncMethodCallback resultHandler557, TAsyncClient client553, TProtocolFactory protocolFactory554, TNonblockingTransport transport555) throws TException { - super(client553, protocolFactory554, transport555, resultHandler557, false); + public getTagIndex_call(GetTagIndexReq req, AsyncMethodCallback resultHandler547, TAsyncClient client543, TProtocolFactory protocolFactory544, TNonblockingTransport transport545) throws TException { + super(client543, protocolFactory544, transport545, resultHandler547, false); this.req = req; } @@ -5358,17 +5260,17 @@ public GetTagIndexResp getResult() throws TException { } } - public void listTagIndexes(ListTagIndexesReq req, AsyncMethodCallback resultHandler561) throws TException { + public void listTagIndexes(ListTagIndexesReq req, AsyncMethodCallback resultHandler551) throws TException { checkReady(); - listTagIndexes_call method_call = new listTagIndexes_call(req, resultHandler561, this, ___protocolFactory, ___transport); + listTagIndexes_call method_call = new listTagIndexes_call(req, resultHandler551, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listTagIndexes_call extends TAsyncMethodCall { private ListTagIndexesReq req; - public listTagIndexes_call(ListTagIndexesReq req, AsyncMethodCallback resultHandler562, TAsyncClient client558, TProtocolFactory protocolFactory559, TNonblockingTransport transport560) throws TException { - super(client558, protocolFactory559, transport560, resultHandler562, false); + public listTagIndexes_call(ListTagIndexesReq req, AsyncMethodCallback resultHandler552, TAsyncClient client548, TProtocolFactory protocolFactory549, TNonblockingTransport transport550) throws TException { + super(client548, protocolFactory549, transport550, resultHandler552, false); this.req = req; } @@ -5390,17 +5292,17 @@ public ListTagIndexesResp getResult() throws TException { } } - public void rebuildTagIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler566) throws TException { + public void rebuildTagIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler556) throws TException { checkReady(); - rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler566, this, ___protocolFactory, ___transport); + rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler556, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class rebuildTagIndex_call extends TAsyncMethodCall { private RebuildIndexReq req; - public rebuildTagIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler567, TAsyncClient client563, TProtocolFactory protocolFactory564, TNonblockingTransport transport565) throws TException { - super(client563, protocolFactory564, transport565, resultHandler567, false); + public rebuildTagIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler557, TAsyncClient client553, TProtocolFactory protocolFactory554, TNonblockingTransport transport555) throws TException { + super(client553, protocolFactory554, transport555, resultHandler557, false); this.req = req; } @@ -5422,17 +5324,17 @@ public ExecResp getResult() throws TException { } } - public void listTagIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler571) throws TException { + public void listTagIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler561) throws TException { checkReady(); - listTagIndexStatus_call method_call = new listTagIndexStatus_call(req, resultHandler571, this, ___protocolFactory, ___transport); + listTagIndexStatus_call method_call = new listTagIndexStatus_call(req, resultHandler561, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listTagIndexStatus_call extends TAsyncMethodCall { private ListIndexStatusReq req; - public listTagIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler572, TAsyncClient client568, TProtocolFactory protocolFactory569, TNonblockingTransport transport570) throws TException { - super(client568, protocolFactory569, transport570, resultHandler572, false); + public listTagIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler562, TAsyncClient client558, TProtocolFactory protocolFactory559, TNonblockingTransport transport560) throws TException { + super(client558, protocolFactory559, transport560, resultHandler562, false); this.req = req; } @@ -5454,17 +5356,17 @@ public ListIndexStatusResp getResult() throws TException { } } - public void createEdgeIndex(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler576) throws TException { + public void createEdgeIndex(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler566) throws TException { checkReady(); - createEdgeIndex_call method_call = new createEdgeIndex_call(req, resultHandler576, this, ___protocolFactory, ___transport); + createEdgeIndex_call method_call = new createEdgeIndex_call(req, resultHandler566, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createEdgeIndex_call extends TAsyncMethodCall { private CreateEdgeIndexReq req; - public createEdgeIndex_call(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler577, TAsyncClient client573, TProtocolFactory protocolFactory574, TNonblockingTransport transport575) throws TException { - super(client573, protocolFactory574, transport575, resultHandler577, false); + public createEdgeIndex_call(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler567, TAsyncClient client563, TProtocolFactory protocolFactory564, TNonblockingTransport transport565) throws TException { + super(client563, protocolFactory564, transport565, resultHandler567, false); this.req = req; } @@ -5486,17 +5388,17 @@ public ExecResp getResult() throws TException { } } - public void dropEdgeIndex(DropEdgeIndexReq req, AsyncMethodCallback resultHandler581) throws TException { + public void dropEdgeIndex(DropEdgeIndexReq req, AsyncMethodCallback resultHandler571) throws TException { checkReady(); - dropEdgeIndex_call method_call = new dropEdgeIndex_call(req, resultHandler581, this, ___protocolFactory, ___transport); + dropEdgeIndex_call method_call = new dropEdgeIndex_call(req, resultHandler571, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropEdgeIndex_call extends TAsyncMethodCall { private DropEdgeIndexReq req; - public dropEdgeIndex_call(DropEdgeIndexReq req, AsyncMethodCallback resultHandler582, TAsyncClient client578, TProtocolFactory protocolFactory579, TNonblockingTransport transport580) throws TException { - super(client578, protocolFactory579, transport580, resultHandler582, false); + public dropEdgeIndex_call(DropEdgeIndexReq req, AsyncMethodCallback resultHandler572, TAsyncClient client568, TProtocolFactory protocolFactory569, TNonblockingTransport transport570) throws TException { + super(client568, protocolFactory569, transport570, resultHandler572, false); this.req = req; } @@ -5518,17 +5420,17 @@ public ExecResp getResult() throws TException { } } - public void getEdgeIndex(GetEdgeIndexReq req, AsyncMethodCallback resultHandler586) throws TException { + public void getEdgeIndex(GetEdgeIndexReq req, AsyncMethodCallback resultHandler576) throws TException { checkReady(); - getEdgeIndex_call method_call = new getEdgeIndex_call(req, resultHandler586, this, ___protocolFactory, ___transport); + getEdgeIndex_call method_call = new getEdgeIndex_call(req, resultHandler576, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getEdgeIndex_call extends TAsyncMethodCall { private GetEdgeIndexReq req; - public getEdgeIndex_call(GetEdgeIndexReq req, AsyncMethodCallback resultHandler587, TAsyncClient client583, TProtocolFactory protocolFactory584, TNonblockingTransport transport585) throws TException { - super(client583, protocolFactory584, transport585, resultHandler587, false); + public getEdgeIndex_call(GetEdgeIndexReq req, AsyncMethodCallback resultHandler577, TAsyncClient client573, TProtocolFactory protocolFactory574, TNonblockingTransport transport575) throws TException { + super(client573, protocolFactory574, transport575, resultHandler577, false); this.req = req; } @@ -5550,17 +5452,17 @@ public GetEdgeIndexResp getResult() throws TException { } } - public void listEdgeIndexes(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler591) throws TException { + public void listEdgeIndexes(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler581) throws TException { checkReady(); - listEdgeIndexes_call method_call = new listEdgeIndexes_call(req, resultHandler591, this, ___protocolFactory, ___transport); + listEdgeIndexes_call method_call = new listEdgeIndexes_call(req, resultHandler581, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listEdgeIndexes_call extends TAsyncMethodCall { private ListEdgeIndexesReq req; - public listEdgeIndexes_call(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler592, TAsyncClient client588, TProtocolFactory protocolFactory589, TNonblockingTransport transport590) throws TException { - super(client588, protocolFactory589, transport590, resultHandler592, false); + public listEdgeIndexes_call(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler582, TAsyncClient client578, TProtocolFactory protocolFactory579, TNonblockingTransport transport580) throws TException { + super(client578, protocolFactory579, transport580, resultHandler582, false); this.req = req; } @@ -5582,17 +5484,17 @@ public ListEdgeIndexesResp getResult() throws TException { } } - public void rebuildEdgeIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler596) throws TException { + public void rebuildEdgeIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler586) throws TException { checkReady(); - rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler596, this, ___protocolFactory, ___transport); + rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler586, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class rebuildEdgeIndex_call extends TAsyncMethodCall { private RebuildIndexReq req; - public rebuildEdgeIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler597, TAsyncClient client593, TProtocolFactory protocolFactory594, TNonblockingTransport transport595) throws TException { - super(client593, protocolFactory594, transport595, resultHandler597, false); + public rebuildEdgeIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler587, TAsyncClient client583, TProtocolFactory protocolFactory584, TNonblockingTransport transport585) throws TException { + super(client583, protocolFactory584, transport585, resultHandler587, false); this.req = req; } @@ -5614,17 +5516,17 @@ public ExecResp getResult() throws TException { } } - public void listEdgeIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler601) throws TException { + public void listEdgeIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler591) throws TException { checkReady(); - listEdgeIndexStatus_call method_call = new listEdgeIndexStatus_call(req, resultHandler601, this, ___protocolFactory, ___transport); + listEdgeIndexStatus_call method_call = new listEdgeIndexStatus_call(req, resultHandler591, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listEdgeIndexStatus_call extends TAsyncMethodCall { private ListIndexStatusReq req; - public listEdgeIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler602, TAsyncClient client598, TProtocolFactory protocolFactory599, TNonblockingTransport transport600) throws TException { - super(client598, protocolFactory599, transport600, resultHandler602, false); + public listEdgeIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler592, TAsyncClient client588, TProtocolFactory protocolFactory589, TNonblockingTransport transport590) throws TException { + super(client588, protocolFactory589, transport590, resultHandler592, false); this.req = req; } @@ -5646,17 +5548,17 @@ public ListIndexStatusResp getResult() throws TException { } } - public void createUser(CreateUserReq req, AsyncMethodCallback resultHandler606) throws TException { + public void createUser(CreateUserReq req, AsyncMethodCallback resultHandler596) throws TException { checkReady(); - createUser_call method_call = new createUser_call(req, resultHandler606, this, ___protocolFactory, ___transport); + createUser_call method_call = new createUser_call(req, resultHandler596, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createUser_call extends TAsyncMethodCall { private CreateUserReq req; - public createUser_call(CreateUserReq req, AsyncMethodCallback resultHandler607, TAsyncClient client603, TProtocolFactory protocolFactory604, TNonblockingTransport transport605) throws TException { - super(client603, protocolFactory604, transport605, resultHandler607, false); + public createUser_call(CreateUserReq req, AsyncMethodCallback resultHandler597, TAsyncClient client593, TProtocolFactory protocolFactory594, TNonblockingTransport transport595) throws TException { + super(client593, protocolFactory594, transport595, resultHandler597, false); this.req = req; } @@ -5678,17 +5580,17 @@ public ExecResp getResult() throws TException { } } - public void dropUser(DropUserReq req, AsyncMethodCallback resultHandler611) throws TException { + public void dropUser(DropUserReq req, AsyncMethodCallback resultHandler601) throws TException { checkReady(); - dropUser_call method_call = new dropUser_call(req, resultHandler611, this, ___protocolFactory, ___transport); + dropUser_call method_call = new dropUser_call(req, resultHandler601, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropUser_call extends TAsyncMethodCall { private DropUserReq req; - public dropUser_call(DropUserReq req, AsyncMethodCallback resultHandler612, TAsyncClient client608, TProtocolFactory protocolFactory609, TNonblockingTransport transport610) throws TException { - super(client608, protocolFactory609, transport610, resultHandler612, false); + public dropUser_call(DropUserReq req, AsyncMethodCallback resultHandler602, TAsyncClient client598, TProtocolFactory protocolFactory599, TNonblockingTransport transport600) throws TException { + super(client598, protocolFactory599, transport600, resultHandler602, false); this.req = req; } @@ -5710,17 +5612,17 @@ public ExecResp getResult() throws TException { } } - public void alterUser(AlterUserReq req, AsyncMethodCallback resultHandler616) throws TException { + public void alterUser(AlterUserReq req, AsyncMethodCallback resultHandler606) throws TException { checkReady(); - alterUser_call method_call = new alterUser_call(req, resultHandler616, this, ___protocolFactory, ___transport); + alterUser_call method_call = new alterUser_call(req, resultHandler606, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class alterUser_call extends TAsyncMethodCall { private AlterUserReq req; - public alterUser_call(AlterUserReq req, AsyncMethodCallback resultHandler617, TAsyncClient client613, TProtocolFactory protocolFactory614, TNonblockingTransport transport615) throws TException { - super(client613, protocolFactory614, transport615, resultHandler617, false); + public alterUser_call(AlterUserReq req, AsyncMethodCallback resultHandler607, TAsyncClient client603, TProtocolFactory protocolFactory604, TNonblockingTransport transport605) throws TException { + super(client603, protocolFactory604, transport605, resultHandler607, false); this.req = req; } @@ -5742,17 +5644,17 @@ public ExecResp getResult() throws TException { } } - public void grantRole(GrantRoleReq req, AsyncMethodCallback resultHandler621) throws TException { + public void grantRole(GrantRoleReq req, AsyncMethodCallback resultHandler611) throws TException { checkReady(); - grantRole_call method_call = new grantRole_call(req, resultHandler621, this, ___protocolFactory, ___transport); + grantRole_call method_call = new grantRole_call(req, resultHandler611, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class grantRole_call extends TAsyncMethodCall { private GrantRoleReq req; - public grantRole_call(GrantRoleReq req, AsyncMethodCallback resultHandler622, TAsyncClient client618, TProtocolFactory protocolFactory619, TNonblockingTransport transport620) throws TException { - super(client618, protocolFactory619, transport620, resultHandler622, false); + public grantRole_call(GrantRoleReq req, AsyncMethodCallback resultHandler612, TAsyncClient client608, TProtocolFactory protocolFactory609, TNonblockingTransport transport610) throws TException { + super(client608, protocolFactory609, transport610, resultHandler612, false); this.req = req; } @@ -5774,17 +5676,17 @@ public ExecResp getResult() throws TException { } } - public void revokeRole(RevokeRoleReq req, AsyncMethodCallback resultHandler626) throws TException { + public void revokeRole(RevokeRoleReq req, AsyncMethodCallback resultHandler616) throws TException { checkReady(); - revokeRole_call method_call = new revokeRole_call(req, resultHandler626, this, ___protocolFactory, ___transport); + revokeRole_call method_call = new revokeRole_call(req, resultHandler616, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revokeRole_call extends TAsyncMethodCall { private RevokeRoleReq req; - public revokeRole_call(RevokeRoleReq req, AsyncMethodCallback resultHandler627, TAsyncClient client623, TProtocolFactory protocolFactory624, TNonblockingTransport transport625) throws TException { - super(client623, protocolFactory624, transport625, resultHandler627, false); + public revokeRole_call(RevokeRoleReq req, AsyncMethodCallback resultHandler617, TAsyncClient client613, TProtocolFactory protocolFactory614, TNonblockingTransport transport615) throws TException { + super(client613, protocolFactory614, transport615, resultHandler617, false); this.req = req; } @@ -5806,17 +5708,17 @@ public ExecResp getResult() throws TException { } } - public void listUsers(ListUsersReq req, AsyncMethodCallback resultHandler631) throws TException { + public void listUsers(ListUsersReq req, AsyncMethodCallback resultHandler621) throws TException { checkReady(); - listUsers_call method_call = new listUsers_call(req, resultHandler631, this, ___protocolFactory, ___transport); + listUsers_call method_call = new listUsers_call(req, resultHandler621, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listUsers_call extends TAsyncMethodCall { private ListUsersReq req; - public listUsers_call(ListUsersReq req, AsyncMethodCallback resultHandler632, TAsyncClient client628, TProtocolFactory protocolFactory629, TNonblockingTransport transport630) throws TException { - super(client628, protocolFactory629, transport630, resultHandler632, false); + public listUsers_call(ListUsersReq req, AsyncMethodCallback resultHandler622, TAsyncClient client618, TProtocolFactory protocolFactory619, TNonblockingTransport transport620) throws TException { + super(client618, protocolFactory619, transport620, resultHandler622, false); this.req = req; } @@ -5838,17 +5740,17 @@ public ListUsersResp getResult() throws TException { } } - public void listRoles(ListRolesReq req, AsyncMethodCallback resultHandler636) throws TException { + public void listRoles(ListRolesReq req, AsyncMethodCallback resultHandler626) throws TException { checkReady(); - listRoles_call method_call = new listRoles_call(req, resultHandler636, this, ___protocolFactory, ___transport); + listRoles_call method_call = new listRoles_call(req, resultHandler626, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listRoles_call extends TAsyncMethodCall { private ListRolesReq req; - public listRoles_call(ListRolesReq req, AsyncMethodCallback resultHandler637, TAsyncClient client633, TProtocolFactory protocolFactory634, TNonblockingTransport transport635) throws TException { - super(client633, protocolFactory634, transport635, resultHandler637, false); + public listRoles_call(ListRolesReq req, AsyncMethodCallback resultHandler627, TAsyncClient client623, TProtocolFactory protocolFactory624, TNonblockingTransport transport625) throws TException { + super(client623, protocolFactory624, transport625, resultHandler627, false); this.req = req; } @@ -5870,17 +5772,17 @@ public ListRolesResp getResult() throws TException { } } - public void getUserRoles(GetUserRolesReq req, AsyncMethodCallback resultHandler641) throws TException { + public void getUserRoles(GetUserRolesReq req, AsyncMethodCallback resultHandler631) throws TException { checkReady(); - getUserRoles_call method_call = new getUserRoles_call(req, resultHandler641, this, ___protocolFactory, ___transport); + getUserRoles_call method_call = new getUserRoles_call(req, resultHandler631, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getUserRoles_call extends TAsyncMethodCall { private GetUserRolesReq req; - public getUserRoles_call(GetUserRolesReq req, AsyncMethodCallback resultHandler642, TAsyncClient client638, TProtocolFactory protocolFactory639, TNonblockingTransport transport640) throws TException { - super(client638, protocolFactory639, transport640, resultHandler642, false); + public getUserRoles_call(GetUserRolesReq req, AsyncMethodCallback resultHandler632, TAsyncClient client628, TProtocolFactory protocolFactory629, TNonblockingTransport transport630) throws TException { + super(client628, protocolFactory629, transport630, resultHandler632, false); this.req = req; } @@ -5902,17 +5804,17 @@ public ListRolesResp getResult() throws TException { } } - public void changePassword(ChangePasswordReq req, AsyncMethodCallback resultHandler646) throws TException { + public void changePassword(ChangePasswordReq req, AsyncMethodCallback resultHandler636) throws TException { checkReady(); - changePassword_call method_call = new changePassword_call(req, resultHandler646, this, ___protocolFactory, ___transport); + changePassword_call method_call = new changePassword_call(req, resultHandler636, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class changePassword_call extends TAsyncMethodCall { private ChangePasswordReq req; - public changePassword_call(ChangePasswordReq req, AsyncMethodCallback resultHandler647, TAsyncClient client643, TProtocolFactory protocolFactory644, TNonblockingTransport transport645) throws TException { - super(client643, protocolFactory644, transport645, resultHandler647, false); + public changePassword_call(ChangePasswordReq req, AsyncMethodCallback resultHandler637, TAsyncClient client633, TProtocolFactory protocolFactory634, TNonblockingTransport transport635) throws TException { + super(client633, protocolFactory634, transport635, resultHandler637, false); this.req = req; } @@ -5934,17 +5836,17 @@ public ExecResp getResult() throws TException { } } - public void heartBeat(HBReq req, AsyncMethodCallback resultHandler651) throws TException { + public void heartBeat(HBReq req, AsyncMethodCallback resultHandler641) throws TException { checkReady(); - heartBeat_call method_call = new heartBeat_call(req, resultHandler651, this, ___protocolFactory, ___transport); + heartBeat_call method_call = new heartBeat_call(req, resultHandler641, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class heartBeat_call extends TAsyncMethodCall { private HBReq req; - public heartBeat_call(HBReq req, AsyncMethodCallback resultHandler652, TAsyncClient client648, TProtocolFactory protocolFactory649, TNonblockingTransport transport650) throws TException { - super(client648, protocolFactory649, transport650, resultHandler652, false); + public heartBeat_call(HBReq req, AsyncMethodCallback resultHandler642, TAsyncClient client638, TProtocolFactory protocolFactory639, TNonblockingTransport transport640) throws TException { + super(client638, protocolFactory639, transport640, resultHandler642, false); this.req = req; } @@ -5966,81 +5868,17 @@ public HBResp getResult() throws TException { } } - public void balance(BalanceReq req, AsyncMethodCallback resultHandler656) throws TException { - checkReady(); - balance_call method_call = new balance_call(req, resultHandler656, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class balance_call extends TAsyncMethodCall { - private BalanceReq req; - public balance_call(BalanceReq req, AsyncMethodCallback resultHandler657, TAsyncClient client653, TProtocolFactory protocolFactory654, TNonblockingTransport transport655) throws TException { - super(client653, protocolFactory654, transport655, resultHandler657, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("balance", TMessageType.CALL, 0)); - balance_args args = new balance_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public BalanceResp getResult() throws TException { - if (getState() != State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_balance(); - } - } - - public void leaderBalance(LeaderBalanceReq req, AsyncMethodCallback resultHandler661) throws TException { - checkReady(); - leaderBalance_call method_call = new leaderBalance_call(req, resultHandler661, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class leaderBalance_call extends TAsyncMethodCall { - private LeaderBalanceReq req; - public leaderBalance_call(LeaderBalanceReq req, AsyncMethodCallback resultHandler662, TAsyncClient client658, TProtocolFactory protocolFactory659, TNonblockingTransport transport660) throws TException { - super(client658, protocolFactory659, transport660, resultHandler662, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("leaderBalance", TMessageType.CALL, 0)); - leaderBalance_args args = new leaderBalance_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public ExecResp getResult() throws TException { - if (getState() != State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_leaderBalance(); - } - } - - public void regConfig(RegConfigReq req, AsyncMethodCallback resultHandler666) throws TException { + public void regConfig(RegConfigReq req, AsyncMethodCallback resultHandler646) throws TException { checkReady(); - regConfig_call method_call = new regConfig_call(req, resultHandler666, this, ___protocolFactory, ___transport); + regConfig_call method_call = new regConfig_call(req, resultHandler646, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class regConfig_call extends TAsyncMethodCall { private RegConfigReq req; - public regConfig_call(RegConfigReq req, AsyncMethodCallback resultHandler667, TAsyncClient client663, TProtocolFactory protocolFactory664, TNonblockingTransport transport665) throws TException { - super(client663, protocolFactory664, transport665, resultHandler667, false); + public regConfig_call(RegConfigReq req, AsyncMethodCallback resultHandler647, TAsyncClient client643, TProtocolFactory protocolFactory644, TNonblockingTransport transport645) throws TException { + super(client643, protocolFactory644, transport645, resultHandler647, false); this.req = req; } @@ -6062,17 +5900,17 @@ public ExecResp getResult() throws TException { } } - public void getConfig(GetConfigReq req, AsyncMethodCallback resultHandler671) throws TException { + public void getConfig(GetConfigReq req, AsyncMethodCallback resultHandler651) throws TException { checkReady(); - getConfig_call method_call = new getConfig_call(req, resultHandler671, this, ___protocolFactory, ___transport); + getConfig_call method_call = new getConfig_call(req, resultHandler651, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getConfig_call extends TAsyncMethodCall { private GetConfigReq req; - public getConfig_call(GetConfigReq req, AsyncMethodCallback resultHandler672, TAsyncClient client668, TProtocolFactory protocolFactory669, TNonblockingTransport transport670) throws TException { - super(client668, protocolFactory669, transport670, resultHandler672, false); + public getConfig_call(GetConfigReq req, AsyncMethodCallback resultHandler652, TAsyncClient client648, TProtocolFactory protocolFactory649, TNonblockingTransport transport650) throws TException { + super(client648, protocolFactory649, transport650, resultHandler652, false); this.req = req; } @@ -6094,17 +5932,17 @@ public GetConfigResp getResult() throws TException { } } - public void setConfig(SetConfigReq req, AsyncMethodCallback resultHandler676) throws TException { + public void setConfig(SetConfigReq req, AsyncMethodCallback resultHandler656) throws TException { checkReady(); - setConfig_call method_call = new setConfig_call(req, resultHandler676, this, ___protocolFactory, ___transport); + setConfig_call method_call = new setConfig_call(req, resultHandler656, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class setConfig_call extends TAsyncMethodCall { private SetConfigReq req; - public setConfig_call(SetConfigReq req, AsyncMethodCallback resultHandler677, TAsyncClient client673, TProtocolFactory protocolFactory674, TNonblockingTransport transport675) throws TException { - super(client673, protocolFactory674, transport675, resultHandler677, false); + public setConfig_call(SetConfigReq req, AsyncMethodCallback resultHandler657, TAsyncClient client653, TProtocolFactory protocolFactory654, TNonblockingTransport transport655) throws TException { + super(client653, protocolFactory654, transport655, resultHandler657, false); this.req = req; } @@ -6126,17 +5964,17 @@ public ExecResp getResult() throws TException { } } - public void listConfigs(ListConfigsReq req, AsyncMethodCallback resultHandler681) throws TException { + public void listConfigs(ListConfigsReq req, AsyncMethodCallback resultHandler661) throws TException { checkReady(); - listConfigs_call method_call = new listConfigs_call(req, resultHandler681, this, ___protocolFactory, ___transport); + listConfigs_call method_call = new listConfigs_call(req, resultHandler661, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listConfigs_call extends TAsyncMethodCall { private ListConfigsReq req; - public listConfigs_call(ListConfigsReq req, AsyncMethodCallback resultHandler682, TAsyncClient client678, TProtocolFactory protocolFactory679, TNonblockingTransport transport680) throws TException { - super(client678, protocolFactory679, transport680, resultHandler682, false); + public listConfigs_call(ListConfigsReq req, AsyncMethodCallback resultHandler662, TAsyncClient client658, TProtocolFactory protocolFactory659, TNonblockingTransport transport660) throws TException { + super(client658, protocolFactory659, transport660, resultHandler662, false); this.req = req; } @@ -6158,17 +5996,17 @@ public ListConfigsResp getResult() throws TException { } } - public void createSnapshot(CreateSnapshotReq req, AsyncMethodCallback resultHandler686) throws TException { + public void createSnapshot(CreateSnapshotReq req, AsyncMethodCallback resultHandler666) throws TException { checkReady(); - createSnapshot_call method_call = new createSnapshot_call(req, resultHandler686, this, ___protocolFactory, ___transport); + createSnapshot_call method_call = new createSnapshot_call(req, resultHandler666, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createSnapshot_call extends TAsyncMethodCall { private CreateSnapshotReq req; - public createSnapshot_call(CreateSnapshotReq req, AsyncMethodCallback resultHandler687, TAsyncClient client683, TProtocolFactory protocolFactory684, TNonblockingTransport transport685) throws TException { - super(client683, protocolFactory684, transport685, resultHandler687, false); + public createSnapshot_call(CreateSnapshotReq req, AsyncMethodCallback resultHandler667, TAsyncClient client663, TProtocolFactory protocolFactory664, TNonblockingTransport transport665) throws TException { + super(client663, protocolFactory664, transport665, resultHandler667, false); this.req = req; } @@ -6190,17 +6028,17 @@ public ExecResp getResult() throws TException { } } - public void dropSnapshot(DropSnapshotReq req, AsyncMethodCallback resultHandler691) throws TException { + public void dropSnapshot(DropSnapshotReq req, AsyncMethodCallback resultHandler671) throws TException { checkReady(); - dropSnapshot_call method_call = new dropSnapshot_call(req, resultHandler691, this, ___protocolFactory, ___transport); + dropSnapshot_call method_call = new dropSnapshot_call(req, resultHandler671, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropSnapshot_call extends TAsyncMethodCall { private DropSnapshotReq req; - public dropSnapshot_call(DropSnapshotReq req, AsyncMethodCallback resultHandler692, TAsyncClient client688, TProtocolFactory protocolFactory689, TNonblockingTransport transport690) throws TException { - super(client688, protocolFactory689, transport690, resultHandler692, false); + public dropSnapshot_call(DropSnapshotReq req, AsyncMethodCallback resultHandler672, TAsyncClient client668, TProtocolFactory protocolFactory669, TNonblockingTransport transport670) throws TException { + super(client668, protocolFactory669, transport670, resultHandler672, false); this.req = req; } @@ -6222,17 +6060,17 @@ public ExecResp getResult() throws TException { } } - public void listSnapshots(ListSnapshotsReq req, AsyncMethodCallback resultHandler696) throws TException { + public void listSnapshots(ListSnapshotsReq req, AsyncMethodCallback resultHandler676) throws TException { checkReady(); - listSnapshots_call method_call = new listSnapshots_call(req, resultHandler696, this, ___protocolFactory, ___transport); + listSnapshots_call method_call = new listSnapshots_call(req, resultHandler676, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listSnapshots_call extends TAsyncMethodCall { private ListSnapshotsReq req; - public listSnapshots_call(ListSnapshotsReq req, AsyncMethodCallback resultHandler697, TAsyncClient client693, TProtocolFactory protocolFactory694, TNonblockingTransport transport695) throws TException { - super(client693, protocolFactory694, transport695, resultHandler697, false); + public listSnapshots_call(ListSnapshotsReq req, AsyncMethodCallback resultHandler677, TAsyncClient client673, TProtocolFactory protocolFactory674, TNonblockingTransport transport675) throws TException { + super(client673, protocolFactory674, transport675, resultHandler677, false); this.req = req; } @@ -6254,17 +6092,17 @@ public ListSnapshotsResp getResult() throws TException { } } - public void runAdminJob(AdminJobReq req, AsyncMethodCallback resultHandler701) throws TException { + public void runAdminJob(AdminJobReq req, AsyncMethodCallback resultHandler681) throws TException { checkReady(); - runAdminJob_call method_call = new runAdminJob_call(req, resultHandler701, this, ___protocolFactory, ___transport); + runAdminJob_call method_call = new runAdminJob_call(req, resultHandler681, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class runAdminJob_call extends TAsyncMethodCall { private AdminJobReq req; - public runAdminJob_call(AdminJobReq req, AsyncMethodCallback resultHandler702, TAsyncClient client698, TProtocolFactory protocolFactory699, TNonblockingTransport transport700) throws TException { - super(client698, protocolFactory699, transport700, resultHandler702, false); + public runAdminJob_call(AdminJobReq req, AsyncMethodCallback resultHandler682, TAsyncClient client678, TProtocolFactory protocolFactory679, TNonblockingTransport transport680) throws TException { + super(client678, protocolFactory679, transport680, resultHandler682, false); this.req = req; } @@ -6286,17 +6124,17 @@ public AdminJobResp getResult() throws TException { } } - public void addZone(AddZoneReq req, AsyncMethodCallback resultHandler706) throws TException { + public void addZone(AddZoneReq req, AsyncMethodCallback resultHandler686) throws TException { checkReady(); - addZone_call method_call = new addZone_call(req, resultHandler706, this, ___protocolFactory, ___transport); + addZone_call method_call = new addZone_call(req, resultHandler686, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addZone_call extends TAsyncMethodCall { private AddZoneReq req; - public addZone_call(AddZoneReq req, AsyncMethodCallback resultHandler707, TAsyncClient client703, TProtocolFactory protocolFactory704, TNonblockingTransport transport705) throws TException { - super(client703, protocolFactory704, transport705, resultHandler707, false); + public addZone_call(AddZoneReq req, AsyncMethodCallback resultHandler687, TAsyncClient client683, TProtocolFactory protocolFactory684, TNonblockingTransport transport685) throws TException { + super(client683, protocolFactory684, transport685, resultHandler687, false); this.req = req; } @@ -6318,17 +6156,17 @@ public ExecResp getResult() throws TException { } } - public void dropZone(DropZoneReq req, AsyncMethodCallback resultHandler711) throws TException { + public void dropZone(DropZoneReq req, AsyncMethodCallback resultHandler691) throws TException { checkReady(); - dropZone_call method_call = new dropZone_call(req, resultHandler711, this, ___protocolFactory, ___transport); + dropZone_call method_call = new dropZone_call(req, resultHandler691, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropZone_call extends TAsyncMethodCall { private DropZoneReq req; - public dropZone_call(DropZoneReq req, AsyncMethodCallback resultHandler712, TAsyncClient client708, TProtocolFactory protocolFactory709, TNonblockingTransport transport710) throws TException { - super(client708, protocolFactory709, transport710, resultHandler712, false); + public dropZone_call(DropZoneReq req, AsyncMethodCallback resultHandler692, TAsyncClient client688, TProtocolFactory protocolFactory689, TNonblockingTransport transport690) throws TException { + super(client688, protocolFactory689, transport690, resultHandler692, false); this.req = req; } @@ -6350,17 +6188,17 @@ public ExecResp getResult() throws TException { } } - public void addHostIntoZone(AddHostIntoZoneReq req, AsyncMethodCallback resultHandler716) throws TException { + public void addHostIntoZone(AddHostIntoZoneReq req, AsyncMethodCallback resultHandler696) throws TException { checkReady(); - addHostIntoZone_call method_call = new addHostIntoZone_call(req, resultHandler716, this, ___protocolFactory, ___transport); + addHostIntoZone_call method_call = new addHostIntoZone_call(req, resultHandler696, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addHostIntoZone_call extends TAsyncMethodCall { private AddHostIntoZoneReq req; - public addHostIntoZone_call(AddHostIntoZoneReq req, AsyncMethodCallback resultHandler717, TAsyncClient client713, TProtocolFactory protocolFactory714, TNonblockingTransport transport715) throws TException { - super(client713, protocolFactory714, transport715, resultHandler717, false); + public addHostIntoZone_call(AddHostIntoZoneReq req, AsyncMethodCallback resultHandler697, TAsyncClient client693, TProtocolFactory protocolFactory694, TNonblockingTransport transport695) throws TException { + super(client693, protocolFactory694, transport695, resultHandler697, false); this.req = req; } @@ -6382,17 +6220,17 @@ public ExecResp getResult() throws TException { } } - public void dropHostFromZone(DropHostFromZoneReq req, AsyncMethodCallback resultHandler721) throws TException { + public void dropHostFromZone(DropHostFromZoneReq req, AsyncMethodCallback resultHandler701) throws TException { checkReady(); - dropHostFromZone_call method_call = new dropHostFromZone_call(req, resultHandler721, this, ___protocolFactory, ___transport); + dropHostFromZone_call method_call = new dropHostFromZone_call(req, resultHandler701, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropHostFromZone_call extends TAsyncMethodCall { private DropHostFromZoneReq req; - public dropHostFromZone_call(DropHostFromZoneReq req, AsyncMethodCallback resultHandler722, TAsyncClient client718, TProtocolFactory protocolFactory719, TNonblockingTransport transport720) throws TException { - super(client718, protocolFactory719, transport720, resultHandler722, false); + public dropHostFromZone_call(DropHostFromZoneReq req, AsyncMethodCallback resultHandler702, TAsyncClient client698, TProtocolFactory protocolFactory699, TNonblockingTransport transport700) throws TException { + super(client698, protocolFactory699, transport700, resultHandler702, false); this.req = req; } @@ -6414,17 +6252,17 @@ public ExecResp getResult() throws TException { } } - public void getZone(GetZoneReq req, AsyncMethodCallback resultHandler726) throws TException { + public void getZone(GetZoneReq req, AsyncMethodCallback resultHandler706) throws TException { checkReady(); - getZone_call method_call = new getZone_call(req, resultHandler726, this, ___protocolFactory, ___transport); + getZone_call method_call = new getZone_call(req, resultHandler706, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getZone_call extends TAsyncMethodCall { private GetZoneReq req; - public getZone_call(GetZoneReq req, AsyncMethodCallback resultHandler727, TAsyncClient client723, TProtocolFactory protocolFactory724, TNonblockingTransport transport725) throws TException { - super(client723, protocolFactory724, transport725, resultHandler727, false); + public getZone_call(GetZoneReq req, AsyncMethodCallback resultHandler707, TAsyncClient client703, TProtocolFactory protocolFactory704, TNonblockingTransport transport705) throws TException { + super(client703, protocolFactory704, transport705, resultHandler707, false); this.req = req; } @@ -6446,17 +6284,17 @@ public GetZoneResp getResult() throws TException { } } - public void listZones(ListZonesReq req, AsyncMethodCallback resultHandler731) throws TException { + public void listZones(ListZonesReq req, AsyncMethodCallback resultHandler711) throws TException { checkReady(); - listZones_call method_call = new listZones_call(req, resultHandler731, this, ___protocolFactory, ___transport); + listZones_call method_call = new listZones_call(req, resultHandler711, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listZones_call extends TAsyncMethodCall { private ListZonesReq req; - public listZones_call(ListZonesReq req, AsyncMethodCallback resultHandler732, TAsyncClient client728, TProtocolFactory protocolFactory729, TNonblockingTransport transport730) throws TException { - super(client728, protocolFactory729, transport730, resultHandler732, false); + public listZones_call(ListZonesReq req, AsyncMethodCallback resultHandler712, TAsyncClient client708, TProtocolFactory protocolFactory709, TNonblockingTransport transport710) throws TException { + super(client708, protocolFactory709, transport710, resultHandler712, false); this.req = req; } @@ -6478,17 +6316,17 @@ public ListZonesResp getResult() throws TException { } } - public void addGroup(AddGroupReq req, AsyncMethodCallback resultHandler736) throws TException { + public void addGroup(AddGroupReq req, AsyncMethodCallback resultHandler716) throws TException { checkReady(); - addGroup_call method_call = new addGroup_call(req, resultHandler736, this, ___protocolFactory, ___transport); + addGroup_call method_call = new addGroup_call(req, resultHandler716, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addGroup_call extends TAsyncMethodCall { private AddGroupReq req; - public addGroup_call(AddGroupReq req, AsyncMethodCallback resultHandler737, TAsyncClient client733, TProtocolFactory protocolFactory734, TNonblockingTransport transport735) throws TException { - super(client733, protocolFactory734, transport735, resultHandler737, false); + public addGroup_call(AddGroupReq req, AsyncMethodCallback resultHandler717, TAsyncClient client713, TProtocolFactory protocolFactory714, TNonblockingTransport transport715) throws TException { + super(client713, protocolFactory714, transport715, resultHandler717, false); this.req = req; } @@ -6510,17 +6348,17 @@ public ExecResp getResult() throws TException { } } - public void dropGroup(DropGroupReq req, AsyncMethodCallback resultHandler741) throws TException { + public void dropGroup(DropGroupReq req, AsyncMethodCallback resultHandler721) throws TException { checkReady(); - dropGroup_call method_call = new dropGroup_call(req, resultHandler741, this, ___protocolFactory, ___transport); + dropGroup_call method_call = new dropGroup_call(req, resultHandler721, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropGroup_call extends TAsyncMethodCall { private DropGroupReq req; - public dropGroup_call(DropGroupReq req, AsyncMethodCallback resultHandler742, TAsyncClient client738, TProtocolFactory protocolFactory739, TNonblockingTransport transport740) throws TException { - super(client738, protocolFactory739, transport740, resultHandler742, false); + public dropGroup_call(DropGroupReq req, AsyncMethodCallback resultHandler722, TAsyncClient client718, TProtocolFactory protocolFactory719, TNonblockingTransport transport720) throws TException { + super(client718, protocolFactory719, transport720, resultHandler722, false); this.req = req; } @@ -6542,17 +6380,17 @@ public ExecResp getResult() throws TException { } } - public void addZoneIntoGroup(AddZoneIntoGroupReq req, AsyncMethodCallback resultHandler746) throws TException { + public void addZoneIntoGroup(AddZoneIntoGroupReq req, AsyncMethodCallback resultHandler726) throws TException { checkReady(); - addZoneIntoGroup_call method_call = new addZoneIntoGroup_call(req, resultHandler746, this, ___protocolFactory, ___transport); + addZoneIntoGroup_call method_call = new addZoneIntoGroup_call(req, resultHandler726, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addZoneIntoGroup_call extends TAsyncMethodCall { private AddZoneIntoGroupReq req; - public addZoneIntoGroup_call(AddZoneIntoGroupReq req, AsyncMethodCallback resultHandler747, TAsyncClient client743, TProtocolFactory protocolFactory744, TNonblockingTransport transport745) throws TException { - super(client743, protocolFactory744, transport745, resultHandler747, false); + public addZoneIntoGroup_call(AddZoneIntoGroupReq req, AsyncMethodCallback resultHandler727, TAsyncClient client723, TProtocolFactory protocolFactory724, TNonblockingTransport transport725) throws TException { + super(client723, protocolFactory724, transport725, resultHandler727, false); this.req = req; } @@ -6574,17 +6412,17 @@ public ExecResp getResult() throws TException { } } - public void dropZoneFromGroup(DropZoneFromGroupReq req, AsyncMethodCallback resultHandler751) throws TException { + public void dropZoneFromGroup(DropZoneFromGroupReq req, AsyncMethodCallback resultHandler731) throws TException { checkReady(); - dropZoneFromGroup_call method_call = new dropZoneFromGroup_call(req, resultHandler751, this, ___protocolFactory, ___transport); + dropZoneFromGroup_call method_call = new dropZoneFromGroup_call(req, resultHandler731, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropZoneFromGroup_call extends TAsyncMethodCall { private DropZoneFromGroupReq req; - public dropZoneFromGroup_call(DropZoneFromGroupReq req, AsyncMethodCallback resultHandler752, TAsyncClient client748, TProtocolFactory protocolFactory749, TNonblockingTransport transport750) throws TException { - super(client748, protocolFactory749, transport750, resultHandler752, false); + public dropZoneFromGroup_call(DropZoneFromGroupReq req, AsyncMethodCallback resultHandler732, TAsyncClient client728, TProtocolFactory protocolFactory729, TNonblockingTransport transport730) throws TException { + super(client728, protocolFactory729, transport730, resultHandler732, false); this.req = req; } @@ -6606,17 +6444,17 @@ public ExecResp getResult() throws TException { } } - public void getGroup(GetGroupReq req, AsyncMethodCallback resultHandler756) throws TException { + public void getGroup(GetGroupReq req, AsyncMethodCallback resultHandler736) throws TException { checkReady(); - getGroup_call method_call = new getGroup_call(req, resultHandler756, this, ___protocolFactory, ___transport); + getGroup_call method_call = new getGroup_call(req, resultHandler736, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getGroup_call extends TAsyncMethodCall { private GetGroupReq req; - public getGroup_call(GetGroupReq req, AsyncMethodCallback resultHandler757, TAsyncClient client753, TProtocolFactory protocolFactory754, TNonblockingTransport transport755) throws TException { - super(client753, protocolFactory754, transport755, resultHandler757, false); + public getGroup_call(GetGroupReq req, AsyncMethodCallback resultHandler737, TAsyncClient client733, TProtocolFactory protocolFactory734, TNonblockingTransport transport735) throws TException { + super(client733, protocolFactory734, transport735, resultHandler737, false); this.req = req; } @@ -6638,17 +6476,17 @@ public GetGroupResp getResult() throws TException { } } - public void listGroups(ListGroupsReq req, AsyncMethodCallback resultHandler761) throws TException { + public void listGroups(ListGroupsReq req, AsyncMethodCallback resultHandler741) throws TException { checkReady(); - listGroups_call method_call = new listGroups_call(req, resultHandler761, this, ___protocolFactory, ___transport); + listGroups_call method_call = new listGroups_call(req, resultHandler741, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listGroups_call extends TAsyncMethodCall { private ListGroupsReq req; - public listGroups_call(ListGroupsReq req, AsyncMethodCallback resultHandler762, TAsyncClient client758, TProtocolFactory protocolFactory759, TNonblockingTransport transport760) throws TException { - super(client758, protocolFactory759, transport760, resultHandler762, false); + public listGroups_call(ListGroupsReq req, AsyncMethodCallback resultHandler742, TAsyncClient client738, TProtocolFactory protocolFactory739, TNonblockingTransport transport740) throws TException { + super(client738, protocolFactory739, transport740, resultHandler742, false); this.req = req; } @@ -6670,17 +6508,17 @@ public ListGroupsResp getResult() throws TException { } } - public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler766) throws TException { + public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler746) throws TException { checkReady(); - createBackup_call method_call = new createBackup_call(req, resultHandler766, this, ___protocolFactory, ___transport); + createBackup_call method_call = new createBackup_call(req, resultHandler746, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createBackup_call extends TAsyncMethodCall { private CreateBackupReq req; - public createBackup_call(CreateBackupReq req, AsyncMethodCallback resultHandler767, TAsyncClient client763, TProtocolFactory protocolFactory764, TNonblockingTransport transport765) throws TException { - super(client763, protocolFactory764, transport765, resultHandler767, false); + public createBackup_call(CreateBackupReq req, AsyncMethodCallback resultHandler747, TAsyncClient client743, TProtocolFactory protocolFactory744, TNonblockingTransport transport745) throws TException { + super(client743, protocolFactory744, transport745, resultHandler747, false); this.req = req; } @@ -6702,17 +6540,17 @@ public CreateBackupResp getResult() throws TException { } } - public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler771) throws TException { + public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler751) throws TException { checkReady(); - restoreMeta_call method_call = new restoreMeta_call(req, resultHandler771, this, ___protocolFactory, ___transport); + restoreMeta_call method_call = new restoreMeta_call(req, resultHandler751, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class restoreMeta_call extends TAsyncMethodCall { private RestoreMetaReq req; - public restoreMeta_call(RestoreMetaReq req, AsyncMethodCallback resultHandler772, TAsyncClient client768, TProtocolFactory protocolFactory769, TNonblockingTransport transport770) throws TException { - super(client768, protocolFactory769, transport770, resultHandler772, false); + public restoreMeta_call(RestoreMetaReq req, AsyncMethodCallback resultHandler752, TAsyncClient client748, TProtocolFactory protocolFactory749, TNonblockingTransport transport750) throws TException { + super(client748, protocolFactory749, transport750, resultHandler752, false); this.req = req; } @@ -6734,17 +6572,17 @@ public ExecResp getResult() throws TException { } } - public void addListener(AddListenerReq req, AsyncMethodCallback resultHandler776) throws TException { + public void addListener(AddListenerReq req, AsyncMethodCallback resultHandler756) throws TException { checkReady(); - addListener_call method_call = new addListener_call(req, resultHandler776, this, ___protocolFactory, ___transport); + addListener_call method_call = new addListener_call(req, resultHandler756, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addListener_call extends TAsyncMethodCall { private AddListenerReq req; - public addListener_call(AddListenerReq req, AsyncMethodCallback resultHandler777, TAsyncClient client773, TProtocolFactory protocolFactory774, TNonblockingTransport transport775) throws TException { - super(client773, protocolFactory774, transport775, resultHandler777, false); + public addListener_call(AddListenerReq req, AsyncMethodCallback resultHandler757, TAsyncClient client753, TProtocolFactory protocolFactory754, TNonblockingTransport transport755) throws TException { + super(client753, protocolFactory754, transport755, resultHandler757, false); this.req = req; } @@ -6766,17 +6604,17 @@ public ExecResp getResult() throws TException { } } - public void removeListener(RemoveListenerReq req, AsyncMethodCallback resultHandler781) throws TException { + public void removeListener(RemoveListenerReq req, AsyncMethodCallback resultHandler761) throws TException { checkReady(); - removeListener_call method_call = new removeListener_call(req, resultHandler781, this, ___protocolFactory, ___transport); + removeListener_call method_call = new removeListener_call(req, resultHandler761, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeListener_call extends TAsyncMethodCall { private RemoveListenerReq req; - public removeListener_call(RemoveListenerReq req, AsyncMethodCallback resultHandler782, TAsyncClient client778, TProtocolFactory protocolFactory779, TNonblockingTransport transport780) throws TException { - super(client778, protocolFactory779, transport780, resultHandler782, false); + public removeListener_call(RemoveListenerReq req, AsyncMethodCallback resultHandler762, TAsyncClient client758, TProtocolFactory protocolFactory759, TNonblockingTransport transport760) throws TException { + super(client758, protocolFactory759, transport760, resultHandler762, false); this.req = req; } @@ -6798,17 +6636,17 @@ public ExecResp getResult() throws TException { } } - public void listListener(ListListenerReq req, AsyncMethodCallback resultHandler786) throws TException { + public void listListener(ListListenerReq req, AsyncMethodCallback resultHandler766) throws TException { checkReady(); - listListener_call method_call = new listListener_call(req, resultHandler786, this, ___protocolFactory, ___transport); + listListener_call method_call = new listListener_call(req, resultHandler766, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listListener_call extends TAsyncMethodCall { private ListListenerReq req; - public listListener_call(ListListenerReq req, AsyncMethodCallback resultHandler787, TAsyncClient client783, TProtocolFactory protocolFactory784, TNonblockingTransport transport785) throws TException { - super(client783, protocolFactory784, transport785, resultHandler787, false); + public listListener_call(ListListenerReq req, AsyncMethodCallback resultHandler767, TAsyncClient client763, TProtocolFactory protocolFactory764, TNonblockingTransport transport765) throws TException { + super(client763, protocolFactory764, transport765, resultHandler767, false); this.req = req; } @@ -6830,17 +6668,17 @@ public ListListenerResp getResult() throws TException { } } - public void getStats(GetStatsReq req, AsyncMethodCallback resultHandler791) throws TException { + public void getStats(GetStatsReq req, AsyncMethodCallback resultHandler771) throws TException { checkReady(); - getStats_call method_call = new getStats_call(req, resultHandler791, this, ___protocolFactory, ___transport); + getStats_call method_call = new getStats_call(req, resultHandler771, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getStats_call extends TAsyncMethodCall { private GetStatsReq req; - public getStats_call(GetStatsReq req, AsyncMethodCallback resultHandler792, TAsyncClient client788, TProtocolFactory protocolFactory789, TNonblockingTransport transport790) throws TException { - super(client788, protocolFactory789, transport790, resultHandler792, false); + public getStats_call(GetStatsReq req, AsyncMethodCallback resultHandler772, TAsyncClient client768, TProtocolFactory protocolFactory769, TNonblockingTransport transport770) throws TException { + super(client768, protocolFactory769, transport770, resultHandler772, false); this.req = req; } @@ -6862,17 +6700,17 @@ public GetStatsResp getResult() throws TException { } } - public void signInFTService(SignInFTServiceReq req, AsyncMethodCallback resultHandler796) throws TException { + public void signInFTService(SignInFTServiceReq req, AsyncMethodCallback resultHandler776) throws TException { checkReady(); - signInFTService_call method_call = new signInFTService_call(req, resultHandler796, this, ___protocolFactory, ___transport); + signInFTService_call method_call = new signInFTService_call(req, resultHandler776, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class signInFTService_call extends TAsyncMethodCall { private SignInFTServiceReq req; - public signInFTService_call(SignInFTServiceReq req, AsyncMethodCallback resultHandler797, TAsyncClient client793, TProtocolFactory protocolFactory794, TNonblockingTransport transport795) throws TException { - super(client793, protocolFactory794, transport795, resultHandler797, false); + public signInFTService_call(SignInFTServiceReq req, AsyncMethodCallback resultHandler777, TAsyncClient client773, TProtocolFactory protocolFactory774, TNonblockingTransport transport775) throws TException { + super(client773, protocolFactory774, transport775, resultHandler777, false); this.req = req; } @@ -6894,17 +6732,17 @@ public ExecResp getResult() throws TException { } } - public void signOutFTService(SignOutFTServiceReq req, AsyncMethodCallback resultHandler801) throws TException { + public void signOutFTService(SignOutFTServiceReq req, AsyncMethodCallback resultHandler781) throws TException { checkReady(); - signOutFTService_call method_call = new signOutFTService_call(req, resultHandler801, this, ___protocolFactory, ___transport); + signOutFTService_call method_call = new signOutFTService_call(req, resultHandler781, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class signOutFTService_call extends TAsyncMethodCall { private SignOutFTServiceReq req; - public signOutFTService_call(SignOutFTServiceReq req, AsyncMethodCallback resultHandler802, TAsyncClient client798, TProtocolFactory protocolFactory799, TNonblockingTransport transport800) throws TException { - super(client798, protocolFactory799, transport800, resultHandler802, false); + public signOutFTService_call(SignOutFTServiceReq req, AsyncMethodCallback resultHandler782, TAsyncClient client778, TProtocolFactory protocolFactory779, TNonblockingTransport transport780) throws TException { + super(client778, protocolFactory779, transport780, resultHandler782, false); this.req = req; } @@ -6926,17 +6764,17 @@ public ExecResp getResult() throws TException { } } - public void listFTClients(ListFTClientsReq req, AsyncMethodCallback resultHandler806) throws TException { + public void listFTClients(ListFTClientsReq req, AsyncMethodCallback resultHandler786) throws TException { checkReady(); - listFTClients_call method_call = new listFTClients_call(req, resultHandler806, this, ___protocolFactory, ___transport); + listFTClients_call method_call = new listFTClients_call(req, resultHandler786, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listFTClients_call extends TAsyncMethodCall { private ListFTClientsReq req; - public listFTClients_call(ListFTClientsReq req, AsyncMethodCallback resultHandler807, TAsyncClient client803, TProtocolFactory protocolFactory804, TNonblockingTransport transport805) throws TException { - super(client803, protocolFactory804, transport805, resultHandler807, false); + public listFTClients_call(ListFTClientsReq req, AsyncMethodCallback resultHandler787, TAsyncClient client783, TProtocolFactory protocolFactory784, TNonblockingTransport transport785) throws TException { + super(client783, protocolFactory784, transport785, resultHandler787, false); this.req = req; } @@ -6958,17 +6796,17 @@ public ListFTClientsResp getResult() throws TException { } } - public void createFTIndex(CreateFTIndexReq req, AsyncMethodCallback resultHandler811) throws TException { + public void createFTIndex(CreateFTIndexReq req, AsyncMethodCallback resultHandler791) throws TException { checkReady(); - createFTIndex_call method_call = new createFTIndex_call(req, resultHandler811, this, ___protocolFactory, ___transport); + createFTIndex_call method_call = new createFTIndex_call(req, resultHandler791, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createFTIndex_call extends TAsyncMethodCall { private CreateFTIndexReq req; - public createFTIndex_call(CreateFTIndexReq req, AsyncMethodCallback resultHandler812, TAsyncClient client808, TProtocolFactory protocolFactory809, TNonblockingTransport transport810) throws TException { - super(client808, protocolFactory809, transport810, resultHandler812, false); + public createFTIndex_call(CreateFTIndexReq req, AsyncMethodCallback resultHandler792, TAsyncClient client788, TProtocolFactory protocolFactory789, TNonblockingTransport transport790) throws TException { + super(client788, protocolFactory789, transport790, resultHandler792, false); this.req = req; } @@ -6990,17 +6828,17 @@ public ExecResp getResult() throws TException { } } - public void dropFTIndex(DropFTIndexReq req, AsyncMethodCallback resultHandler816) throws TException { + public void dropFTIndex(DropFTIndexReq req, AsyncMethodCallback resultHandler796) throws TException { checkReady(); - dropFTIndex_call method_call = new dropFTIndex_call(req, resultHandler816, this, ___protocolFactory, ___transport); + dropFTIndex_call method_call = new dropFTIndex_call(req, resultHandler796, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropFTIndex_call extends TAsyncMethodCall { private DropFTIndexReq req; - public dropFTIndex_call(DropFTIndexReq req, AsyncMethodCallback resultHandler817, TAsyncClient client813, TProtocolFactory protocolFactory814, TNonblockingTransport transport815) throws TException { - super(client813, protocolFactory814, transport815, resultHandler817, false); + public dropFTIndex_call(DropFTIndexReq req, AsyncMethodCallback resultHandler797, TAsyncClient client793, TProtocolFactory protocolFactory794, TNonblockingTransport transport795) throws TException { + super(client793, protocolFactory794, transport795, resultHandler797, false); this.req = req; } @@ -7022,17 +6860,17 @@ public ExecResp getResult() throws TException { } } - public void listFTIndexes(ListFTIndexesReq req, AsyncMethodCallback resultHandler821) throws TException { + public void listFTIndexes(ListFTIndexesReq req, AsyncMethodCallback resultHandler801) throws TException { checkReady(); - listFTIndexes_call method_call = new listFTIndexes_call(req, resultHandler821, this, ___protocolFactory, ___transport); + listFTIndexes_call method_call = new listFTIndexes_call(req, resultHandler801, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listFTIndexes_call extends TAsyncMethodCall { private ListFTIndexesReq req; - public listFTIndexes_call(ListFTIndexesReq req, AsyncMethodCallback resultHandler822, TAsyncClient client818, TProtocolFactory protocolFactory819, TNonblockingTransport transport820) throws TException { - super(client818, protocolFactory819, transport820, resultHandler822, false); + public listFTIndexes_call(ListFTIndexesReq req, AsyncMethodCallback resultHandler802, TAsyncClient client798, TProtocolFactory protocolFactory799, TNonblockingTransport transport800) throws TException { + super(client798, protocolFactory799, transport800, resultHandler802, false); this.req = req; } @@ -7054,17 +6892,17 @@ public ListFTIndexesResp getResult() throws TException { } } - public void createSession(CreateSessionReq req, AsyncMethodCallback resultHandler826) throws TException { + public void createSession(CreateSessionReq req, AsyncMethodCallback resultHandler806) throws TException { checkReady(); - createSession_call method_call = new createSession_call(req, resultHandler826, this, ___protocolFactory, ___transport); + createSession_call method_call = new createSession_call(req, resultHandler806, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createSession_call extends TAsyncMethodCall { private CreateSessionReq req; - public createSession_call(CreateSessionReq req, AsyncMethodCallback resultHandler827, TAsyncClient client823, TProtocolFactory protocolFactory824, TNonblockingTransport transport825) throws TException { - super(client823, protocolFactory824, transport825, resultHandler827, false); + public createSession_call(CreateSessionReq req, AsyncMethodCallback resultHandler807, TAsyncClient client803, TProtocolFactory protocolFactory804, TNonblockingTransport transport805) throws TException { + super(client803, protocolFactory804, transport805, resultHandler807, false); this.req = req; } @@ -7086,17 +6924,17 @@ public CreateSessionResp getResult() throws TException { } } - public void updateSessions(UpdateSessionsReq req, AsyncMethodCallback resultHandler831) throws TException { + public void updateSessions(UpdateSessionsReq req, AsyncMethodCallback resultHandler811) throws TException { checkReady(); - updateSessions_call method_call = new updateSessions_call(req, resultHandler831, this, ___protocolFactory, ___transport); + updateSessions_call method_call = new updateSessions_call(req, resultHandler811, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class updateSessions_call extends TAsyncMethodCall { private UpdateSessionsReq req; - public updateSessions_call(UpdateSessionsReq req, AsyncMethodCallback resultHandler832, TAsyncClient client828, TProtocolFactory protocolFactory829, TNonblockingTransport transport830) throws TException { - super(client828, protocolFactory829, transport830, resultHandler832, false); + public updateSessions_call(UpdateSessionsReq req, AsyncMethodCallback resultHandler812, TAsyncClient client808, TProtocolFactory protocolFactory809, TNonblockingTransport transport810) throws TException { + super(client808, protocolFactory809, transport810, resultHandler812, false); this.req = req; } @@ -7118,17 +6956,17 @@ public UpdateSessionsResp getResult() throws TException { } } - public void listSessions(ListSessionsReq req, AsyncMethodCallback resultHandler836) throws TException { + public void listSessions(ListSessionsReq req, AsyncMethodCallback resultHandler816) throws TException { checkReady(); - listSessions_call method_call = new listSessions_call(req, resultHandler836, this, ___protocolFactory, ___transport); + listSessions_call method_call = new listSessions_call(req, resultHandler816, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listSessions_call extends TAsyncMethodCall { private ListSessionsReq req; - public listSessions_call(ListSessionsReq req, AsyncMethodCallback resultHandler837, TAsyncClient client833, TProtocolFactory protocolFactory834, TNonblockingTransport transport835) throws TException { - super(client833, protocolFactory834, transport835, resultHandler837, false); + public listSessions_call(ListSessionsReq req, AsyncMethodCallback resultHandler817, TAsyncClient client813, TProtocolFactory protocolFactory814, TNonblockingTransport transport815) throws TException { + super(client813, protocolFactory814, transport815, resultHandler817, false); this.req = req; } @@ -7150,17 +6988,17 @@ public ListSessionsResp getResult() throws TException { } } - public void getSession(GetSessionReq req, AsyncMethodCallback resultHandler841) throws TException { + public void getSession(GetSessionReq req, AsyncMethodCallback resultHandler821) throws TException { checkReady(); - getSession_call method_call = new getSession_call(req, resultHandler841, this, ___protocolFactory, ___transport); + getSession_call method_call = new getSession_call(req, resultHandler821, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getSession_call extends TAsyncMethodCall { private GetSessionReq req; - public getSession_call(GetSessionReq req, AsyncMethodCallback resultHandler842, TAsyncClient client838, TProtocolFactory protocolFactory839, TNonblockingTransport transport840) throws TException { - super(client838, protocolFactory839, transport840, resultHandler842, false); + public getSession_call(GetSessionReq req, AsyncMethodCallback resultHandler822, TAsyncClient client818, TProtocolFactory protocolFactory819, TNonblockingTransport transport820) throws TException { + super(client818, protocolFactory819, transport820, resultHandler822, false); this.req = req; } @@ -7182,17 +7020,17 @@ public GetSessionResp getResult() throws TException { } } - public void removeSession(RemoveSessionReq req, AsyncMethodCallback resultHandler846) throws TException { + public void removeSession(RemoveSessionReq req, AsyncMethodCallback resultHandler826) throws TException { checkReady(); - removeSession_call method_call = new removeSession_call(req, resultHandler846, this, ___protocolFactory, ___transport); + removeSession_call method_call = new removeSession_call(req, resultHandler826, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeSession_call extends TAsyncMethodCall { private RemoveSessionReq req; - public removeSession_call(RemoveSessionReq req, AsyncMethodCallback resultHandler847, TAsyncClient client843, TProtocolFactory protocolFactory844, TNonblockingTransport transport845) throws TException { - super(client843, protocolFactory844, transport845, resultHandler847, false); + public removeSession_call(RemoveSessionReq req, AsyncMethodCallback resultHandler827, TAsyncClient client823, TProtocolFactory protocolFactory824, TNonblockingTransport transport825) throws TException { + super(client823, protocolFactory824, transport825, resultHandler827, false); this.req = req; } @@ -7214,17 +7052,17 @@ public ExecResp getResult() throws TException { } } - public void killQuery(KillQueryReq req, AsyncMethodCallback resultHandler851) throws TException { + public void killQuery(KillQueryReq req, AsyncMethodCallback resultHandler831) throws TException { checkReady(); - killQuery_call method_call = new killQuery_call(req, resultHandler851, this, ___protocolFactory, ___transport); + killQuery_call method_call = new killQuery_call(req, resultHandler831, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class killQuery_call extends TAsyncMethodCall { private KillQueryReq req; - public killQuery_call(KillQueryReq req, AsyncMethodCallback resultHandler852, TAsyncClient client848, TProtocolFactory protocolFactory849, TNonblockingTransport transport850) throws TException { - super(client848, protocolFactory849, transport850, resultHandler852, false); + public killQuery_call(KillQueryReq req, AsyncMethodCallback resultHandler832, TAsyncClient client828, TProtocolFactory protocolFactory829, TNonblockingTransport transport830) throws TException { + super(client828, protocolFactory829, transport830, resultHandler832, false); this.req = req; } @@ -7246,17 +7084,17 @@ public ExecResp getResult() throws TException { } } - public void reportTaskFinish(ReportTaskReq req, AsyncMethodCallback resultHandler856) throws TException { + public void reportTaskFinish(ReportTaskReq req, AsyncMethodCallback resultHandler836) throws TException { checkReady(); - reportTaskFinish_call method_call = new reportTaskFinish_call(req, resultHandler856, this, ___protocolFactory, ___transport); + reportTaskFinish_call method_call = new reportTaskFinish_call(req, resultHandler836, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class reportTaskFinish_call extends TAsyncMethodCall { private ReportTaskReq req; - public reportTaskFinish_call(ReportTaskReq req, AsyncMethodCallback resultHandler857, TAsyncClient client853, TProtocolFactory protocolFactory854, TNonblockingTransport transport855) throws TException { - super(client853, protocolFactory854, transport855, resultHandler857, false); + public reportTaskFinish_call(ReportTaskReq req, AsyncMethodCallback resultHandler837, TAsyncClient client833, TProtocolFactory protocolFactory834, TNonblockingTransport transport835) throws TException { + super(client833, protocolFactory834, transport835, resultHandler837, false); this.req = req; } @@ -7278,17 +7116,17 @@ public ExecResp getResult() throws TException { } } - public void listCluster(ListClusterInfoReq req, AsyncMethodCallback resultHandler861) throws TException { + public void listCluster(ListClusterInfoReq req, AsyncMethodCallback resultHandler841) throws TException { checkReady(); - listCluster_call method_call = new listCluster_call(req, resultHandler861, this, ___protocolFactory, ___transport); + listCluster_call method_call = new listCluster_call(req, resultHandler841, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listCluster_call extends TAsyncMethodCall { private ListClusterInfoReq req; - public listCluster_call(ListClusterInfoReq req, AsyncMethodCallback resultHandler862, TAsyncClient client858, TProtocolFactory protocolFactory859, TNonblockingTransport transport860) throws TException { - super(client858, protocolFactory859, transport860, resultHandler862, false); + public listCluster_call(ListClusterInfoReq req, AsyncMethodCallback resultHandler842, TAsyncClient client838, TProtocolFactory protocolFactory839, TNonblockingTransport transport840) throws TException { + super(client838, protocolFactory839, transport840, resultHandler842, false); this.req = req; } @@ -7310,17 +7148,17 @@ public ListClusterInfoResp getResult() throws TException { } } - public void getMetaDirInfo(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler866) throws TException { + public void getMetaDirInfo(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler846) throws TException { checkReady(); - getMetaDirInfo_call method_call = new getMetaDirInfo_call(req, resultHandler866, this, ___protocolFactory, ___transport); + getMetaDirInfo_call method_call = new getMetaDirInfo_call(req, resultHandler846, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getMetaDirInfo_call extends TAsyncMethodCall { private GetMetaDirInfoReq req; - public getMetaDirInfo_call(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler867, TAsyncClient client863, TProtocolFactory protocolFactory864, TNonblockingTransport transport865) throws TException { - super(client863, protocolFactory864, transport865, resultHandler867, false); + public getMetaDirInfo_call(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler847, TAsyncClient client843, TProtocolFactory protocolFactory844, TNonblockingTransport transport845) throws TException { + super(client843, protocolFactory844, transport845, resultHandler847, false); this.req = req; } @@ -7342,17 +7180,17 @@ public GetMetaDirInfoResp getResult() throws TException { } } - public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler871) throws TException { + public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler851) throws TException { checkReady(); - verifyClientVersion_call method_call = new verifyClientVersion_call(req, resultHandler871, this, ___protocolFactory, ___transport); + verifyClientVersion_call method_call = new verifyClientVersion_call(req, resultHandler851, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class verifyClientVersion_call extends TAsyncMethodCall { private VerifyClientVersionReq req; - public verifyClientVersion_call(VerifyClientVersionReq req, AsyncMethodCallback resultHandler872, TAsyncClient client868, TProtocolFactory protocolFactory869, TNonblockingTransport transport870) throws TException { - super(client868, protocolFactory869, transport870, resultHandler872, false); + public verifyClientVersion_call(VerifyClientVersionReq req, AsyncMethodCallback resultHandler852, TAsyncClient client848, TProtocolFactory protocolFactory849, TNonblockingTransport transport850) throws TException { + super(client848, protocolFactory849, transport850, resultHandler852, false); this.req = req; } @@ -7428,8 +7266,6 @@ public Processor(Iface iface) processMap_.put("getUserRoles", new getUserRoles()); processMap_.put("changePassword", new changePassword()); processMap_.put("heartBeat", new heartBeat()); - processMap_.put("balance", new balance()); - processMap_.put("leaderBalance", new leaderBalance()); processMap_.put("regConfig", new regConfig()); processMap_.put("getConfig", new getConfig()); processMap_.put("setConfig", new setConfig()); @@ -8470,48 +8306,6 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } - private class balance implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("MetaService.balance", server_ctx); - balance_args args = new balance_args(); - event_handler_.preRead(handler_ctx, "MetaService.balance"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.balance", args); - balance_result result = new balance_result(); - result.success = iface_.balance(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.balance", result); - oprot.writeMessageBegin(new TMessage("balance", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.balance", result); - } - - } - - private class leaderBalance implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("MetaService.leaderBalance", server_ctx); - leaderBalance_args args = new leaderBalance_args(); - event_handler_.preRead(handler_ctx, "MetaService.leaderBalance"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.leaderBalance", args); - leaderBalance_result result = new leaderBalance_result(); - result.success = iface_.leaderBalance(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.leaderBalance", result); - oprot.writeMessageBegin(new TMessage("leaderBalance", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.leaderBalance", result); - } - - } - private class regConfig implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -29406,876 +29200,6 @@ public void validate() throws TException { } - public static class balance_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("balance_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public BalanceReq req; - public static final int REQ = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, BalanceReq.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(balance_args.class, metaDataMap); - } - - public balance_args() { - } - - public balance_args( - BalanceReq req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public balance_args(balance_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public balance_args deepCopy() { - return new balance_args(this); - } - - public BalanceReq getReq() { - return this.req; - } - - public balance_args setReq(BalanceReq req) { - this.req = req; - return this; - } - - public void unsetReq() { - this.req = null; - } - - // Returns true if field req is set (has been assigned a value) and false otherwise - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean __value) { - if (!__value) { - this.req = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case REQ: - if (__value == null) { - unsetReq(); - } else { - setReq((BalanceReq)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case REQ: - return getReq(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof balance_args)) - return false; - balance_args that = (balance_args)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {req}); - } - - @Override - public int compareTo(balance_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case REQ: - if (__field.type == TType.STRUCT) { - this.req = new BalanceReq(); - this.req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (this.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - this.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("balance_args"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("req"); - sb.append(space); - sb.append(":").append(space); - if (this.getReq() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class balance_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("balance_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public BalanceResp success; - public static final int SUCCESS = 0; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, BalanceResp.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(balance_result.class, metaDataMap); - } - - public balance_result() { - } - - public balance_result( - BalanceResp success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public balance_result(balance_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public balance_result deepCopy() { - return new balance_result(this); - } - - public BalanceResp getSuccess() { - return this.success; - } - - public balance_result setSuccess(BalanceResp success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - // Returns true if field success is set (has been assigned a value) and false otherwise - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean __value) { - if (!__value) { - this.success = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SUCCESS: - if (__value == null) { - unsetSuccess(); - } else { - setSuccess((BalanceResp)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SUCCESS: - return getSuccess(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof balance_result)) - return false; - balance_result that = (balance_result)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {success}); - } - - @Override - public int compareTo(balance_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case SUCCESS: - if (__field.type == TType.STRUCT) { - this.success = new BalanceResp(); - this.success.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - oprot.writeStructBegin(STRUCT_DESC); - - if (this.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - this.success.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("balance_result"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("success"); - sb.append(space); - sb.append(":").append(space); - if (this.getSuccess() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class leaderBalance_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("leaderBalance_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public LeaderBalanceReq req; - public static final int REQ = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, LeaderBalanceReq.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(leaderBalance_args.class, metaDataMap); - } - - public leaderBalance_args() { - } - - public leaderBalance_args( - LeaderBalanceReq req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public leaderBalance_args(leaderBalance_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public leaderBalance_args deepCopy() { - return new leaderBalance_args(this); - } - - public LeaderBalanceReq getReq() { - return this.req; - } - - public leaderBalance_args setReq(LeaderBalanceReq req) { - this.req = req; - return this; - } - - public void unsetReq() { - this.req = null; - } - - // Returns true if field req is set (has been assigned a value) and false otherwise - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean __value) { - if (!__value) { - this.req = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case REQ: - if (__value == null) { - unsetReq(); - } else { - setReq((LeaderBalanceReq)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case REQ: - return getReq(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof leaderBalance_args)) - return false; - leaderBalance_args that = (leaderBalance_args)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {req}); - } - - @Override - public int compareTo(leaderBalance_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case REQ: - if (__field.type == TType.STRUCT) { - this.req = new LeaderBalanceReq(); - this.req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (this.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - this.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("leaderBalance_args"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("req"); - sb.append(space); - sb.append(":").append(space); - if (this.getReq() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class leaderBalance_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("leaderBalance_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public ExecResp success; - public static final int SUCCESS = 0; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(leaderBalance_result.class, metaDataMap); - } - - public leaderBalance_result() { - } - - public leaderBalance_result( - ExecResp success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public leaderBalance_result(leaderBalance_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public leaderBalance_result deepCopy() { - return new leaderBalance_result(this); - } - - public ExecResp getSuccess() { - return this.success; - } - - public leaderBalance_result setSuccess(ExecResp success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - // Returns true if field success is set (has been assigned a value) and false otherwise - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean __value) { - if (!__value) { - this.success = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SUCCESS: - if (__value == null) { - unsetSuccess(); - } else { - setSuccess((ExecResp)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SUCCESS: - return getSuccess(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof leaderBalance_result)) - return false; - leaderBalance_result that = (leaderBalance_result)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {success}); - } - - @Override - public int compareTo(leaderBalance_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case SUCCESS: - if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); - this.success.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - oprot.writeStructBegin(STRUCT_DESC); - - if (this.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - this.success.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("leaderBalance_result"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("success"); - sb.append(space); - sb.append(":").append(space); - if (this.getSuccess() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - public static class regConfig_args implements TBase, java.io.Serializable, Cloneable { private static final TStruct STRUCT_DESC = new TStruct("regConfig_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/RegConfigReq.java b/client/src/main/generated/com/vesoft/nebula/meta/RegConfigReq.java index 8b9c3fefc..28a37016a 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/RegConfigReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/RegConfigReq.java @@ -175,16 +175,16 @@ public void read(TProtocol iprot) throws TException { case ITEMS: if (__field.type == TType.LIST) { { - TList _list182 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list182.size)); - for (int _i183 = 0; - (_list182.size < 0) ? iprot.peekList() : (_i183 < _list182.size); - ++_i183) + TList _list174 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list174.size)); + for (int _i175 = 0; + (_list174.size < 0) ? iprot.peekList() : (_i175 < _list174.size); + ++_i175) { - ConfigItem _elem184; - _elem184 = new ConfigItem(); - _elem184.read(iprot); - this.items.add(_elem184); + ConfigItem _elem176; + _elem176 = new ConfigItem(); + _elem176.read(iprot); + this.items.add(_elem176); } iprot.readListEnd(); } @@ -213,8 +213,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ITEMS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.items.size())); - for (ConfigItem _iter185 : this.items) { - _iter185.write(oprot); + for (ConfigItem _iter177 : this.items) { + _iter177.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaReq.java b/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaReq.java index 7db9e47a5..19fe5bc0f 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaReq.java @@ -261,15 +261,15 @@ public void read(TProtocol iprot) throws TException { case FILES: if (__field.type == TType.LIST) { { - TList _list263 = iprot.readListBegin(); - this.files = new ArrayList(Math.max(0, _list263.size)); - for (int _i264 = 0; - (_list263.size < 0) ? iprot.peekList() : (_i264 < _list263.size); - ++_i264) + TList _list255 = iprot.readListBegin(); + this.files = new ArrayList(Math.max(0, _list255.size)); + for (int _i256 = 0; + (_list255.size < 0) ? iprot.peekList() : (_i256 < _list255.size); + ++_i256) { - byte[] _elem265; - _elem265 = iprot.readBinary(); - this.files.add(_elem265); + byte[] _elem257; + _elem257 = iprot.readBinary(); + this.files.add(_elem257); } iprot.readListEnd(); } @@ -280,16 +280,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - TList _list266 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list266.size)); - for (int _i267 = 0; - (_list266.size < 0) ? iprot.peekList() : (_i267 < _list266.size); - ++_i267) + TList _list258 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list258.size)); + for (int _i259 = 0; + (_list258.size < 0) ? iprot.peekList() : (_i259 < _list258.size); + ++_i259) { - HostPair _elem268; - _elem268 = new HostPair(); - _elem268.read(iprot); - this.hosts.add(_elem268); + HostPair _elem260; + _elem260 = new HostPair(); + _elem260.read(iprot); + this.hosts.add(_elem260); } iprot.readListEnd(); } @@ -318,8 +318,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(FILES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.files.size())); - for (byte[] _iter269 : this.files) { - oprot.writeBinary(_iter269); + for (byte[] _iter261 : this.files) { + oprot.writeBinary(_iter261); } oprot.writeListEnd(); } @@ -329,8 +329,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(HOSTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.hosts.size())); - for (HostPair _iter270 : this.hosts) { - _iter270.write(oprot); + for (HostPair _iter262 : this.hosts) { + _iter262.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/Session.java b/client/src/main/generated/com/vesoft/nebula/meta/Session.java index 92376799b..fd2c1bd85 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/Session.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/Session.java @@ -738,18 +738,18 @@ public void read(TProtocol iprot) throws TException { case CONFIGS: if (__field.type == TType.MAP) { { - TMap _map288 = iprot.readMapBegin(); - this.configs = new HashMap(Math.max(0, 2*_map288.size)); - for (int _i289 = 0; - (_map288.size < 0) ? iprot.peekMap() : (_i289 < _map288.size); - ++_i289) + TMap _map280 = iprot.readMapBegin(); + this.configs = new HashMap(Math.max(0, 2*_map280.size)); + for (int _i281 = 0; + (_map280.size < 0) ? iprot.peekMap() : (_i281 < _map280.size); + ++_i281) { - byte[] _key290; - com.vesoft.nebula.Value _val291; - _key290 = iprot.readBinary(); - _val291 = new com.vesoft.nebula.Value(); - _val291.read(iprot); - this.configs.put(_key290, _val291); + byte[] _key282; + com.vesoft.nebula.Value _val283; + _key282 = iprot.readBinary(); + _val283 = new com.vesoft.nebula.Value(); + _val283.read(iprot); + this.configs.put(_key282, _val283); } iprot.readMapEnd(); } @@ -760,18 +760,18 @@ public void read(TProtocol iprot) throws TException { case QUERIES: if (__field.type == TType.MAP) { { - TMap _map292 = iprot.readMapBegin(); - this.queries = new HashMap(Math.max(0, 2*_map292.size)); - for (int _i293 = 0; - (_map292.size < 0) ? iprot.peekMap() : (_i293 < _map292.size); - ++_i293) + TMap _map284 = iprot.readMapBegin(); + this.queries = new HashMap(Math.max(0, 2*_map284.size)); + for (int _i285 = 0; + (_map284.size < 0) ? iprot.peekMap() : (_i285 < _map284.size); + ++_i285) { - long _key294; - QueryDesc _val295; - _key294 = iprot.readI64(); - _val295 = new QueryDesc(); - _val295.read(iprot); - this.queries.put(_key294, _val295); + long _key286; + QueryDesc _val287; + _key286 = iprot.readI64(); + _val287 = new QueryDesc(); + _val287.read(iprot); + this.queries.put(_key286, _val287); } iprot.readMapEnd(); } @@ -832,9 +832,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(CONFIGS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.configs.size())); - for (Map.Entry _iter296 : this.configs.entrySet()) { - oprot.writeBinary(_iter296.getKey()); - _iter296.getValue().write(oprot); + for (Map.Entry _iter288 : this.configs.entrySet()) { + oprot.writeBinary(_iter288.getKey()); + _iter288.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -844,9 +844,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(QUERIES_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, this.queries.size())); - for (Map.Entry _iter297 : this.queries.entrySet()) { - oprot.writeI64(_iter297.getKey()); - _iter297.getValue().write(oprot); + for (Map.Entry _iter289 : this.queries.entrySet()) { + oprot.writeI64(_iter289.getKey()); + _iter289.getValue().write(oprot); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/SignInFTServiceReq.java b/client/src/main/generated/com/vesoft/nebula/meta/SignInFTServiceReq.java index 763afc89b..d89b5b6b2 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/SignInFTServiceReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/SignInFTServiceReq.java @@ -279,16 +279,16 @@ public void read(TProtocol iprot) throws TException { case CLIENTS: if (__field.type == TType.LIST) { { - TList _list271 = iprot.readListBegin(); - this.clients = new ArrayList(Math.max(0, _list271.size)); - for (int _i272 = 0; - (_list271.size < 0) ? iprot.peekList() : (_i272 < _list271.size); - ++_i272) + TList _list263 = iprot.readListBegin(); + this.clients = new ArrayList(Math.max(0, _list263.size)); + for (int _i264 = 0; + (_list263.size < 0) ? iprot.peekList() : (_i264 < _list263.size); + ++_i264) { - FTClient _elem273; - _elem273 = new FTClient(); - _elem273.read(iprot); - this.clients.add(_elem273); + FTClient _elem265; + _elem265 = new FTClient(); + _elem265.read(iprot); + this.clients.add(_elem265); } iprot.readListEnd(); } @@ -322,8 +322,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(CLIENTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.clients.size())); - for (FTClient _iter274 : this.clients) { - _iter274.write(oprot); + for (FTClient _iter266 : this.clients) { + _iter266.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java index 2a8b3870b..7e1fc86ca 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java @@ -268,16 +268,16 @@ public void read(TProtocol iprot) throws TException { case INFO: if (__field.type == TType.LIST) { { - TList _list246 = iprot.readListBegin(); - this.info = new ArrayList(Math.max(0, _list246.size)); - for (int _i247 = 0; - (_list246.size < 0) ? iprot.peekList() : (_i247 < _list246.size); - ++_i247) + TList _list238 = iprot.readListBegin(); + this.info = new ArrayList(Math.max(0, _list238.size)); + for (int _i239 = 0; + (_list238.size < 0) ? iprot.peekList() : (_i239 < _list238.size); + ++_i239) { - BackupInfo _elem248; - _elem248 = new BackupInfo(); - _elem248.read(iprot); - this.info.add(_elem248); + BackupInfo _elem240; + _elem240 = new BackupInfo(); + _elem240.read(iprot); + this.info.add(_elem240); } iprot.readListEnd(); } @@ -311,8 +311,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(INFO_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.info.size())); - for (BackupInfo _iter249 : this.info) { - _iter249.write(oprot); + for (BackupInfo _iter241 : this.info) { + _iter241.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsReq.java b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsReq.java index e5f646301..b2f3a558e 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsReq.java @@ -175,16 +175,16 @@ public void read(TProtocol iprot) throws TException { case SESSIONS: if (__field.type == TType.LIST) { { - TList _list298 = iprot.readListBegin(); - this.sessions = new ArrayList(Math.max(0, _list298.size)); - for (int _i299 = 0; - (_list298.size < 0) ? iprot.peekList() : (_i299 < _list298.size); - ++_i299) + TList _list290 = iprot.readListBegin(); + this.sessions = new ArrayList(Math.max(0, _list290.size)); + for (int _i291 = 0; + (_list290.size < 0) ? iprot.peekList() : (_i291 < _list290.size); + ++_i291) { - Session _elem300; - _elem300 = new Session(); - _elem300.read(iprot); - this.sessions.add(_elem300); + Session _elem292; + _elem292 = new Session(); + _elem292.read(iprot); + this.sessions.add(_elem292); } iprot.readListEnd(); } @@ -213,8 +213,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SESSIONS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.sessions.size())); - for (Session _iter301 : this.sessions) { - _iter301.write(oprot); + for (Session _iter293 : this.sessions) { + _iter293.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsResp.java index be4ef2522..66a1389af 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsResp.java @@ -352,32 +352,32 @@ public void read(TProtocol iprot) throws TException { case KILLED_QUERIES: if (__field.type == TType.MAP) { { - TMap _map302 = iprot.readMapBegin(); - this.killed_queries = new HashMap>(Math.max(0, 2*_map302.size)); - for (int _i303 = 0; - (_map302.size < 0) ? iprot.peekMap() : (_i303 < _map302.size); - ++_i303) + TMap _map294 = iprot.readMapBegin(); + this.killed_queries = new HashMap>(Math.max(0, 2*_map294.size)); + for (int _i295 = 0; + (_map294.size < 0) ? iprot.peekMap() : (_i295 < _map294.size); + ++_i295) { - long _key304; - Map _val305; - _key304 = iprot.readI64(); + long _key296; + Map _val297; + _key296 = iprot.readI64(); { - TMap _map306 = iprot.readMapBegin(); - _val305 = new HashMap(Math.max(0, 2*_map306.size)); - for (int _i307 = 0; - (_map306.size < 0) ? iprot.peekMap() : (_i307 < _map306.size); - ++_i307) + TMap _map298 = iprot.readMapBegin(); + _val297 = new HashMap(Math.max(0, 2*_map298.size)); + for (int _i299 = 0; + (_map298.size < 0) ? iprot.peekMap() : (_i299 < _map298.size); + ++_i299) { - long _key308; - QueryDesc _val309; - _key308 = iprot.readI64(); - _val309 = new QueryDesc(); - _val309.read(iprot); - _val305.put(_key308, _val309); + long _key300; + QueryDesc _val301; + _key300 = iprot.readI64(); + _val301 = new QueryDesc(); + _val301.read(iprot); + _val297.put(_key300, _val301); } iprot.readMapEnd(); } - this.killed_queries.put(_key304, _val305); + this.killed_queries.put(_key296, _val297); } iprot.readMapEnd(); } @@ -416,13 +416,13 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(KILLED_QUERIES_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I64, TType.MAP, this.killed_queries.size())); - for (Map.Entry> _iter310 : this.killed_queries.entrySet()) { - oprot.writeI64(_iter310.getKey()); + for (Map.Entry> _iter302 : this.killed_queries.entrySet()) { + oprot.writeI64(_iter302.getKey()); { - oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, _iter310.getValue().size())); - for (Map.Entry _iter311 : _iter310.getValue().entrySet()) { - oprot.writeI64(_iter311.getKey()); - _iter311.getValue().write(oprot); + oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, _iter302.getValue().size())); + for (Map.Entry _iter303 : _iter302.getValue().entrySet()) { + oprot.writeI64(_iter303.getKey()); + _iter303.getValue().write(oprot); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/Zone.java b/client/src/main/generated/com/vesoft/nebula/meta/Zone.java index 72195cf07..aed2648fa 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/Zone.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/Zone.java @@ -267,16 +267,16 @@ public void read(TProtocol iprot) throws TException { case NODES: if (__field.type == TType.LIST) { { - TList _list210 = iprot.readListBegin(); - this.nodes = new ArrayList(Math.max(0, _list210.size)); - for (int _i211 = 0; - (_list210.size < 0) ? iprot.peekList() : (_i211 < _list210.size); - ++_i211) + TList _list202 = iprot.readListBegin(); + this.nodes = new ArrayList(Math.max(0, _list202.size)); + for (int _i203 = 0; + (_list202.size < 0) ? iprot.peekList() : (_i203 < _list202.size); + ++_i203) { - com.vesoft.nebula.HostAddr _elem212; - _elem212 = new com.vesoft.nebula.HostAddr(); - _elem212.read(iprot); - this.nodes.add(_elem212); + com.vesoft.nebula.HostAddr _elem204; + _elem204 = new com.vesoft.nebula.HostAddr(); + _elem204.read(iprot); + this.nodes.add(_elem204); } iprot.readListEnd(); } @@ -310,8 +310,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(NODES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.nodes.size())); - for (com.vesoft.nebula.HostAddr _iter213 : this.nodes) { - _iter213.write(oprot); + for (com.vesoft.nebula.HostAddr _iter205 : this.nodes) { + _iter205.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java b/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java deleted file mode 100644 index ae3ee00b2..000000000 --- a/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java +++ /dev/null @@ -1,1136 +0,0 @@ -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package com.vesoft.nebula.storage; - -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.Set; -import java.util.HashSet; -import java.util.Collections; -import java.util.BitSet; -import java.util.Arrays; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.facebook.thrift.*; -import com.facebook.thrift.annotations.*; -import com.facebook.thrift.async.*; -import com.facebook.thrift.meta_data.*; -import com.facebook.thrift.server.*; -import com.facebook.thrift.transport.*; -import com.facebook.thrift.protocol.*; - -@SuppressWarnings({ "unused", "serial" }) -public class InternalStorageService { - - public interface Iface { - - public ExecResponse chainAddEdges(ChainAddEdgesRequest req) throws TException; - - public UpdateResponse chainUpdateEdge(ChainUpdateEdgeRequest req) throws TException; - - } - - public interface AsyncIface { - - public void chainAddEdges(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler) throws TException; - - public void chainUpdateEdge(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler) throws TException; - - } - - public static class Client extends EventHandlerBase implements Iface, TClientIf { - public Client(TProtocol prot) - { - this(prot, prot); - } - - public Client(TProtocol iprot, TProtocol oprot) - { - iprot_ = iprot; - oprot_ = oprot; - } - - protected TProtocol iprot_; - protected TProtocol oprot_; - - protected int seqid_; - - @Override - public TProtocol getInputProtocol() - { - return this.iprot_; - } - - @Override - public TProtocol getOutputProtocol() - { - return this.oprot_; - } - - public ExecResponse chainAddEdges(ChainAddEdgesRequest req) throws TException - { - ContextStack ctx = getContextStack("InternalStorageService.chainAddEdges", null); - this.setContextStack(ctx); - send_chainAddEdges(req); - return recv_chainAddEdges(); - } - - public void send_chainAddEdges(ChainAddEdgesRequest req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "InternalStorageService.chainAddEdges", null); - oprot_.writeMessageBegin(new TMessage("chainAddEdges", TMessageType.CALL, seqid_)); - chainAddEdges_args args = new chainAddEdges_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "InternalStorageService.chainAddEdges", args); - return; - } - - public ExecResponse recv_chainAddEdges() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "InternalStorageService.chainAddEdges"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - chainAddEdges_result result = new chainAddEdges_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "InternalStorageService.chainAddEdges", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "chainAddEdges failed: unknown result"); - } - - public UpdateResponse chainUpdateEdge(ChainUpdateEdgeRequest req) throws TException - { - ContextStack ctx = getContextStack("InternalStorageService.chainUpdateEdge", null); - this.setContextStack(ctx); - send_chainUpdateEdge(req); - return recv_chainUpdateEdge(); - } - - public void send_chainUpdateEdge(ChainUpdateEdgeRequest req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "InternalStorageService.chainUpdateEdge", null); - oprot_.writeMessageBegin(new TMessage("chainUpdateEdge", TMessageType.CALL, seqid_)); - chainUpdateEdge_args args = new chainUpdateEdge_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "InternalStorageService.chainUpdateEdge", args); - return; - } - - public UpdateResponse recv_chainUpdateEdge() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "InternalStorageService.chainUpdateEdge"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - chainUpdateEdge_result result = new chainUpdateEdge_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "InternalStorageService.chainUpdateEdge", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "chainUpdateEdge failed: unknown result"); - } - - } - public static class AsyncClient extends TAsyncClient implements AsyncIface { - public static class Factory implements TAsyncClientFactory { - private TAsyncClientManager clientManager; - private TProtocolFactory protocolFactory; - public Factory(TAsyncClientManager clientManager, TProtocolFactory protocolFactory) { - this.clientManager = clientManager; - this.protocolFactory = protocolFactory; - } - public AsyncClient getAsyncClient(TNonblockingTransport transport) { - return new AsyncClient(protocolFactory, clientManager, transport); - } - } - - public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientManager, TNonblockingTransport transport) { - super(protocolFactory, clientManager, transport); - } - - public void chainAddEdges(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler524) throws TException { - checkReady(); - chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler524, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class chainAddEdges_call extends TAsyncMethodCall { - private ChainAddEdgesRequest req; - public chainAddEdges_call(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler525, TAsyncClient client521, TProtocolFactory protocolFactory522, TNonblockingTransport transport523) throws TException { - super(client521, protocolFactory522, transport523, resultHandler525, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("chainAddEdges", TMessageType.CALL, 0)); - chainAddEdges_args args = new chainAddEdges_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public ExecResponse getResult() throws TException { - if (getState() != State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_chainAddEdges(); - } - } - - public void chainUpdateEdge(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler529) throws TException { - checkReady(); - chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler529, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class chainUpdateEdge_call extends TAsyncMethodCall { - private ChainUpdateEdgeRequest req; - public chainUpdateEdge_call(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler530, TAsyncClient client526, TProtocolFactory protocolFactory527, TNonblockingTransport transport528) throws TException { - super(client526, protocolFactory527, transport528, resultHandler530, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("chainUpdateEdge", TMessageType.CALL, 0)); - chainUpdateEdge_args args = new chainUpdateEdge_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public UpdateResponse getResult() throws TException { - if (getState() != State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_chainUpdateEdge(); - } - } - - } - - public static class Processor implements TProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); - public Processor(Iface iface) - { - iface_ = iface; - event_handler_ = new TProcessorEventHandler(); // Empty handler - processMap_.put("chainAddEdges", new chainAddEdges()); - processMap_.put("chainUpdateEdge", new chainUpdateEdge()); - } - - protected static interface ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException; - } - - public void setEventHandler(TProcessorEventHandler handler) { - this.event_handler_ = handler; - } - - private Iface iface_; - protected TProcessorEventHandler event_handler_; - protected final HashMap processMap_ = new HashMap(); - - public boolean process(TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - TMessage msg = iprot.readMessageBegin(); - ProcessFunction fn = processMap_.get(msg.name); - if (fn == null) { - TProtocolUtil.skip(iprot, TType.STRUCT); - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'"); - oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return true; - } - fn.process(msg.seqid, iprot, oprot, server_ctx); - return true; - } - - private class chainAddEdges implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("InternalStorageService.chainAddEdges", server_ctx); - chainAddEdges_args args = new chainAddEdges_args(); - event_handler_.preRead(handler_ctx, "InternalStorageService.chainAddEdges"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "InternalStorageService.chainAddEdges", args); - chainAddEdges_result result = new chainAddEdges_result(); - result.success = iface_.chainAddEdges(args.req); - event_handler_.preWrite(handler_ctx, "InternalStorageService.chainAddEdges", result); - oprot.writeMessageBegin(new TMessage("chainAddEdges", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "InternalStorageService.chainAddEdges", result); - } - - } - - private class chainUpdateEdge implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("InternalStorageService.chainUpdateEdge", server_ctx); - chainUpdateEdge_args args = new chainUpdateEdge_args(); - event_handler_.preRead(handler_ctx, "InternalStorageService.chainUpdateEdge"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "InternalStorageService.chainUpdateEdge", args); - chainUpdateEdge_result result = new chainUpdateEdge_result(); - result.success = iface_.chainUpdateEdge(args.req); - event_handler_.preWrite(handler_ctx, "InternalStorageService.chainUpdateEdge", result); - oprot.writeMessageBegin(new TMessage("chainUpdateEdge", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "InternalStorageService.chainUpdateEdge", result); - } - - } - - } - - public static class chainAddEdges_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("chainAddEdges_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public ChainAddEdgesRequest req; - public static final int REQ = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ChainAddEdgesRequest.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(chainAddEdges_args.class, metaDataMap); - } - - public chainAddEdges_args() { - } - - public chainAddEdges_args( - ChainAddEdgesRequest req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public chainAddEdges_args(chainAddEdges_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public chainAddEdges_args deepCopy() { - return new chainAddEdges_args(this); - } - - public ChainAddEdgesRequest getReq() { - return this.req; - } - - public chainAddEdges_args setReq(ChainAddEdgesRequest req) { - this.req = req; - return this; - } - - public void unsetReq() { - this.req = null; - } - - // Returns true if field req is set (has been assigned a value) and false otherwise - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean __value) { - if (!__value) { - this.req = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case REQ: - if (__value == null) { - unsetReq(); - } else { - setReq((ChainAddEdgesRequest)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case REQ: - return getReq(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof chainAddEdges_args)) - return false; - chainAddEdges_args that = (chainAddEdges_args)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {req}); - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case REQ: - if (__field.type == TType.STRUCT) { - this.req = new ChainAddEdgesRequest(); - this.req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (this.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - this.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("chainAddEdges_args"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("req"); - sb.append(space); - sb.append(":").append(space); - if (this.getReq() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class chainAddEdges_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("chainAddEdges_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public ExecResponse success; - public static final int SUCCESS = 0; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResponse.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(chainAddEdges_result.class, metaDataMap); - } - - public chainAddEdges_result() { - } - - public chainAddEdges_result( - ExecResponse success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public chainAddEdges_result(chainAddEdges_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public chainAddEdges_result deepCopy() { - return new chainAddEdges_result(this); - } - - public ExecResponse getSuccess() { - return this.success; - } - - public chainAddEdges_result setSuccess(ExecResponse success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - // Returns true if field success is set (has been assigned a value) and false otherwise - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean __value) { - if (!__value) { - this.success = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SUCCESS: - if (__value == null) { - unsetSuccess(); - } else { - setSuccess((ExecResponse)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SUCCESS: - return getSuccess(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof chainAddEdges_result)) - return false; - chainAddEdges_result that = (chainAddEdges_result)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {success}); - } - - @Override - public int compareTo(chainAddEdges_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case SUCCESS: - if (__field.type == TType.STRUCT) { - this.success = new ExecResponse(); - this.success.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - oprot.writeStructBegin(STRUCT_DESC); - - if (this.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - this.success.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("chainAddEdges_result"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("success"); - sb.append(space); - sb.append(":").append(space); - if (this.getSuccess() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class chainUpdateEdge_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("chainUpdateEdge_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public ChainUpdateEdgeRequest req; - public static final int REQ = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ChainUpdateEdgeRequest.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(chainUpdateEdge_args.class, metaDataMap); - } - - public chainUpdateEdge_args() { - } - - public chainUpdateEdge_args( - ChainUpdateEdgeRequest req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public chainUpdateEdge_args(chainUpdateEdge_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public chainUpdateEdge_args deepCopy() { - return new chainUpdateEdge_args(this); - } - - public ChainUpdateEdgeRequest getReq() { - return this.req; - } - - public chainUpdateEdge_args setReq(ChainUpdateEdgeRequest req) { - this.req = req; - return this; - } - - public void unsetReq() { - this.req = null; - } - - // Returns true if field req is set (has been assigned a value) and false otherwise - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean __value) { - if (!__value) { - this.req = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case REQ: - if (__value == null) { - unsetReq(); - } else { - setReq((ChainUpdateEdgeRequest)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case REQ: - return getReq(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof chainUpdateEdge_args)) - return false; - chainUpdateEdge_args that = (chainUpdateEdge_args)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {req}); - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case REQ: - if (__field.type == TType.STRUCT) { - this.req = new ChainUpdateEdgeRequest(); - this.req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (this.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - this.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("chainUpdateEdge_args"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("req"); - sb.append(space); - sb.append(":").append(space); - if (this.getReq() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class chainUpdateEdge_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("chainUpdateEdge_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public UpdateResponse success; - public static final int SUCCESS = 0; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, UpdateResponse.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(chainUpdateEdge_result.class, metaDataMap); - } - - public chainUpdateEdge_result() { - } - - public chainUpdateEdge_result( - UpdateResponse success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public chainUpdateEdge_result(chainUpdateEdge_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public chainUpdateEdge_result deepCopy() { - return new chainUpdateEdge_result(this); - } - - public UpdateResponse getSuccess() { - return this.success; - } - - public chainUpdateEdge_result setSuccess(UpdateResponse success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - // Returns true if field success is set (has been assigned a value) and false otherwise - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean __value) { - if (!__value) { - this.success = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SUCCESS: - if (__value == null) { - unsetSuccess(); - } else { - setSuccess((UpdateResponse)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SUCCESS: - return getSuccess(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof chainUpdateEdge_result)) - return false; - chainUpdateEdge_result that = (chainUpdateEdge_result)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {success}); - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case SUCCESS: - if (__field.type == TType.STRUCT) { - this.success = new UpdateResponse(); - this.success.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - oprot.writeStructBegin(STRUCT_DESC); - - if (this.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - this.success.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("chainUpdateEdge_result"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("success"); - sb.append(space); - sb.append(":").append(space); - if (this.getSuccess() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - -} diff --git a/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java deleted file mode 100644 index 357a6fe2b..000000000 --- a/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java +++ /dev/null @@ -1,644 +0,0 @@ -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package com.vesoft.nebula.storage; - -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.Set; -import java.util.HashSet; -import java.util.Collections; -import java.util.BitSet; -import java.util.Arrays; -import com.facebook.thrift.*; -import com.facebook.thrift.annotations.*; -import com.facebook.thrift.async.*; -import com.facebook.thrift.meta_data.*; -import com.facebook.thrift.server.*; -import com.facebook.thrift.transport.*; -import com.facebook.thrift.protocol.*; - -@SuppressWarnings({ "unused", "serial" }) -public class InternalTxnRequest implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("InternalTxnRequest"); - private static final TField TXN_ID_FIELD_DESC = new TField("txn_id", TType.I64, (short)1); - private static final TField TERM_OF_PARTS_FIELD_DESC = new TField("term_of_parts", TType.MAP, (short)2); - private static final TField ADD_EDGE_REQ_FIELD_DESC = new TField("add_edge_req", TType.STRUCT, (short)3); - private static final TField UPD_EDGE_REQ_FIELD_DESC = new TField("upd_edge_req", TType.STRUCT, (short)4); - private static final TField EDGE_VER_FIELD_DESC = new TField("edge_ver", TType.MAP, (short)5); - - public long txn_id; - public Map term_of_parts; - public AddEdgesRequest add_edge_req; - public UpdateEdgeRequest upd_edge_req; - public Map> edge_ver; - public static final int TXN_ID = 1; - public static final int TERM_OF_PARTS = 2; - public static final int ADD_EDGE_REQ = 3; - public static final int UPD_EDGE_REQ = 4; - public static final int EDGE_VER = 5; - - // isset id assignments - private static final int __TXN_ID_ISSET_ID = 0; - private BitSet __isset_bit_vector = new BitSet(1); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(TXN_ID, new FieldMetaData("txn_id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(TERM_OF_PARTS, new FieldMetaData("term_of_parts", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.I32), - new FieldValueMetaData(TType.I64)))); - tmpMetaDataMap.put(ADD_EDGE_REQ, new FieldMetaData("add_edge_req", TFieldRequirementType.OPTIONAL, - new StructMetaData(TType.STRUCT, AddEdgesRequest.class))); - tmpMetaDataMap.put(UPD_EDGE_REQ, new FieldMetaData("upd_edge_req", TFieldRequirementType.OPTIONAL, - new StructMetaData(TType.STRUCT, UpdateEdgeRequest.class))); - tmpMetaDataMap.put(EDGE_VER, new FieldMetaData("edge_ver", TFieldRequirementType.OPTIONAL, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.I32), - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.I64))))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(InternalTxnRequest.class, metaDataMap); - } - - public InternalTxnRequest() { - } - - public InternalTxnRequest( - long txn_id, - Map term_of_parts) { - this(); - this.txn_id = txn_id; - setTxn_idIsSet(true); - this.term_of_parts = term_of_parts; - } - - public InternalTxnRequest( - long txn_id, - Map term_of_parts, - AddEdgesRequest add_edge_req, - UpdateEdgeRequest upd_edge_req, - Map> edge_ver) { - this(); - this.txn_id = txn_id; - setTxn_idIsSet(true); - this.term_of_parts = term_of_parts; - this.add_edge_req = add_edge_req; - this.upd_edge_req = upd_edge_req; - this.edge_ver = edge_ver; - } - - public static class Builder { - private long txn_id; - private Map term_of_parts; - private AddEdgesRequest add_edge_req; - private UpdateEdgeRequest upd_edge_req; - private Map> edge_ver; - - BitSet __optional_isset = new BitSet(1); - - public Builder() { - } - - public Builder setTxn_id(final long txn_id) { - this.txn_id = txn_id; - __optional_isset.set(__TXN_ID_ISSET_ID, true); - return this; - } - - public Builder setTerm_of_parts(final Map term_of_parts) { - this.term_of_parts = term_of_parts; - return this; - } - - public Builder setAdd_edge_req(final AddEdgesRequest add_edge_req) { - this.add_edge_req = add_edge_req; - return this; - } - - public Builder setUpd_edge_req(final UpdateEdgeRequest upd_edge_req) { - this.upd_edge_req = upd_edge_req; - return this; - } - - public Builder setEdge_ver(final Map> edge_ver) { - this.edge_ver = edge_ver; - return this; - } - - public InternalTxnRequest build() { - InternalTxnRequest result = new InternalTxnRequest(); - if (__optional_isset.get(__TXN_ID_ISSET_ID)) { - result.setTxn_id(this.txn_id); - } - result.setTerm_of_parts(this.term_of_parts); - result.setAdd_edge_req(this.add_edge_req); - result.setUpd_edge_req(this.upd_edge_req); - result.setEdge_ver(this.edge_ver); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public InternalTxnRequest(InternalTxnRequest other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.txn_id = TBaseHelper.deepCopy(other.txn_id); - if (other.isSetTerm_of_parts()) { - this.term_of_parts = TBaseHelper.deepCopy(other.term_of_parts); - } - if (other.isSetAdd_edge_req()) { - this.add_edge_req = TBaseHelper.deepCopy(other.add_edge_req); - } - if (other.isSetUpd_edge_req()) { - this.upd_edge_req = TBaseHelper.deepCopy(other.upd_edge_req); - } - if (other.isSetEdge_ver()) { - this.edge_ver = TBaseHelper.deepCopy(other.edge_ver); - } - } - - public InternalTxnRequest deepCopy() { - return new InternalTxnRequest(this); - } - - public long getTxn_id() { - return this.txn_id; - } - - public InternalTxnRequest setTxn_id(long txn_id) { - this.txn_id = txn_id; - setTxn_idIsSet(true); - return this; - } - - public void unsetTxn_id() { - __isset_bit_vector.clear(__TXN_ID_ISSET_ID); - } - - // Returns true if field txn_id is set (has been assigned a value) and false otherwise - public boolean isSetTxn_id() { - return __isset_bit_vector.get(__TXN_ID_ISSET_ID); - } - - public void setTxn_idIsSet(boolean __value) { - __isset_bit_vector.set(__TXN_ID_ISSET_ID, __value); - } - - public Map getTerm_of_parts() { - return this.term_of_parts; - } - - public InternalTxnRequest setTerm_of_parts(Map term_of_parts) { - this.term_of_parts = term_of_parts; - return this; - } - - public void unsetTerm_of_parts() { - this.term_of_parts = null; - } - - // Returns true if field term_of_parts is set (has been assigned a value) and false otherwise - public boolean isSetTerm_of_parts() { - return this.term_of_parts != null; - } - - public void setTerm_of_partsIsSet(boolean __value) { - if (!__value) { - this.term_of_parts = null; - } - } - - public AddEdgesRequest getAdd_edge_req() { - return this.add_edge_req; - } - - public InternalTxnRequest setAdd_edge_req(AddEdgesRequest add_edge_req) { - this.add_edge_req = add_edge_req; - return this; - } - - public void unsetAdd_edge_req() { - this.add_edge_req = null; - } - - // Returns true if field add_edge_req is set (has been assigned a value) and false otherwise - public boolean isSetAdd_edge_req() { - return this.add_edge_req != null; - } - - public void setAdd_edge_reqIsSet(boolean __value) { - if (!__value) { - this.add_edge_req = null; - } - } - - public UpdateEdgeRequest getUpd_edge_req() { - return this.upd_edge_req; - } - - public InternalTxnRequest setUpd_edge_req(UpdateEdgeRequest upd_edge_req) { - this.upd_edge_req = upd_edge_req; - return this; - } - - public void unsetUpd_edge_req() { - this.upd_edge_req = null; - } - - // Returns true if field upd_edge_req is set (has been assigned a value) and false otherwise - public boolean isSetUpd_edge_req() { - return this.upd_edge_req != null; - } - - public void setUpd_edge_reqIsSet(boolean __value) { - if (!__value) { - this.upd_edge_req = null; - } - } - - public Map> getEdge_ver() { - return this.edge_ver; - } - - public InternalTxnRequest setEdge_ver(Map> edge_ver) { - this.edge_ver = edge_ver; - return this; - } - - public void unsetEdge_ver() { - this.edge_ver = null; - } - - // Returns true if field edge_ver is set (has been assigned a value) and false otherwise - public boolean isSetEdge_ver() { - return this.edge_ver != null; - } - - public void setEdge_verIsSet(boolean __value) { - if (!__value) { - this.edge_ver = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case TXN_ID: - if (__value == null) { - unsetTxn_id(); - } else { - setTxn_id((Long)__value); - } - break; - - case TERM_OF_PARTS: - if (__value == null) { - unsetTerm_of_parts(); - } else { - setTerm_of_parts((Map)__value); - } - break; - - case ADD_EDGE_REQ: - if (__value == null) { - unsetAdd_edge_req(); - } else { - setAdd_edge_req((AddEdgesRequest)__value); - } - break; - - case UPD_EDGE_REQ: - if (__value == null) { - unsetUpd_edge_req(); - } else { - setUpd_edge_req((UpdateEdgeRequest)__value); - } - break; - - case EDGE_VER: - if (__value == null) { - unsetEdge_ver(); - } else { - setEdge_ver((Map>)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case TXN_ID: - return new Long(getTxn_id()); - - case TERM_OF_PARTS: - return getTerm_of_parts(); - - case ADD_EDGE_REQ: - return getAdd_edge_req(); - - case UPD_EDGE_REQ: - return getUpd_edge_req(); - - case EDGE_VER: - return getEdge_ver(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof InternalTxnRequest)) - return false; - InternalTxnRequest that = (InternalTxnRequest)_that; - - if (!TBaseHelper.equalsNobinary(this.txn_id, that.txn_id)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetTerm_of_parts(), that.isSetTerm_of_parts(), this.term_of_parts, that.term_of_parts)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetAdd_edge_req(), that.isSetAdd_edge_req(), this.add_edge_req, that.add_edge_req)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetUpd_edge_req(), that.isSetUpd_edge_req(), this.upd_edge_req, that.upd_edge_req)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetEdge_ver(), that.isSetEdge_ver(), this.edge_ver, that.edge_ver)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {txn_id, term_of_parts, add_edge_req, upd_edge_req, edge_ver}); - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case TXN_ID: - if (__field.type == TType.I64) { - this.txn_id = iprot.readI64(); - setTxn_idIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case TERM_OF_PARTS: - if (__field.type == TType.MAP) { - { - TMap _map278 = iprot.readMapBegin(); - this.term_of_parts = new HashMap(Math.max(0, 2*_map278.size)); - for (int _i279 = 0; - (_map278.size < 0) ? iprot.peekMap() : (_i279 < _map278.size); - ++_i279) - { - int _key280; - long _val281; - _key280 = iprot.readI32(); - _val281 = iprot.readI64(); - this.term_of_parts.put(_key280, _val281); - } - iprot.readMapEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case ADD_EDGE_REQ: - if (__field.type == TType.STRUCT) { - this.add_edge_req = new AddEdgesRequest(); - this.add_edge_req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case UPD_EDGE_REQ: - if (__field.type == TType.STRUCT) { - this.upd_edge_req = new UpdateEdgeRequest(); - this.upd_edge_req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case EDGE_VER: - if (__field.type == TType.MAP) { - { - TMap _map282 = iprot.readMapBegin(); - this.edge_ver = new HashMap>(Math.max(0, 2*_map282.size)); - for (int _i283 = 0; - (_map282.size < 0) ? iprot.peekMap() : (_i283 < _map282.size); - ++_i283) - { - int _key284; - List _val285; - _key284 = iprot.readI32(); - { - TList _list286 = iprot.readListBegin(); - _val285 = new ArrayList(Math.max(0, _list286.size)); - for (int _i287 = 0; - (_list286.size < 0) ? iprot.peekList() : (_i287 < _list286.size); - ++_i287) - { - long _elem288; - _elem288 = iprot.readI64(); - _val285.add(_elem288); - } - iprot.readListEnd(); - } - this.edge_ver.put(_key284, _val285); - } - iprot.readMapEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldBegin(TXN_ID_FIELD_DESC); - oprot.writeI64(this.txn_id); - oprot.writeFieldEnd(); - if (this.term_of_parts != null) { - oprot.writeFieldBegin(TERM_OF_PARTS_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.I32, TType.I64, this.term_of_parts.size())); - for (Map.Entry _iter289 : this.term_of_parts.entrySet()) { - oprot.writeI32(_iter289.getKey()); - oprot.writeI64(_iter289.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - if (this.add_edge_req != null) { - if (isSetAdd_edge_req()) { - oprot.writeFieldBegin(ADD_EDGE_REQ_FIELD_DESC); - this.add_edge_req.write(oprot); - oprot.writeFieldEnd(); - } - } - if (this.upd_edge_req != null) { - if (isSetUpd_edge_req()) { - oprot.writeFieldBegin(UPD_EDGE_REQ_FIELD_DESC); - this.upd_edge_req.write(oprot); - oprot.writeFieldEnd(); - } - } - if (this.edge_ver != null) { - if (isSetEdge_ver()) { - oprot.writeFieldBegin(EDGE_VER_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.edge_ver.size())); - for (Map.Entry> _iter290 : this.edge_ver.entrySet()) { - oprot.writeI32(_iter290.getKey()); - { - oprot.writeListBegin(new TList(TType.I64, _iter290.getValue().size())); - for (long _iter291 : _iter290.getValue()) { - oprot.writeI64(_iter291); - } - oprot.writeListEnd(); - } - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("InternalTxnRequest"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("txn_id"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getTxn_id(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("term_of_parts"); - sb.append(space); - sb.append(":").append(space); - if (this.getTerm_of_parts() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getTerm_of_parts(), indent + 1, prettyPrint)); - } - first = false; - if (isSetAdd_edge_req()) - { - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("add_edge_req"); - sb.append(space); - sb.append(":").append(space); - if (this.getAdd_edge_req() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getAdd_edge_req(), indent + 1, prettyPrint)); - } - first = false; - } - if (isSetUpd_edge_req()) - { - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("upd_edge_req"); - sb.append(space); - sb.append(":").append(space); - if (this.getUpd_edge_req() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getUpd_edge_req(), indent + 1, prettyPrint)); - } - first = false; - } - if (isSetEdge_ver()) - { - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("edge_ver"); - sb.append(space); - sb.append(":").append(space); - if (this.getEdge_ver() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getEdge_ver(), indent + 1, prettyPrint)); - } - first = false; - } - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - -} - diff --git a/client/src/main/generated/com/vesoft/nebula/storage/TaskPara.java b/client/src/main/generated/com/vesoft/nebula/storage/TaskPara.java index 7ba6a574d..43734ec37 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/TaskPara.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/TaskPara.java @@ -28,14 +28,14 @@ public class TaskPara implements TBase, java.io.Serializable, Cloneable, Compara private static final TStruct STRUCT_DESC = new TStruct("TaskPara"); private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); private static final TField PARTS_FIELD_DESC = new TField("parts", TType.LIST, (short)2); - private static final TField TASK_SPECFIC_PARAS_FIELD_DESC = new TField("task_specfic_paras", TType.LIST, (short)3); + private static final TField TASK_SPECIFIC_PARAS_FIELD_DESC = new TField("task_specific_paras", TType.LIST, (short)3); public int space_id; public List parts; - public List task_specfic_paras; + public List task_specific_paras; public static final int SPACE_ID = 1; public static final int PARTS = 2; - public static final int TASK_SPECFIC_PARAS = 3; + public static final int TASK_SPECIFIC_PARAS = 3; // isset id assignments private static final int __SPACE_ID_ISSET_ID = 0; @@ -50,7 +50,7 @@ public class TaskPara implements TBase, java.io.Serializable, Cloneable, Compara tmpMetaDataMap.put(PARTS, new FieldMetaData("parts", TFieldRequirementType.OPTIONAL, new ListMetaData(TType.LIST, new FieldValueMetaData(TType.I32)))); - tmpMetaDataMap.put(TASK_SPECFIC_PARAS, new FieldMetaData("task_specfic_paras", TFieldRequirementType.OPTIONAL, + tmpMetaDataMap.put(TASK_SPECIFIC_PARAS, new FieldMetaData("task_specific_paras", TFieldRequirementType.OPTIONAL, new ListMetaData(TType.LIST, new FieldValueMetaData(TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); @@ -73,18 +73,18 @@ public TaskPara( public TaskPara( int space_id, List parts, - List task_specfic_paras) { + List task_specific_paras) { this(); this.space_id = space_id; setSpace_idIsSet(true); this.parts = parts; - this.task_specfic_paras = task_specfic_paras; + this.task_specific_paras = task_specific_paras; } public static class Builder { private int space_id; private List parts; - private List task_specfic_paras; + private List task_specific_paras; BitSet __optional_isset = new BitSet(1); @@ -102,8 +102,8 @@ public Builder setParts(final List parts) { return this; } - public Builder setTask_specfic_paras(final List task_specfic_paras) { - this.task_specfic_paras = task_specfic_paras; + public Builder setTask_specific_paras(final List task_specific_paras) { + this.task_specific_paras = task_specific_paras; return this; } @@ -113,7 +113,7 @@ public TaskPara build() { result.setSpace_id(this.space_id); } result.setParts(this.parts); - result.setTask_specfic_paras(this.task_specfic_paras); + result.setTask_specific_paras(this.task_specific_paras); return result; } } @@ -132,8 +132,8 @@ public TaskPara(TaskPara other) { if (other.isSetParts()) { this.parts = TBaseHelper.deepCopy(other.parts); } - if (other.isSetTask_specfic_paras()) { - this.task_specfic_paras = TBaseHelper.deepCopy(other.task_specfic_paras); + if (other.isSetTask_specific_paras()) { + this.task_specific_paras = TBaseHelper.deepCopy(other.task_specific_paras); } } @@ -188,27 +188,27 @@ public void setPartsIsSet(boolean __value) { } } - public List getTask_specfic_paras() { - return this.task_specfic_paras; + public List getTask_specific_paras() { + return this.task_specific_paras; } - public TaskPara setTask_specfic_paras(List task_specfic_paras) { - this.task_specfic_paras = task_specfic_paras; + public TaskPara setTask_specific_paras(List task_specific_paras) { + this.task_specific_paras = task_specific_paras; return this; } - public void unsetTask_specfic_paras() { - this.task_specfic_paras = null; + public void unsetTask_specific_paras() { + this.task_specific_paras = null; } - // Returns true if field task_specfic_paras is set (has been assigned a value) and false otherwise - public boolean isSetTask_specfic_paras() { - return this.task_specfic_paras != null; + // Returns true if field task_specific_paras is set (has been assigned a value) and false otherwise + public boolean isSetTask_specific_paras() { + return this.task_specific_paras != null; } - public void setTask_specfic_parasIsSet(boolean __value) { + public void setTask_specific_parasIsSet(boolean __value) { if (!__value) { - this.task_specfic_paras = null; + this.task_specific_paras = null; } } @@ -231,11 +231,11 @@ public void setFieldValue(int fieldID, Object __value) { } break; - case TASK_SPECFIC_PARAS: + case TASK_SPECIFIC_PARAS: if (__value == null) { - unsetTask_specfic_paras(); + unsetTask_specific_paras(); } else { - setTask_specfic_paras((List)__value); + setTask_specific_paras((List)__value); } break; @@ -252,8 +252,8 @@ public Object getFieldValue(int fieldID) { case PARTS: return getParts(); - case TASK_SPECFIC_PARAS: - return getTask_specfic_paras(); + case TASK_SPECIFIC_PARAS: + return getTask_specific_paras(); default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); @@ -274,14 +274,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.isSetParts(), that.isSetParts(), this.parts, that.parts)) { return false; } - if (!TBaseHelper.equalsSlow(this.isSetTask_specfic_paras(), that.isSetTask_specfic_paras(), this.task_specfic_paras, that.task_specfic_paras)) { return false; } + if (!TBaseHelper.equalsSlow(this.isSetTask_specific_paras(), that.isSetTask_specific_paras(), this.task_specific_paras, that.task_specific_paras)) { return false; } return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, parts, task_specfic_paras}); + return Arrays.deepHashCode(new Object[] {space_id, parts, task_specific_paras}); } @Override @@ -312,11 +312,11 @@ public int compareTo(TaskPara other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetTask_specfic_paras()).compareTo(other.isSetTask_specfic_paras()); + lastComparison = Boolean.valueOf(isSetTask_specific_paras()).compareTo(other.isSetTask_specific_paras()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(task_specfic_paras, other.task_specfic_paras); + lastComparison = TBaseHelper.compareTo(task_specific_paras, other.task_specific_paras); if (lastComparison != 0) { return lastComparison; } @@ -361,18 +361,18 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case TASK_SPECFIC_PARAS: + case TASK_SPECIFIC_PARAS: if (__field.type == TType.LIST) { { TList _list216 = iprot.readListBegin(); - this.task_specfic_paras = new ArrayList(Math.max(0, _list216.size)); + this.task_specific_paras = new ArrayList(Math.max(0, _list216.size)); for (int _i217 = 0; (_list216.size < 0) ? iprot.peekList() : (_i217 < _list216.size); ++_i217) { byte[] _elem218; _elem218 = iprot.readBinary(); - this.task_specfic_paras.add(_elem218); + this.task_specific_paras.add(_elem218); } iprot.readListEnd(); } @@ -413,12 +413,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } } - if (this.task_specfic_paras != null) { - if (isSetTask_specfic_paras()) { - oprot.writeFieldBegin(TASK_SPECFIC_PARAS_FIELD_DESC); + if (this.task_specific_paras != null) { + if (isSetTask_specific_paras()) { + oprot.writeFieldBegin(TASK_SPECIFIC_PARAS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.task_specfic_paras.size())); - for (byte[] _iter220 : this.task_specfic_paras) { + oprot.writeListBegin(new TList(TType.STRING, this.task_specific_paras.size())); + for (byte[] _iter220 : this.task_specific_paras) { oprot.writeBinary(_iter220); } oprot.writeListEnd(); @@ -466,17 +466,17 @@ public String toString(int indent, boolean prettyPrint) { } first = false; } - if (isSetTask_specfic_paras()) + if (isSetTask_specific_paras()) { if (!first) sb.append("," + newLine); sb.append(indentStr); - sb.append("task_specfic_paras"); + sb.append("task_specific_paras"); sb.append(space); sb.append(":").append(space); - if (this.getTask_specfic_paras() == null) { + if (this.getTask_specific_paras() == null) { sb.append("null"); } else { - sb.append(TBaseHelper.toString(this.getTask_specfic_paras(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.getTask_specific_paras(), indent + 1, prettyPrint)); } first = false; } diff --git a/client/src/main/java/com/vesoft/nebula/client/graph/data/ResultSet.java b/client/src/main/java/com/vesoft/nebula/client/graph/data/ResultSet.java index a8a8c71dc..3c0eae429 100644 --- a/client/src/main/java/com/vesoft/nebula/client/graph/data/ResultSet.java +++ b/client/src/main/java/com/vesoft/nebula/client/graph/data/ResultSet.java @@ -201,7 +201,7 @@ public String getComment() { * get latency of the query execute time * @return int */ - public int getLatency() { + public long getLatency() { return response.latency_in_us; } From 9a7f9f6c9882be1f61dfc1a82a7d3e819dc1657b Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Tue, 7 Dec 2021 10:55:04 +0800 Subject: [PATCH 02/10] add config for scan cursor --- .../com/vesoft/nebula/client/storage/scan/PartScanInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/scan/PartScanInfo.java b/client/src/main/java/com/vesoft/nebula/client/storage/scan/PartScanInfo.java index 4d6f5f7d8..6387d5455 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/scan/PartScanInfo.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/scan/PartScanInfo.java @@ -15,11 +15,12 @@ public class PartScanInfo implements Serializable { private int part; private HostAddress leader; - private ScanCursor cursor = null; + private ScanCursor cursor; public PartScanInfo(int part, HostAddress leader) { this.part = part; this.leader = leader; + cursor = new ScanCursor(true, "".getBytes()); } public int getPart() { From 9282f076c52b42366fbc20c77f5e0fa1ea506bcf Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Tue, 7 Dec 2021 17:51:35 +0800 Subject: [PATCH 03/10] large the sleep time waiting nebula server --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d6270e2da..2bee408d1 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -40,7 +40,7 @@ jobs: pushd nebula-docker-compose/ cp ../../client/src/test/resources/docker-compose.yaml . docker-compose up -d - sleep 10 + sleep 180 docker-compose ps popd popd From d17ad32074967f8e4549047d804a3ad1e3983df6 Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Thu, 9 Dec 2021 17:54:51 +0800 Subject: [PATCH 04/10] update thrift --- .../src/main/generated/AskForVoteRequest.java | 90 +- .../src/main/generated/GetStateRequest.java | 347 + .../src/main/generated/GetStateResponse.java | 908 ++ client/src/main/generated/RaftexService.java | 570 +- client/src/main/generated/Role.java | 50 + client/src/main/generated/Status.java | 50 + .../vesoft/nebula/meta/AddListenerReq.java | 22 +- .../com/vesoft/nebula/meta/AddZoneReq.java | 22 +- .../com/vesoft/nebula/meta/BackupInfo.java | 22 +- .../com/vesoft/nebula/meta/BackupMeta.java | 48 +- .../vesoft/nebula/meta/CreateBackupReq.java | 20 +- .../nebula/meta/CreateEdgeIndexReq.java | 22 +- .../vesoft/nebula/meta/CreateTagIndexReq.java | 22 +- .../com/vesoft/nebula/meta/FTClient.java | 99 +- .../com/vesoft/nebula/meta/FTIndex.java | 20 +- .../com/vesoft/nebula/meta/GetConfigResp.java | 22 +- .../com/vesoft/nebula/meta/GetZoneResp.java | 22 +- .../com/vesoft/nebula/meta/HBReq.java | 186 +- .../com/vesoft/nebula/meta/IndexParams.java | 454 + .../com/vesoft/nebula/meta/KillQueryReq.java | 44 +- .../nebula/meta/ListClusterInfoResp.java | 44 +- .../vesoft/nebula/meta/ListConfigsResp.java | 22 +- .../nebula/meta/ListEdgeIndexesResp.java | 22 +- .../vesoft/nebula/meta/ListFTClientsResp.java | 22 +- .../vesoft/nebula/meta/ListFTIndexesResp.java | 28 +- .../nebula/meta/ListIndexStatusResp.java | 22 +- .../vesoft/nebula/meta/ListListenerResp.java | 22 +- .../com/vesoft/nebula/meta/ListRolesResp.java | 22 +- .../vesoft/nebula/meta/ListSessionsResp.java | 22 +- .../vesoft/nebula/meta/ListSnapshotsResp.java | 22 +- .../nebula/meta/ListTagIndexesResp.java | 22 +- .../com/vesoft/nebula/meta/ListUsersResp.java | 26 +- .../com/vesoft/nebula/meta/ListZonesResp.java | 22 +- .../com/vesoft/nebula/meta/MetaService.java | 8050 +++++------------ .../com/vesoft/nebula/meta/PartitionList.java | 285 + .../com/vesoft/nebula/meta/RegConfigReq.java | 22 +- .../vesoft/nebula/meta/RestoreMetaReq.java | 42 +- .../com/vesoft/nebula/meta/Session.java | 56 +- .../nebula/meta/SignInFTServiceReq.java | 22 +- .../vesoft/nebula/meta/SpaceBackupInfo.java | 22 +- .../vesoft/nebula/meta/UpdateSessionsReq.java | 22 +- .../nebula/meta/UpdateSessionsResp.java | 52 +- .../nebula/meta/VerifyClientVersionReq.java | 94 +- .../com/vesoft/nebula/meta/Zone.java | 22 +- .../com/vesoft/nebula/storage/AddPartReq.java | 22 +- .../nebula/storage/ChainAddEdgesRequest.java | 66 +- .../storage/ChainUpdateEdgeRequest.java | 20 +- .../vesoft/nebula/storage/CheckPeersReq.java | 22 +- .../vesoft/nebula/storage/CreateCPResp.java | 22 +- .../nebula/storage/GetLeaderPartsResp.java | 44 +- .../nebula/storage/GraphStorageService.java | 1786 +++- .../storage/InternalStorageService.java | 1136 +++ .../nebula/storage/InternalTxnRequest.java | 644 ++ .../vesoft/nebula/storage/KVGetRequest.java | 44 +- .../vesoft/nebula/storage/KVGetResponse.java | 26 +- .../vesoft/nebula/storage/KVPutRequest.java | 46 +- .../nebula/storage/KVRemoveRequest.java | 44 +- .../nebula/storage/RebuildIndexRequest.java | 20 +- .../vesoft/nebula/storage/ResponseCommon.java | 28 +- .../nebula/storage/ScanEdgeRequest.java | 75 +- .../vesoft/nebula/storage/ScanResponse.java | 445 + .../nebula/storage/StorageAdminService.java | 128 +- .../com/vesoft/nebula/storage/TaskPara.java | 40 +- 63 files changed, 10139 insertions(+), 6566 deletions(-) create mode 100644 client/src/main/generated/GetStateRequest.java create mode 100644 client/src/main/generated/GetStateResponse.java create mode 100644 client/src/main/generated/Role.java create mode 100644 client/src/main/generated/Status.java create mode 100644 client/src/main/generated/com/vesoft/nebula/meta/IndexParams.java create mode 100644 client/src/main/generated/com/vesoft/nebula/meta/PartitionList.java create mode 100644 client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java create mode 100644 client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java create mode 100644 client/src/main/generated/com/vesoft/nebula/storage/ScanResponse.java diff --git a/client/src/main/generated/AskForVoteRequest.java b/client/src/main/generated/AskForVoteRequest.java index 9922613b9..e74f97922 100644 --- a/client/src/main/generated/AskForVoteRequest.java +++ b/client/src/main/generated/AskForVoteRequest.java @@ -31,6 +31,7 @@ public class AskForVoteRequest implements TBase, java.io.Serializable, Cloneable private static final TField TERM_FIELD_DESC = new TField("term", TType.I64, (short)5); private static final TField LAST_LOG_ID_FIELD_DESC = new TField("last_log_id", TType.I64, (short)6); private static final TField LAST_LOG_TERM_FIELD_DESC = new TField("last_log_term", TType.I64, (short)7); + private static final TField IS_PRE_VOTE_FIELD_DESC = new TField("is_pre_vote", TType.BOOL, (short)8); public int space; public int part; @@ -39,6 +40,7 @@ public class AskForVoteRequest implements TBase, java.io.Serializable, Cloneable public long term; public long last_log_id; public long last_log_term; + public boolean is_pre_vote; public static final int SPACE = 1; public static final int PART = 2; public static final int CANDIDATE_ADDR = 3; @@ -46,6 +48,7 @@ public class AskForVoteRequest implements TBase, java.io.Serializable, Cloneable public static final int TERM = 5; public static final int LAST_LOG_ID = 6; public static final int LAST_LOG_TERM = 7; + public static final int IS_PRE_VOTE = 8; // isset id assignments private static final int __SPACE_ISSET_ID = 0; @@ -54,7 +57,8 @@ public class AskForVoteRequest implements TBase, java.io.Serializable, Cloneable private static final int __TERM_ISSET_ID = 3; private static final int __LAST_LOG_ID_ISSET_ID = 4; private static final int __LAST_LOG_TERM_ISSET_ID = 5; - private BitSet __isset_bit_vector = new BitSet(6); + private static final int __IS_PRE_VOTE_ISSET_ID = 6; + private BitSet __isset_bit_vector = new BitSet(7); public static final Map metaDataMap; @@ -74,6 +78,8 @@ public class AskForVoteRequest implements TBase, java.io.Serializable, Cloneable new FieldValueMetaData(TType.I64))); tmpMetaDataMap.put(LAST_LOG_TERM, new FieldMetaData("last_log_term", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(IS_PRE_VOTE, new FieldMetaData("is_pre_vote", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -91,7 +97,8 @@ public AskForVoteRequest( int candidate_port, long term, long last_log_id, - long last_log_term) { + long last_log_term, + boolean is_pre_vote) { this(); this.space = space; setSpaceIsSet(true); @@ -106,6 +113,8 @@ public AskForVoteRequest( setLast_log_idIsSet(true); this.last_log_term = last_log_term; setLast_log_termIsSet(true); + this.is_pre_vote = is_pre_vote; + setIs_pre_voteIsSet(true); } public static class Builder { @@ -116,8 +125,9 @@ public static class Builder { private long term; private long last_log_id; private long last_log_term; + private boolean is_pre_vote; - BitSet __optional_isset = new BitSet(6); + BitSet __optional_isset = new BitSet(7); public Builder() { } @@ -163,6 +173,12 @@ public Builder setLast_log_term(final long last_log_term) { return this; } + public Builder setIs_pre_vote(final boolean is_pre_vote) { + this.is_pre_vote = is_pre_vote; + __optional_isset.set(__IS_PRE_VOTE_ISSET_ID, true); + return this; + } + public AskForVoteRequest build() { AskForVoteRequest result = new AskForVoteRequest(); if (__optional_isset.get(__SPACE_ISSET_ID)) { @@ -184,6 +200,9 @@ public AskForVoteRequest build() { if (__optional_isset.get(__LAST_LOG_TERM_ISSET_ID)) { result.setLast_log_term(this.last_log_term); } + if (__optional_isset.get(__IS_PRE_VOTE_ISSET_ID)) { + result.setIs_pre_vote(this.is_pre_vote); + } return result; } } @@ -207,6 +226,7 @@ public AskForVoteRequest(AskForVoteRequest other) { this.term = TBaseHelper.deepCopy(other.term); this.last_log_id = TBaseHelper.deepCopy(other.last_log_id); this.last_log_term = TBaseHelper.deepCopy(other.last_log_term); + this.is_pre_vote = TBaseHelper.deepCopy(other.is_pre_vote); } public AskForVoteRequest deepCopy() { @@ -375,6 +395,29 @@ public void setLast_log_termIsSet(boolean __value) { __isset_bit_vector.set(__LAST_LOG_TERM_ISSET_ID, __value); } + public boolean isIs_pre_vote() { + return this.is_pre_vote; + } + + public AskForVoteRequest setIs_pre_vote(boolean is_pre_vote) { + this.is_pre_vote = is_pre_vote; + setIs_pre_voteIsSet(true); + return this; + } + + public void unsetIs_pre_vote() { + __isset_bit_vector.clear(__IS_PRE_VOTE_ISSET_ID); + } + + // Returns true if field is_pre_vote is set (has been assigned a value) and false otherwise + public boolean isSetIs_pre_vote() { + return __isset_bit_vector.get(__IS_PRE_VOTE_ISSET_ID); + } + + public void setIs_pre_voteIsSet(boolean __value) { + __isset_bit_vector.set(__IS_PRE_VOTE_ISSET_ID, __value); + } + public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { case SPACE: @@ -433,6 +476,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case IS_PRE_VOTE: + if (__value == null) { + unsetIs_pre_vote(); + } else { + setIs_pre_vote((Boolean)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -461,6 +512,9 @@ public Object getFieldValue(int fieldID) { case LAST_LOG_TERM: return new Long(getLast_log_term()); + case IS_PRE_VOTE: + return new Boolean(isIs_pre_vote()); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -490,12 +544,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.last_log_term, that.last_log_term)) { return false; } + if (!TBaseHelper.equalsNobinary(this.is_pre_vote, that.is_pre_vote)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space, part, candidate_addr, candidate_port, term, last_log_id, last_log_term}); + return Arrays.deepHashCode(new Object[] {space, part, candidate_addr, candidate_port, term, last_log_id, last_log_term, is_pre_vote}); } @Override @@ -566,6 +622,14 @@ public int compareTo(AskForVoteRequest other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetIs_pre_vote()).compareTo(other.isSetIs_pre_vote()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(is_pre_vote, other.is_pre_vote); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -635,6 +699,14 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case IS_PRE_VOTE: + if (__field.type == TType.BOOL) { + this.is_pre_vote = iprot.readBool(); + setIs_pre_voteIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -675,6 +747,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(LAST_LOG_TERM_FIELD_DESC); oprot.writeI64(this.last_log_term); oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_PRE_VOTE_FIELD_DESC); + oprot.writeBool(this.is_pre_vote); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -747,6 +822,13 @@ public String toString(int indent, boolean prettyPrint) { sb.append(":").append(space); sb.append(TBaseHelper.toString(this.getLast_log_term(), indent + 1, prettyPrint)); first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("is_pre_vote"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isIs_pre_vote(), indent + 1, prettyPrint)); + first = false; sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); sb.append(")"); return sb.toString(); diff --git a/client/src/main/generated/GetStateRequest.java b/client/src/main/generated/GetStateRequest.java new file mode 100644 index 000000000..0272de286 --- /dev/null +++ b/client/src/main/generated/GetStateRequest.java @@ -0,0 +1,347 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import java.util.Collections; +import java.util.BitSet; +import java.util.Arrays; +import com.facebook.thrift.*; +import com.facebook.thrift.annotations.*; +import com.facebook.thrift.async.*; +import com.facebook.thrift.meta_data.*; +import com.facebook.thrift.server.*; +import com.facebook.thrift.transport.*; +import com.facebook.thrift.protocol.*; + +@SuppressWarnings({ "unused", "serial" }) +public class GetStateRequest implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("GetStateRequest"); + private static final TField SPACE_FIELD_DESC = new TField("space", TType.I32, (short)1); + private static final TField PART_FIELD_DESC = new TField("part", TType.I32, (short)2); + + public int space; + public int part; + public static final int SPACE = 1; + public static final int PART = 2; + + // isset id assignments + private static final int __SPACE_ISSET_ID = 0; + private static final int __PART_ISSET_ID = 1; + private BitSet __isset_bit_vector = new BitSet(2); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SPACE, new FieldMetaData("space", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(PART, new FieldMetaData("part", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(GetStateRequest.class, metaDataMap); + } + + public GetStateRequest() { + } + + public GetStateRequest( + int space, + int part) { + this(); + this.space = space; + setSpaceIsSet(true); + this.part = part; + setPartIsSet(true); + } + + public static class Builder { + private int space; + private int part; + + BitSet __optional_isset = new BitSet(2); + + public Builder() { + } + + public Builder setSpace(final int space) { + this.space = space; + __optional_isset.set(__SPACE_ISSET_ID, true); + return this; + } + + public Builder setPart(final int part) { + this.part = part; + __optional_isset.set(__PART_ISSET_ID, true); + return this; + } + + public GetStateRequest build() { + GetStateRequest result = new GetStateRequest(); + if (__optional_isset.get(__SPACE_ISSET_ID)) { + result.setSpace(this.space); + } + if (__optional_isset.get(__PART_ISSET_ID)) { + result.setPart(this.part); + } + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public GetStateRequest(GetStateRequest other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space = TBaseHelper.deepCopy(other.space); + this.part = TBaseHelper.deepCopy(other.part); + } + + public GetStateRequest deepCopy() { + return new GetStateRequest(this); + } + + public int getSpace() { + return this.space; + } + + public GetStateRequest setSpace(int space) { + this.space = space; + setSpaceIsSet(true); + return this; + } + + public void unsetSpace() { + __isset_bit_vector.clear(__SPACE_ISSET_ID); + } + + // Returns true if field space is set (has been assigned a value) and false otherwise + public boolean isSetSpace() { + return __isset_bit_vector.get(__SPACE_ISSET_ID); + } + + public void setSpaceIsSet(boolean __value) { + __isset_bit_vector.set(__SPACE_ISSET_ID, __value); + } + + public int getPart() { + return this.part; + } + + public GetStateRequest setPart(int part) { + this.part = part; + setPartIsSet(true); + return this; + } + + public void unsetPart() { + __isset_bit_vector.clear(__PART_ISSET_ID); + } + + // Returns true if field part is set (has been assigned a value) and false otherwise + public boolean isSetPart() { + return __isset_bit_vector.get(__PART_ISSET_ID); + } + + public void setPartIsSet(boolean __value) { + __isset_bit_vector.set(__PART_ISSET_ID, __value); + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SPACE: + if (__value == null) { + unsetSpace(); + } else { + setSpace((Integer)__value); + } + break; + + case PART: + if (__value == null) { + unsetPart(); + } else { + setPart((Integer)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SPACE: + return new Integer(getSpace()); + + case PART: + return new Integer(getPart()); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof GetStateRequest)) + return false; + GetStateRequest that = (GetStateRequest)_that; + + if (!TBaseHelper.equalsNobinary(this.space, that.space)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.part, that.part)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space, part}); + } + + @Override + public int compareTo(GetStateRequest other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSpace()).compareTo(other.isSetSpace()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(space, other.space); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetPart()).compareTo(other.isSetPart()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(part, other.part); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SPACE: + if (__field.type == TType.I32) { + this.space = iprot.readI32(); + setSpaceIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PART: + if (__field.type == TType.I32) { + this.part = iprot.readI32(); + setPartIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(SPACE_FIELD_DESC); + oprot.writeI32(this.space); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(PART_FIELD_DESC); + oprot.writeI32(this.part); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("GetStateRequest"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("space"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getSpace(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("part"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getPart(), indent + 1, prettyPrint)); + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + +} + diff --git a/client/src/main/generated/GetStateResponse.java b/client/src/main/generated/GetStateResponse.java new file mode 100644 index 000000000..f20c7a739 --- /dev/null +++ b/client/src/main/generated/GetStateResponse.java @@ -0,0 +1,908 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import java.util.Collections; +import java.util.BitSet; +import java.util.Arrays; +import com.facebook.thrift.*; +import com.facebook.thrift.annotations.*; +import com.facebook.thrift.async.*; +import com.facebook.thrift.meta_data.*; +import com.facebook.thrift.server.*; +import com.facebook.thrift.transport.*; +import com.facebook.thrift.protocol.*; + +@SuppressWarnings({ "unused", "serial" }) +public class GetStateResponse implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("GetStateResponse"); + private static final TField ERROR_CODE_FIELD_DESC = new TField("error_code", TType.I32, (short)1); + private static final TField ROLE_FIELD_DESC = new TField("role", TType.I32, (short)2); + private static final TField TERM_FIELD_DESC = new TField("term", TType.I64, (short)3); + private static final TField IS_LEADER_FIELD_DESC = new TField("is_leader", TType.BOOL, (short)4); + private static final TField COMMITTED_LOG_ID_FIELD_DESC = new TField("committed_log_id", TType.I64, (short)5); + private static final TField LAST_LOG_ID_FIELD_DESC = new TField("last_log_id", TType.I64, (short)6); + private static final TField LAST_LOG_TERM_FIELD_DESC = new TField("last_log_term", TType.I64, (short)7); + private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)8); + + /** + * + * @see ErrorCode + */ + public ErrorCode error_code; + /** + * + * @see Role + */ + public Role role; + public long term; + public boolean is_leader; + public long committed_log_id; + public long last_log_id; + public long last_log_term; + /** + * + * @see Status + */ + public Status status; + public static final int ERROR_CODE = 1; + public static final int ROLE = 2; + public static final int TERM = 3; + public static final int IS_LEADER = 4; + public static final int COMMITTED_LOG_ID = 5; + public static final int LAST_LOG_ID = 6; + public static final int LAST_LOG_TERM = 7; + public static final int STATUS = 8; + + // isset id assignments + private static final int __TERM_ISSET_ID = 0; + private static final int __IS_LEADER_ISSET_ID = 1; + private static final int __COMMITTED_LOG_ID_ISSET_ID = 2; + private static final int __LAST_LOG_ID_ISSET_ID = 3; + private static final int __LAST_LOG_TERM_ISSET_ID = 4; + private BitSet __isset_bit_vector = new BitSet(5); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(ERROR_CODE, new FieldMetaData("error_code", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(ROLE, new FieldMetaData("role", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(TERM, new FieldMetaData("term", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(IS_LEADER, new FieldMetaData("is_leader", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); + tmpMetaDataMap.put(COMMITTED_LOG_ID, new FieldMetaData("committed_log_id", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(LAST_LOG_ID, new FieldMetaData("last_log_id", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(LAST_LOG_TERM, new FieldMetaData("last_log_term", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(GetStateResponse.class, metaDataMap); + } + + public GetStateResponse() { + } + + public GetStateResponse( + ErrorCode error_code, + Role role, + long term, + boolean is_leader, + long committed_log_id, + long last_log_id, + long last_log_term, + Status status) { + this(); + this.error_code = error_code; + this.role = role; + this.term = term; + setTermIsSet(true); + this.is_leader = is_leader; + setIs_leaderIsSet(true); + this.committed_log_id = committed_log_id; + setCommitted_log_idIsSet(true); + this.last_log_id = last_log_id; + setLast_log_idIsSet(true); + this.last_log_term = last_log_term; + setLast_log_termIsSet(true); + this.status = status; + } + + public static class Builder { + private ErrorCode error_code; + private Role role; + private long term; + private boolean is_leader; + private long committed_log_id; + private long last_log_id; + private long last_log_term; + private Status status; + + BitSet __optional_isset = new BitSet(5); + + public Builder() { + } + + public Builder setError_code(final ErrorCode error_code) { + this.error_code = error_code; + return this; + } + + public Builder setRole(final Role role) { + this.role = role; + return this; + } + + public Builder setTerm(final long term) { + this.term = term; + __optional_isset.set(__TERM_ISSET_ID, true); + return this; + } + + public Builder setIs_leader(final boolean is_leader) { + this.is_leader = is_leader; + __optional_isset.set(__IS_LEADER_ISSET_ID, true); + return this; + } + + public Builder setCommitted_log_id(final long committed_log_id) { + this.committed_log_id = committed_log_id; + __optional_isset.set(__COMMITTED_LOG_ID_ISSET_ID, true); + return this; + } + + public Builder setLast_log_id(final long last_log_id) { + this.last_log_id = last_log_id; + __optional_isset.set(__LAST_LOG_ID_ISSET_ID, true); + return this; + } + + public Builder setLast_log_term(final long last_log_term) { + this.last_log_term = last_log_term; + __optional_isset.set(__LAST_LOG_TERM_ISSET_ID, true); + return this; + } + + public Builder setStatus(final Status status) { + this.status = status; + return this; + } + + public GetStateResponse build() { + GetStateResponse result = new GetStateResponse(); + result.setError_code(this.error_code); + result.setRole(this.role); + if (__optional_isset.get(__TERM_ISSET_ID)) { + result.setTerm(this.term); + } + if (__optional_isset.get(__IS_LEADER_ISSET_ID)) { + result.setIs_leader(this.is_leader); + } + if (__optional_isset.get(__COMMITTED_LOG_ID_ISSET_ID)) { + result.setCommitted_log_id(this.committed_log_id); + } + if (__optional_isset.get(__LAST_LOG_ID_ISSET_ID)) { + result.setLast_log_id(this.last_log_id); + } + if (__optional_isset.get(__LAST_LOG_TERM_ISSET_ID)) { + result.setLast_log_term(this.last_log_term); + } + result.setStatus(this.status); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public GetStateResponse(GetStateResponse other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + if (other.isSetError_code()) { + this.error_code = TBaseHelper.deepCopy(other.error_code); + } + if (other.isSetRole()) { + this.role = TBaseHelper.deepCopy(other.role); + } + this.term = TBaseHelper.deepCopy(other.term); + this.is_leader = TBaseHelper.deepCopy(other.is_leader); + this.committed_log_id = TBaseHelper.deepCopy(other.committed_log_id); + this.last_log_id = TBaseHelper.deepCopy(other.last_log_id); + this.last_log_term = TBaseHelper.deepCopy(other.last_log_term); + if (other.isSetStatus()) { + this.status = TBaseHelper.deepCopy(other.status); + } + } + + public GetStateResponse deepCopy() { + return new GetStateResponse(this); + } + + /** + * + * @see ErrorCode + */ + public ErrorCode getError_code() { + return this.error_code; + } + + /** + * + * @see ErrorCode + */ + public GetStateResponse setError_code(ErrorCode error_code) { + this.error_code = error_code; + return this; + } + + public void unsetError_code() { + this.error_code = null; + } + + // Returns true if field error_code is set (has been assigned a value) and false otherwise + public boolean isSetError_code() { + return this.error_code != null; + } + + public void setError_codeIsSet(boolean __value) { + if (!__value) { + this.error_code = null; + } + } + + /** + * + * @see Role + */ + public Role getRole() { + return this.role; + } + + /** + * + * @see Role + */ + public GetStateResponse setRole(Role role) { + this.role = role; + return this; + } + + public void unsetRole() { + this.role = null; + } + + // Returns true if field role is set (has been assigned a value) and false otherwise + public boolean isSetRole() { + return this.role != null; + } + + public void setRoleIsSet(boolean __value) { + if (!__value) { + this.role = null; + } + } + + public long getTerm() { + return this.term; + } + + public GetStateResponse setTerm(long term) { + this.term = term; + setTermIsSet(true); + return this; + } + + public void unsetTerm() { + __isset_bit_vector.clear(__TERM_ISSET_ID); + } + + // Returns true if field term is set (has been assigned a value) and false otherwise + public boolean isSetTerm() { + return __isset_bit_vector.get(__TERM_ISSET_ID); + } + + public void setTermIsSet(boolean __value) { + __isset_bit_vector.set(__TERM_ISSET_ID, __value); + } + + public boolean isIs_leader() { + return this.is_leader; + } + + public GetStateResponse setIs_leader(boolean is_leader) { + this.is_leader = is_leader; + setIs_leaderIsSet(true); + return this; + } + + public void unsetIs_leader() { + __isset_bit_vector.clear(__IS_LEADER_ISSET_ID); + } + + // Returns true if field is_leader is set (has been assigned a value) and false otherwise + public boolean isSetIs_leader() { + return __isset_bit_vector.get(__IS_LEADER_ISSET_ID); + } + + public void setIs_leaderIsSet(boolean __value) { + __isset_bit_vector.set(__IS_LEADER_ISSET_ID, __value); + } + + public long getCommitted_log_id() { + return this.committed_log_id; + } + + public GetStateResponse setCommitted_log_id(long committed_log_id) { + this.committed_log_id = committed_log_id; + setCommitted_log_idIsSet(true); + return this; + } + + public void unsetCommitted_log_id() { + __isset_bit_vector.clear(__COMMITTED_LOG_ID_ISSET_ID); + } + + // Returns true if field committed_log_id is set (has been assigned a value) and false otherwise + public boolean isSetCommitted_log_id() { + return __isset_bit_vector.get(__COMMITTED_LOG_ID_ISSET_ID); + } + + public void setCommitted_log_idIsSet(boolean __value) { + __isset_bit_vector.set(__COMMITTED_LOG_ID_ISSET_ID, __value); + } + + public long getLast_log_id() { + return this.last_log_id; + } + + public GetStateResponse setLast_log_id(long last_log_id) { + this.last_log_id = last_log_id; + setLast_log_idIsSet(true); + return this; + } + + public void unsetLast_log_id() { + __isset_bit_vector.clear(__LAST_LOG_ID_ISSET_ID); + } + + // Returns true if field last_log_id is set (has been assigned a value) and false otherwise + public boolean isSetLast_log_id() { + return __isset_bit_vector.get(__LAST_LOG_ID_ISSET_ID); + } + + public void setLast_log_idIsSet(boolean __value) { + __isset_bit_vector.set(__LAST_LOG_ID_ISSET_ID, __value); + } + + public long getLast_log_term() { + return this.last_log_term; + } + + public GetStateResponse setLast_log_term(long last_log_term) { + this.last_log_term = last_log_term; + setLast_log_termIsSet(true); + return this; + } + + public void unsetLast_log_term() { + __isset_bit_vector.clear(__LAST_LOG_TERM_ISSET_ID); + } + + // Returns true if field last_log_term is set (has been assigned a value) and false otherwise + public boolean isSetLast_log_term() { + return __isset_bit_vector.get(__LAST_LOG_TERM_ISSET_ID); + } + + public void setLast_log_termIsSet(boolean __value) { + __isset_bit_vector.set(__LAST_LOG_TERM_ISSET_ID, __value); + } + + /** + * + * @see Status + */ + public Status getStatus() { + return this.status; + } + + /** + * + * @see Status + */ + public GetStateResponse setStatus(Status status) { + this.status = status; + return this; + } + + public void unsetStatus() { + this.status = null; + } + + // Returns true if field status is set (has been assigned a value) and false otherwise + public boolean isSetStatus() { + return this.status != null; + } + + public void setStatusIsSet(boolean __value) { + if (!__value) { + this.status = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case ERROR_CODE: + if (__value == null) { + unsetError_code(); + } else { + setError_code((ErrorCode)__value); + } + break; + + case ROLE: + if (__value == null) { + unsetRole(); + } else { + setRole((Role)__value); + } + break; + + case TERM: + if (__value == null) { + unsetTerm(); + } else { + setTerm((Long)__value); + } + break; + + case IS_LEADER: + if (__value == null) { + unsetIs_leader(); + } else { + setIs_leader((Boolean)__value); + } + break; + + case COMMITTED_LOG_ID: + if (__value == null) { + unsetCommitted_log_id(); + } else { + setCommitted_log_id((Long)__value); + } + break; + + case LAST_LOG_ID: + if (__value == null) { + unsetLast_log_id(); + } else { + setLast_log_id((Long)__value); + } + break; + + case LAST_LOG_TERM: + if (__value == null) { + unsetLast_log_term(); + } else { + setLast_log_term((Long)__value); + } + break; + + case STATUS: + if (__value == null) { + unsetStatus(); + } else { + setStatus((Status)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case ERROR_CODE: + return getError_code(); + + case ROLE: + return getRole(); + + case TERM: + return new Long(getTerm()); + + case IS_LEADER: + return new Boolean(isIs_leader()); + + case COMMITTED_LOG_ID: + return new Long(getCommitted_log_id()); + + case LAST_LOG_ID: + return new Long(getLast_log_id()); + + case LAST_LOG_TERM: + return new Long(getLast_log_term()); + + case STATUS: + return getStatus(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof GetStateResponse)) + return false; + GetStateResponse that = (GetStateResponse)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetError_code(), that.isSetError_code(), this.error_code, that.error_code)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetRole(), that.isSetRole(), this.role, that.role)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.term, that.term)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.is_leader, that.is_leader)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.committed_log_id, that.committed_log_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.last_log_id, that.last_log_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.last_log_term, that.last_log_term)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetStatus(), that.isSetStatus(), this.status, that.status)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {error_code, role, term, is_leader, committed_log_id, last_log_id, last_log_term, status}); + } + + @Override + public int compareTo(GetStateResponse other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetError_code()).compareTo(other.isSetError_code()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(error_code, other.error_code); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(role, other.role); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetTerm()).compareTo(other.isSetTerm()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(term, other.term); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetIs_leader()).compareTo(other.isSetIs_leader()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(is_leader, other.is_leader); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetCommitted_log_id()).compareTo(other.isSetCommitted_log_id()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(committed_log_id, other.committed_log_id); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLast_log_id()).compareTo(other.isSetLast_log_id()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(last_log_id, other.last_log_id); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLast_log_term()).compareTo(other.isSetLast_log_term()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(last_log_term, other.last_log_term); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(status, other.status); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case ERROR_CODE: + if (__field.type == TType.I32) { + this.error_code = ErrorCode.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case ROLE: + if (__field.type == TType.I32) { + this.role = Role.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case TERM: + if (__field.type == TType.I64) { + this.term = iprot.readI64(); + setTermIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case IS_LEADER: + if (__field.type == TType.BOOL) { + this.is_leader = iprot.readBool(); + setIs_leaderIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case COMMITTED_LOG_ID: + if (__field.type == TType.I64) { + this.committed_log_id = iprot.readI64(); + setCommitted_log_idIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LAST_LOG_ID: + if (__field.type == TType.I64) { + this.last_log_id = iprot.readI64(); + setLast_log_idIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LAST_LOG_TERM: + if (__field.type == TType.I64) { + this.last_log_term = iprot.readI64(); + setLast_log_termIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case STATUS: + if (__field.type == TType.I32) { + this.status = Status.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.error_code != null) { + oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC); + oprot.writeI32(this.error_code == null ? 0 : this.error_code.getValue()); + oprot.writeFieldEnd(); + } + if (this.role != null) { + oprot.writeFieldBegin(ROLE_FIELD_DESC); + oprot.writeI32(this.role == null ? 0 : this.role.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(TERM_FIELD_DESC); + oprot.writeI64(this.term); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_LEADER_FIELD_DESC); + oprot.writeBool(this.is_leader); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(COMMITTED_LOG_ID_FIELD_DESC); + oprot.writeI64(this.committed_log_id); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(LAST_LOG_ID_FIELD_DESC); + oprot.writeI64(this.last_log_id); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(LAST_LOG_TERM_FIELD_DESC); + oprot.writeI64(this.last_log_term); + oprot.writeFieldEnd(); + if (this.status != null) { + oprot.writeFieldBegin(STATUS_FIELD_DESC); + oprot.writeI32(this.status == null ? 0 : this.status.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("GetStateResponse"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("error_code"); + sb.append(space); + sb.append(":").append(space); + if (this.getError_code() == null) { + sb.append("null"); + } else { + String error_code_name = this.getError_code() == null ? "null" : this.getError_code().name(); + if (error_code_name != null) { + sb.append(error_code_name); + sb.append(" ("); + } + sb.append(this.getError_code()); + if (error_code_name != null) { + sb.append(")"); + } + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("role"); + sb.append(space); + sb.append(":").append(space); + if (this.getRole() == null) { + sb.append("null"); + } else { + String role_name = this.getRole() == null ? "null" : this.getRole().name(); + if (role_name != null) { + sb.append(role_name); + sb.append(" ("); + } + sb.append(this.getRole()); + if (role_name != null) { + sb.append(")"); + } + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("term"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getTerm(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("is_leader"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isIs_leader(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("committed_log_id"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getCommitted_log_id(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("last_log_id"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getLast_log_id(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("last_log_term"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getLast_log_term(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("status"); + sb.append(space); + sb.append(":").append(space); + if (this.getStatus() == null) { + sb.append("null"); + } else { + String status_name = this.getStatus() == null ? "null" : this.getStatus().name(); + if (status_name != null) { + sb.append(status_name); + sb.append(" ("); + } + sb.append(this.getStatus()); + if (status_name != null) { + sb.append(")"); + } + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + +} + diff --git a/client/src/main/generated/RaftexService.java b/client/src/main/generated/RaftexService.java index e00e536ca..f1d0a7fbc 100644 --- a/client/src/main/generated/RaftexService.java +++ b/client/src/main/generated/RaftexService.java @@ -37,6 +37,8 @@ public interface Iface { public HeartbeatResponse heartbeat(HeartbeatRequest req) throws TException; + public GetStateResponse getState(GetStateRequest req) throws TException; + } public interface AsyncIface { @@ -49,6 +51,8 @@ public interface AsyncIface { public void heartbeat(HeartbeatRequest req, AsyncMethodCallback resultHandler) throws TException; + public void getState(GetStateRequest req, AsyncMethodCallback resultHandler) throws TException; + } public static class Client extends EventHandlerBase implements Iface, TClientIf { @@ -260,6 +264,51 @@ public HeartbeatResponse recv_heartbeat() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "heartbeat failed: unknown result"); } + public GetStateResponse getState(GetStateRequest req) throws TException + { + ContextStack ctx = getContextStack("RaftexService.getState", null); + this.setContextStack(ctx); + send_getState(req); + return recv_getState(); + } + + public void send_getState(GetStateRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "RaftexService.getState", null); + oprot_.writeMessageBegin(new TMessage("getState", TMessageType.CALL, seqid_)); + getState_args args = new getState_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "RaftexService.getState", args); + return; + } + + public GetStateResponse recv_getState() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "RaftexService.getState"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + getState_result result = new getState_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "RaftexService.getState", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "getState failed: unknown result"); + } + } public static class AsyncClient extends TAsyncClient implements AsyncIface { public static class Factory implements TAsyncClientFactory { @@ -278,17 +327,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void askForVote(AskForVoteRequest req, AsyncMethodCallback resultHandler15) throws TException { + public void askForVote(AskForVoteRequest req, AsyncMethodCallback resultHandler16) throws TException { checkReady(); - askForVote_call method_call = new askForVote_call(req, resultHandler15, this, ___protocolFactory, ___transport); + askForVote_call method_call = new askForVote_call(req, resultHandler16, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class askForVote_call extends TAsyncMethodCall { private AskForVoteRequest req; - public askForVote_call(AskForVoteRequest req, AsyncMethodCallback resultHandler16, TAsyncClient client12, TProtocolFactory protocolFactory13, TNonblockingTransport transport14) throws TException { - super(client12, protocolFactory13, transport14, resultHandler16, false); + public askForVote_call(AskForVoteRequest req, AsyncMethodCallback resultHandler17, TAsyncClient client13, TProtocolFactory protocolFactory14, TNonblockingTransport transport15) throws TException { + super(client13, protocolFactory14, transport15, resultHandler17, false); this.req = req; } @@ -310,17 +359,17 @@ public AskForVoteResponse getResult() throws TException { } } - public void appendLog(AppendLogRequest req, AsyncMethodCallback resultHandler20) throws TException { + public void appendLog(AppendLogRequest req, AsyncMethodCallback resultHandler21) throws TException { checkReady(); - appendLog_call method_call = new appendLog_call(req, resultHandler20, this, ___protocolFactory, ___transport); + appendLog_call method_call = new appendLog_call(req, resultHandler21, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class appendLog_call extends TAsyncMethodCall { private AppendLogRequest req; - public appendLog_call(AppendLogRequest req, AsyncMethodCallback resultHandler21, TAsyncClient client17, TProtocolFactory protocolFactory18, TNonblockingTransport transport19) throws TException { - super(client17, protocolFactory18, transport19, resultHandler21, false); + public appendLog_call(AppendLogRequest req, AsyncMethodCallback resultHandler22, TAsyncClient client18, TProtocolFactory protocolFactory19, TNonblockingTransport transport20) throws TException { + super(client18, protocolFactory19, transport20, resultHandler22, false); this.req = req; } @@ -342,17 +391,17 @@ public AppendLogResponse getResult() throws TException { } } - public void sendSnapshot(SendSnapshotRequest req, AsyncMethodCallback resultHandler25) throws TException { + public void sendSnapshot(SendSnapshotRequest req, AsyncMethodCallback resultHandler26) throws TException { checkReady(); - sendSnapshot_call method_call = new sendSnapshot_call(req, resultHandler25, this, ___protocolFactory, ___transport); + sendSnapshot_call method_call = new sendSnapshot_call(req, resultHandler26, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sendSnapshot_call extends TAsyncMethodCall { private SendSnapshotRequest req; - public sendSnapshot_call(SendSnapshotRequest req, AsyncMethodCallback resultHandler26, TAsyncClient client22, TProtocolFactory protocolFactory23, TNonblockingTransport transport24) throws TException { - super(client22, protocolFactory23, transport24, resultHandler26, false); + public sendSnapshot_call(SendSnapshotRequest req, AsyncMethodCallback resultHandler27, TAsyncClient client23, TProtocolFactory protocolFactory24, TNonblockingTransport transport25) throws TException { + super(client23, protocolFactory24, transport25, resultHandler27, false); this.req = req; } @@ -374,17 +423,17 @@ public SendSnapshotResponse getResult() throws TException { } } - public void heartbeat(HeartbeatRequest req, AsyncMethodCallback resultHandler30) throws TException { + public void heartbeat(HeartbeatRequest req, AsyncMethodCallback resultHandler31) throws TException { checkReady(); - heartbeat_call method_call = new heartbeat_call(req, resultHandler30, this, ___protocolFactory, ___transport); + heartbeat_call method_call = new heartbeat_call(req, resultHandler31, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class heartbeat_call extends TAsyncMethodCall { private HeartbeatRequest req; - public heartbeat_call(HeartbeatRequest req, AsyncMethodCallback resultHandler31, TAsyncClient client27, TProtocolFactory protocolFactory28, TNonblockingTransport transport29) throws TException { - super(client27, protocolFactory28, transport29, resultHandler31, false); + public heartbeat_call(HeartbeatRequest req, AsyncMethodCallback resultHandler32, TAsyncClient client28, TProtocolFactory protocolFactory29, TNonblockingTransport transport30) throws TException { + super(client28, protocolFactory29, transport30, resultHandler32, false); this.req = req; } @@ -406,6 +455,38 @@ public HeartbeatResponse getResult() throws TException { } } + public void getState(GetStateRequest req, AsyncMethodCallback resultHandler36) throws TException { + checkReady(); + getState_call method_call = new getState_call(req, resultHandler36, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getState_call extends TAsyncMethodCall { + private GetStateRequest req; + public getState_call(GetStateRequest req, AsyncMethodCallback resultHandler37, TAsyncClient client33, TProtocolFactory protocolFactory34, TNonblockingTransport transport35) throws TException { + super(client33, protocolFactory34, transport35, resultHandler37, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("getState", TMessageType.CALL, 0)); + getState_args args = new getState_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetStateResponse getResult() throws TException { + if (getState() != State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); + TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getState(); + } + } + } public static class Processor implements TProcessor { @@ -418,6 +499,7 @@ public Processor(Iface iface) processMap_.put("appendLog", new appendLog()); processMap_.put("sendSnapshot", new sendSnapshot()); processMap_.put("heartbeat", new heartbeat()); + processMap_.put("getState", new getState()); } protected static interface ProcessFunction { @@ -534,6 +616,27 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class getState implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("RaftexService.getState", server_ctx); + getState_args args = new getState_args(); + event_handler_.preRead(handler_ctx, "RaftexService.getState"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "RaftexService.getState", args); + getState_result result = new getState_result(); + result.success = iface_.getState(args.req); + event_handler_.preWrite(handler_ctx, "RaftexService.getState", result); + oprot.writeMessageBegin(new TMessage("getState", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "RaftexService.getState", result); + } + + } + } public static class askForVote_args implements TBase, java.io.Serializable, Cloneable, Comparable { @@ -2276,4 +2379,439 @@ public void validate() throws TException { } + public static class getState_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getState_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public GetStateRequest req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, GetStateRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getState_args.class, metaDataMap); + } + + public getState_args() { + } + + public getState_args( + GetStateRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public getState_args(getState_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public getState_args deepCopy() { + return new getState_args(this); + } + + public GetStateRequest getReq() { + return this.req; + } + + public getState_args setReq(GetStateRequest req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((GetStateRequest)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof getState_args)) + return false; + getState_args that = (getState_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + @Override + public int compareTo(getState_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new GetStateRequest(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("getState_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class getState_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getState_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public GetStateResponse success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, GetStateResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getState_result.class, metaDataMap); + } + + public getState_result() { + } + + public getState_result( + GetStateResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getState_result(getState_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public getState_result deepCopy() { + return new getState_result(this); + } + + public GetStateResponse getSuccess() { + return this.success; + } + + public getState_result setSuccess(GetStateResponse success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((GetStateResponse)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof getState_result)) + return false; + getState_result that = (getState_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(getState_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new GetStateResponse(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("getState_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + } diff --git a/client/src/main/generated/Role.java b/client/src/main/generated/Role.java new file mode 100644 index 000000000..6e3ea6e15 --- /dev/null +++ b/client/src/main/generated/Role.java @@ -0,0 +1,50 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ + +import com.facebook.thrift.IntRangeSet; +import java.util.Map; +import java.util.HashMap; + +@SuppressWarnings({ "unused" }) +public enum Role implements com.facebook.thrift.TEnum { + LEADER(1), + FOLLOWER(2), + CANDIDATE(3), + LEARNER(4); + + private final int value; + + private Role(int value) { + this.value = value; + } + + /** + * Get the integer value of this enum value, as defined in the Thrift IDL. + */ + public int getValue() { + return value; + } + + /** + * Find a the enum type by its integer value, as defined in the Thrift IDL. + * @return null if the value is not found. + */ + public static Role findByValue(int value) { + switch (value) { + case 1: + return LEADER; + case 2: + return FOLLOWER; + case 3: + return CANDIDATE; + case 4: + return LEARNER; + default: + return null; + } + } +} diff --git a/client/src/main/generated/Status.java b/client/src/main/generated/Status.java new file mode 100644 index 000000000..f32f0760c --- /dev/null +++ b/client/src/main/generated/Status.java @@ -0,0 +1,50 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ + +import com.facebook.thrift.IntRangeSet; +import java.util.Map; +import java.util.HashMap; + +@SuppressWarnings({ "unused" }) +public enum Status implements com.facebook.thrift.TEnum { + STARTING(0), + RUNNING(1), + STOPPED(2), + WAITING_SNAPSHOT(3); + + private final int value; + + private Status(int value) { + this.value = value; + } + + /** + * Get the integer value of this enum value, as defined in the Thrift IDL. + */ + public int getValue() { + return value; + } + + /** + * Find a the enum type by its integer value, as defined in the Thrift IDL. + * @return null if the value is not found. + */ + public static Status findByValue(int value) { + switch (value) { + case 0: + return STARTING; + case 1: + return RUNNING; + case 2: + return STOPPED; + case 3: + return WAITING_SNAPSHOT; + default: + return null; + } + } +} diff --git a/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java index 5991ae7d1..9a8a5c6ce 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java @@ -356,16 +356,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - TList _list226 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list226.size)); - for (int _i227 = 0; - (_list226.size < 0) ? iprot.peekList() : (_i227 < _list226.size); - ++_i227) + TList _list224 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list224.size)); + for (int _i225 = 0; + (_list224.size < 0) ? iprot.peekList() : (_i225 < _list224.size); + ++_i225) { - com.vesoft.nebula.HostAddr _elem228; - _elem228 = new com.vesoft.nebula.HostAddr(); - _elem228.read(iprot); - this.hosts.add(_elem228); + com.vesoft.nebula.HostAddr _elem226; + _elem226 = new com.vesoft.nebula.HostAddr(); + _elem226.read(iprot); + this.hosts.add(_elem226); } iprot.readListEnd(); } @@ -402,8 +402,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(HOSTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.hosts.size())); - for (com.vesoft.nebula.HostAddr _iter229 : this.hosts) { - _iter229.write(oprot); + for (com.vesoft.nebula.HostAddr _iter227 : this.hosts) { + _iter227.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/AddZoneReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddZoneReq.java index 49c5d11a0..ad8c74265 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddZoneReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AddZoneReq.java @@ -267,16 +267,16 @@ public void read(TProtocol iprot) throws TException { case NODES: if (__field.type == TType.LIST) { { - TList _list194 = iprot.readListBegin(); - this.nodes = new ArrayList(Math.max(0, _list194.size)); - for (int _i195 = 0; - (_list194.size < 0) ? iprot.peekList() : (_i195 < _list194.size); - ++_i195) + TList _list208 = iprot.readListBegin(); + this.nodes = new ArrayList(Math.max(0, _list208.size)); + for (int _i209 = 0; + (_list208.size < 0) ? iprot.peekList() : (_i209 < _list208.size); + ++_i209) { - com.vesoft.nebula.HostAddr _elem196; - _elem196 = new com.vesoft.nebula.HostAddr(); - _elem196.read(iprot); - this.nodes.add(_elem196); + com.vesoft.nebula.HostAddr _elem210; + _elem210 = new com.vesoft.nebula.HostAddr(); + _elem210.read(iprot); + this.nodes.add(_elem210); } iprot.readListEnd(); } @@ -310,8 +310,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(NODES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.nodes.size())); - for (com.vesoft.nebula.HostAddr _iter197 : this.nodes) { - _iter197.write(oprot); + for (com.vesoft.nebula.HostAddr _iter211 : this.nodes) { + _iter211.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java index fffc2edce..e1588ae80 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java @@ -268,16 +268,16 @@ public void read(TProtocol iprot) throws TException { case INFO: if (__field.type == TType.LIST) { { - TList _list234 = iprot.readListBegin(); - this.info = new ArrayList(Math.max(0, _list234.size)); - for (int _i235 = 0; - (_list234.size < 0) ? iprot.peekList() : (_i235 < _list234.size); - ++_i235) + TList _list232 = iprot.readListBegin(); + this.info = new ArrayList(Math.max(0, _list232.size)); + for (int _i233 = 0; + (_list232.size < 0) ? iprot.peekList() : (_i233 < _list232.size); + ++_i233) { - com.vesoft.nebula.CheckpointInfo _elem236; - _elem236 = new com.vesoft.nebula.CheckpointInfo(); - _elem236.read(iprot); - this.info.add(_elem236); + com.vesoft.nebula.CheckpointInfo _elem234; + _elem234 = new com.vesoft.nebula.CheckpointInfo(); + _elem234.read(iprot); + this.info.add(_elem234); } iprot.readListEnd(); } @@ -311,8 +311,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(INFO_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.info.size())); - for (com.vesoft.nebula.CheckpointInfo _iter237 : this.info) { - _iter237.write(oprot); + for (com.vesoft.nebula.CheckpointInfo _iter235 : this.info) { + _iter235.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java b/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java index 29b681a68..2065c4c59 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java @@ -521,18 +521,18 @@ public void read(TProtocol iprot) throws TException { case BACKUP_INFO: if (__field.type == TType.MAP) { { - TMap _map242 = iprot.readMapBegin(); - this.backup_info = new HashMap(Math.max(0, 2*_map242.size)); - for (int _i243 = 0; - (_map242.size < 0) ? iprot.peekMap() : (_i243 < _map242.size); - ++_i243) + TMap _map240 = iprot.readMapBegin(); + this.backup_info = new HashMap(Math.max(0, 2*_map240.size)); + for (int _i241 = 0; + (_map240.size < 0) ? iprot.peekMap() : (_i241 < _map240.size); + ++_i241) { - int _key244; - SpaceBackupInfo _val245; - _key244 = iprot.readI32(); - _val245 = new SpaceBackupInfo(); - _val245.read(iprot); - this.backup_info.put(_key244, _val245); + int _key242; + SpaceBackupInfo _val243; + _key242 = iprot.readI32(); + _val243 = new SpaceBackupInfo(); + _val243.read(iprot); + this.backup_info.put(_key242, _val243); } iprot.readMapEnd(); } @@ -543,15 +543,15 @@ public void read(TProtocol iprot) throws TException { case META_FILES: if (__field.type == TType.LIST) { { - TList _list246 = iprot.readListBegin(); - this.meta_files = new ArrayList(Math.max(0, _list246.size)); - for (int _i247 = 0; - (_list246.size < 0) ? iprot.peekList() : (_i247 < _list246.size); - ++_i247) + TList _list244 = iprot.readListBegin(); + this.meta_files = new ArrayList(Math.max(0, _list244.size)); + for (int _i245 = 0; + (_list244.size < 0) ? iprot.peekList() : (_i245 < _list244.size); + ++_i245) { - byte[] _elem248; - _elem248 = iprot.readBinary(); - this.meta_files.add(_elem248); + byte[] _elem246; + _elem246 = iprot.readBinary(); + this.meta_files.add(_elem246); } iprot.readListEnd(); } @@ -611,9 +611,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(BACKUP_INFO_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.backup_info.size())); - for (Map.Entry _iter249 : this.backup_info.entrySet()) { - oprot.writeI32(_iter249.getKey()); - _iter249.getValue().write(oprot); + for (Map.Entry _iter247 : this.backup_info.entrySet()) { + oprot.writeI32(_iter247.getKey()); + _iter247.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -623,8 +623,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(META_FILES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.meta_files.size())); - for (byte[] _iter250 : this.meta_files) { - oprot.writeBinary(_iter250); + for (byte[] _iter248 : this.meta_files) { + oprot.writeBinary(_iter248); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java b/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java index ce7a035da..86b982e5e 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java @@ -198,15 +198,15 @@ public void read(TProtocol iprot) throws TException { case SPACES: if (__field.type == TType.LIST) { { - TList _list251 = iprot.readListBegin(); - this.spaces = new ArrayList(Math.max(0, _list251.size)); - for (int _i252 = 0; - (_list251.size < 0) ? iprot.peekList() : (_i252 < _list251.size); - ++_i252) + TList _list249 = iprot.readListBegin(); + this.spaces = new ArrayList(Math.max(0, _list249.size)); + for (int _i250 = 0; + (_list249.size < 0) ? iprot.peekList() : (_i250 < _list249.size); + ++_i250) { - byte[] _elem253; - _elem253 = iprot.readBinary(); - this.spaces.add(_elem253); + byte[] _elem251; + _elem251 = iprot.readBinary(); + this.spaces.add(_elem251); } iprot.readListEnd(); } @@ -236,8 +236,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SPACES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.spaces.size())); - for (byte[] _iter254 : this.spaces) { - oprot.writeBinary(_iter254); + for (byte[] _iter252 : this.spaces) { + oprot.writeBinary(_iter252); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/CreateEdgeIndexReq.java b/client/src/main/generated/com/vesoft/nebula/meta/CreateEdgeIndexReq.java index 0a0c50334..ea50efe47 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/CreateEdgeIndexReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/CreateEdgeIndexReq.java @@ -555,16 +555,16 @@ public void read(TProtocol iprot) throws TException { case FIELDS: if (__field.type == TType.LIST) { { - TList _list157 = iprot.readListBegin(); - this.fields = new ArrayList(Math.max(0, _list157.size)); - for (int _i158 = 0; - (_list157.size < 0) ? iprot.peekList() : (_i158 < _list157.size); - ++_i158) + TList _list171 = iprot.readListBegin(); + this.fields = new ArrayList(Math.max(0, _list171.size)); + for (int _i172 = 0; + (_list171.size < 0) ? iprot.peekList() : (_i172 < _list171.size); + ++_i172) { - IndexFieldDef _elem159; - _elem159 = new IndexFieldDef(); - _elem159.read(iprot); - this.fields.add(_elem159); + IndexFieldDef _elem173; + _elem173 = new IndexFieldDef(); + _elem173.read(iprot); + this.fields.add(_elem173); } iprot.readListEnd(); } @@ -621,8 +621,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(FIELDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.fields.size())); - for (IndexFieldDef _iter160 : this.fields) { - _iter160.write(oprot); + for (IndexFieldDef _iter174 : this.fields) { + _iter174.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/CreateTagIndexReq.java b/client/src/main/generated/com/vesoft/nebula/meta/CreateTagIndexReq.java index 6220fa0b3..bd1036b54 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/CreateTagIndexReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/CreateTagIndexReq.java @@ -555,16 +555,16 @@ public void read(TProtocol iprot) throws TException { case FIELDS: if (__field.type == TType.LIST) { { - TList _list149 = iprot.readListBegin(); - this.fields = new ArrayList(Math.max(0, _list149.size)); - for (int _i150 = 0; - (_list149.size < 0) ? iprot.peekList() : (_i150 < _list149.size); - ++_i150) + TList _list163 = iprot.readListBegin(); + this.fields = new ArrayList(Math.max(0, _list163.size)); + for (int _i164 = 0; + (_list163.size < 0) ? iprot.peekList() : (_i164 < _list163.size); + ++_i164) { - IndexFieldDef _elem151; - _elem151 = new IndexFieldDef(); - _elem151.read(iprot); - this.fields.add(_elem151); + IndexFieldDef _elem165; + _elem165 = new IndexFieldDef(); + _elem165.read(iprot); + this.fields.add(_elem165); } iprot.readListEnd(); } @@ -621,8 +621,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(FIELDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.fields.size())); - for (IndexFieldDef _iter152 : this.fields) { - _iter152.write(oprot); + for (IndexFieldDef _iter166 : this.fields) { + _iter166.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/FTClient.java b/client/src/main/generated/com/vesoft/nebula/meta/FTClient.java index 7dfbba9d5..3f55e09b8 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/FTClient.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/FTClient.java @@ -29,13 +29,16 @@ public class FTClient implements TBase, java.io.Serializable, Cloneable, Compara private static final TField HOST_FIELD_DESC = new TField("host", TType.STRUCT, (short)1); private static final TField USER_FIELD_DESC = new TField("user", TType.STRING, (short)2); private static final TField PWD_FIELD_DESC = new TField("pwd", TType.STRING, (short)3); + private static final TField CONN_TYPE_FIELD_DESC = new TField("conn_type", TType.STRING, (short)4); public com.vesoft.nebula.HostAddr host; public byte[] user; public byte[] pwd; + public byte[] conn_type; public static final int HOST = 1; public static final int USER = 2; public static final int PWD = 3; + public static final int CONN_TYPE = 4; // isset id assignments @@ -49,6 +52,8 @@ public class FTClient implements TBase, java.io.Serializable, Cloneable, Compara new FieldValueMetaData(TType.STRING))); tmpMetaDataMap.put(PWD, new FieldMetaData("pwd", TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(CONN_TYPE, new FieldMetaData("conn_type", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -68,17 +73,20 @@ public FTClient( public FTClient( com.vesoft.nebula.HostAddr host, byte[] user, - byte[] pwd) { + byte[] pwd, + byte[] conn_type) { this(); this.host = host; this.user = user; this.pwd = pwd; + this.conn_type = conn_type; } public static class Builder { private com.vesoft.nebula.HostAddr host; private byte[] user; private byte[] pwd; + private byte[] conn_type; public Builder() { } @@ -98,11 +106,17 @@ public Builder setPwd(final byte[] pwd) { return this; } + public Builder setConn_type(final byte[] conn_type) { + this.conn_type = conn_type; + return this; + } + public FTClient build() { FTClient result = new FTClient(); result.setHost(this.host); result.setUser(this.user); result.setPwd(this.pwd); + result.setConn_type(this.conn_type); return result; } } @@ -124,6 +138,9 @@ public FTClient(FTClient other) { if (other.isSetPwd()) { this.pwd = TBaseHelper.deepCopy(other.pwd); } + if (other.isSetConn_type()) { + this.conn_type = TBaseHelper.deepCopy(other.conn_type); + } } public FTClient deepCopy() { @@ -202,6 +219,30 @@ public void setPwdIsSet(boolean __value) { } } + public byte[] getConn_type() { + return this.conn_type; + } + + public FTClient setConn_type(byte[] conn_type) { + this.conn_type = conn_type; + return this; + } + + public void unsetConn_type() { + this.conn_type = null; + } + + // Returns true if field conn_type is set (has been assigned a value) and false otherwise + public boolean isSetConn_type() { + return this.conn_type != null; + } + + public void setConn_typeIsSet(boolean __value) { + if (!__value) { + this.conn_type = null; + } + } + public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { case HOST: @@ -228,6 +269,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case CONN_TYPE: + if (__value == null) { + unsetConn_type(); + } else { + setConn_type((byte[])__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -244,6 +293,9 @@ public Object getFieldValue(int fieldID) { case PWD: return getPwd(); + case CONN_TYPE: + return getConn_type(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -265,12 +317,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetPwd(), that.isSetPwd(), this.pwd, that.pwd)) { return false; } + if (!TBaseHelper.equalsSlow(this.isSetConn_type(), that.isSetConn_type(), this.conn_type, that.conn_type)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {host, user, pwd}); + return Arrays.deepHashCode(new Object[] {host, user, pwd, conn_type}); } @Override @@ -309,6 +363,14 @@ public int compareTo(FTClient other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetConn_type()).compareTo(other.isSetConn_type()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(conn_type, other.conn_type); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -345,6 +407,13 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case CONN_TYPE: + if (__field.type == TType.STRING) { + this.conn_type = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -381,6 +450,13 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } } + if (this.conn_type != null) { + if (isSetConn_type()) { + oprot.writeFieldBegin(CONN_TYPE_FIELD_DESC); + oprot.writeBinary(this.conn_type); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -449,6 +525,25 @@ public String toString(int indent, boolean prettyPrint) { } first = false; } + if (isSetConn_type()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("conn_type"); + sb.append(space); + sb.append(":").append(space); + if (this.getConn_type() == null) { + sb.append("null"); + } else { + int __conn_type_size = Math.min(this.getConn_type().length, 128); + for (int i = 0; i < __conn_type_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getConn_type()[i]).length() > 1 ? Integer.toHexString(this.getConn_type()[i]).substring(Integer.toHexString(this.getConn_type()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getConn_type()[i]).toUpperCase()); + } + if (this.getConn_type().length > 128) sb.append(" ..."); + } + first = false; + } sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); sb.append(")"); return sb.toString(); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java b/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java index d80fb68bc..48bb851ca 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java @@ -345,15 +345,15 @@ public void read(TProtocol iprot) throws TException { case FIELDS: if (__field.type == TType.LIST) { { - TList _list271 = iprot.readListBegin(); - this.fields = new ArrayList(Math.max(0, _list271.size)); - for (int _i272 = 0; - (_list271.size < 0) ? iprot.peekList() : (_i272 < _list271.size); - ++_i272) + TList _list269 = iprot.readListBegin(); + this.fields = new ArrayList(Math.max(0, _list269.size)); + for (int _i270 = 0; + (_list269.size < 0) ? iprot.peekList() : (_i270 < _list269.size); + ++_i270) { - byte[] _elem273; - _elem273 = iprot.readBinary(); - this.fields.add(_elem273); + byte[] _elem271; + _elem271 = iprot.readBinary(); + this.fields.add(_elem271); } iprot.readListEnd(); } @@ -390,8 +390,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(FIELDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.fields.size())); - for (byte[] _iter274 : this.fields) { - oprot.writeBinary(_iter274); + for (byte[] _iter272 : this.fields) { + oprot.writeBinary(_iter272); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/GetConfigResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetConfigResp.java index 4ec8e5b08..356787301 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/GetConfigResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetConfigResp.java @@ -310,16 +310,16 @@ public void read(TProtocol iprot) throws TException { case ITEMS: if (__field.type == TType.LIST) { { - TList _list178 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list178.size)); - for (int _i179 = 0; - (_list178.size < 0) ? iprot.peekList() : (_i179 < _list178.size); - ++_i179) + TList _list192 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list192.size)); + for (int _i193 = 0; + (_list192.size < 0) ? iprot.peekList() : (_i193 < _list192.size); + ++_i193) { - ConfigItem _elem180; - _elem180 = new ConfigItem(); - _elem180.read(iprot); - this.items.add(_elem180); + ConfigItem _elem194; + _elem194 = new ConfigItem(); + _elem194.read(iprot); + this.items.add(_elem194); } iprot.readListEnd(); } @@ -358,8 +358,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ITEMS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.items.size())); - for (ConfigItem _iter181 : this.items) { - _iter181.write(oprot); + for (ConfigItem _iter195 : this.items) { + _iter195.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/GetZoneResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetZoneResp.java index 968cd76d3..aacd4b403 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/GetZoneResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetZoneResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - TList _list198 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list198.size)); - for (int _i199 = 0; - (_list198.size < 0) ? iprot.peekList() : (_i199 < _list198.size); - ++_i199) + TList _list212 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list212.size)); + for (int _i213 = 0; + (_list212.size < 0) ? iprot.peekList() : (_i213 < _list212.size); + ++_i213) { - com.vesoft.nebula.HostAddr _elem200; - _elem200 = new com.vesoft.nebula.HostAddr(); - _elem200.read(iprot); - this.hosts.add(_elem200); + com.vesoft.nebula.HostAddr _elem214; + _elem214 = new com.vesoft.nebula.HostAddr(); + _elem214.read(iprot); + this.hosts.add(_elem214); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(HOSTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.hosts.size())); - for (com.vesoft.nebula.HostAddr _iter201 : this.hosts) { - _iter201.write(oprot); + for (com.vesoft.nebula.HostAddr _iter215 : this.hosts) { + _iter215.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java b/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java index a3619f26b..8021c5f19 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java @@ -31,7 +31,7 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable private static final TField CLUSTER_ID_FIELD_DESC = new TField("cluster_id", TType.I64, (short)3); private static final TField LEADER_PART_IDS_FIELD_DESC = new TField("leader_partIds", TType.MAP, (short)4); private static final TField GIT_INFO_SHA_FIELD_DESC = new TField("git_info_sha", TType.STRING, (short)5); - private static final TField VERSION_FIELD_DESC = new TField("version", TType.STRING, (short)6); + private static final TField DISK_PARTS_FIELD_DESC = new TField("disk_parts", TType.MAP, (short)6); /** * @@ -42,13 +42,13 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable public long cluster_id; public Map> leader_partIds; public byte[] git_info_sha; - public byte[] version; + public Map> disk_parts; public static final int ROLE = 1; public static final int HOST = 2; public static final int CLUSTER_ID = 3; public static final int LEADER_PARTIDS = 4; public static final int GIT_INFO_SHA = 5; - public static final int VERSION = 6; + public static final int DISK_PARTS = 6; // isset id assignments private static final int __CLUSTER_ID_ISSET_ID = 0; @@ -71,8 +71,12 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable new StructMetaData(TType.STRUCT, LeaderInfo.class))))); tmpMetaDataMap.put(GIT_INFO_SHA, new FieldMetaData("git_info_sha", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(VERSION, new FieldMetaData("version", TFieldRequirementType.OPTIONAL, - new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(DISK_PARTS, new FieldMetaData("disk_parts", TFieldRequirementType.OPTIONAL, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.STRING), + new StructMetaData(TType.STRUCT, PartitionList.class))))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -102,7 +106,7 @@ public HBReq( long cluster_id, Map> leader_partIds, byte[] git_info_sha, - byte[] version) { + Map> disk_parts) { this(); this.role = role; this.host = host; @@ -110,7 +114,7 @@ public HBReq( setCluster_idIsSet(true); this.leader_partIds = leader_partIds; this.git_info_sha = git_info_sha; - this.version = version; + this.disk_parts = disk_parts; } public static class Builder { @@ -119,7 +123,7 @@ public static class Builder { private long cluster_id; private Map> leader_partIds; private byte[] git_info_sha; - private byte[] version; + private Map> disk_parts; BitSet __optional_isset = new BitSet(1); @@ -152,8 +156,8 @@ public Builder setGit_info_sha(final byte[] git_info_sha) { return this; } - public Builder setVersion(final byte[] version) { - this.version = version; + public Builder setDisk_parts(final Map> disk_parts) { + this.disk_parts = disk_parts; return this; } @@ -166,7 +170,7 @@ public HBReq build() { } result.setLeader_partIds(this.leader_partIds); result.setGit_info_sha(this.git_info_sha); - result.setVersion(this.version); + result.setDisk_parts(this.disk_parts); return result; } } @@ -194,8 +198,8 @@ public HBReq(HBReq other) { if (other.isSetGit_info_sha()) { this.git_info_sha = TBaseHelper.deepCopy(other.git_info_sha); } - if (other.isSetVersion()) { - this.version = TBaseHelper.deepCopy(other.version); + if (other.isSetDisk_parts()) { + this.disk_parts = TBaseHelper.deepCopy(other.disk_parts); } } @@ -330,27 +334,27 @@ public void setGit_info_shaIsSet(boolean __value) { } } - public byte[] getVersion() { - return this.version; + public Map> getDisk_parts() { + return this.disk_parts; } - public HBReq setVersion(byte[] version) { - this.version = version; + public HBReq setDisk_parts(Map> disk_parts) { + this.disk_parts = disk_parts; return this; } - public void unsetVersion() { - this.version = null; + public void unsetDisk_parts() { + this.disk_parts = null; } - // Returns true if field version is set (has been assigned a value) and false otherwise - public boolean isSetVersion() { - return this.version != null; + // Returns true if field disk_parts is set (has been assigned a value) and false otherwise + public boolean isSetDisk_parts() { + return this.disk_parts != null; } - public void setVersionIsSet(boolean __value) { + public void setDisk_partsIsSet(boolean __value) { if (!__value) { - this.version = null; + this.disk_parts = null; } } @@ -397,11 +401,11 @@ public void setFieldValue(int fieldID, Object __value) { } break; - case VERSION: + case DISK_PARTS: if (__value == null) { - unsetVersion(); + unsetDisk_parts(); } else { - setVersion((byte[])__value); + setDisk_parts((Map>)__value); } break; @@ -427,8 +431,8 @@ public Object getFieldValue(int fieldID) { case GIT_INFO_SHA: return getGit_info_sha(); - case VERSION: - return getVersion(); + case DISK_PARTS: + return getDisk_parts(); default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); @@ -455,14 +459,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetGit_info_sha(), that.isSetGit_info_sha(), this.git_info_sha, that.git_info_sha)) { return false; } - if (!TBaseHelper.equalsSlow(this.isSetVersion(), that.isSetVersion(), this.version, that.version)) { return false; } + if (!TBaseHelper.equalsSlow(this.isSetDisk_parts(), that.isSetDisk_parts(), this.disk_parts, that.disk_parts)) { return false; } return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {role, host, cluster_id, leader_partIds, git_info_sha, version}); + return Arrays.deepHashCode(new Object[] {role, host, cluster_id, leader_partIds, git_info_sha, disk_parts}); } @Override @@ -517,11 +521,11 @@ public int compareTo(HBReq other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + lastComparison = Boolean.valueOf(isSetDisk_parts()).compareTo(other.isSetDisk_parts()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(version, other.version); + lastComparison = TBaseHelper.compareTo(disk_parts, other.disk_parts); if (lastComparison != 0) { return lastComparison; } @@ -565,30 +569,30 @@ public void read(TProtocol iprot) throws TException { case LEADER_PARTIDS: if (__field.type == TType.MAP) { { - TMap _map140 = iprot.readMapBegin(); - this.leader_partIds = new HashMap>(Math.max(0, 2*_map140.size)); - for (int _i141 = 0; - (_map140.size < 0) ? iprot.peekMap() : (_i141 < _map140.size); - ++_i141) + TMap _map144 = iprot.readMapBegin(); + this.leader_partIds = new HashMap>(Math.max(0, 2*_map144.size)); + for (int _i145 = 0; + (_map144.size < 0) ? iprot.peekMap() : (_i145 < _map144.size); + ++_i145) { - int _key142; - List _val143; - _key142 = iprot.readI32(); + int _key146; + List _val147; + _key146 = iprot.readI32(); { - TList _list144 = iprot.readListBegin(); - _val143 = new ArrayList(Math.max(0, _list144.size)); - for (int _i145 = 0; - (_list144.size < 0) ? iprot.peekList() : (_i145 < _list144.size); - ++_i145) + TList _list148 = iprot.readListBegin(); + _val147 = new ArrayList(Math.max(0, _list148.size)); + for (int _i149 = 0; + (_list148.size < 0) ? iprot.peekList() : (_i149 < _list148.size); + ++_i149) { - LeaderInfo _elem146; - _elem146 = new LeaderInfo(); - _elem146.read(iprot); - _val143.add(_elem146); + LeaderInfo _elem150; + _elem150 = new LeaderInfo(); + _elem150.read(iprot); + _val147.add(_elem150); } iprot.readListEnd(); } - this.leader_partIds.put(_key142, _val143); + this.leader_partIds.put(_key146, _val147); } iprot.readMapEnd(); } @@ -603,9 +607,38 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case VERSION: - if (__field.type == TType.STRING) { - this.version = iprot.readBinary(); + case DISK_PARTS: + if (__field.type == TType.MAP) { + { + TMap _map151 = iprot.readMapBegin(); + this.disk_parts = new HashMap>(Math.max(0, 2*_map151.size)); + for (int _i152 = 0; + (_map151.size < 0) ? iprot.peekMap() : (_i152 < _map151.size); + ++_i152) + { + int _key153; + Map _val154; + _key153 = iprot.readI32(); + { + TMap _map155 = iprot.readMapBegin(); + _val154 = new HashMap(Math.max(0, 2*_map155.size)); + for (int _i156 = 0; + (_map155.size < 0) ? iprot.peekMap() : (_i156 < _map155.size); + ++_i156) + { + byte[] _key157; + PartitionList _val158; + _key157 = iprot.readBinary(); + _val158 = new PartitionList(); + _val158.read(iprot); + _val154.put(_key157, _val158); + } + iprot.readMapEnd(); + } + this.disk_parts.put(_key153, _val154); + } + iprot.readMapEnd(); + } } else { TProtocolUtil.skip(iprot, __field.type); } @@ -645,12 +678,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(LEADER_PART_IDS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.leader_partIds.size())); - for (Map.Entry> _iter147 : this.leader_partIds.entrySet()) { - oprot.writeI32(_iter147.getKey()); + for (Map.Entry> _iter159 : this.leader_partIds.entrySet()) { + oprot.writeI32(_iter159.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter147.getValue().size())); - for (LeaderInfo _iter148 : _iter147.getValue()) { - _iter148.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, _iter159.getValue().size())); + for (LeaderInfo _iter160 : _iter159.getValue()) { + _iter160.write(oprot); } oprot.writeListEnd(); } @@ -665,10 +698,24 @@ public void write(TProtocol oprot) throws TException { oprot.writeBinary(this.git_info_sha); oprot.writeFieldEnd(); } - if (this.version != null) { - if (isSetVersion()) { - oprot.writeFieldBegin(VERSION_FIELD_DESC); - oprot.writeBinary(this.version); + if (this.disk_parts != null) { + if (isSetDisk_parts()) { + oprot.writeFieldBegin(DISK_PARTS_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.MAP, this.disk_parts.size())); + for (Map.Entry> _iter161 : this.disk_parts.entrySet()) { + oprot.writeI32(_iter161.getKey()); + { + oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, _iter161.getValue().size())); + for (Map.Entry _iter162 : _iter161.getValue().entrySet()) { + oprot.writeBinary(_iter162.getKey()); + _iter162.getValue().write(oprot); + } + oprot.writeMapEnd(); + } + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } } @@ -758,22 +805,17 @@ public String toString(int indent, boolean prettyPrint) { if (this.getGit_info_sha().length > 128) sb.append(" ..."); } first = false; - if (isSetVersion()) + if (isSetDisk_parts()) { if (!first) sb.append("," + newLine); sb.append(indentStr); - sb.append("version"); + sb.append("disk_parts"); sb.append(space); sb.append(":").append(space); - if (this.getVersion() == null) { + if (this.getDisk_parts() == null) { sb.append("null"); } else { - int __version_size = Math.min(this.getVersion().length, 128); - for (int i = 0; i < __version_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getVersion()[i]).length() > 1 ? Integer.toHexString(this.getVersion()[i]).substring(Integer.toHexString(this.getVersion()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getVersion()[i]).toUpperCase()); - } - if (this.getVersion().length > 128) sb.append(" ..."); + sb.append(TBaseHelper.toString(this.getDisk_parts(), indent + 1, prettyPrint)); } first = false; } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/IndexParams.java b/client/src/main/generated/com/vesoft/nebula/meta/IndexParams.java new file mode 100644 index 000000000..6b68dd756 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/IndexParams.java @@ -0,0 +1,454 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.meta; + +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import java.util.Collections; +import java.util.BitSet; +import java.util.Arrays; +import com.facebook.thrift.*; +import com.facebook.thrift.annotations.*; +import com.facebook.thrift.async.*; +import com.facebook.thrift.meta_data.*; +import com.facebook.thrift.server.*; +import com.facebook.thrift.transport.*; +import com.facebook.thrift.protocol.*; + +@SuppressWarnings({ "unused", "serial" }) +public class IndexParams implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("IndexParams"); + private static final TField COMMENT_FIELD_DESC = new TField("comment", TType.STRING, (short)1); + private static final TField S2_MAX_LEVEL_FIELD_DESC = new TField("s2_max_level", TType.I32, (short)2); + private static final TField S2_MAX_CELLS_FIELD_DESC = new TField("s2_max_cells", TType.I32, (short)3); + + public byte[] comment; + public int s2_max_level; + public int s2_max_cells; + public static final int COMMENT = 1; + public static final int S2_MAX_LEVEL = 2; + public static final int S2_MAX_CELLS = 3; + + // isset id assignments + private static final int __S2_MAX_LEVEL_ISSET_ID = 0; + private static final int __S2_MAX_CELLS_ISSET_ID = 1; + private BitSet __isset_bit_vector = new BitSet(2); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(COMMENT, new FieldMetaData("comment", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(S2_MAX_LEVEL, new FieldMetaData("s2_max_level", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(S2_MAX_CELLS, new FieldMetaData("s2_max_cells", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(IndexParams.class, metaDataMap); + } + + public IndexParams() { + } + + public IndexParams( + byte[] comment, + int s2_max_level, + int s2_max_cells) { + this(); + this.comment = comment; + this.s2_max_level = s2_max_level; + setS2_max_levelIsSet(true); + this.s2_max_cells = s2_max_cells; + setS2_max_cellsIsSet(true); + } + + public static class Builder { + private byte[] comment; + private int s2_max_level; + private int s2_max_cells; + + BitSet __optional_isset = new BitSet(2); + + public Builder() { + } + + public Builder setComment(final byte[] comment) { + this.comment = comment; + return this; + } + + public Builder setS2_max_level(final int s2_max_level) { + this.s2_max_level = s2_max_level; + __optional_isset.set(__S2_MAX_LEVEL_ISSET_ID, true); + return this; + } + + public Builder setS2_max_cells(final int s2_max_cells) { + this.s2_max_cells = s2_max_cells; + __optional_isset.set(__S2_MAX_CELLS_ISSET_ID, true); + return this; + } + + public IndexParams build() { + IndexParams result = new IndexParams(); + result.setComment(this.comment); + if (__optional_isset.get(__S2_MAX_LEVEL_ISSET_ID)) { + result.setS2_max_level(this.s2_max_level); + } + if (__optional_isset.get(__S2_MAX_CELLS_ISSET_ID)) { + result.setS2_max_cells(this.s2_max_cells); + } + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public IndexParams(IndexParams other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + if (other.isSetComment()) { + this.comment = TBaseHelper.deepCopy(other.comment); + } + this.s2_max_level = TBaseHelper.deepCopy(other.s2_max_level); + this.s2_max_cells = TBaseHelper.deepCopy(other.s2_max_cells); + } + + public IndexParams deepCopy() { + return new IndexParams(this); + } + + public byte[] getComment() { + return this.comment; + } + + public IndexParams setComment(byte[] comment) { + this.comment = comment; + return this; + } + + public void unsetComment() { + this.comment = null; + } + + // Returns true if field comment is set (has been assigned a value) and false otherwise + public boolean isSetComment() { + return this.comment != null; + } + + public void setCommentIsSet(boolean __value) { + if (!__value) { + this.comment = null; + } + } + + public int getS2_max_level() { + return this.s2_max_level; + } + + public IndexParams setS2_max_level(int s2_max_level) { + this.s2_max_level = s2_max_level; + setS2_max_levelIsSet(true); + return this; + } + + public void unsetS2_max_level() { + __isset_bit_vector.clear(__S2_MAX_LEVEL_ISSET_ID); + } + + // Returns true if field s2_max_level is set (has been assigned a value) and false otherwise + public boolean isSetS2_max_level() { + return __isset_bit_vector.get(__S2_MAX_LEVEL_ISSET_ID); + } + + public void setS2_max_levelIsSet(boolean __value) { + __isset_bit_vector.set(__S2_MAX_LEVEL_ISSET_ID, __value); + } + + public int getS2_max_cells() { + return this.s2_max_cells; + } + + public IndexParams setS2_max_cells(int s2_max_cells) { + this.s2_max_cells = s2_max_cells; + setS2_max_cellsIsSet(true); + return this; + } + + public void unsetS2_max_cells() { + __isset_bit_vector.clear(__S2_MAX_CELLS_ISSET_ID); + } + + // Returns true if field s2_max_cells is set (has been assigned a value) and false otherwise + public boolean isSetS2_max_cells() { + return __isset_bit_vector.get(__S2_MAX_CELLS_ISSET_ID); + } + + public void setS2_max_cellsIsSet(boolean __value) { + __isset_bit_vector.set(__S2_MAX_CELLS_ISSET_ID, __value); + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case COMMENT: + if (__value == null) { + unsetComment(); + } else { + setComment((byte[])__value); + } + break; + + case S2_MAX_LEVEL: + if (__value == null) { + unsetS2_max_level(); + } else { + setS2_max_level((Integer)__value); + } + break; + + case S2_MAX_CELLS: + if (__value == null) { + unsetS2_max_cells(); + } else { + setS2_max_cells((Integer)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case COMMENT: + return getComment(); + + case S2_MAX_LEVEL: + return new Integer(getS2_max_level()); + + case S2_MAX_CELLS: + return new Integer(getS2_max_cells()); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof IndexParams)) + return false; + IndexParams that = (IndexParams)_that; + + if (!TBaseHelper.equalsSlow(this.isSetComment(), that.isSetComment(), this.comment, that.comment)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetS2_max_level(), that.isSetS2_max_level(), this.s2_max_level, that.s2_max_level)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetS2_max_cells(), that.isSetS2_max_cells(), this.s2_max_cells, that.s2_max_cells)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {comment, s2_max_level, s2_max_cells}); + } + + @Override + public int compareTo(IndexParams other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetComment()).compareTo(other.isSetComment()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(comment, other.comment); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetS2_max_level()).compareTo(other.isSetS2_max_level()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(s2_max_level, other.s2_max_level); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetS2_max_cells()).compareTo(other.isSetS2_max_cells()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(s2_max_cells, other.s2_max_cells); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case COMMENT: + if (__field.type == TType.STRING) { + this.comment = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case S2_MAX_LEVEL: + if (__field.type == TType.I32) { + this.s2_max_level = iprot.readI32(); + setS2_max_levelIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case S2_MAX_CELLS: + if (__field.type == TType.I32) { + this.s2_max_cells = iprot.readI32(); + setS2_max_cellsIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.comment != null) { + if (isSetComment()) { + oprot.writeFieldBegin(COMMENT_FIELD_DESC); + oprot.writeBinary(this.comment); + oprot.writeFieldEnd(); + } + } + if (isSetS2_max_level()) { + oprot.writeFieldBegin(S2_MAX_LEVEL_FIELD_DESC); + oprot.writeI32(this.s2_max_level); + oprot.writeFieldEnd(); + } + if (isSetS2_max_cells()) { + oprot.writeFieldBegin(S2_MAX_CELLS_FIELD_DESC); + oprot.writeI32(this.s2_max_cells); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("IndexParams"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + if (isSetComment()) + { + sb.append(indentStr); + sb.append("comment"); + sb.append(space); + sb.append(":").append(space); + if (this.getComment() == null) { + sb.append("null"); + } else { + int __comment_size = Math.min(this.getComment().length, 128); + for (int i = 0; i < __comment_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getComment()[i]).length() > 1 ? Integer.toHexString(this.getComment()[i]).substring(Integer.toHexString(this.getComment()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getComment()[i]).toUpperCase()); + } + if (this.getComment().length > 128) sb.append(" ..."); + } + first = false; + } + if (isSetS2_max_level()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("s2_max_level"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getS2_max_level(), indent + 1, prettyPrint)); + first = false; + } + if (isSetS2_max_cells()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("s2_max_cells"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getS2_max_cells(), indent + 1, prettyPrint)); + first = false; + } + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + +} + diff --git a/client/src/main/generated/com/vesoft/nebula/meta/KillQueryReq.java b/client/src/main/generated/com/vesoft/nebula/meta/KillQueryReq.java index 97ce92736..5b9b80d2e 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/KillQueryReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/KillQueryReq.java @@ -200,29 +200,29 @@ public void read(TProtocol iprot) throws TException { case KILL_QUERIES: if (__field.type == TType.MAP) { { - TMap _map308 = iprot.readMapBegin(); - this.kill_queries = new HashMap>(Math.max(0, 2*_map308.size)); - for (int _i309 = 0; - (_map308.size < 0) ? iprot.peekMap() : (_i309 < _map308.size); - ++_i309) + TMap _map306 = iprot.readMapBegin(); + this.kill_queries = new HashMap>(Math.max(0, 2*_map306.size)); + for (int _i307 = 0; + (_map306.size < 0) ? iprot.peekMap() : (_i307 < _map306.size); + ++_i307) { - long _key310; - Set _val311; - _key310 = iprot.readI64(); + long _key308; + Set _val309; + _key308 = iprot.readI64(); { - TSet _set312 = iprot.readSetBegin(); - _val311 = new HashSet(Math.max(0, 2*_set312.size)); - for (int _i313 = 0; - (_set312.size < 0) ? iprot.peekSet() : (_i313 < _set312.size); - ++_i313) + TSet _set310 = iprot.readSetBegin(); + _val309 = new HashSet(Math.max(0, 2*_set310.size)); + for (int _i311 = 0; + (_set310.size < 0) ? iprot.peekSet() : (_i311 < _set310.size); + ++_i311) { - long _elem314; - _elem314 = iprot.readI64(); - _val311.add(_elem314); + long _elem312; + _elem312 = iprot.readI64(); + _val309.add(_elem312); } iprot.readSetEnd(); } - this.kill_queries.put(_key310, _val311); + this.kill_queries.put(_key308, _val309); } iprot.readMapEnd(); } @@ -251,12 +251,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(KILL_QUERIES_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I64, TType.SET, this.kill_queries.size())); - for (Map.Entry> _iter315 : this.kill_queries.entrySet()) { - oprot.writeI64(_iter315.getKey()); + for (Map.Entry> _iter313 : this.kill_queries.entrySet()) { + oprot.writeI64(_iter313.getKey()); { - oprot.writeSetBegin(new TSet(TType.I64, _iter315.getValue().size())); - for (long _iter316 : _iter315.getValue()) { - oprot.writeI64(_iter316); + oprot.writeSetBegin(new TSet(TType.I64, _iter313.getValue().size())); + for (long _iter314 : _iter313.getValue()) { + oprot.writeI64(_iter314); } oprot.writeSetEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java index e45e1f169..0692221f0 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java @@ -412,16 +412,16 @@ public void read(TProtocol iprot) throws TException { case META_SERVERS: if (__field.type == TType.LIST) { { - TList _list317 = iprot.readListBegin(); - this.meta_servers = new ArrayList(Math.max(0, _list317.size)); - for (int _i318 = 0; - (_list317.size < 0) ? iprot.peekList() : (_i318 < _list317.size); - ++_i318) + TList _list315 = iprot.readListBegin(); + this.meta_servers = new ArrayList(Math.max(0, _list315.size)); + for (int _i316 = 0; + (_list315.size < 0) ? iprot.peekList() : (_i316 < _list315.size); + ++_i316) { - com.vesoft.nebula.HostAddr _elem319; - _elem319 = new com.vesoft.nebula.HostAddr(); - _elem319.read(iprot); - this.meta_servers.add(_elem319); + com.vesoft.nebula.HostAddr _elem317; + _elem317 = new com.vesoft.nebula.HostAddr(); + _elem317.read(iprot); + this.meta_servers.add(_elem317); } iprot.readListEnd(); } @@ -432,16 +432,16 @@ public void read(TProtocol iprot) throws TException { case STORAGE_SERVERS: if (__field.type == TType.LIST) { { - TList _list320 = iprot.readListBegin(); - this.storage_servers = new ArrayList(Math.max(0, _list320.size)); - for (int _i321 = 0; - (_list320.size < 0) ? iprot.peekList() : (_i321 < _list320.size); - ++_i321) + TList _list318 = iprot.readListBegin(); + this.storage_servers = new ArrayList(Math.max(0, _list318.size)); + for (int _i319 = 0; + (_list318.size < 0) ? iprot.peekList() : (_i319 < _list318.size); + ++_i319) { - com.vesoft.nebula.NodeInfo _elem322; - _elem322 = new com.vesoft.nebula.NodeInfo(); - _elem322.read(iprot); - this.storage_servers.add(_elem322); + com.vesoft.nebula.NodeInfo _elem320; + _elem320 = new com.vesoft.nebula.NodeInfo(); + _elem320.read(iprot); + this.storage_servers.add(_elem320); } iprot.readListEnd(); } @@ -480,8 +480,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(META_SERVERS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.meta_servers.size())); - for (com.vesoft.nebula.HostAddr _iter323 : this.meta_servers) { - _iter323.write(oprot); + for (com.vesoft.nebula.HostAddr _iter321 : this.meta_servers) { + _iter321.write(oprot); } oprot.writeListEnd(); } @@ -491,8 +491,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(STORAGE_SERVERS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.storage_servers.size())); - for (com.vesoft.nebula.NodeInfo _iter324 : this.storage_servers) { - _iter324.write(oprot); + for (com.vesoft.nebula.NodeInfo _iter322 : this.storage_servers) { + _iter322.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListConfigsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListConfigsResp.java index 3220aaa10..38451aca5 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListConfigsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListConfigsResp.java @@ -310,16 +310,16 @@ public void read(TProtocol iprot) throws TException { case ITEMS: if (__field.type == TType.LIST) { { - TList _list182 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list182.size)); - for (int _i183 = 0; - (_list182.size < 0) ? iprot.peekList() : (_i183 < _list182.size); - ++_i183) + TList _list196 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list196.size)); + for (int _i197 = 0; + (_list196.size < 0) ? iprot.peekList() : (_i197 < _list196.size); + ++_i197) { - ConfigItem _elem184; - _elem184 = new ConfigItem(); - _elem184.read(iprot); - this.items.add(_elem184); + ConfigItem _elem198; + _elem198 = new ConfigItem(); + _elem198.read(iprot); + this.items.add(_elem198); } iprot.readListEnd(); } @@ -358,8 +358,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ITEMS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.items.size())); - for (ConfigItem _iter185 : this.items) { - _iter185.write(oprot); + for (ConfigItem _iter199 : this.items) { + _iter199.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListEdgeIndexesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListEdgeIndexesResp.java index f5ab1538e..7f434d14a 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListEdgeIndexesResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListEdgeIndexesResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case ITEMS: if (__field.type == TType.LIST) { { - TList _list161 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list161.size)); - for (int _i162 = 0; - (_list161.size < 0) ? iprot.peekList() : (_i162 < _list161.size); - ++_i162) + TList _list175 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list175.size)); + for (int _i176 = 0; + (_list175.size < 0) ? iprot.peekList() : (_i176 < _list175.size); + ++_i176) { - IndexItem _elem163; - _elem163 = new IndexItem(); - _elem163.read(iprot); - this.items.add(_elem163); + IndexItem _elem177; + _elem177 = new IndexItem(); + _elem177.read(iprot); + this.items.add(_elem177); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ITEMS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.items.size())); - for (IndexItem _iter164 : this.items) { - _iter164.write(oprot); + for (IndexItem _iter178 : this.items) { + _iter178.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListFTClientsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListFTClientsResp.java index 716ac4feb..3f87699e1 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListFTClientsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListFTClientsResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case CLIENTS: if (__field.type == TType.LIST) { { - TList _list267 = iprot.readListBegin(); - this.clients = new ArrayList(Math.max(0, _list267.size)); - for (int _i268 = 0; - (_list267.size < 0) ? iprot.peekList() : (_i268 < _list267.size); - ++_i268) + TList _list265 = iprot.readListBegin(); + this.clients = new ArrayList(Math.max(0, _list265.size)); + for (int _i266 = 0; + (_list265.size < 0) ? iprot.peekList() : (_i266 < _list265.size); + ++_i266) { - FTClient _elem269; - _elem269 = new FTClient(); - _elem269.read(iprot); - this.clients.add(_elem269); + FTClient _elem267; + _elem267 = new FTClient(); + _elem267.read(iprot); + this.clients.add(_elem267); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(CLIENTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.clients.size())); - for (FTClient _iter270 : this.clients) { - _iter270.write(oprot); + for (FTClient _iter268 : this.clients) { + _iter268.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListFTIndexesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListFTIndexesResp.java index 054576646..4d4bfa55e 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListFTIndexesResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListFTIndexesResp.java @@ -350,18 +350,18 @@ public void read(TProtocol iprot) throws TException { case INDEXES: if (__field.type == TType.MAP) { { - TMap _map275 = iprot.readMapBegin(); - this.indexes = new HashMap(Math.max(0, 2*_map275.size)); - for (int _i276 = 0; - (_map275.size < 0) ? iprot.peekMap() : (_i276 < _map275.size); - ++_i276) + TMap _map273 = iprot.readMapBegin(); + this.indexes = new HashMap(Math.max(0, 2*_map273.size)); + for (int _i274 = 0; + (_map273.size < 0) ? iprot.peekMap() : (_i274 < _map273.size); + ++_i274) { - byte[] _key277; - FTIndex _val278; - _key277 = iprot.readBinary(); - _val278 = new FTIndex(); - _val278.read(iprot); - this.indexes.put(_key277, _val278); + byte[] _key275; + FTIndex _val276; + _key275 = iprot.readBinary(); + _val276 = new FTIndex(); + _val276.read(iprot); + this.indexes.put(_key275, _val276); } iprot.readMapEnd(); } @@ -400,9 +400,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(INDEXES_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.indexes.size())); - for (Map.Entry _iter279 : this.indexes.entrySet()) { - oprot.writeBinary(_iter279.getKey()); - _iter279.getValue().write(oprot); + for (Map.Entry _iter277 : this.indexes.entrySet()) { + oprot.writeBinary(_iter277.getKey()); + _iter277.getValue().write(oprot); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListIndexStatusResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListIndexStatusResp.java index f9d77465a..cc30b3476 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListIndexStatusResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListIndexStatusResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case STATUSES: if (__field.type == TType.LIST) { { - TList _list190 = iprot.readListBegin(); - this.statuses = new ArrayList(Math.max(0, _list190.size)); - for (int _i191 = 0; - (_list190.size < 0) ? iprot.peekList() : (_i191 < _list190.size); - ++_i191) + TList _list204 = iprot.readListBegin(); + this.statuses = new ArrayList(Math.max(0, _list204.size)); + for (int _i205 = 0; + (_list204.size < 0) ? iprot.peekList() : (_i205 < _list204.size); + ++_i205) { - IndexStatus _elem192; - _elem192 = new IndexStatus(); - _elem192.read(iprot); - this.statuses.add(_elem192); + IndexStatus _elem206; + _elem206 = new IndexStatus(); + _elem206.read(iprot); + this.statuses.add(_elem206); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(STATUSES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.statuses.size())); - for (IndexStatus _iter193 : this.statuses) { - _iter193.write(oprot); + for (IndexStatus _iter207 : this.statuses) { + _iter207.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListListenerResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListListenerResp.java index 3636d2124..4c9359e4e 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListListenerResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListListenerResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case LISTENERS: if (__field.type == TType.LIST) { { - TList _list230 = iprot.readListBegin(); - this.listeners = new ArrayList(Math.max(0, _list230.size)); - for (int _i231 = 0; - (_list230.size < 0) ? iprot.peekList() : (_i231 < _list230.size); - ++_i231) + TList _list228 = iprot.readListBegin(); + this.listeners = new ArrayList(Math.max(0, _list228.size)); + for (int _i229 = 0; + (_list228.size < 0) ? iprot.peekList() : (_i229 < _list228.size); + ++_i229) { - ListenerInfo _elem232; - _elem232 = new ListenerInfo(); - _elem232.read(iprot); - this.listeners.add(_elem232); + ListenerInfo _elem230; + _elem230 = new ListenerInfo(); + _elem230.read(iprot); + this.listeners.add(_elem230); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(LISTENERS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.listeners.size())); - for (ListenerInfo _iter233 : this.listeners) { - _iter233.write(oprot); + for (ListenerInfo _iter231 : this.listeners) { + _iter231.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListRolesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListRolesResp.java index 7d6e852d0..ea478aeef 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListRolesResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListRolesResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case ROLES: if (__field.type == TType.LIST) { { - TList _list170 = iprot.readListBegin(); - this.roles = new ArrayList(Math.max(0, _list170.size)); - for (int _i171 = 0; - (_list170.size < 0) ? iprot.peekList() : (_i171 < _list170.size); - ++_i171) + TList _list184 = iprot.readListBegin(); + this.roles = new ArrayList(Math.max(0, _list184.size)); + for (int _i185 = 0; + (_list184.size < 0) ? iprot.peekList() : (_i185 < _list184.size); + ++_i185) { - RoleItem _elem172; - _elem172 = new RoleItem(); - _elem172.read(iprot); - this.roles.add(_elem172); + RoleItem _elem186; + _elem186 = new RoleItem(); + _elem186.read(iprot); + this.roles.add(_elem186); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ROLES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.roles.size())); - for (RoleItem _iter173 : this.roles) { - _iter173.write(oprot); + for (RoleItem _iter187 : this.roles) { + _iter187.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListSessionsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListSessionsResp.java index 601212bfc..7e67870a3 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListSessionsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListSessionsResp.java @@ -310,16 +310,16 @@ public void read(TProtocol iprot) throws TException { case SESSIONS: if (__field.type == TType.LIST) { { - TList _list304 = iprot.readListBegin(); - this.sessions = new ArrayList(Math.max(0, _list304.size)); - for (int _i305 = 0; - (_list304.size < 0) ? iprot.peekList() : (_i305 < _list304.size); - ++_i305) + TList _list302 = iprot.readListBegin(); + this.sessions = new ArrayList(Math.max(0, _list302.size)); + for (int _i303 = 0; + (_list302.size < 0) ? iprot.peekList() : (_i303 < _list302.size); + ++_i303) { - Session _elem306; - _elem306 = new Session(); - _elem306.read(iprot); - this.sessions.add(_elem306); + Session _elem304; + _elem304 = new Session(); + _elem304.read(iprot); + this.sessions.add(_elem304); } iprot.readListEnd(); } @@ -358,8 +358,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SESSIONS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.sessions.size())); - for (Session _iter307 : this.sessions) { - _iter307.write(oprot); + for (Session _iter305 : this.sessions) { + _iter305.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListSnapshotsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListSnapshotsResp.java index d02617438..278492ed5 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListSnapshotsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListSnapshotsResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case SNAPSHOTS: if (__field.type == TType.LIST) { { - TList _list186 = iprot.readListBegin(); - this.snapshots = new ArrayList(Math.max(0, _list186.size)); - for (int _i187 = 0; - (_list186.size < 0) ? iprot.peekList() : (_i187 < _list186.size); - ++_i187) + TList _list200 = iprot.readListBegin(); + this.snapshots = new ArrayList(Math.max(0, _list200.size)); + for (int _i201 = 0; + (_list200.size < 0) ? iprot.peekList() : (_i201 < _list200.size); + ++_i201) { - Snapshot _elem188; - _elem188 = new Snapshot(); - _elem188.read(iprot); - this.snapshots.add(_elem188); + Snapshot _elem202; + _elem202 = new Snapshot(); + _elem202.read(iprot); + this.snapshots.add(_elem202); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SNAPSHOTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.snapshots.size())); - for (Snapshot _iter189 : this.snapshots) { - _iter189.write(oprot); + for (Snapshot _iter203 : this.snapshots) { + _iter203.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListTagIndexesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListTagIndexesResp.java index f515202b6..042054f62 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListTagIndexesResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListTagIndexesResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case ITEMS: if (__field.type == TType.LIST) { { - TList _list153 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list153.size)); - for (int _i154 = 0; - (_list153.size < 0) ? iprot.peekList() : (_i154 < _list153.size); - ++_i154) + TList _list167 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list167.size)); + for (int _i168 = 0; + (_list167.size < 0) ? iprot.peekList() : (_i168 < _list167.size); + ++_i168) { - IndexItem _elem155; - _elem155 = new IndexItem(); - _elem155.read(iprot); - this.items.add(_elem155); + IndexItem _elem169; + _elem169 = new IndexItem(); + _elem169.read(iprot); + this.items.add(_elem169); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ITEMS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.items.size())); - for (IndexItem _iter156 : this.items) { - _iter156.write(oprot); + for (IndexItem _iter170 : this.items) { + _iter170.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListUsersResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListUsersResp.java index 898c1bcdc..cae213fbf 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListUsersResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListUsersResp.java @@ -350,17 +350,17 @@ public void read(TProtocol iprot) throws TException { case USERS: if (__field.type == TType.MAP) { { - TMap _map165 = iprot.readMapBegin(); - this.users = new HashMap(Math.max(0, 2*_map165.size)); - for (int _i166 = 0; - (_map165.size < 0) ? iprot.peekMap() : (_i166 < _map165.size); - ++_i166) + TMap _map179 = iprot.readMapBegin(); + this.users = new HashMap(Math.max(0, 2*_map179.size)); + for (int _i180 = 0; + (_map179.size < 0) ? iprot.peekMap() : (_i180 < _map179.size); + ++_i180) { - byte[] _key167; - byte[] _val168; - _key167 = iprot.readBinary(); - _val168 = iprot.readBinary(); - this.users.put(_key167, _val168); + byte[] _key181; + byte[] _val182; + _key181 = iprot.readBinary(); + _val182 = iprot.readBinary(); + this.users.put(_key181, _val182); } iprot.readMapEnd(); } @@ -399,9 +399,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(USERS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.users.size())); - for (Map.Entry _iter169 : this.users.entrySet()) { - oprot.writeBinary(_iter169.getKey()); - oprot.writeBinary(_iter169.getValue()); + for (Map.Entry _iter183 : this.users.entrySet()) { + oprot.writeBinary(_iter183.getKey()); + oprot.writeBinary(_iter183.getValue()); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListZonesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListZonesResp.java index a6340ea74..b6b47f564 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListZonesResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListZonesResp.java @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case ZONES: if (__field.type == TType.LIST) { { - TList _list206 = iprot.readListBegin(); - this.zones = new ArrayList(Math.max(0, _list206.size)); - for (int _i207 = 0; - (_list206.size < 0) ? iprot.peekList() : (_i207 < _list206.size); - ++_i207) + TList _list220 = iprot.readListBegin(); + this.zones = new ArrayList(Math.max(0, _list220.size)); + for (int _i221 = 0; + (_list220.size < 0) ? iprot.peekList() : (_i221 < _list220.size); + ++_i221) { - Zone _elem208; - _elem208 = new Zone(); - _elem208.read(iprot); - this.zones.add(_elem208); + Zone _elem222; + _elem222 = new Zone(); + _elem222.read(iprot); + this.zones.add(_elem222); } iprot.readListEnd(); } @@ -397,8 +397,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ZONES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.zones.size())); - for (Zone _iter209 : this.zones) { - _iter209.write(oprot); + for (Zone _iter223 : this.zones) { + _iter223.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java b/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java index d727d5037..935646e9c 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java @@ -151,18 +151,6 @@ public interface Iface { public ListZonesResp listZones(ListZonesReq req) throws TException; - public ExecResp addGroup(AddGroupReq req) throws TException; - - public ExecResp dropGroup(DropGroupReq req) throws TException; - - public ExecResp addZoneIntoGroup(AddZoneIntoGroupReq req) throws TException; - - public ExecResp dropZoneFromGroup(DropZoneFromGroupReq req) throws TException; - - public GetGroupResp getGroup(GetGroupReq req) throws TException; - - public ListGroupsResp listGroups(ListGroupsReq req) throws TException; - public CreateBackupResp createBackup(CreateBackupReq req) throws TException; public ExecResp restoreMeta(RestoreMetaReq req) throws TException; @@ -331,18 +319,6 @@ public interface AsyncIface { public void listZones(ListZonesReq req, AsyncMethodCallback resultHandler) throws TException; - public void addGroup(AddGroupReq req, AsyncMethodCallback resultHandler) throws TException; - - public void dropGroup(DropGroupReq req, AsyncMethodCallback resultHandler) throws TException; - - public void addZoneIntoGroup(AddZoneIntoGroupReq req, AsyncMethodCallback resultHandler) throws TException; - - public void dropZoneFromGroup(DropZoneFromGroupReq req, AsyncMethodCallback resultHandler) throws TException; - - public void getGroup(GetGroupReq req, AsyncMethodCallback resultHandler) throws TException; - - public void listGroups(ListGroupsReq req, AsyncMethodCallback resultHandler) throws TException; - public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler) throws TException; public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler) throws TException; @@ -3118,276 +3094,6 @@ public ListZonesResp recv_listZones() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "listZones failed: unknown result"); } - public ExecResp addGroup(AddGroupReq req) throws TException - { - ContextStack ctx = getContextStack("MetaService.addGroup", null); - this.setContextStack(ctx); - send_addGroup(req); - return recv_addGroup(); - } - - public void send_addGroup(AddGroupReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.addGroup", null); - oprot_.writeMessageBegin(new TMessage("addGroup", TMessageType.CALL, seqid_)); - addGroup_args args = new addGroup_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.addGroup", args); - return; - } - - public ExecResp recv_addGroup() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "MetaService.addGroup"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - addGroup_result result = new addGroup_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.addGroup", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "addGroup failed: unknown result"); - } - - public ExecResp dropGroup(DropGroupReq req) throws TException - { - ContextStack ctx = getContextStack("MetaService.dropGroup", null); - this.setContextStack(ctx); - send_dropGroup(req); - return recv_dropGroup(); - } - - public void send_dropGroup(DropGroupReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.dropGroup", null); - oprot_.writeMessageBegin(new TMessage("dropGroup", TMessageType.CALL, seqid_)); - dropGroup_args args = new dropGroup_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.dropGroup", args); - return; - } - - public ExecResp recv_dropGroup() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "MetaService.dropGroup"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - dropGroup_result result = new dropGroup_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.dropGroup", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "dropGroup failed: unknown result"); - } - - public ExecResp addZoneIntoGroup(AddZoneIntoGroupReq req) throws TException - { - ContextStack ctx = getContextStack("MetaService.addZoneIntoGroup", null); - this.setContextStack(ctx); - send_addZoneIntoGroup(req); - return recv_addZoneIntoGroup(); - } - - public void send_addZoneIntoGroup(AddZoneIntoGroupReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.addZoneIntoGroup", null); - oprot_.writeMessageBegin(new TMessage("addZoneIntoGroup", TMessageType.CALL, seqid_)); - addZoneIntoGroup_args args = new addZoneIntoGroup_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.addZoneIntoGroup", args); - return; - } - - public ExecResp recv_addZoneIntoGroup() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "MetaService.addZoneIntoGroup"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - addZoneIntoGroup_result result = new addZoneIntoGroup_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.addZoneIntoGroup", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "addZoneIntoGroup failed: unknown result"); - } - - public ExecResp dropZoneFromGroup(DropZoneFromGroupReq req) throws TException - { - ContextStack ctx = getContextStack("MetaService.dropZoneFromGroup", null); - this.setContextStack(ctx); - send_dropZoneFromGroup(req); - return recv_dropZoneFromGroup(); - } - - public void send_dropZoneFromGroup(DropZoneFromGroupReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.dropZoneFromGroup", null); - oprot_.writeMessageBegin(new TMessage("dropZoneFromGroup", TMessageType.CALL, seqid_)); - dropZoneFromGroup_args args = new dropZoneFromGroup_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.dropZoneFromGroup", args); - return; - } - - public ExecResp recv_dropZoneFromGroup() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "MetaService.dropZoneFromGroup"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - dropZoneFromGroup_result result = new dropZoneFromGroup_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.dropZoneFromGroup", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "dropZoneFromGroup failed: unknown result"); - } - - public GetGroupResp getGroup(GetGroupReq req) throws TException - { - ContextStack ctx = getContextStack("MetaService.getGroup", null); - this.setContextStack(ctx); - send_getGroup(req); - return recv_getGroup(); - } - - public void send_getGroup(GetGroupReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.getGroup", null); - oprot_.writeMessageBegin(new TMessage("getGroup", TMessageType.CALL, seqid_)); - getGroup_args args = new getGroup_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.getGroup", args); - return; - } - - public GetGroupResp recv_getGroup() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "MetaService.getGroup"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - getGroup_result result = new getGroup_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.getGroup", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "getGroup failed: unknown result"); - } - - public ListGroupsResp listGroups(ListGroupsReq req) throws TException - { - ContextStack ctx = getContextStack("MetaService.listGroups", null); - this.setContextStack(ctx); - send_listGroups(req); - return recv_listGroups(); - } - - public void send_listGroups(ListGroupsReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.listGroups", null); - oprot_.writeMessageBegin(new TMessage("listGroups", TMessageType.CALL, seqid_)); - listGroups_args args = new listGroups_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.listGroups", args); - return; - } - - public ListGroupsResp recv_listGroups() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "MetaService.listGroups"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - listGroups_result result = new listGroups_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.listGroups", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "listGroups failed: unknown result"); - } - public CreateBackupResp createBackup(CreateBackupReq req) throws TException { ContextStack ctx = getContextStack("MetaService.createBackup", null); @@ -4396,17 +4102,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void createSpace(CreateSpaceReq req, AsyncMethodCallback resultHandler416) throws TException { + public void createSpace(CreateSpaceReq req, AsyncMethodCallback resultHandler408) throws TException { checkReady(); - createSpace_call method_call = new createSpace_call(req, resultHandler416, this, ___protocolFactory, ___transport); + createSpace_call method_call = new createSpace_call(req, resultHandler408, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createSpace_call extends TAsyncMethodCall { private CreateSpaceReq req; - public createSpace_call(CreateSpaceReq req, AsyncMethodCallback resultHandler417, TAsyncClient client413, TProtocolFactory protocolFactory414, TNonblockingTransport transport415) throws TException { - super(client413, protocolFactory414, transport415, resultHandler417, false); + public createSpace_call(CreateSpaceReq req, AsyncMethodCallback resultHandler409, TAsyncClient client405, TProtocolFactory protocolFactory406, TNonblockingTransport transport407) throws TException { + super(client405, protocolFactory406, transport407, resultHandler409, false); this.req = req; } @@ -4428,17 +4134,17 @@ public ExecResp getResult() throws TException { } } - public void dropSpace(DropSpaceReq req, AsyncMethodCallback resultHandler421) throws TException { + public void dropSpace(DropSpaceReq req, AsyncMethodCallback resultHandler413) throws TException { checkReady(); - dropSpace_call method_call = new dropSpace_call(req, resultHandler421, this, ___protocolFactory, ___transport); + dropSpace_call method_call = new dropSpace_call(req, resultHandler413, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropSpace_call extends TAsyncMethodCall { private DropSpaceReq req; - public dropSpace_call(DropSpaceReq req, AsyncMethodCallback resultHandler422, TAsyncClient client418, TProtocolFactory protocolFactory419, TNonblockingTransport transport420) throws TException { - super(client418, protocolFactory419, transport420, resultHandler422, false); + public dropSpace_call(DropSpaceReq req, AsyncMethodCallback resultHandler414, TAsyncClient client410, TProtocolFactory protocolFactory411, TNonblockingTransport transport412) throws TException { + super(client410, protocolFactory411, transport412, resultHandler414, false); this.req = req; } @@ -4460,17 +4166,17 @@ public ExecResp getResult() throws TException { } } - public void getSpace(GetSpaceReq req, AsyncMethodCallback resultHandler426) throws TException { + public void getSpace(GetSpaceReq req, AsyncMethodCallback resultHandler418) throws TException { checkReady(); - getSpace_call method_call = new getSpace_call(req, resultHandler426, this, ___protocolFactory, ___transport); + getSpace_call method_call = new getSpace_call(req, resultHandler418, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getSpace_call extends TAsyncMethodCall { private GetSpaceReq req; - public getSpace_call(GetSpaceReq req, AsyncMethodCallback resultHandler427, TAsyncClient client423, TProtocolFactory protocolFactory424, TNonblockingTransport transport425) throws TException { - super(client423, protocolFactory424, transport425, resultHandler427, false); + public getSpace_call(GetSpaceReq req, AsyncMethodCallback resultHandler419, TAsyncClient client415, TProtocolFactory protocolFactory416, TNonblockingTransport transport417) throws TException { + super(client415, protocolFactory416, transport417, resultHandler419, false); this.req = req; } @@ -4492,17 +4198,17 @@ public GetSpaceResp getResult() throws TException { } } - public void listSpaces(ListSpacesReq req, AsyncMethodCallback resultHandler431) throws TException { + public void listSpaces(ListSpacesReq req, AsyncMethodCallback resultHandler423) throws TException { checkReady(); - listSpaces_call method_call = new listSpaces_call(req, resultHandler431, this, ___protocolFactory, ___transport); + listSpaces_call method_call = new listSpaces_call(req, resultHandler423, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listSpaces_call extends TAsyncMethodCall { private ListSpacesReq req; - public listSpaces_call(ListSpacesReq req, AsyncMethodCallback resultHandler432, TAsyncClient client428, TProtocolFactory protocolFactory429, TNonblockingTransport transport430) throws TException { - super(client428, protocolFactory429, transport430, resultHandler432, false); + public listSpaces_call(ListSpacesReq req, AsyncMethodCallback resultHandler424, TAsyncClient client420, TProtocolFactory protocolFactory421, TNonblockingTransport transport422) throws TException { + super(client420, protocolFactory421, transport422, resultHandler424, false); this.req = req; } @@ -4524,17 +4230,17 @@ public ListSpacesResp getResult() throws TException { } } - public void createSpaceAs(CreateSpaceAsReq req, AsyncMethodCallback resultHandler436) throws TException { + public void createSpaceAs(CreateSpaceAsReq req, AsyncMethodCallback resultHandler428) throws TException { checkReady(); - createSpaceAs_call method_call = new createSpaceAs_call(req, resultHandler436, this, ___protocolFactory, ___transport); + createSpaceAs_call method_call = new createSpaceAs_call(req, resultHandler428, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createSpaceAs_call extends TAsyncMethodCall { private CreateSpaceAsReq req; - public createSpaceAs_call(CreateSpaceAsReq req, AsyncMethodCallback resultHandler437, TAsyncClient client433, TProtocolFactory protocolFactory434, TNonblockingTransport transport435) throws TException { - super(client433, protocolFactory434, transport435, resultHandler437, false); + public createSpaceAs_call(CreateSpaceAsReq req, AsyncMethodCallback resultHandler429, TAsyncClient client425, TProtocolFactory protocolFactory426, TNonblockingTransport transport427) throws TException { + super(client425, protocolFactory426, transport427, resultHandler429, false); this.req = req; } @@ -4556,17 +4262,17 @@ public ExecResp getResult() throws TException { } } - public void createTag(CreateTagReq req, AsyncMethodCallback resultHandler441) throws TException { + public void createTag(CreateTagReq req, AsyncMethodCallback resultHandler433) throws TException { checkReady(); - createTag_call method_call = new createTag_call(req, resultHandler441, this, ___protocolFactory, ___transport); + createTag_call method_call = new createTag_call(req, resultHandler433, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createTag_call extends TAsyncMethodCall { private CreateTagReq req; - public createTag_call(CreateTagReq req, AsyncMethodCallback resultHandler442, TAsyncClient client438, TProtocolFactory protocolFactory439, TNonblockingTransport transport440) throws TException { - super(client438, protocolFactory439, transport440, resultHandler442, false); + public createTag_call(CreateTagReq req, AsyncMethodCallback resultHandler434, TAsyncClient client430, TProtocolFactory protocolFactory431, TNonblockingTransport transport432) throws TException { + super(client430, protocolFactory431, transport432, resultHandler434, false); this.req = req; } @@ -4588,17 +4294,17 @@ public ExecResp getResult() throws TException { } } - public void alterTag(AlterTagReq req, AsyncMethodCallback resultHandler446) throws TException { + public void alterTag(AlterTagReq req, AsyncMethodCallback resultHandler438) throws TException { checkReady(); - alterTag_call method_call = new alterTag_call(req, resultHandler446, this, ___protocolFactory, ___transport); + alterTag_call method_call = new alterTag_call(req, resultHandler438, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class alterTag_call extends TAsyncMethodCall { private AlterTagReq req; - public alterTag_call(AlterTagReq req, AsyncMethodCallback resultHandler447, TAsyncClient client443, TProtocolFactory protocolFactory444, TNonblockingTransport transport445) throws TException { - super(client443, protocolFactory444, transport445, resultHandler447, false); + public alterTag_call(AlterTagReq req, AsyncMethodCallback resultHandler439, TAsyncClient client435, TProtocolFactory protocolFactory436, TNonblockingTransport transport437) throws TException { + super(client435, protocolFactory436, transport437, resultHandler439, false); this.req = req; } @@ -4620,17 +4326,17 @@ public ExecResp getResult() throws TException { } } - public void dropTag(DropTagReq req, AsyncMethodCallback resultHandler451) throws TException { + public void dropTag(DropTagReq req, AsyncMethodCallback resultHandler443) throws TException { checkReady(); - dropTag_call method_call = new dropTag_call(req, resultHandler451, this, ___protocolFactory, ___transport); + dropTag_call method_call = new dropTag_call(req, resultHandler443, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropTag_call extends TAsyncMethodCall { private DropTagReq req; - public dropTag_call(DropTagReq req, AsyncMethodCallback resultHandler452, TAsyncClient client448, TProtocolFactory protocolFactory449, TNonblockingTransport transport450) throws TException { - super(client448, protocolFactory449, transport450, resultHandler452, false); + public dropTag_call(DropTagReq req, AsyncMethodCallback resultHandler444, TAsyncClient client440, TProtocolFactory protocolFactory441, TNonblockingTransport transport442) throws TException { + super(client440, protocolFactory441, transport442, resultHandler444, false); this.req = req; } @@ -4652,17 +4358,17 @@ public ExecResp getResult() throws TException { } } - public void getTag(GetTagReq req, AsyncMethodCallback resultHandler456) throws TException { + public void getTag(GetTagReq req, AsyncMethodCallback resultHandler448) throws TException { checkReady(); - getTag_call method_call = new getTag_call(req, resultHandler456, this, ___protocolFactory, ___transport); + getTag_call method_call = new getTag_call(req, resultHandler448, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getTag_call extends TAsyncMethodCall { private GetTagReq req; - public getTag_call(GetTagReq req, AsyncMethodCallback resultHandler457, TAsyncClient client453, TProtocolFactory protocolFactory454, TNonblockingTransport transport455) throws TException { - super(client453, protocolFactory454, transport455, resultHandler457, false); + public getTag_call(GetTagReq req, AsyncMethodCallback resultHandler449, TAsyncClient client445, TProtocolFactory protocolFactory446, TNonblockingTransport transport447) throws TException { + super(client445, protocolFactory446, transport447, resultHandler449, false); this.req = req; } @@ -4684,17 +4390,17 @@ public GetTagResp getResult() throws TException { } } - public void listTags(ListTagsReq req, AsyncMethodCallback resultHandler461) throws TException { + public void listTags(ListTagsReq req, AsyncMethodCallback resultHandler453) throws TException { checkReady(); - listTags_call method_call = new listTags_call(req, resultHandler461, this, ___protocolFactory, ___transport); + listTags_call method_call = new listTags_call(req, resultHandler453, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listTags_call extends TAsyncMethodCall { private ListTagsReq req; - public listTags_call(ListTagsReq req, AsyncMethodCallback resultHandler462, TAsyncClient client458, TProtocolFactory protocolFactory459, TNonblockingTransport transport460) throws TException { - super(client458, protocolFactory459, transport460, resultHandler462, false); + public listTags_call(ListTagsReq req, AsyncMethodCallback resultHandler454, TAsyncClient client450, TProtocolFactory protocolFactory451, TNonblockingTransport transport452) throws TException { + super(client450, protocolFactory451, transport452, resultHandler454, false); this.req = req; } @@ -4716,17 +4422,17 @@ public ListTagsResp getResult() throws TException { } } - public void createEdge(CreateEdgeReq req, AsyncMethodCallback resultHandler466) throws TException { + public void createEdge(CreateEdgeReq req, AsyncMethodCallback resultHandler458) throws TException { checkReady(); - createEdge_call method_call = new createEdge_call(req, resultHandler466, this, ___protocolFactory, ___transport); + createEdge_call method_call = new createEdge_call(req, resultHandler458, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createEdge_call extends TAsyncMethodCall { private CreateEdgeReq req; - public createEdge_call(CreateEdgeReq req, AsyncMethodCallback resultHandler467, TAsyncClient client463, TProtocolFactory protocolFactory464, TNonblockingTransport transport465) throws TException { - super(client463, protocolFactory464, transport465, resultHandler467, false); + public createEdge_call(CreateEdgeReq req, AsyncMethodCallback resultHandler459, TAsyncClient client455, TProtocolFactory protocolFactory456, TNonblockingTransport transport457) throws TException { + super(client455, protocolFactory456, transport457, resultHandler459, false); this.req = req; } @@ -4748,17 +4454,17 @@ public ExecResp getResult() throws TException { } } - public void alterEdge(AlterEdgeReq req, AsyncMethodCallback resultHandler471) throws TException { + public void alterEdge(AlterEdgeReq req, AsyncMethodCallback resultHandler463) throws TException { checkReady(); - alterEdge_call method_call = new alterEdge_call(req, resultHandler471, this, ___protocolFactory, ___transport); + alterEdge_call method_call = new alterEdge_call(req, resultHandler463, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class alterEdge_call extends TAsyncMethodCall { private AlterEdgeReq req; - public alterEdge_call(AlterEdgeReq req, AsyncMethodCallback resultHandler472, TAsyncClient client468, TProtocolFactory protocolFactory469, TNonblockingTransport transport470) throws TException { - super(client468, protocolFactory469, transport470, resultHandler472, false); + public alterEdge_call(AlterEdgeReq req, AsyncMethodCallback resultHandler464, TAsyncClient client460, TProtocolFactory protocolFactory461, TNonblockingTransport transport462) throws TException { + super(client460, protocolFactory461, transport462, resultHandler464, false); this.req = req; } @@ -4780,17 +4486,17 @@ public ExecResp getResult() throws TException { } } - public void dropEdge(DropEdgeReq req, AsyncMethodCallback resultHandler476) throws TException { + public void dropEdge(DropEdgeReq req, AsyncMethodCallback resultHandler468) throws TException { checkReady(); - dropEdge_call method_call = new dropEdge_call(req, resultHandler476, this, ___protocolFactory, ___transport); + dropEdge_call method_call = new dropEdge_call(req, resultHandler468, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropEdge_call extends TAsyncMethodCall { private DropEdgeReq req; - public dropEdge_call(DropEdgeReq req, AsyncMethodCallback resultHandler477, TAsyncClient client473, TProtocolFactory protocolFactory474, TNonblockingTransport transport475) throws TException { - super(client473, protocolFactory474, transport475, resultHandler477, false); + public dropEdge_call(DropEdgeReq req, AsyncMethodCallback resultHandler469, TAsyncClient client465, TProtocolFactory protocolFactory466, TNonblockingTransport transport467) throws TException { + super(client465, protocolFactory466, transport467, resultHandler469, false); this.req = req; } @@ -4812,17 +4518,17 @@ public ExecResp getResult() throws TException { } } - public void getEdge(GetEdgeReq req, AsyncMethodCallback resultHandler481) throws TException { + public void getEdge(GetEdgeReq req, AsyncMethodCallback resultHandler473) throws TException { checkReady(); - getEdge_call method_call = new getEdge_call(req, resultHandler481, this, ___protocolFactory, ___transport); + getEdge_call method_call = new getEdge_call(req, resultHandler473, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getEdge_call extends TAsyncMethodCall { private GetEdgeReq req; - public getEdge_call(GetEdgeReq req, AsyncMethodCallback resultHandler482, TAsyncClient client478, TProtocolFactory protocolFactory479, TNonblockingTransport transport480) throws TException { - super(client478, protocolFactory479, transport480, resultHandler482, false); + public getEdge_call(GetEdgeReq req, AsyncMethodCallback resultHandler474, TAsyncClient client470, TProtocolFactory protocolFactory471, TNonblockingTransport transport472) throws TException { + super(client470, protocolFactory471, transport472, resultHandler474, false); this.req = req; } @@ -4844,17 +4550,17 @@ public GetEdgeResp getResult() throws TException { } } - public void listEdges(ListEdgesReq req, AsyncMethodCallback resultHandler486) throws TException { + public void listEdges(ListEdgesReq req, AsyncMethodCallback resultHandler478) throws TException { checkReady(); - listEdges_call method_call = new listEdges_call(req, resultHandler486, this, ___protocolFactory, ___transport); + listEdges_call method_call = new listEdges_call(req, resultHandler478, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listEdges_call extends TAsyncMethodCall { private ListEdgesReq req; - public listEdges_call(ListEdgesReq req, AsyncMethodCallback resultHandler487, TAsyncClient client483, TProtocolFactory protocolFactory484, TNonblockingTransport transport485) throws TException { - super(client483, protocolFactory484, transport485, resultHandler487, false); + public listEdges_call(ListEdgesReq req, AsyncMethodCallback resultHandler479, TAsyncClient client475, TProtocolFactory protocolFactory476, TNonblockingTransport transport477) throws TException { + super(client475, protocolFactory476, transport477, resultHandler479, false); this.req = req; } @@ -4876,17 +4582,17 @@ public ListEdgesResp getResult() throws TException { } } - public void listHosts(ListHostsReq req, AsyncMethodCallback resultHandler491) throws TException { + public void listHosts(ListHostsReq req, AsyncMethodCallback resultHandler483) throws TException { checkReady(); - listHosts_call method_call = new listHosts_call(req, resultHandler491, this, ___protocolFactory, ___transport); + listHosts_call method_call = new listHosts_call(req, resultHandler483, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listHosts_call extends TAsyncMethodCall { private ListHostsReq req; - public listHosts_call(ListHostsReq req, AsyncMethodCallback resultHandler492, TAsyncClient client488, TProtocolFactory protocolFactory489, TNonblockingTransport transport490) throws TException { - super(client488, protocolFactory489, transport490, resultHandler492, false); + public listHosts_call(ListHostsReq req, AsyncMethodCallback resultHandler484, TAsyncClient client480, TProtocolFactory protocolFactory481, TNonblockingTransport transport482) throws TException { + super(client480, protocolFactory481, transport482, resultHandler484, false); this.req = req; } @@ -4908,17 +4614,17 @@ public ListHostsResp getResult() throws TException { } } - public void getPartsAlloc(GetPartsAllocReq req, AsyncMethodCallback resultHandler496) throws TException { + public void getPartsAlloc(GetPartsAllocReq req, AsyncMethodCallback resultHandler488) throws TException { checkReady(); - getPartsAlloc_call method_call = new getPartsAlloc_call(req, resultHandler496, this, ___protocolFactory, ___transport); + getPartsAlloc_call method_call = new getPartsAlloc_call(req, resultHandler488, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getPartsAlloc_call extends TAsyncMethodCall { private GetPartsAllocReq req; - public getPartsAlloc_call(GetPartsAllocReq req, AsyncMethodCallback resultHandler497, TAsyncClient client493, TProtocolFactory protocolFactory494, TNonblockingTransport transport495) throws TException { - super(client493, protocolFactory494, transport495, resultHandler497, false); + public getPartsAlloc_call(GetPartsAllocReq req, AsyncMethodCallback resultHandler489, TAsyncClient client485, TProtocolFactory protocolFactory486, TNonblockingTransport transport487) throws TException { + super(client485, protocolFactory486, transport487, resultHandler489, false); this.req = req; } @@ -4940,17 +4646,17 @@ public GetPartsAllocResp getResult() throws TException { } } - public void listParts(ListPartsReq req, AsyncMethodCallback resultHandler501) throws TException { + public void listParts(ListPartsReq req, AsyncMethodCallback resultHandler493) throws TException { checkReady(); - listParts_call method_call = new listParts_call(req, resultHandler501, this, ___protocolFactory, ___transport); + listParts_call method_call = new listParts_call(req, resultHandler493, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listParts_call extends TAsyncMethodCall { private ListPartsReq req; - public listParts_call(ListPartsReq req, AsyncMethodCallback resultHandler502, TAsyncClient client498, TProtocolFactory protocolFactory499, TNonblockingTransport transport500) throws TException { - super(client498, protocolFactory499, transport500, resultHandler502, false); + public listParts_call(ListPartsReq req, AsyncMethodCallback resultHandler494, TAsyncClient client490, TProtocolFactory protocolFactory491, TNonblockingTransport transport492) throws TException { + super(client490, protocolFactory491, transport492, resultHandler494, false); this.req = req; } @@ -4972,17 +4678,17 @@ public ListPartsResp getResult() throws TException { } } - public void multiPut(MultiPutReq req, AsyncMethodCallback resultHandler506) throws TException { + public void multiPut(MultiPutReq req, AsyncMethodCallback resultHandler498) throws TException { checkReady(); - multiPut_call method_call = new multiPut_call(req, resultHandler506, this, ___protocolFactory, ___transport); + multiPut_call method_call = new multiPut_call(req, resultHandler498, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class multiPut_call extends TAsyncMethodCall { private MultiPutReq req; - public multiPut_call(MultiPutReq req, AsyncMethodCallback resultHandler507, TAsyncClient client503, TProtocolFactory protocolFactory504, TNonblockingTransport transport505) throws TException { - super(client503, protocolFactory504, transport505, resultHandler507, false); + public multiPut_call(MultiPutReq req, AsyncMethodCallback resultHandler499, TAsyncClient client495, TProtocolFactory protocolFactory496, TNonblockingTransport transport497) throws TException { + super(client495, protocolFactory496, transport497, resultHandler499, false); this.req = req; } @@ -5004,17 +4710,17 @@ public ExecResp getResult() throws TException { } } - public void get(GetReq req, AsyncMethodCallback resultHandler511) throws TException { + public void get(GetReq req, AsyncMethodCallback resultHandler503) throws TException { checkReady(); - get_call method_call = new get_call(req, resultHandler511, this, ___protocolFactory, ___transport); + get_call method_call = new get_call(req, resultHandler503, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class get_call extends TAsyncMethodCall { private GetReq req; - public get_call(GetReq req, AsyncMethodCallback resultHandler512, TAsyncClient client508, TProtocolFactory protocolFactory509, TNonblockingTransport transport510) throws TException { - super(client508, protocolFactory509, transport510, resultHandler512, false); + public get_call(GetReq req, AsyncMethodCallback resultHandler504, TAsyncClient client500, TProtocolFactory protocolFactory501, TNonblockingTransport transport502) throws TException { + super(client500, protocolFactory501, transport502, resultHandler504, false); this.req = req; } @@ -5036,17 +4742,17 @@ public GetResp getResult() throws TException { } } - public void multiGet(MultiGetReq req, AsyncMethodCallback resultHandler516) throws TException { + public void multiGet(MultiGetReq req, AsyncMethodCallback resultHandler508) throws TException { checkReady(); - multiGet_call method_call = new multiGet_call(req, resultHandler516, this, ___protocolFactory, ___transport); + multiGet_call method_call = new multiGet_call(req, resultHandler508, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class multiGet_call extends TAsyncMethodCall { private MultiGetReq req; - public multiGet_call(MultiGetReq req, AsyncMethodCallback resultHandler517, TAsyncClient client513, TProtocolFactory protocolFactory514, TNonblockingTransport transport515) throws TException { - super(client513, protocolFactory514, transport515, resultHandler517, false); + public multiGet_call(MultiGetReq req, AsyncMethodCallback resultHandler509, TAsyncClient client505, TProtocolFactory protocolFactory506, TNonblockingTransport transport507) throws TException { + super(client505, protocolFactory506, transport507, resultHandler509, false); this.req = req; } @@ -5068,17 +4774,17 @@ public MultiGetResp getResult() throws TException { } } - public void remove(RemoveReq req, AsyncMethodCallback resultHandler521) throws TException { + public void remove(RemoveReq req, AsyncMethodCallback resultHandler513) throws TException { checkReady(); - remove_call method_call = new remove_call(req, resultHandler521, this, ___protocolFactory, ___transport); + remove_call method_call = new remove_call(req, resultHandler513, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class remove_call extends TAsyncMethodCall { private RemoveReq req; - public remove_call(RemoveReq req, AsyncMethodCallback resultHandler522, TAsyncClient client518, TProtocolFactory protocolFactory519, TNonblockingTransport transport520) throws TException { - super(client518, protocolFactory519, transport520, resultHandler522, false); + public remove_call(RemoveReq req, AsyncMethodCallback resultHandler514, TAsyncClient client510, TProtocolFactory protocolFactory511, TNonblockingTransport transport512) throws TException { + super(client510, protocolFactory511, transport512, resultHandler514, false); this.req = req; } @@ -5100,17 +4806,17 @@ public ExecResp getResult() throws TException { } } - public void removeRange(RemoveRangeReq req, AsyncMethodCallback resultHandler526) throws TException { + public void removeRange(RemoveRangeReq req, AsyncMethodCallback resultHandler518) throws TException { checkReady(); - removeRange_call method_call = new removeRange_call(req, resultHandler526, this, ___protocolFactory, ___transport); + removeRange_call method_call = new removeRange_call(req, resultHandler518, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeRange_call extends TAsyncMethodCall { private RemoveRangeReq req; - public removeRange_call(RemoveRangeReq req, AsyncMethodCallback resultHandler527, TAsyncClient client523, TProtocolFactory protocolFactory524, TNonblockingTransport transport525) throws TException { - super(client523, protocolFactory524, transport525, resultHandler527, false); + public removeRange_call(RemoveRangeReq req, AsyncMethodCallback resultHandler519, TAsyncClient client515, TProtocolFactory protocolFactory516, TNonblockingTransport transport517) throws TException { + super(client515, protocolFactory516, transport517, resultHandler519, false); this.req = req; } @@ -5132,17 +4838,17 @@ public ExecResp getResult() throws TException { } } - public void scan(ScanReq req, AsyncMethodCallback resultHandler531) throws TException { + public void scan(ScanReq req, AsyncMethodCallback resultHandler523) throws TException { checkReady(); - scan_call method_call = new scan_call(req, resultHandler531, this, ___protocolFactory, ___transport); + scan_call method_call = new scan_call(req, resultHandler523, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class scan_call extends TAsyncMethodCall { private ScanReq req; - public scan_call(ScanReq req, AsyncMethodCallback resultHandler532, TAsyncClient client528, TProtocolFactory protocolFactory529, TNonblockingTransport transport530) throws TException { - super(client528, protocolFactory529, transport530, resultHandler532, false); + public scan_call(ScanReq req, AsyncMethodCallback resultHandler524, TAsyncClient client520, TProtocolFactory protocolFactory521, TNonblockingTransport transport522) throws TException { + super(client520, protocolFactory521, transport522, resultHandler524, false); this.req = req; } @@ -5164,17 +4870,17 @@ public ScanResp getResult() throws TException { } } - public void createTagIndex(CreateTagIndexReq req, AsyncMethodCallback resultHandler536) throws TException { + public void createTagIndex(CreateTagIndexReq req, AsyncMethodCallback resultHandler528) throws TException { checkReady(); - createTagIndex_call method_call = new createTagIndex_call(req, resultHandler536, this, ___protocolFactory, ___transport); + createTagIndex_call method_call = new createTagIndex_call(req, resultHandler528, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createTagIndex_call extends TAsyncMethodCall { private CreateTagIndexReq req; - public createTagIndex_call(CreateTagIndexReq req, AsyncMethodCallback resultHandler537, TAsyncClient client533, TProtocolFactory protocolFactory534, TNonblockingTransport transport535) throws TException { - super(client533, protocolFactory534, transport535, resultHandler537, false); + public createTagIndex_call(CreateTagIndexReq req, AsyncMethodCallback resultHandler529, TAsyncClient client525, TProtocolFactory protocolFactory526, TNonblockingTransport transport527) throws TException { + super(client525, protocolFactory526, transport527, resultHandler529, false); this.req = req; } @@ -5196,17 +4902,17 @@ public ExecResp getResult() throws TException { } } - public void dropTagIndex(DropTagIndexReq req, AsyncMethodCallback resultHandler541) throws TException { + public void dropTagIndex(DropTagIndexReq req, AsyncMethodCallback resultHandler533) throws TException { checkReady(); - dropTagIndex_call method_call = new dropTagIndex_call(req, resultHandler541, this, ___protocolFactory, ___transport); + dropTagIndex_call method_call = new dropTagIndex_call(req, resultHandler533, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropTagIndex_call extends TAsyncMethodCall { private DropTagIndexReq req; - public dropTagIndex_call(DropTagIndexReq req, AsyncMethodCallback resultHandler542, TAsyncClient client538, TProtocolFactory protocolFactory539, TNonblockingTransport transport540) throws TException { - super(client538, protocolFactory539, transport540, resultHandler542, false); + public dropTagIndex_call(DropTagIndexReq req, AsyncMethodCallback resultHandler534, TAsyncClient client530, TProtocolFactory protocolFactory531, TNonblockingTransport transport532) throws TException { + super(client530, protocolFactory531, transport532, resultHandler534, false); this.req = req; } @@ -5228,17 +4934,17 @@ public ExecResp getResult() throws TException { } } - public void getTagIndex(GetTagIndexReq req, AsyncMethodCallback resultHandler546) throws TException { + public void getTagIndex(GetTagIndexReq req, AsyncMethodCallback resultHandler538) throws TException { checkReady(); - getTagIndex_call method_call = new getTagIndex_call(req, resultHandler546, this, ___protocolFactory, ___transport); + getTagIndex_call method_call = new getTagIndex_call(req, resultHandler538, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getTagIndex_call extends TAsyncMethodCall { private GetTagIndexReq req; - public getTagIndex_call(GetTagIndexReq req, AsyncMethodCallback resultHandler547, TAsyncClient client543, TProtocolFactory protocolFactory544, TNonblockingTransport transport545) throws TException { - super(client543, protocolFactory544, transport545, resultHandler547, false); + public getTagIndex_call(GetTagIndexReq req, AsyncMethodCallback resultHandler539, TAsyncClient client535, TProtocolFactory protocolFactory536, TNonblockingTransport transport537) throws TException { + super(client535, protocolFactory536, transport537, resultHandler539, false); this.req = req; } @@ -5260,17 +4966,17 @@ public GetTagIndexResp getResult() throws TException { } } - public void listTagIndexes(ListTagIndexesReq req, AsyncMethodCallback resultHandler551) throws TException { + public void listTagIndexes(ListTagIndexesReq req, AsyncMethodCallback resultHandler543) throws TException { checkReady(); - listTagIndexes_call method_call = new listTagIndexes_call(req, resultHandler551, this, ___protocolFactory, ___transport); + listTagIndexes_call method_call = new listTagIndexes_call(req, resultHandler543, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listTagIndexes_call extends TAsyncMethodCall { private ListTagIndexesReq req; - public listTagIndexes_call(ListTagIndexesReq req, AsyncMethodCallback resultHandler552, TAsyncClient client548, TProtocolFactory protocolFactory549, TNonblockingTransport transport550) throws TException { - super(client548, protocolFactory549, transport550, resultHandler552, false); + public listTagIndexes_call(ListTagIndexesReq req, AsyncMethodCallback resultHandler544, TAsyncClient client540, TProtocolFactory protocolFactory541, TNonblockingTransport transport542) throws TException { + super(client540, protocolFactory541, transport542, resultHandler544, false); this.req = req; } @@ -5292,17 +4998,17 @@ public ListTagIndexesResp getResult() throws TException { } } - public void rebuildTagIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler556) throws TException { + public void rebuildTagIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler548) throws TException { checkReady(); - rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler556, this, ___protocolFactory, ___transport); + rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler548, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class rebuildTagIndex_call extends TAsyncMethodCall { private RebuildIndexReq req; - public rebuildTagIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler557, TAsyncClient client553, TProtocolFactory protocolFactory554, TNonblockingTransport transport555) throws TException { - super(client553, protocolFactory554, transport555, resultHandler557, false); + public rebuildTagIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler549, TAsyncClient client545, TProtocolFactory protocolFactory546, TNonblockingTransport transport547) throws TException { + super(client545, protocolFactory546, transport547, resultHandler549, false); this.req = req; } @@ -5324,17 +5030,17 @@ public ExecResp getResult() throws TException { } } - public void listTagIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler561) throws TException { + public void listTagIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler553) throws TException { checkReady(); - listTagIndexStatus_call method_call = new listTagIndexStatus_call(req, resultHandler561, this, ___protocolFactory, ___transport); + listTagIndexStatus_call method_call = new listTagIndexStatus_call(req, resultHandler553, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listTagIndexStatus_call extends TAsyncMethodCall { private ListIndexStatusReq req; - public listTagIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler562, TAsyncClient client558, TProtocolFactory protocolFactory559, TNonblockingTransport transport560) throws TException { - super(client558, protocolFactory559, transport560, resultHandler562, false); + public listTagIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler554, TAsyncClient client550, TProtocolFactory protocolFactory551, TNonblockingTransport transport552) throws TException { + super(client550, protocolFactory551, transport552, resultHandler554, false); this.req = req; } @@ -5356,17 +5062,17 @@ public ListIndexStatusResp getResult() throws TException { } } - public void createEdgeIndex(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler566) throws TException { + public void createEdgeIndex(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler558) throws TException { checkReady(); - createEdgeIndex_call method_call = new createEdgeIndex_call(req, resultHandler566, this, ___protocolFactory, ___transport); + createEdgeIndex_call method_call = new createEdgeIndex_call(req, resultHandler558, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createEdgeIndex_call extends TAsyncMethodCall { private CreateEdgeIndexReq req; - public createEdgeIndex_call(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler567, TAsyncClient client563, TProtocolFactory protocolFactory564, TNonblockingTransport transport565) throws TException { - super(client563, protocolFactory564, transport565, resultHandler567, false); + public createEdgeIndex_call(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler559, TAsyncClient client555, TProtocolFactory protocolFactory556, TNonblockingTransport transport557) throws TException { + super(client555, protocolFactory556, transport557, resultHandler559, false); this.req = req; } @@ -5388,17 +5094,17 @@ public ExecResp getResult() throws TException { } } - public void dropEdgeIndex(DropEdgeIndexReq req, AsyncMethodCallback resultHandler571) throws TException { + public void dropEdgeIndex(DropEdgeIndexReq req, AsyncMethodCallback resultHandler563) throws TException { checkReady(); - dropEdgeIndex_call method_call = new dropEdgeIndex_call(req, resultHandler571, this, ___protocolFactory, ___transport); + dropEdgeIndex_call method_call = new dropEdgeIndex_call(req, resultHandler563, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropEdgeIndex_call extends TAsyncMethodCall { private DropEdgeIndexReq req; - public dropEdgeIndex_call(DropEdgeIndexReq req, AsyncMethodCallback resultHandler572, TAsyncClient client568, TProtocolFactory protocolFactory569, TNonblockingTransport transport570) throws TException { - super(client568, protocolFactory569, transport570, resultHandler572, false); + public dropEdgeIndex_call(DropEdgeIndexReq req, AsyncMethodCallback resultHandler564, TAsyncClient client560, TProtocolFactory protocolFactory561, TNonblockingTransport transport562) throws TException { + super(client560, protocolFactory561, transport562, resultHandler564, false); this.req = req; } @@ -5420,17 +5126,17 @@ public ExecResp getResult() throws TException { } } - public void getEdgeIndex(GetEdgeIndexReq req, AsyncMethodCallback resultHandler576) throws TException { + public void getEdgeIndex(GetEdgeIndexReq req, AsyncMethodCallback resultHandler568) throws TException { checkReady(); - getEdgeIndex_call method_call = new getEdgeIndex_call(req, resultHandler576, this, ___protocolFactory, ___transport); + getEdgeIndex_call method_call = new getEdgeIndex_call(req, resultHandler568, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getEdgeIndex_call extends TAsyncMethodCall { private GetEdgeIndexReq req; - public getEdgeIndex_call(GetEdgeIndexReq req, AsyncMethodCallback resultHandler577, TAsyncClient client573, TProtocolFactory protocolFactory574, TNonblockingTransport transport575) throws TException { - super(client573, protocolFactory574, transport575, resultHandler577, false); + public getEdgeIndex_call(GetEdgeIndexReq req, AsyncMethodCallback resultHandler569, TAsyncClient client565, TProtocolFactory protocolFactory566, TNonblockingTransport transport567) throws TException { + super(client565, protocolFactory566, transport567, resultHandler569, false); this.req = req; } @@ -5452,17 +5158,17 @@ public GetEdgeIndexResp getResult() throws TException { } } - public void listEdgeIndexes(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler581) throws TException { + public void listEdgeIndexes(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler573) throws TException { checkReady(); - listEdgeIndexes_call method_call = new listEdgeIndexes_call(req, resultHandler581, this, ___protocolFactory, ___transport); + listEdgeIndexes_call method_call = new listEdgeIndexes_call(req, resultHandler573, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listEdgeIndexes_call extends TAsyncMethodCall { private ListEdgeIndexesReq req; - public listEdgeIndexes_call(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler582, TAsyncClient client578, TProtocolFactory protocolFactory579, TNonblockingTransport transport580) throws TException { - super(client578, protocolFactory579, transport580, resultHandler582, false); + public listEdgeIndexes_call(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler574, TAsyncClient client570, TProtocolFactory protocolFactory571, TNonblockingTransport transport572) throws TException { + super(client570, protocolFactory571, transport572, resultHandler574, false); this.req = req; } @@ -5484,17 +5190,17 @@ public ListEdgeIndexesResp getResult() throws TException { } } - public void rebuildEdgeIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler586) throws TException { + public void rebuildEdgeIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler578) throws TException { checkReady(); - rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler586, this, ___protocolFactory, ___transport); + rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler578, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class rebuildEdgeIndex_call extends TAsyncMethodCall { private RebuildIndexReq req; - public rebuildEdgeIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler587, TAsyncClient client583, TProtocolFactory protocolFactory584, TNonblockingTransport transport585) throws TException { - super(client583, protocolFactory584, transport585, resultHandler587, false); + public rebuildEdgeIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler579, TAsyncClient client575, TProtocolFactory protocolFactory576, TNonblockingTransport transport577) throws TException { + super(client575, protocolFactory576, transport577, resultHandler579, false); this.req = req; } @@ -5516,17 +5222,17 @@ public ExecResp getResult() throws TException { } } - public void listEdgeIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler591) throws TException { + public void listEdgeIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler583) throws TException { checkReady(); - listEdgeIndexStatus_call method_call = new listEdgeIndexStatus_call(req, resultHandler591, this, ___protocolFactory, ___transport); + listEdgeIndexStatus_call method_call = new listEdgeIndexStatus_call(req, resultHandler583, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listEdgeIndexStatus_call extends TAsyncMethodCall { private ListIndexStatusReq req; - public listEdgeIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler592, TAsyncClient client588, TProtocolFactory protocolFactory589, TNonblockingTransport transport590) throws TException { - super(client588, protocolFactory589, transport590, resultHandler592, false); + public listEdgeIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler584, TAsyncClient client580, TProtocolFactory protocolFactory581, TNonblockingTransport transport582) throws TException { + super(client580, protocolFactory581, transport582, resultHandler584, false); this.req = req; } @@ -5548,17 +5254,17 @@ public ListIndexStatusResp getResult() throws TException { } } - public void createUser(CreateUserReq req, AsyncMethodCallback resultHandler596) throws TException { + public void createUser(CreateUserReq req, AsyncMethodCallback resultHandler588) throws TException { checkReady(); - createUser_call method_call = new createUser_call(req, resultHandler596, this, ___protocolFactory, ___transport); + createUser_call method_call = new createUser_call(req, resultHandler588, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createUser_call extends TAsyncMethodCall { private CreateUserReq req; - public createUser_call(CreateUserReq req, AsyncMethodCallback resultHandler597, TAsyncClient client593, TProtocolFactory protocolFactory594, TNonblockingTransport transport595) throws TException { - super(client593, protocolFactory594, transport595, resultHandler597, false); + public createUser_call(CreateUserReq req, AsyncMethodCallback resultHandler589, TAsyncClient client585, TProtocolFactory protocolFactory586, TNonblockingTransport transport587) throws TException { + super(client585, protocolFactory586, transport587, resultHandler589, false); this.req = req; } @@ -5580,17 +5286,17 @@ public ExecResp getResult() throws TException { } } - public void dropUser(DropUserReq req, AsyncMethodCallback resultHandler601) throws TException { + public void dropUser(DropUserReq req, AsyncMethodCallback resultHandler593) throws TException { checkReady(); - dropUser_call method_call = new dropUser_call(req, resultHandler601, this, ___protocolFactory, ___transport); + dropUser_call method_call = new dropUser_call(req, resultHandler593, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropUser_call extends TAsyncMethodCall { private DropUserReq req; - public dropUser_call(DropUserReq req, AsyncMethodCallback resultHandler602, TAsyncClient client598, TProtocolFactory protocolFactory599, TNonblockingTransport transport600) throws TException { - super(client598, protocolFactory599, transport600, resultHandler602, false); + public dropUser_call(DropUserReq req, AsyncMethodCallback resultHandler594, TAsyncClient client590, TProtocolFactory protocolFactory591, TNonblockingTransport transport592) throws TException { + super(client590, protocolFactory591, transport592, resultHandler594, false); this.req = req; } @@ -5612,17 +5318,17 @@ public ExecResp getResult() throws TException { } } - public void alterUser(AlterUserReq req, AsyncMethodCallback resultHandler606) throws TException { + public void alterUser(AlterUserReq req, AsyncMethodCallback resultHandler598) throws TException { checkReady(); - alterUser_call method_call = new alterUser_call(req, resultHandler606, this, ___protocolFactory, ___transport); + alterUser_call method_call = new alterUser_call(req, resultHandler598, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class alterUser_call extends TAsyncMethodCall { private AlterUserReq req; - public alterUser_call(AlterUserReq req, AsyncMethodCallback resultHandler607, TAsyncClient client603, TProtocolFactory protocolFactory604, TNonblockingTransport transport605) throws TException { - super(client603, protocolFactory604, transport605, resultHandler607, false); + public alterUser_call(AlterUserReq req, AsyncMethodCallback resultHandler599, TAsyncClient client595, TProtocolFactory protocolFactory596, TNonblockingTransport transport597) throws TException { + super(client595, protocolFactory596, transport597, resultHandler599, false); this.req = req; } @@ -5644,17 +5350,17 @@ public ExecResp getResult() throws TException { } } - public void grantRole(GrantRoleReq req, AsyncMethodCallback resultHandler611) throws TException { + public void grantRole(GrantRoleReq req, AsyncMethodCallback resultHandler603) throws TException { checkReady(); - grantRole_call method_call = new grantRole_call(req, resultHandler611, this, ___protocolFactory, ___transport); + grantRole_call method_call = new grantRole_call(req, resultHandler603, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class grantRole_call extends TAsyncMethodCall { private GrantRoleReq req; - public grantRole_call(GrantRoleReq req, AsyncMethodCallback resultHandler612, TAsyncClient client608, TProtocolFactory protocolFactory609, TNonblockingTransport transport610) throws TException { - super(client608, protocolFactory609, transport610, resultHandler612, false); + public grantRole_call(GrantRoleReq req, AsyncMethodCallback resultHandler604, TAsyncClient client600, TProtocolFactory protocolFactory601, TNonblockingTransport transport602) throws TException { + super(client600, protocolFactory601, transport602, resultHandler604, false); this.req = req; } @@ -5676,17 +5382,17 @@ public ExecResp getResult() throws TException { } } - public void revokeRole(RevokeRoleReq req, AsyncMethodCallback resultHandler616) throws TException { + public void revokeRole(RevokeRoleReq req, AsyncMethodCallback resultHandler608) throws TException { checkReady(); - revokeRole_call method_call = new revokeRole_call(req, resultHandler616, this, ___protocolFactory, ___transport); + revokeRole_call method_call = new revokeRole_call(req, resultHandler608, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revokeRole_call extends TAsyncMethodCall { private RevokeRoleReq req; - public revokeRole_call(RevokeRoleReq req, AsyncMethodCallback resultHandler617, TAsyncClient client613, TProtocolFactory protocolFactory614, TNonblockingTransport transport615) throws TException { - super(client613, protocolFactory614, transport615, resultHandler617, false); + public revokeRole_call(RevokeRoleReq req, AsyncMethodCallback resultHandler609, TAsyncClient client605, TProtocolFactory protocolFactory606, TNonblockingTransport transport607) throws TException { + super(client605, protocolFactory606, transport607, resultHandler609, false); this.req = req; } @@ -5708,17 +5414,17 @@ public ExecResp getResult() throws TException { } } - public void listUsers(ListUsersReq req, AsyncMethodCallback resultHandler621) throws TException { + public void listUsers(ListUsersReq req, AsyncMethodCallback resultHandler613) throws TException { checkReady(); - listUsers_call method_call = new listUsers_call(req, resultHandler621, this, ___protocolFactory, ___transport); + listUsers_call method_call = new listUsers_call(req, resultHandler613, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listUsers_call extends TAsyncMethodCall { private ListUsersReq req; - public listUsers_call(ListUsersReq req, AsyncMethodCallback resultHandler622, TAsyncClient client618, TProtocolFactory protocolFactory619, TNonblockingTransport transport620) throws TException { - super(client618, protocolFactory619, transport620, resultHandler622, false); + public listUsers_call(ListUsersReq req, AsyncMethodCallback resultHandler614, TAsyncClient client610, TProtocolFactory protocolFactory611, TNonblockingTransport transport612) throws TException { + super(client610, protocolFactory611, transport612, resultHandler614, false); this.req = req; } @@ -5740,17 +5446,17 @@ public ListUsersResp getResult() throws TException { } } - public void listRoles(ListRolesReq req, AsyncMethodCallback resultHandler626) throws TException { + public void listRoles(ListRolesReq req, AsyncMethodCallback resultHandler618) throws TException { checkReady(); - listRoles_call method_call = new listRoles_call(req, resultHandler626, this, ___protocolFactory, ___transport); + listRoles_call method_call = new listRoles_call(req, resultHandler618, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listRoles_call extends TAsyncMethodCall { private ListRolesReq req; - public listRoles_call(ListRolesReq req, AsyncMethodCallback resultHandler627, TAsyncClient client623, TProtocolFactory protocolFactory624, TNonblockingTransport transport625) throws TException { - super(client623, protocolFactory624, transport625, resultHandler627, false); + public listRoles_call(ListRolesReq req, AsyncMethodCallback resultHandler619, TAsyncClient client615, TProtocolFactory protocolFactory616, TNonblockingTransport transport617) throws TException { + super(client615, protocolFactory616, transport617, resultHandler619, false); this.req = req; } @@ -5772,17 +5478,17 @@ public ListRolesResp getResult() throws TException { } } - public void getUserRoles(GetUserRolesReq req, AsyncMethodCallback resultHandler631) throws TException { + public void getUserRoles(GetUserRolesReq req, AsyncMethodCallback resultHandler623) throws TException { checkReady(); - getUserRoles_call method_call = new getUserRoles_call(req, resultHandler631, this, ___protocolFactory, ___transport); + getUserRoles_call method_call = new getUserRoles_call(req, resultHandler623, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getUserRoles_call extends TAsyncMethodCall { private GetUserRolesReq req; - public getUserRoles_call(GetUserRolesReq req, AsyncMethodCallback resultHandler632, TAsyncClient client628, TProtocolFactory protocolFactory629, TNonblockingTransport transport630) throws TException { - super(client628, protocolFactory629, transport630, resultHandler632, false); + public getUserRoles_call(GetUserRolesReq req, AsyncMethodCallback resultHandler624, TAsyncClient client620, TProtocolFactory protocolFactory621, TNonblockingTransport transport622) throws TException { + super(client620, protocolFactory621, transport622, resultHandler624, false); this.req = req; } @@ -5804,17 +5510,17 @@ public ListRolesResp getResult() throws TException { } } - public void changePassword(ChangePasswordReq req, AsyncMethodCallback resultHandler636) throws TException { + public void changePassword(ChangePasswordReq req, AsyncMethodCallback resultHandler628) throws TException { checkReady(); - changePassword_call method_call = new changePassword_call(req, resultHandler636, this, ___protocolFactory, ___transport); + changePassword_call method_call = new changePassword_call(req, resultHandler628, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class changePassword_call extends TAsyncMethodCall { private ChangePasswordReq req; - public changePassword_call(ChangePasswordReq req, AsyncMethodCallback resultHandler637, TAsyncClient client633, TProtocolFactory protocolFactory634, TNonblockingTransport transport635) throws TException { - super(client633, protocolFactory634, transport635, resultHandler637, false); + public changePassword_call(ChangePasswordReq req, AsyncMethodCallback resultHandler629, TAsyncClient client625, TProtocolFactory protocolFactory626, TNonblockingTransport transport627) throws TException { + super(client625, protocolFactory626, transport627, resultHandler629, false); this.req = req; } @@ -5836,17 +5542,17 @@ public ExecResp getResult() throws TException { } } - public void heartBeat(HBReq req, AsyncMethodCallback resultHandler641) throws TException { + public void heartBeat(HBReq req, AsyncMethodCallback resultHandler633) throws TException { checkReady(); - heartBeat_call method_call = new heartBeat_call(req, resultHandler641, this, ___protocolFactory, ___transport); + heartBeat_call method_call = new heartBeat_call(req, resultHandler633, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class heartBeat_call extends TAsyncMethodCall { private HBReq req; - public heartBeat_call(HBReq req, AsyncMethodCallback resultHandler642, TAsyncClient client638, TProtocolFactory protocolFactory639, TNonblockingTransport transport640) throws TException { - super(client638, protocolFactory639, transport640, resultHandler642, false); + public heartBeat_call(HBReq req, AsyncMethodCallback resultHandler634, TAsyncClient client630, TProtocolFactory protocolFactory631, TNonblockingTransport transport632) throws TException { + super(client630, protocolFactory631, transport632, resultHandler634, false); this.req = req; } @@ -5868,17 +5574,17 @@ public HBResp getResult() throws TException { } } - public void regConfig(RegConfigReq req, AsyncMethodCallback resultHandler646) throws TException { + public void regConfig(RegConfigReq req, AsyncMethodCallback resultHandler638) throws TException { checkReady(); - regConfig_call method_call = new regConfig_call(req, resultHandler646, this, ___protocolFactory, ___transport); + regConfig_call method_call = new regConfig_call(req, resultHandler638, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class regConfig_call extends TAsyncMethodCall { private RegConfigReq req; - public regConfig_call(RegConfigReq req, AsyncMethodCallback resultHandler647, TAsyncClient client643, TProtocolFactory protocolFactory644, TNonblockingTransport transport645) throws TException { - super(client643, protocolFactory644, transport645, resultHandler647, false); + public regConfig_call(RegConfigReq req, AsyncMethodCallback resultHandler639, TAsyncClient client635, TProtocolFactory protocolFactory636, TNonblockingTransport transport637) throws TException { + super(client635, protocolFactory636, transport637, resultHandler639, false); this.req = req; } @@ -5900,17 +5606,17 @@ public ExecResp getResult() throws TException { } } - public void getConfig(GetConfigReq req, AsyncMethodCallback resultHandler651) throws TException { + public void getConfig(GetConfigReq req, AsyncMethodCallback resultHandler643) throws TException { checkReady(); - getConfig_call method_call = new getConfig_call(req, resultHandler651, this, ___protocolFactory, ___transport); + getConfig_call method_call = new getConfig_call(req, resultHandler643, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getConfig_call extends TAsyncMethodCall { private GetConfigReq req; - public getConfig_call(GetConfigReq req, AsyncMethodCallback resultHandler652, TAsyncClient client648, TProtocolFactory protocolFactory649, TNonblockingTransport transport650) throws TException { - super(client648, protocolFactory649, transport650, resultHandler652, false); + public getConfig_call(GetConfigReq req, AsyncMethodCallback resultHandler644, TAsyncClient client640, TProtocolFactory protocolFactory641, TNonblockingTransport transport642) throws TException { + super(client640, protocolFactory641, transport642, resultHandler644, false); this.req = req; } @@ -5932,17 +5638,17 @@ public GetConfigResp getResult() throws TException { } } - public void setConfig(SetConfigReq req, AsyncMethodCallback resultHandler656) throws TException { + public void setConfig(SetConfigReq req, AsyncMethodCallback resultHandler648) throws TException { checkReady(); - setConfig_call method_call = new setConfig_call(req, resultHandler656, this, ___protocolFactory, ___transport); + setConfig_call method_call = new setConfig_call(req, resultHandler648, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class setConfig_call extends TAsyncMethodCall { private SetConfigReq req; - public setConfig_call(SetConfigReq req, AsyncMethodCallback resultHandler657, TAsyncClient client653, TProtocolFactory protocolFactory654, TNonblockingTransport transport655) throws TException { - super(client653, protocolFactory654, transport655, resultHandler657, false); + public setConfig_call(SetConfigReq req, AsyncMethodCallback resultHandler649, TAsyncClient client645, TProtocolFactory protocolFactory646, TNonblockingTransport transport647) throws TException { + super(client645, protocolFactory646, transport647, resultHandler649, false); this.req = req; } @@ -5964,17 +5670,17 @@ public ExecResp getResult() throws TException { } } - public void listConfigs(ListConfigsReq req, AsyncMethodCallback resultHandler661) throws TException { + public void listConfigs(ListConfigsReq req, AsyncMethodCallback resultHandler653) throws TException { checkReady(); - listConfigs_call method_call = new listConfigs_call(req, resultHandler661, this, ___protocolFactory, ___transport); + listConfigs_call method_call = new listConfigs_call(req, resultHandler653, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listConfigs_call extends TAsyncMethodCall { private ListConfigsReq req; - public listConfigs_call(ListConfigsReq req, AsyncMethodCallback resultHandler662, TAsyncClient client658, TProtocolFactory protocolFactory659, TNonblockingTransport transport660) throws TException { - super(client658, protocolFactory659, transport660, resultHandler662, false); + public listConfigs_call(ListConfigsReq req, AsyncMethodCallback resultHandler654, TAsyncClient client650, TProtocolFactory protocolFactory651, TNonblockingTransport transport652) throws TException { + super(client650, protocolFactory651, transport652, resultHandler654, false); this.req = req; } @@ -5996,17 +5702,17 @@ public ListConfigsResp getResult() throws TException { } } - public void createSnapshot(CreateSnapshotReq req, AsyncMethodCallback resultHandler666) throws TException { + public void createSnapshot(CreateSnapshotReq req, AsyncMethodCallback resultHandler658) throws TException { checkReady(); - createSnapshot_call method_call = new createSnapshot_call(req, resultHandler666, this, ___protocolFactory, ___transport); + createSnapshot_call method_call = new createSnapshot_call(req, resultHandler658, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createSnapshot_call extends TAsyncMethodCall { private CreateSnapshotReq req; - public createSnapshot_call(CreateSnapshotReq req, AsyncMethodCallback resultHandler667, TAsyncClient client663, TProtocolFactory protocolFactory664, TNonblockingTransport transport665) throws TException { - super(client663, protocolFactory664, transport665, resultHandler667, false); + public createSnapshot_call(CreateSnapshotReq req, AsyncMethodCallback resultHandler659, TAsyncClient client655, TProtocolFactory protocolFactory656, TNonblockingTransport transport657) throws TException { + super(client655, protocolFactory656, transport657, resultHandler659, false); this.req = req; } @@ -6028,17 +5734,17 @@ public ExecResp getResult() throws TException { } } - public void dropSnapshot(DropSnapshotReq req, AsyncMethodCallback resultHandler671) throws TException { + public void dropSnapshot(DropSnapshotReq req, AsyncMethodCallback resultHandler663) throws TException { checkReady(); - dropSnapshot_call method_call = new dropSnapshot_call(req, resultHandler671, this, ___protocolFactory, ___transport); + dropSnapshot_call method_call = new dropSnapshot_call(req, resultHandler663, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropSnapshot_call extends TAsyncMethodCall { private DropSnapshotReq req; - public dropSnapshot_call(DropSnapshotReq req, AsyncMethodCallback resultHandler672, TAsyncClient client668, TProtocolFactory protocolFactory669, TNonblockingTransport transport670) throws TException { - super(client668, protocolFactory669, transport670, resultHandler672, false); + public dropSnapshot_call(DropSnapshotReq req, AsyncMethodCallback resultHandler664, TAsyncClient client660, TProtocolFactory protocolFactory661, TNonblockingTransport transport662) throws TException { + super(client660, protocolFactory661, transport662, resultHandler664, false); this.req = req; } @@ -6060,17 +5766,17 @@ public ExecResp getResult() throws TException { } } - public void listSnapshots(ListSnapshotsReq req, AsyncMethodCallback resultHandler676) throws TException { + public void listSnapshots(ListSnapshotsReq req, AsyncMethodCallback resultHandler668) throws TException { checkReady(); - listSnapshots_call method_call = new listSnapshots_call(req, resultHandler676, this, ___protocolFactory, ___transport); + listSnapshots_call method_call = new listSnapshots_call(req, resultHandler668, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listSnapshots_call extends TAsyncMethodCall { private ListSnapshotsReq req; - public listSnapshots_call(ListSnapshotsReq req, AsyncMethodCallback resultHandler677, TAsyncClient client673, TProtocolFactory protocolFactory674, TNonblockingTransport transport675) throws TException { - super(client673, protocolFactory674, transport675, resultHandler677, false); + public listSnapshots_call(ListSnapshotsReq req, AsyncMethodCallback resultHandler669, TAsyncClient client665, TProtocolFactory protocolFactory666, TNonblockingTransport transport667) throws TException { + super(client665, protocolFactory666, transport667, resultHandler669, false); this.req = req; } @@ -6092,17 +5798,17 @@ public ListSnapshotsResp getResult() throws TException { } } - public void runAdminJob(AdminJobReq req, AsyncMethodCallback resultHandler681) throws TException { + public void runAdminJob(AdminJobReq req, AsyncMethodCallback resultHandler673) throws TException { checkReady(); - runAdminJob_call method_call = new runAdminJob_call(req, resultHandler681, this, ___protocolFactory, ___transport); + runAdminJob_call method_call = new runAdminJob_call(req, resultHandler673, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class runAdminJob_call extends TAsyncMethodCall { private AdminJobReq req; - public runAdminJob_call(AdminJobReq req, AsyncMethodCallback resultHandler682, TAsyncClient client678, TProtocolFactory protocolFactory679, TNonblockingTransport transport680) throws TException { - super(client678, protocolFactory679, transport680, resultHandler682, false); + public runAdminJob_call(AdminJobReq req, AsyncMethodCallback resultHandler674, TAsyncClient client670, TProtocolFactory protocolFactory671, TNonblockingTransport transport672) throws TException { + super(client670, protocolFactory671, transport672, resultHandler674, false); this.req = req; } @@ -6124,17 +5830,17 @@ public AdminJobResp getResult() throws TException { } } - public void addZone(AddZoneReq req, AsyncMethodCallback resultHandler686) throws TException { + public void addZone(AddZoneReq req, AsyncMethodCallback resultHandler678) throws TException { checkReady(); - addZone_call method_call = new addZone_call(req, resultHandler686, this, ___protocolFactory, ___transport); + addZone_call method_call = new addZone_call(req, resultHandler678, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addZone_call extends TAsyncMethodCall { private AddZoneReq req; - public addZone_call(AddZoneReq req, AsyncMethodCallback resultHandler687, TAsyncClient client683, TProtocolFactory protocolFactory684, TNonblockingTransport transport685) throws TException { - super(client683, protocolFactory684, transport685, resultHandler687, false); + public addZone_call(AddZoneReq req, AsyncMethodCallback resultHandler679, TAsyncClient client675, TProtocolFactory protocolFactory676, TNonblockingTransport transport677) throws TException { + super(client675, protocolFactory676, transport677, resultHandler679, false); this.req = req; } @@ -6156,17 +5862,17 @@ public ExecResp getResult() throws TException { } } - public void dropZone(DropZoneReq req, AsyncMethodCallback resultHandler691) throws TException { + public void dropZone(DropZoneReq req, AsyncMethodCallback resultHandler683) throws TException { checkReady(); - dropZone_call method_call = new dropZone_call(req, resultHandler691, this, ___protocolFactory, ___transport); + dropZone_call method_call = new dropZone_call(req, resultHandler683, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropZone_call extends TAsyncMethodCall { private DropZoneReq req; - public dropZone_call(DropZoneReq req, AsyncMethodCallback resultHandler692, TAsyncClient client688, TProtocolFactory protocolFactory689, TNonblockingTransport transport690) throws TException { - super(client688, protocolFactory689, transport690, resultHandler692, false); + public dropZone_call(DropZoneReq req, AsyncMethodCallback resultHandler684, TAsyncClient client680, TProtocolFactory protocolFactory681, TNonblockingTransport transport682) throws TException { + super(client680, protocolFactory681, transport682, resultHandler684, false); this.req = req; } @@ -6188,17 +5894,17 @@ public ExecResp getResult() throws TException { } } - public void addHostIntoZone(AddHostIntoZoneReq req, AsyncMethodCallback resultHandler696) throws TException { + public void addHostIntoZone(AddHostIntoZoneReq req, AsyncMethodCallback resultHandler688) throws TException { checkReady(); - addHostIntoZone_call method_call = new addHostIntoZone_call(req, resultHandler696, this, ___protocolFactory, ___transport); + addHostIntoZone_call method_call = new addHostIntoZone_call(req, resultHandler688, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addHostIntoZone_call extends TAsyncMethodCall { private AddHostIntoZoneReq req; - public addHostIntoZone_call(AddHostIntoZoneReq req, AsyncMethodCallback resultHandler697, TAsyncClient client693, TProtocolFactory protocolFactory694, TNonblockingTransport transport695) throws TException { - super(client693, protocolFactory694, transport695, resultHandler697, false); + public addHostIntoZone_call(AddHostIntoZoneReq req, AsyncMethodCallback resultHandler689, TAsyncClient client685, TProtocolFactory protocolFactory686, TNonblockingTransport transport687) throws TException { + super(client685, protocolFactory686, transport687, resultHandler689, false); this.req = req; } @@ -6220,17 +5926,17 @@ public ExecResp getResult() throws TException { } } - public void dropHostFromZone(DropHostFromZoneReq req, AsyncMethodCallback resultHandler701) throws TException { + public void dropHostFromZone(DropHostFromZoneReq req, AsyncMethodCallback resultHandler693) throws TException { checkReady(); - dropHostFromZone_call method_call = new dropHostFromZone_call(req, resultHandler701, this, ___protocolFactory, ___transport); + dropHostFromZone_call method_call = new dropHostFromZone_call(req, resultHandler693, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropHostFromZone_call extends TAsyncMethodCall { private DropHostFromZoneReq req; - public dropHostFromZone_call(DropHostFromZoneReq req, AsyncMethodCallback resultHandler702, TAsyncClient client698, TProtocolFactory protocolFactory699, TNonblockingTransport transport700) throws TException { - super(client698, protocolFactory699, transport700, resultHandler702, false); + public dropHostFromZone_call(DropHostFromZoneReq req, AsyncMethodCallback resultHandler694, TAsyncClient client690, TProtocolFactory protocolFactory691, TNonblockingTransport transport692) throws TException { + super(client690, protocolFactory691, transport692, resultHandler694, false); this.req = req; } @@ -6252,17 +5958,17 @@ public ExecResp getResult() throws TException { } } - public void getZone(GetZoneReq req, AsyncMethodCallback resultHandler706) throws TException { + public void getZone(GetZoneReq req, AsyncMethodCallback resultHandler698) throws TException { checkReady(); - getZone_call method_call = new getZone_call(req, resultHandler706, this, ___protocolFactory, ___transport); + getZone_call method_call = new getZone_call(req, resultHandler698, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getZone_call extends TAsyncMethodCall { private GetZoneReq req; - public getZone_call(GetZoneReq req, AsyncMethodCallback resultHandler707, TAsyncClient client703, TProtocolFactory protocolFactory704, TNonblockingTransport transport705) throws TException { - super(client703, protocolFactory704, transport705, resultHandler707, false); + public getZone_call(GetZoneReq req, AsyncMethodCallback resultHandler699, TAsyncClient client695, TProtocolFactory protocolFactory696, TNonblockingTransport transport697) throws TException { + super(client695, protocolFactory696, transport697, resultHandler699, false); this.req = req; } @@ -6284,17 +5990,17 @@ public GetZoneResp getResult() throws TException { } } - public void listZones(ListZonesReq req, AsyncMethodCallback resultHandler711) throws TException { + public void listZones(ListZonesReq req, AsyncMethodCallback resultHandler703) throws TException { checkReady(); - listZones_call method_call = new listZones_call(req, resultHandler711, this, ___protocolFactory, ___transport); + listZones_call method_call = new listZones_call(req, resultHandler703, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listZones_call extends TAsyncMethodCall { private ListZonesReq req; - public listZones_call(ListZonesReq req, AsyncMethodCallback resultHandler712, TAsyncClient client708, TProtocolFactory protocolFactory709, TNonblockingTransport transport710) throws TException { - super(client708, protocolFactory709, transport710, resultHandler712, false); + public listZones_call(ListZonesReq req, AsyncMethodCallback resultHandler704, TAsyncClient client700, TProtocolFactory protocolFactory701, TNonblockingTransport transport702) throws TException { + super(client700, protocolFactory701, transport702, resultHandler704, false); this.req = req; } @@ -6316,209 +6022,17 @@ public ListZonesResp getResult() throws TException { } } - public void addGroup(AddGroupReq req, AsyncMethodCallback resultHandler716) throws TException { - checkReady(); - addGroup_call method_call = new addGroup_call(req, resultHandler716, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class addGroup_call extends TAsyncMethodCall { - private AddGroupReq req; - public addGroup_call(AddGroupReq req, AsyncMethodCallback resultHandler717, TAsyncClient client713, TProtocolFactory protocolFactory714, TNonblockingTransport transport715) throws TException { - super(client713, protocolFactory714, transport715, resultHandler717, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("addGroup", TMessageType.CALL, 0)); - addGroup_args args = new addGroup_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public ExecResp getResult() throws TException { - if (getState() != State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_addGroup(); - } - } - - public void dropGroup(DropGroupReq req, AsyncMethodCallback resultHandler721) throws TException { - checkReady(); - dropGroup_call method_call = new dropGroup_call(req, resultHandler721, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class dropGroup_call extends TAsyncMethodCall { - private DropGroupReq req; - public dropGroup_call(DropGroupReq req, AsyncMethodCallback resultHandler722, TAsyncClient client718, TProtocolFactory protocolFactory719, TNonblockingTransport transport720) throws TException { - super(client718, protocolFactory719, transport720, resultHandler722, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("dropGroup", TMessageType.CALL, 0)); - dropGroup_args args = new dropGroup_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public ExecResp getResult() throws TException { - if (getState() != State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_dropGroup(); - } - } - - public void addZoneIntoGroup(AddZoneIntoGroupReq req, AsyncMethodCallback resultHandler726) throws TException { - checkReady(); - addZoneIntoGroup_call method_call = new addZoneIntoGroup_call(req, resultHandler726, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class addZoneIntoGroup_call extends TAsyncMethodCall { - private AddZoneIntoGroupReq req; - public addZoneIntoGroup_call(AddZoneIntoGroupReq req, AsyncMethodCallback resultHandler727, TAsyncClient client723, TProtocolFactory protocolFactory724, TNonblockingTransport transport725) throws TException { - super(client723, protocolFactory724, transport725, resultHandler727, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("addZoneIntoGroup", TMessageType.CALL, 0)); - addZoneIntoGroup_args args = new addZoneIntoGroup_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public ExecResp getResult() throws TException { - if (getState() != State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_addZoneIntoGroup(); - } - } - - public void dropZoneFromGroup(DropZoneFromGroupReq req, AsyncMethodCallback resultHandler731) throws TException { - checkReady(); - dropZoneFromGroup_call method_call = new dropZoneFromGroup_call(req, resultHandler731, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class dropZoneFromGroup_call extends TAsyncMethodCall { - private DropZoneFromGroupReq req; - public dropZoneFromGroup_call(DropZoneFromGroupReq req, AsyncMethodCallback resultHandler732, TAsyncClient client728, TProtocolFactory protocolFactory729, TNonblockingTransport transport730) throws TException { - super(client728, protocolFactory729, transport730, resultHandler732, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("dropZoneFromGroup", TMessageType.CALL, 0)); - dropZoneFromGroup_args args = new dropZoneFromGroup_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public ExecResp getResult() throws TException { - if (getState() != State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_dropZoneFromGroup(); - } - } - - public void getGroup(GetGroupReq req, AsyncMethodCallback resultHandler736) throws TException { - checkReady(); - getGroup_call method_call = new getGroup_call(req, resultHandler736, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class getGroup_call extends TAsyncMethodCall { - private GetGroupReq req; - public getGroup_call(GetGroupReq req, AsyncMethodCallback resultHandler737, TAsyncClient client733, TProtocolFactory protocolFactory734, TNonblockingTransport transport735) throws TException { - super(client733, protocolFactory734, transport735, resultHandler737, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("getGroup", TMessageType.CALL, 0)); - getGroup_args args = new getGroup_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public GetGroupResp getResult() throws TException { - if (getState() != State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_getGroup(); - } - } - - public void listGroups(ListGroupsReq req, AsyncMethodCallback resultHandler741) throws TException { - checkReady(); - listGroups_call method_call = new listGroups_call(req, resultHandler741, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class listGroups_call extends TAsyncMethodCall { - private ListGroupsReq req; - public listGroups_call(ListGroupsReq req, AsyncMethodCallback resultHandler742, TAsyncClient client738, TProtocolFactory protocolFactory739, TNonblockingTransport transport740) throws TException { - super(client738, protocolFactory739, transport740, resultHandler742, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("listGroups", TMessageType.CALL, 0)); - listGroups_args args = new listGroups_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public ListGroupsResp getResult() throws TException { - if (getState() != State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_listGroups(); - } - } - - public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler746) throws TException { + public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler708) throws TException { checkReady(); - createBackup_call method_call = new createBackup_call(req, resultHandler746, this, ___protocolFactory, ___transport); + createBackup_call method_call = new createBackup_call(req, resultHandler708, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createBackup_call extends TAsyncMethodCall { private CreateBackupReq req; - public createBackup_call(CreateBackupReq req, AsyncMethodCallback resultHandler747, TAsyncClient client743, TProtocolFactory protocolFactory744, TNonblockingTransport transport745) throws TException { - super(client743, protocolFactory744, transport745, resultHandler747, false); + public createBackup_call(CreateBackupReq req, AsyncMethodCallback resultHandler709, TAsyncClient client705, TProtocolFactory protocolFactory706, TNonblockingTransport transport707) throws TException { + super(client705, protocolFactory706, transport707, resultHandler709, false); this.req = req; } @@ -6540,17 +6054,17 @@ public CreateBackupResp getResult() throws TException { } } - public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler751) throws TException { + public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler713) throws TException { checkReady(); - restoreMeta_call method_call = new restoreMeta_call(req, resultHandler751, this, ___protocolFactory, ___transport); + restoreMeta_call method_call = new restoreMeta_call(req, resultHandler713, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class restoreMeta_call extends TAsyncMethodCall { private RestoreMetaReq req; - public restoreMeta_call(RestoreMetaReq req, AsyncMethodCallback resultHandler752, TAsyncClient client748, TProtocolFactory protocolFactory749, TNonblockingTransport transport750) throws TException { - super(client748, protocolFactory749, transport750, resultHandler752, false); + public restoreMeta_call(RestoreMetaReq req, AsyncMethodCallback resultHandler714, TAsyncClient client710, TProtocolFactory protocolFactory711, TNonblockingTransport transport712) throws TException { + super(client710, protocolFactory711, transport712, resultHandler714, false); this.req = req; } @@ -6572,17 +6086,17 @@ public ExecResp getResult() throws TException { } } - public void addListener(AddListenerReq req, AsyncMethodCallback resultHandler756) throws TException { + public void addListener(AddListenerReq req, AsyncMethodCallback resultHandler718) throws TException { checkReady(); - addListener_call method_call = new addListener_call(req, resultHandler756, this, ___protocolFactory, ___transport); + addListener_call method_call = new addListener_call(req, resultHandler718, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addListener_call extends TAsyncMethodCall { private AddListenerReq req; - public addListener_call(AddListenerReq req, AsyncMethodCallback resultHandler757, TAsyncClient client753, TProtocolFactory protocolFactory754, TNonblockingTransport transport755) throws TException { - super(client753, protocolFactory754, transport755, resultHandler757, false); + public addListener_call(AddListenerReq req, AsyncMethodCallback resultHandler719, TAsyncClient client715, TProtocolFactory protocolFactory716, TNonblockingTransport transport717) throws TException { + super(client715, protocolFactory716, transport717, resultHandler719, false); this.req = req; } @@ -6604,17 +6118,17 @@ public ExecResp getResult() throws TException { } } - public void removeListener(RemoveListenerReq req, AsyncMethodCallback resultHandler761) throws TException { + public void removeListener(RemoveListenerReq req, AsyncMethodCallback resultHandler723) throws TException { checkReady(); - removeListener_call method_call = new removeListener_call(req, resultHandler761, this, ___protocolFactory, ___transport); + removeListener_call method_call = new removeListener_call(req, resultHandler723, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeListener_call extends TAsyncMethodCall { private RemoveListenerReq req; - public removeListener_call(RemoveListenerReq req, AsyncMethodCallback resultHandler762, TAsyncClient client758, TProtocolFactory protocolFactory759, TNonblockingTransport transport760) throws TException { - super(client758, protocolFactory759, transport760, resultHandler762, false); + public removeListener_call(RemoveListenerReq req, AsyncMethodCallback resultHandler724, TAsyncClient client720, TProtocolFactory protocolFactory721, TNonblockingTransport transport722) throws TException { + super(client720, protocolFactory721, transport722, resultHandler724, false); this.req = req; } @@ -6636,17 +6150,17 @@ public ExecResp getResult() throws TException { } } - public void listListener(ListListenerReq req, AsyncMethodCallback resultHandler766) throws TException { + public void listListener(ListListenerReq req, AsyncMethodCallback resultHandler728) throws TException { checkReady(); - listListener_call method_call = new listListener_call(req, resultHandler766, this, ___protocolFactory, ___transport); + listListener_call method_call = new listListener_call(req, resultHandler728, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listListener_call extends TAsyncMethodCall { private ListListenerReq req; - public listListener_call(ListListenerReq req, AsyncMethodCallback resultHandler767, TAsyncClient client763, TProtocolFactory protocolFactory764, TNonblockingTransport transport765) throws TException { - super(client763, protocolFactory764, transport765, resultHandler767, false); + public listListener_call(ListListenerReq req, AsyncMethodCallback resultHandler729, TAsyncClient client725, TProtocolFactory protocolFactory726, TNonblockingTransport transport727) throws TException { + super(client725, protocolFactory726, transport727, resultHandler729, false); this.req = req; } @@ -6668,17 +6182,17 @@ public ListListenerResp getResult() throws TException { } } - public void getStats(GetStatsReq req, AsyncMethodCallback resultHandler771) throws TException { + public void getStats(GetStatsReq req, AsyncMethodCallback resultHandler733) throws TException { checkReady(); - getStats_call method_call = new getStats_call(req, resultHandler771, this, ___protocolFactory, ___transport); + getStats_call method_call = new getStats_call(req, resultHandler733, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getStats_call extends TAsyncMethodCall { private GetStatsReq req; - public getStats_call(GetStatsReq req, AsyncMethodCallback resultHandler772, TAsyncClient client768, TProtocolFactory protocolFactory769, TNonblockingTransport transport770) throws TException { - super(client768, protocolFactory769, transport770, resultHandler772, false); + public getStats_call(GetStatsReq req, AsyncMethodCallback resultHandler734, TAsyncClient client730, TProtocolFactory protocolFactory731, TNonblockingTransport transport732) throws TException { + super(client730, protocolFactory731, transport732, resultHandler734, false); this.req = req; } @@ -6700,17 +6214,17 @@ public GetStatsResp getResult() throws TException { } } - public void signInFTService(SignInFTServiceReq req, AsyncMethodCallback resultHandler776) throws TException { + public void signInFTService(SignInFTServiceReq req, AsyncMethodCallback resultHandler738) throws TException { checkReady(); - signInFTService_call method_call = new signInFTService_call(req, resultHandler776, this, ___protocolFactory, ___transport); + signInFTService_call method_call = new signInFTService_call(req, resultHandler738, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class signInFTService_call extends TAsyncMethodCall { private SignInFTServiceReq req; - public signInFTService_call(SignInFTServiceReq req, AsyncMethodCallback resultHandler777, TAsyncClient client773, TProtocolFactory protocolFactory774, TNonblockingTransport transport775) throws TException { - super(client773, protocolFactory774, transport775, resultHandler777, false); + public signInFTService_call(SignInFTServiceReq req, AsyncMethodCallback resultHandler739, TAsyncClient client735, TProtocolFactory protocolFactory736, TNonblockingTransport transport737) throws TException { + super(client735, protocolFactory736, transport737, resultHandler739, false); this.req = req; } @@ -6732,17 +6246,17 @@ public ExecResp getResult() throws TException { } } - public void signOutFTService(SignOutFTServiceReq req, AsyncMethodCallback resultHandler781) throws TException { + public void signOutFTService(SignOutFTServiceReq req, AsyncMethodCallback resultHandler743) throws TException { checkReady(); - signOutFTService_call method_call = new signOutFTService_call(req, resultHandler781, this, ___protocolFactory, ___transport); + signOutFTService_call method_call = new signOutFTService_call(req, resultHandler743, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class signOutFTService_call extends TAsyncMethodCall { private SignOutFTServiceReq req; - public signOutFTService_call(SignOutFTServiceReq req, AsyncMethodCallback resultHandler782, TAsyncClient client778, TProtocolFactory protocolFactory779, TNonblockingTransport transport780) throws TException { - super(client778, protocolFactory779, transport780, resultHandler782, false); + public signOutFTService_call(SignOutFTServiceReq req, AsyncMethodCallback resultHandler744, TAsyncClient client740, TProtocolFactory protocolFactory741, TNonblockingTransport transport742) throws TException { + super(client740, protocolFactory741, transport742, resultHandler744, false); this.req = req; } @@ -6764,17 +6278,17 @@ public ExecResp getResult() throws TException { } } - public void listFTClients(ListFTClientsReq req, AsyncMethodCallback resultHandler786) throws TException { + public void listFTClients(ListFTClientsReq req, AsyncMethodCallback resultHandler748) throws TException { checkReady(); - listFTClients_call method_call = new listFTClients_call(req, resultHandler786, this, ___protocolFactory, ___transport); + listFTClients_call method_call = new listFTClients_call(req, resultHandler748, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listFTClients_call extends TAsyncMethodCall { private ListFTClientsReq req; - public listFTClients_call(ListFTClientsReq req, AsyncMethodCallback resultHandler787, TAsyncClient client783, TProtocolFactory protocolFactory784, TNonblockingTransport transport785) throws TException { - super(client783, protocolFactory784, transport785, resultHandler787, false); + public listFTClients_call(ListFTClientsReq req, AsyncMethodCallback resultHandler749, TAsyncClient client745, TProtocolFactory protocolFactory746, TNonblockingTransport transport747) throws TException { + super(client745, protocolFactory746, transport747, resultHandler749, false); this.req = req; } @@ -6796,17 +6310,17 @@ public ListFTClientsResp getResult() throws TException { } } - public void createFTIndex(CreateFTIndexReq req, AsyncMethodCallback resultHandler791) throws TException { + public void createFTIndex(CreateFTIndexReq req, AsyncMethodCallback resultHandler753) throws TException { checkReady(); - createFTIndex_call method_call = new createFTIndex_call(req, resultHandler791, this, ___protocolFactory, ___transport); + createFTIndex_call method_call = new createFTIndex_call(req, resultHandler753, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createFTIndex_call extends TAsyncMethodCall { private CreateFTIndexReq req; - public createFTIndex_call(CreateFTIndexReq req, AsyncMethodCallback resultHandler792, TAsyncClient client788, TProtocolFactory protocolFactory789, TNonblockingTransport transport790) throws TException { - super(client788, protocolFactory789, transport790, resultHandler792, false); + public createFTIndex_call(CreateFTIndexReq req, AsyncMethodCallback resultHandler754, TAsyncClient client750, TProtocolFactory protocolFactory751, TNonblockingTransport transport752) throws TException { + super(client750, protocolFactory751, transport752, resultHandler754, false); this.req = req; } @@ -6828,17 +6342,17 @@ public ExecResp getResult() throws TException { } } - public void dropFTIndex(DropFTIndexReq req, AsyncMethodCallback resultHandler796) throws TException { + public void dropFTIndex(DropFTIndexReq req, AsyncMethodCallback resultHandler758) throws TException { checkReady(); - dropFTIndex_call method_call = new dropFTIndex_call(req, resultHandler796, this, ___protocolFactory, ___transport); + dropFTIndex_call method_call = new dropFTIndex_call(req, resultHandler758, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropFTIndex_call extends TAsyncMethodCall { private DropFTIndexReq req; - public dropFTIndex_call(DropFTIndexReq req, AsyncMethodCallback resultHandler797, TAsyncClient client793, TProtocolFactory protocolFactory794, TNonblockingTransport transport795) throws TException { - super(client793, protocolFactory794, transport795, resultHandler797, false); + public dropFTIndex_call(DropFTIndexReq req, AsyncMethodCallback resultHandler759, TAsyncClient client755, TProtocolFactory protocolFactory756, TNonblockingTransport transport757) throws TException { + super(client755, protocolFactory756, transport757, resultHandler759, false); this.req = req; } @@ -6860,17 +6374,17 @@ public ExecResp getResult() throws TException { } } - public void listFTIndexes(ListFTIndexesReq req, AsyncMethodCallback resultHandler801) throws TException { + public void listFTIndexes(ListFTIndexesReq req, AsyncMethodCallback resultHandler763) throws TException { checkReady(); - listFTIndexes_call method_call = new listFTIndexes_call(req, resultHandler801, this, ___protocolFactory, ___transport); + listFTIndexes_call method_call = new listFTIndexes_call(req, resultHandler763, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listFTIndexes_call extends TAsyncMethodCall { private ListFTIndexesReq req; - public listFTIndexes_call(ListFTIndexesReq req, AsyncMethodCallback resultHandler802, TAsyncClient client798, TProtocolFactory protocolFactory799, TNonblockingTransport transport800) throws TException { - super(client798, protocolFactory799, transport800, resultHandler802, false); + public listFTIndexes_call(ListFTIndexesReq req, AsyncMethodCallback resultHandler764, TAsyncClient client760, TProtocolFactory protocolFactory761, TNonblockingTransport transport762) throws TException { + super(client760, protocolFactory761, transport762, resultHandler764, false); this.req = req; } @@ -6892,17 +6406,17 @@ public ListFTIndexesResp getResult() throws TException { } } - public void createSession(CreateSessionReq req, AsyncMethodCallback resultHandler806) throws TException { + public void createSession(CreateSessionReq req, AsyncMethodCallback resultHandler768) throws TException { checkReady(); - createSession_call method_call = new createSession_call(req, resultHandler806, this, ___protocolFactory, ___transport); + createSession_call method_call = new createSession_call(req, resultHandler768, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createSession_call extends TAsyncMethodCall { private CreateSessionReq req; - public createSession_call(CreateSessionReq req, AsyncMethodCallback resultHandler807, TAsyncClient client803, TProtocolFactory protocolFactory804, TNonblockingTransport transport805) throws TException { - super(client803, protocolFactory804, transport805, resultHandler807, false); + public createSession_call(CreateSessionReq req, AsyncMethodCallback resultHandler769, TAsyncClient client765, TProtocolFactory protocolFactory766, TNonblockingTransport transport767) throws TException { + super(client765, protocolFactory766, transport767, resultHandler769, false); this.req = req; } @@ -6924,17 +6438,17 @@ public CreateSessionResp getResult() throws TException { } } - public void updateSessions(UpdateSessionsReq req, AsyncMethodCallback resultHandler811) throws TException { + public void updateSessions(UpdateSessionsReq req, AsyncMethodCallback resultHandler773) throws TException { checkReady(); - updateSessions_call method_call = new updateSessions_call(req, resultHandler811, this, ___protocolFactory, ___transport); + updateSessions_call method_call = new updateSessions_call(req, resultHandler773, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class updateSessions_call extends TAsyncMethodCall { private UpdateSessionsReq req; - public updateSessions_call(UpdateSessionsReq req, AsyncMethodCallback resultHandler812, TAsyncClient client808, TProtocolFactory protocolFactory809, TNonblockingTransport transport810) throws TException { - super(client808, protocolFactory809, transport810, resultHandler812, false); + public updateSessions_call(UpdateSessionsReq req, AsyncMethodCallback resultHandler774, TAsyncClient client770, TProtocolFactory protocolFactory771, TNonblockingTransport transport772) throws TException { + super(client770, protocolFactory771, transport772, resultHandler774, false); this.req = req; } @@ -6956,17 +6470,17 @@ public UpdateSessionsResp getResult() throws TException { } } - public void listSessions(ListSessionsReq req, AsyncMethodCallback resultHandler816) throws TException { + public void listSessions(ListSessionsReq req, AsyncMethodCallback resultHandler778) throws TException { checkReady(); - listSessions_call method_call = new listSessions_call(req, resultHandler816, this, ___protocolFactory, ___transport); + listSessions_call method_call = new listSessions_call(req, resultHandler778, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listSessions_call extends TAsyncMethodCall { private ListSessionsReq req; - public listSessions_call(ListSessionsReq req, AsyncMethodCallback resultHandler817, TAsyncClient client813, TProtocolFactory protocolFactory814, TNonblockingTransport transport815) throws TException { - super(client813, protocolFactory814, transport815, resultHandler817, false); + public listSessions_call(ListSessionsReq req, AsyncMethodCallback resultHandler779, TAsyncClient client775, TProtocolFactory protocolFactory776, TNonblockingTransport transport777) throws TException { + super(client775, protocolFactory776, transport777, resultHandler779, false); this.req = req; } @@ -6988,17 +6502,17 @@ public ListSessionsResp getResult() throws TException { } } - public void getSession(GetSessionReq req, AsyncMethodCallback resultHandler821) throws TException { + public void getSession(GetSessionReq req, AsyncMethodCallback resultHandler783) throws TException { checkReady(); - getSession_call method_call = new getSession_call(req, resultHandler821, this, ___protocolFactory, ___transport); + getSession_call method_call = new getSession_call(req, resultHandler783, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getSession_call extends TAsyncMethodCall { private GetSessionReq req; - public getSession_call(GetSessionReq req, AsyncMethodCallback resultHandler822, TAsyncClient client818, TProtocolFactory protocolFactory819, TNonblockingTransport transport820) throws TException { - super(client818, protocolFactory819, transport820, resultHandler822, false); + public getSession_call(GetSessionReq req, AsyncMethodCallback resultHandler784, TAsyncClient client780, TProtocolFactory protocolFactory781, TNonblockingTransport transport782) throws TException { + super(client780, protocolFactory781, transport782, resultHandler784, false); this.req = req; } @@ -7020,17 +6534,17 @@ public GetSessionResp getResult() throws TException { } } - public void removeSession(RemoveSessionReq req, AsyncMethodCallback resultHandler826) throws TException { + public void removeSession(RemoveSessionReq req, AsyncMethodCallback resultHandler788) throws TException { checkReady(); - removeSession_call method_call = new removeSession_call(req, resultHandler826, this, ___protocolFactory, ___transport); + removeSession_call method_call = new removeSession_call(req, resultHandler788, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeSession_call extends TAsyncMethodCall { private RemoveSessionReq req; - public removeSession_call(RemoveSessionReq req, AsyncMethodCallback resultHandler827, TAsyncClient client823, TProtocolFactory protocolFactory824, TNonblockingTransport transport825) throws TException { - super(client823, protocolFactory824, transport825, resultHandler827, false); + public removeSession_call(RemoveSessionReq req, AsyncMethodCallback resultHandler789, TAsyncClient client785, TProtocolFactory protocolFactory786, TNonblockingTransport transport787) throws TException { + super(client785, protocolFactory786, transport787, resultHandler789, false); this.req = req; } @@ -7052,17 +6566,17 @@ public ExecResp getResult() throws TException { } } - public void killQuery(KillQueryReq req, AsyncMethodCallback resultHandler831) throws TException { + public void killQuery(KillQueryReq req, AsyncMethodCallback resultHandler793) throws TException { checkReady(); - killQuery_call method_call = new killQuery_call(req, resultHandler831, this, ___protocolFactory, ___transport); + killQuery_call method_call = new killQuery_call(req, resultHandler793, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class killQuery_call extends TAsyncMethodCall { private KillQueryReq req; - public killQuery_call(KillQueryReq req, AsyncMethodCallback resultHandler832, TAsyncClient client828, TProtocolFactory protocolFactory829, TNonblockingTransport transport830) throws TException { - super(client828, protocolFactory829, transport830, resultHandler832, false); + public killQuery_call(KillQueryReq req, AsyncMethodCallback resultHandler794, TAsyncClient client790, TProtocolFactory protocolFactory791, TNonblockingTransport transport792) throws TException { + super(client790, protocolFactory791, transport792, resultHandler794, false); this.req = req; } @@ -7084,17 +6598,17 @@ public ExecResp getResult() throws TException { } } - public void reportTaskFinish(ReportTaskReq req, AsyncMethodCallback resultHandler836) throws TException { + public void reportTaskFinish(ReportTaskReq req, AsyncMethodCallback resultHandler798) throws TException { checkReady(); - reportTaskFinish_call method_call = new reportTaskFinish_call(req, resultHandler836, this, ___protocolFactory, ___transport); + reportTaskFinish_call method_call = new reportTaskFinish_call(req, resultHandler798, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class reportTaskFinish_call extends TAsyncMethodCall { private ReportTaskReq req; - public reportTaskFinish_call(ReportTaskReq req, AsyncMethodCallback resultHandler837, TAsyncClient client833, TProtocolFactory protocolFactory834, TNonblockingTransport transport835) throws TException { - super(client833, protocolFactory834, transport835, resultHandler837, false); + public reportTaskFinish_call(ReportTaskReq req, AsyncMethodCallback resultHandler799, TAsyncClient client795, TProtocolFactory protocolFactory796, TNonblockingTransport transport797) throws TException { + super(client795, protocolFactory796, transport797, resultHandler799, false); this.req = req; } @@ -7116,17 +6630,17 @@ public ExecResp getResult() throws TException { } } - public void listCluster(ListClusterInfoReq req, AsyncMethodCallback resultHandler841) throws TException { + public void listCluster(ListClusterInfoReq req, AsyncMethodCallback resultHandler803) throws TException { checkReady(); - listCluster_call method_call = new listCluster_call(req, resultHandler841, this, ___protocolFactory, ___transport); + listCluster_call method_call = new listCluster_call(req, resultHandler803, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listCluster_call extends TAsyncMethodCall { private ListClusterInfoReq req; - public listCluster_call(ListClusterInfoReq req, AsyncMethodCallback resultHandler842, TAsyncClient client838, TProtocolFactory protocolFactory839, TNonblockingTransport transport840) throws TException { - super(client838, protocolFactory839, transport840, resultHandler842, false); + public listCluster_call(ListClusterInfoReq req, AsyncMethodCallback resultHandler804, TAsyncClient client800, TProtocolFactory protocolFactory801, TNonblockingTransport transport802) throws TException { + super(client800, protocolFactory801, transport802, resultHandler804, false); this.req = req; } @@ -7148,17 +6662,17 @@ public ListClusterInfoResp getResult() throws TException { } } - public void getMetaDirInfo(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler846) throws TException { + public void getMetaDirInfo(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler808) throws TException { checkReady(); - getMetaDirInfo_call method_call = new getMetaDirInfo_call(req, resultHandler846, this, ___protocolFactory, ___transport); + getMetaDirInfo_call method_call = new getMetaDirInfo_call(req, resultHandler808, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getMetaDirInfo_call extends TAsyncMethodCall { private GetMetaDirInfoReq req; - public getMetaDirInfo_call(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler847, TAsyncClient client843, TProtocolFactory protocolFactory844, TNonblockingTransport transport845) throws TException { - super(client843, protocolFactory844, transport845, resultHandler847, false); + public getMetaDirInfo_call(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler809, TAsyncClient client805, TProtocolFactory protocolFactory806, TNonblockingTransport transport807) throws TException { + super(client805, protocolFactory806, transport807, resultHandler809, false); this.req = req; } @@ -7180,17 +6694,17 @@ public GetMetaDirInfoResp getResult() throws TException { } } - public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler851) throws TException { + public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler813) throws TException { checkReady(); - verifyClientVersion_call method_call = new verifyClientVersion_call(req, resultHandler851, this, ___protocolFactory, ___transport); + verifyClientVersion_call method_call = new verifyClientVersion_call(req, resultHandler813, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class verifyClientVersion_call extends TAsyncMethodCall { private VerifyClientVersionReq req; - public verifyClientVersion_call(VerifyClientVersionReq req, AsyncMethodCallback resultHandler852, TAsyncClient client848, TProtocolFactory protocolFactory849, TNonblockingTransport transport850) throws TException { - super(client848, protocolFactory849, transport850, resultHandler852, false); + public verifyClientVersion_call(VerifyClientVersionReq req, AsyncMethodCallback resultHandler814, TAsyncClient client810, TProtocolFactory protocolFactory811, TNonblockingTransport transport812) throws TException { + super(client810, protocolFactory811, transport812, resultHandler814, false); this.req = req; } @@ -7280,12 +6794,6 @@ public Processor(Iface iface) processMap_.put("dropHostFromZone", new dropHostFromZone()); processMap_.put("getZone", new getZone()); processMap_.put("listZones", new listZones()); - processMap_.put("addGroup", new addGroup()); - processMap_.put("dropGroup", new dropGroup()); - processMap_.put("addZoneIntoGroup", new addZoneIntoGroup()); - processMap_.put("dropZoneFromGroup", new dropZoneFromGroup()); - processMap_.put("getGroup", new getGroup()); - processMap_.put("listGroups", new listGroups()); processMap_.put("createBackup", new createBackup()); processMap_.put("restoreMeta", new restoreMeta()); processMap_.put("addListener", new addListener()); @@ -8600,132 +8108,6 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } - private class addGroup implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("MetaService.addGroup", server_ctx); - addGroup_args args = new addGroup_args(); - event_handler_.preRead(handler_ctx, "MetaService.addGroup"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.addGroup", args); - addGroup_result result = new addGroup_result(); - result.success = iface_.addGroup(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.addGroup", result); - oprot.writeMessageBegin(new TMessage("addGroup", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.addGroup", result); - } - - } - - private class dropGroup implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("MetaService.dropGroup", server_ctx); - dropGroup_args args = new dropGroup_args(); - event_handler_.preRead(handler_ctx, "MetaService.dropGroup"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.dropGroup", args); - dropGroup_result result = new dropGroup_result(); - result.success = iface_.dropGroup(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.dropGroup", result); - oprot.writeMessageBegin(new TMessage("dropGroup", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.dropGroup", result); - } - - } - - private class addZoneIntoGroup implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("MetaService.addZoneIntoGroup", server_ctx); - addZoneIntoGroup_args args = new addZoneIntoGroup_args(); - event_handler_.preRead(handler_ctx, "MetaService.addZoneIntoGroup"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.addZoneIntoGroup", args); - addZoneIntoGroup_result result = new addZoneIntoGroup_result(); - result.success = iface_.addZoneIntoGroup(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.addZoneIntoGroup", result); - oprot.writeMessageBegin(new TMessage("addZoneIntoGroup", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.addZoneIntoGroup", result); - } - - } - - private class dropZoneFromGroup implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("MetaService.dropZoneFromGroup", server_ctx); - dropZoneFromGroup_args args = new dropZoneFromGroup_args(); - event_handler_.preRead(handler_ctx, "MetaService.dropZoneFromGroup"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.dropZoneFromGroup", args); - dropZoneFromGroup_result result = new dropZoneFromGroup_result(); - result.success = iface_.dropZoneFromGroup(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.dropZoneFromGroup", result); - oprot.writeMessageBegin(new TMessage("dropZoneFromGroup", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.dropZoneFromGroup", result); - } - - } - - private class getGroup implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("MetaService.getGroup", server_ctx); - getGroup_args args = new getGroup_args(); - event_handler_.preRead(handler_ctx, "MetaService.getGroup"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.getGroup", args); - getGroup_result result = new getGroup_result(); - result.success = iface_.getGroup(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.getGroup", result); - oprot.writeMessageBegin(new TMessage("getGroup", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.getGroup", result); - } - - } - - private class listGroups implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("MetaService.listGroups", server_ctx); - listGroups_args args = new listGroups_args(); - event_handler_.preRead(handler_ctx, "MetaService.listGroups"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.listGroups", args); - listGroups_result result = new listGroups_result(); - result.success = iface_.listGroups(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.listGroups", result); - oprot.writeMessageBegin(new TMessage("listGroups", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.listGroups", result); - } - - } - private class createBackup implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -10930,2621 +10312,11 @@ public void validate() throws TException { } - public static class createSpaceAs_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createSpaceAs_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public CreateSpaceAsReq req; - public static final int REQ = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateSpaceAsReq.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(createSpaceAs_args.class, metaDataMap); - } - - public createSpaceAs_args() { - } - - public createSpaceAs_args( - CreateSpaceAsReq req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public createSpaceAs_args(createSpaceAs_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public createSpaceAs_args deepCopy() { - return new createSpaceAs_args(this); - } - - public CreateSpaceAsReq getReq() { - return this.req; - } - - public createSpaceAs_args setReq(CreateSpaceAsReq req) { - this.req = req; - return this; - } - - public void unsetReq() { - this.req = null; - } - - // Returns true if field req is set (has been assigned a value) and false otherwise - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean __value) { - if (!__value) { - this.req = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case REQ: - if (__value == null) { - unsetReq(); - } else { - setReq((CreateSpaceAsReq)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case REQ: - return getReq(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof createSpaceAs_args)) - return false; - createSpaceAs_args that = (createSpaceAs_args)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {req}); - } - - @Override - public int compareTo(createSpaceAs_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case REQ: - if (__field.type == TType.STRUCT) { - this.req = new CreateSpaceAsReq(); - this.req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (this.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - this.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createSpaceAs_args"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("req"); - sb.append(space); - sb.append(":").append(space); - if (this.getReq() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class createSpaceAs_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createSpaceAs_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public ExecResp success; - public static final int SUCCESS = 0; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(createSpaceAs_result.class, metaDataMap); - } - - public createSpaceAs_result() { - } - - public createSpaceAs_result( - ExecResp success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public createSpaceAs_result(createSpaceAs_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public createSpaceAs_result deepCopy() { - return new createSpaceAs_result(this); - } - - public ExecResp getSuccess() { - return this.success; - } - - public createSpaceAs_result setSuccess(ExecResp success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - // Returns true if field success is set (has been assigned a value) and false otherwise - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean __value) { - if (!__value) { - this.success = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SUCCESS: - if (__value == null) { - unsetSuccess(); - } else { - setSuccess((ExecResp)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SUCCESS: - return getSuccess(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof createSpaceAs_result)) - return false; - createSpaceAs_result that = (createSpaceAs_result)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {success}); - } - - @Override - public int compareTo(createSpaceAs_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case SUCCESS: - if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); - this.success.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - oprot.writeStructBegin(STRUCT_DESC); - - if (this.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - this.success.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createSpaceAs_result"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("success"); - sb.append(space); - sb.append(":").append(space); - if (this.getSuccess() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class createTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createTag_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public CreateTagReq req; - public static final int REQ = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateTagReq.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(createTag_args.class, metaDataMap); - } - - public createTag_args() { - } - - public createTag_args( - CreateTagReq req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public createTag_args(createTag_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public createTag_args deepCopy() { - return new createTag_args(this); - } - - public CreateTagReq getReq() { - return this.req; - } - - public createTag_args setReq(CreateTagReq req) { - this.req = req; - return this; - } - - public void unsetReq() { - this.req = null; - } - - // Returns true if field req is set (has been assigned a value) and false otherwise - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean __value) { - if (!__value) { - this.req = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case REQ: - if (__value == null) { - unsetReq(); - } else { - setReq((CreateTagReq)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case REQ: - return getReq(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof createTag_args)) - return false; - createTag_args that = (createTag_args)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {req}); - } - - @Override - public int compareTo(createTag_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case REQ: - if (__field.type == TType.STRUCT) { - this.req = new CreateTagReq(); - this.req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (this.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - this.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createTag_args"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("req"); - sb.append(space); - sb.append(":").append(space); - if (this.getReq() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class createTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createTag_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public ExecResp success; - public static final int SUCCESS = 0; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(createTag_result.class, metaDataMap); - } - - public createTag_result() { - } - - public createTag_result( - ExecResp success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public createTag_result(createTag_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public createTag_result deepCopy() { - return new createTag_result(this); - } - - public ExecResp getSuccess() { - return this.success; - } - - public createTag_result setSuccess(ExecResp success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - // Returns true if field success is set (has been assigned a value) and false otherwise - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean __value) { - if (!__value) { - this.success = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SUCCESS: - if (__value == null) { - unsetSuccess(); - } else { - setSuccess((ExecResp)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SUCCESS: - return getSuccess(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof createTag_result)) - return false; - createTag_result that = (createTag_result)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {success}); - } - - @Override - public int compareTo(createTag_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case SUCCESS: - if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); - this.success.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - oprot.writeStructBegin(STRUCT_DESC); - - if (this.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - this.success.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createTag_result"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("success"); - sb.append(space); - sb.append(":").append(space); - if (this.getSuccess() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class alterTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("alterTag_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public AlterTagReq req; - public static final int REQ = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AlterTagReq.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(alterTag_args.class, metaDataMap); - } - - public alterTag_args() { - } - - public alterTag_args( - AlterTagReq req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public alterTag_args(alterTag_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public alterTag_args deepCopy() { - return new alterTag_args(this); - } - - public AlterTagReq getReq() { - return this.req; - } - - public alterTag_args setReq(AlterTagReq req) { - this.req = req; - return this; - } - - public void unsetReq() { - this.req = null; - } - - // Returns true if field req is set (has been assigned a value) and false otherwise - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean __value) { - if (!__value) { - this.req = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case REQ: - if (__value == null) { - unsetReq(); - } else { - setReq((AlterTagReq)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case REQ: - return getReq(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof alterTag_args)) - return false; - alterTag_args that = (alterTag_args)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {req}); - } - - @Override - public int compareTo(alterTag_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case REQ: - if (__field.type == TType.STRUCT) { - this.req = new AlterTagReq(); - this.req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (this.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - this.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("alterTag_args"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("req"); - sb.append(space); - sb.append(":").append(space); - if (this.getReq() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class alterTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("alterTag_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public ExecResp success; - public static final int SUCCESS = 0; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(alterTag_result.class, metaDataMap); - } - - public alterTag_result() { - } - - public alterTag_result( - ExecResp success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public alterTag_result(alterTag_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public alterTag_result deepCopy() { - return new alterTag_result(this); - } - - public ExecResp getSuccess() { - return this.success; - } - - public alterTag_result setSuccess(ExecResp success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - // Returns true if field success is set (has been assigned a value) and false otherwise - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean __value) { - if (!__value) { - this.success = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SUCCESS: - if (__value == null) { - unsetSuccess(); - } else { - setSuccess((ExecResp)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SUCCESS: - return getSuccess(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof alterTag_result)) - return false; - alterTag_result that = (alterTag_result)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {success}); - } - - @Override - public int compareTo(alterTag_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case SUCCESS: - if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); - this.success.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - oprot.writeStructBegin(STRUCT_DESC); - - if (this.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - this.success.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("alterTag_result"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("success"); - sb.append(space); - sb.append(":").append(space); - if (this.getSuccess() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class dropTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropTag_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public DropTagReq req; - public static final int REQ = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropTagReq.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(dropTag_args.class, metaDataMap); - } - - public dropTag_args() { - } - - public dropTag_args( - DropTagReq req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public dropTag_args(dropTag_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public dropTag_args deepCopy() { - return new dropTag_args(this); - } - - public DropTagReq getReq() { - return this.req; - } - - public dropTag_args setReq(DropTagReq req) { - this.req = req; - return this; - } - - public void unsetReq() { - this.req = null; - } - - // Returns true if field req is set (has been assigned a value) and false otherwise - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean __value) { - if (!__value) { - this.req = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case REQ: - if (__value == null) { - unsetReq(); - } else { - setReq((DropTagReq)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case REQ: - return getReq(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof dropTag_args)) - return false; - dropTag_args that = (dropTag_args)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {req}); - } - - @Override - public int compareTo(dropTag_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case REQ: - if (__field.type == TType.STRUCT) { - this.req = new DropTagReq(); - this.req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (this.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - this.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropTag_args"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("req"); - sb.append(space); - sb.append(":").append(space); - if (this.getReq() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class dropTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropTag_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public ExecResp success; - public static final int SUCCESS = 0; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(dropTag_result.class, metaDataMap); - } - - public dropTag_result() { - } - - public dropTag_result( - ExecResp success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public dropTag_result(dropTag_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public dropTag_result deepCopy() { - return new dropTag_result(this); - } - - public ExecResp getSuccess() { - return this.success; - } - - public dropTag_result setSuccess(ExecResp success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - // Returns true if field success is set (has been assigned a value) and false otherwise - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean __value) { - if (!__value) { - this.success = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SUCCESS: - if (__value == null) { - unsetSuccess(); - } else { - setSuccess((ExecResp)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SUCCESS: - return getSuccess(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof dropTag_result)) - return false; - dropTag_result that = (dropTag_result)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {success}); - } - - @Override - public int compareTo(dropTag_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case SUCCESS: - if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); - this.success.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - oprot.writeStructBegin(STRUCT_DESC); - - if (this.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - this.success.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropTag_result"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("success"); - sb.append(space); - sb.append(":").append(space); - if (this.getSuccess() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class getTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getTag_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public GetTagReq req; - public static final int REQ = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetTagReq.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(getTag_args.class, metaDataMap); - } - - public getTag_args() { - } - - public getTag_args( - GetTagReq req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public getTag_args(getTag_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public getTag_args deepCopy() { - return new getTag_args(this); - } - - public GetTagReq getReq() { - return this.req; - } - - public getTag_args setReq(GetTagReq req) { - this.req = req; - return this; - } - - public void unsetReq() { - this.req = null; - } - - // Returns true if field req is set (has been assigned a value) and false otherwise - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean __value) { - if (!__value) { - this.req = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case REQ: - if (__value == null) { - unsetReq(); - } else { - setReq((GetTagReq)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case REQ: - return getReq(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof getTag_args)) - return false; - getTag_args that = (getTag_args)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {req}); - } - - @Override - public int compareTo(getTag_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case REQ: - if (__field.type == TType.STRUCT) { - this.req = new GetTagReq(); - this.req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (this.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - this.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getTag_args"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("req"); - sb.append(space); - sb.append(":").append(space); - if (this.getReq() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class getTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getTag_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public GetTagResp success; - public static final int SUCCESS = 0; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetTagResp.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(getTag_result.class, metaDataMap); - } - - public getTag_result() { - } - - public getTag_result( - GetTagResp success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public getTag_result(getTag_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public getTag_result deepCopy() { - return new getTag_result(this); - } - - public GetTagResp getSuccess() { - return this.success; - } - - public getTag_result setSuccess(GetTagResp success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - // Returns true if field success is set (has been assigned a value) and false otherwise - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean __value) { - if (!__value) { - this.success = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SUCCESS: - if (__value == null) { - unsetSuccess(); - } else { - setSuccess((GetTagResp)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SUCCESS: - return getSuccess(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof getTag_result)) - return false; - getTag_result that = (getTag_result)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {success}); - } - - @Override - public int compareTo(getTag_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case SUCCESS: - if (__field.type == TType.STRUCT) { - this.success = new GetTagResp(); - this.success.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - oprot.writeStructBegin(STRUCT_DESC); - - if (this.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - this.success.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getTag_result"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("success"); - sb.append(space); - sb.append(":").append(space); - if (this.getSuccess() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class listTags_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listTags_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public ListTagsReq req; - public static final int REQ = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListTagsReq.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(listTags_args.class, metaDataMap); - } - - public listTags_args() { - } - - public listTags_args( - ListTagsReq req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public listTags_args(listTags_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public listTags_args deepCopy() { - return new listTags_args(this); - } - - public ListTagsReq getReq() { - return this.req; - } - - public listTags_args setReq(ListTagsReq req) { - this.req = req; - return this; - } - - public void unsetReq() { - this.req = null; - } - - // Returns true if field req is set (has been assigned a value) and false otherwise - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean __value) { - if (!__value) { - this.req = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case REQ: - if (__value == null) { - unsetReq(); - } else { - setReq((ListTagsReq)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case REQ: - return getReq(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof listTags_args)) - return false; - listTags_args that = (listTags_args)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {req}); - } - - @Override - public int compareTo(listTags_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case REQ: - if (__field.type == TType.STRUCT) { - this.req = new ListTagsReq(); - this.req.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (this.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - this.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listTags_args"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("req"); - sb.append(space); - sb.append(":").append(space); - if (this.getReq() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class listTags_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listTags_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public ListTagsResp success; - public static final int SUCCESS = 0; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListTagsResp.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(listTags_result.class, metaDataMap); - } - - public listTags_result() { - } - - public listTags_result( - ListTagsResp success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public listTags_result(listTags_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public listTags_result deepCopy() { - return new listTags_result(this); - } - - public ListTagsResp getSuccess() { - return this.success; - } - - public listTags_result setSuccess(ListTagsResp success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - // Returns true if field success is set (has been assigned a value) and false otherwise - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean __value) { - if (!__value) { - this.success = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SUCCESS: - if (__value == null) { - unsetSuccess(); - } else { - setSuccess((ListTagsResp)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SUCCESS: - return getSuccess(); - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - @Override - public boolean equals(Object _that) { - if (_that == null) - return false; - if (this == _that) - return true; - if (!(_that instanceof listTags_result)) - return false; - listTags_result that = (listTags_result)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {success}); - } - - @Override - public int compareTo(listTags_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - - public void read(TProtocol iprot) throws TException { - TField __field; - iprot.readStructBegin(metaDataMap); - while (true) - { - __field = iprot.readFieldBegin(); - if (__field.type == TType.STOP) { - break; - } - switch (__field.id) - { - case SUCCESS: - if (__field.type == TType.STRUCT) { - this.success = new ListTagsResp(); - this.success.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - default: - TProtocolUtil.skip(iprot, __field.type); - break; - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - - // check for required fields of primitive type, which can't be checked in the validate method - validate(); - } - - public void write(TProtocol oprot) throws TException { - oprot.writeStructBegin(STRUCT_DESC); - - if (this.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - this.success.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - @Override - public String toString() { - return toString(1, true); - } - - @Override - public String toString(int indent, boolean prettyPrint) { - String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; - String newLine = prettyPrint ? "\n" : ""; - String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listTags_result"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("success"); - sb.append(space); - sb.append(":").append(space); - if (this.getSuccess() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); - } - first = false; - sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); - sb.append(")"); - return sb.toString(); - } - - public void validate() throws TException { - // check for required fields - } - - } - - public static class createEdge_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createEdge_args"); + public static class createSpaceAs_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createSpaceAs_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateEdgeReq req; + public CreateSpaceAsReq req; public static final int REQ = 1; // isset id assignments @@ -13554,19 +10326,19 @@ public static class createEdge_args implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateEdgeReq.class))); + new StructMetaData(TType.STRUCT, CreateSpaceAsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSpaceAs_args.class, metaDataMap); } - public createEdge_args() { + public createSpaceAs_args() { } - public createEdge_args( - CreateEdgeReq req) { + public createSpaceAs_args( + CreateSpaceAsReq req) { this(); this.req = req; } @@ -13574,21 +10346,21 @@ public createEdge_args( /** * Performs a deep copy on other. */ - public createEdge_args(createEdge_args other) { + public createSpaceAs_args(createSpaceAs_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createEdge_args deepCopy() { - return new createEdge_args(this); + public createSpaceAs_args deepCopy() { + return new createSpaceAs_args(this); } - public CreateEdgeReq getReq() { + public CreateSpaceAsReq getReq() { return this.req; } - public createEdge_args setReq(CreateEdgeReq req) { + public createSpaceAs_args setReq(CreateSpaceAsReq req) { this.req = req; return this; } @@ -13614,7 +10386,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateEdgeReq)__value); + setReq((CreateSpaceAsReq)__value); } break; @@ -13639,9 +10411,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdge_args)) + if (!(_that instanceof createSpaceAs_args)) return false; - createEdge_args that = (createEdge_args)_that; + createSpaceAs_args that = (createSpaceAs_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -13654,7 +10426,7 @@ public int hashCode() { } @Override - public int compareTo(createEdge_args other) { + public int compareTo(createSpaceAs_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -13689,7 +10461,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateEdgeReq(); + this.req = new CreateSpaceAsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -13731,7 +10503,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createEdge_args"); + StringBuilder sb = new StringBuilder("createSpaceAs_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13758,8 +10530,8 @@ public void validate() throws TException { } - public static class createEdge_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createEdge_result"); + public static class createSpaceAs_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createSpaceAs_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -13777,13 +10549,13 @@ public static class createEdge_result implements TBase, java.io.Serializable, Cl } static { - FieldMetaData.addStructMetaDataMap(createEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSpaceAs_result.class, metaDataMap); } - public createEdge_result() { + public createSpaceAs_result() { } - public createEdge_result( + public createSpaceAs_result( ExecResp success) { this(); this.success = success; @@ -13792,21 +10564,21 @@ public createEdge_result( /** * Performs a deep copy on other. */ - public createEdge_result(createEdge_result other) { + public createSpaceAs_result(createSpaceAs_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createEdge_result deepCopy() { - return new createEdge_result(this); + public createSpaceAs_result deepCopy() { + return new createSpaceAs_result(this); } public ExecResp getSuccess() { return this.success; } - public createEdge_result setSuccess(ExecResp success) { + public createSpaceAs_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -13857,9 +10629,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdge_result)) + if (!(_that instanceof createSpaceAs_result)) return false; - createEdge_result that = (createEdge_result)_that; + createSpaceAs_result that = (createSpaceAs_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -13872,7 +10644,7 @@ public int hashCode() { } @Override - public int compareTo(createEdge_result other) { + public int compareTo(createSpaceAs_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -13948,7 +10720,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createEdge_result"); + StringBuilder sb = new StringBuilder("createSpaceAs_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13975,11 +10747,11 @@ public void validate() throws TException { } - public static class alterEdge_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("alterEdge_args"); + public static class createTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createTag_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AlterEdgeReq req; + public CreateTagReq req; public static final int REQ = 1; // isset id assignments @@ -13989,19 +10761,19 @@ public static class alterEdge_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AlterEdgeReq.class))); + new StructMetaData(TType.STRUCT, CreateTagReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createTag_args.class, metaDataMap); } - public alterEdge_args() { + public createTag_args() { } - public alterEdge_args( - AlterEdgeReq req) { + public createTag_args( + CreateTagReq req) { this(); this.req = req; } @@ -14009,21 +10781,21 @@ public alterEdge_args( /** * Performs a deep copy on other. */ - public alterEdge_args(alterEdge_args other) { + public createTag_args(createTag_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public alterEdge_args deepCopy() { - return new alterEdge_args(this); + public createTag_args deepCopy() { + return new createTag_args(this); } - public AlterEdgeReq getReq() { + public CreateTagReq getReq() { return this.req; } - public alterEdge_args setReq(AlterEdgeReq req) { + public createTag_args setReq(CreateTagReq req) { this.req = req; return this; } @@ -14049,7 +10821,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AlterEdgeReq)__value); + setReq((CreateTagReq)__value); } break; @@ -14074,9 +10846,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterEdge_args)) + if (!(_that instanceof createTag_args)) return false; - alterEdge_args that = (alterEdge_args)_that; + createTag_args that = (createTag_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -14089,7 +10861,7 @@ public int hashCode() { } @Override - public int compareTo(alterEdge_args other) { + public int compareTo(createTag_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14124,7 +10896,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AlterEdgeReq(); + this.req = new CreateTagReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -14166,7 +10938,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("alterEdge_args"); + StringBuilder sb = new StringBuilder("createTag_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14193,8 +10965,8 @@ public void validate() throws TException { } - public static class alterEdge_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("alterEdge_result"); + public static class createTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createTag_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -14212,13 +10984,13 @@ public static class alterEdge_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(alterEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createTag_result.class, metaDataMap); } - public alterEdge_result() { + public createTag_result() { } - public alterEdge_result( + public createTag_result( ExecResp success) { this(); this.success = success; @@ -14227,21 +10999,21 @@ public alterEdge_result( /** * Performs a deep copy on other. */ - public alterEdge_result(alterEdge_result other) { + public createTag_result(createTag_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public alterEdge_result deepCopy() { - return new alterEdge_result(this); + public createTag_result deepCopy() { + return new createTag_result(this); } public ExecResp getSuccess() { return this.success; } - public alterEdge_result setSuccess(ExecResp success) { + public createTag_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -14292,9 +11064,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterEdge_result)) + if (!(_that instanceof createTag_result)) return false; - alterEdge_result that = (alterEdge_result)_that; + createTag_result that = (createTag_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -14307,7 +11079,7 @@ public int hashCode() { } @Override - public int compareTo(alterEdge_result other) { + public int compareTo(createTag_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14383,7 +11155,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("alterEdge_result"); + StringBuilder sb = new StringBuilder("createTag_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14410,11 +11182,11 @@ public void validate() throws TException { } - public static class dropEdge_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropEdge_args"); + public static class alterTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterTag_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropEdgeReq req; + public AlterTagReq req; public static final int REQ = 1; // isset id assignments @@ -14424,19 +11196,19 @@ public static class dropEdge_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropEdgeReq.class))); + new StructMetaData(TType.STRUCT, AlterTagReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterTag_args.class, metaDataMap); } - public dropEdge_args() { + public alterTag_args() { } - public dropEdge_args( - DropEdgeReq req) { + public alterTag_args( + AlterTagReq req) { this(); this.req = req; } @@ -14444,21 +11216,21 @@ public dropEdge_args( /** * Performs a deep copy on other. */ - public dropEdge_args(dropEdge_args other) { + public alterTag_args(alterTag_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropEdge_args deepCopy() { - return new dropEdge_args(this); + public alterTag_args deepCopy() { + return new alterTag_args(this); } - public DropEdgeReq getReq() { + public AlterTagReq getReq() { return this.req; } - public dropEdge_args setReq(DropEdgeReq req) { + public alterTag_args setReq(AlterTagReq req) { this.req = req; return this; } @@ -14484,7 +11256,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropEdgeReq)__value); + setReq((AlterTagReq)__value); } break; @@ -14509,9 +11281,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdge_args)) + if (!(_that instanceof alterTag_args)) return false; - dropEdge_args that = (dropEdge_args)_that; + alterTag_args that = (alterTag_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -14524,7 +11296,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdge_args other) { + public int compareTo(alterTag_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14559,7 +11331,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropEdgeReq(); + this.req = new AlterTagReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -14601,7 +11373,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropEdge_args"); + StringBuilder sb = new StringBuilder("alterTag_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14628,8 +11400,8 @@ public void validate() throws TException { } - public static class dropEdge_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropEdge_result"); + public static class alterTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterTag_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -14647,13 +11419,13 @@ public static class dropEdge_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(dropEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterTag_result.class, metaDataMap); } - public dropEdge_result() { + public alterTag_result() { } - public dropEdge_result( + public alterTag_result( ExecResp success) { this(); this.success = success; @@ -14662,21 +11434,21 @@ public dropEdge_result( /** * Performs a deep copy on other. */ - public dropEdge_result(dropEdge_result other) { + public alterTag_result(alterTag_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropEdge_result deepCopy() { - return new dropEdge_result(this); + public alterTag_result deepCopy() { + return new alterTag_result(this); } public ExecResp getSuccess() { return this.success; } - public dropEdge_result setSuccess(ExecResp success) { + public alterTag_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -14727,9 +11499,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdge_result)) + if (!(_that instanceof alterTag_result)) return false; - dropEdge_result that = (dropEdge_result)_that; + alterTag_result that = (alterTag_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -14742,7 +11514,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdge_result other) { + public int compareTo(alterTag_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14818,7 +11590,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropEdge_result"); + StringBuilder sb = new StringBuilder("alterTag_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14845,11 +11617,11 @@ public void validate() throws TException { } - public static class getEdge_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getEdge_args"); + public static class dropTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropTag_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetEdgeReq req; + public DropTagReq req; public static final int REQ = 1; // isset id assignments @@ -14859,19 +11631,19 @@ public static class getEdge_args implements TBase, java.io.Serializable, Cloneab static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetEdgeReq.class))); + new StructMetaData(TType.STRUCT, DropTagReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropTag_args.class, metaDataMap); } - public getEdge_args() { + public dropTag_args() { } - public getEdge_args( - GetEdgeReq req) { + public dropTag_args( + DropTagReq req) { this(); this.req = req; } @@ -14879,21 +11651,21 @@ public getEdge_args( /** * Performs a deep copy on other. */ - public getEdge_args(getEdge_args other) { + public dropTag_args(dropTag_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getEdge_args deepCopy() { - return new getEdge_args(this); + public dropTag_args deepCopy() { + return new dropTag_args(this); } - public GetEdgeReq getReq() { + public DropTagReq getReq() { return this.req; } - public getEdge_args setReq(GetEdgeReq req) { + public dropTag_args setReq(DropTagReq req) { this.req = req; return this; } @@ -14919,7 +11691,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetEdgeReq)__value); + setReq((DropTagReq)__value); } break; @@ -14944,9 +11716,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdge_args)) + if (!(_that instanceof dropTag_args)) return false; - getEdge_args that = (getEdge_args)_that; + dropTag_args that = (dropTag_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -14959,7 +11731,7 @@ public int hashCode() { } @Override - public int compareTo(getEdge_args other) { + public int compareTo(dropTag_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14994,7 +11766,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetEdgeReq(); + this.req = new DropTagReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15036,7 +11808,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getEdge_args"); + StringBuilder sb = new StringBuilder("dropTag_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15063,11 +11835,11 @@ public void validate() throws TException { } - public static class getEdge_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getEdge_result"); + public static class dropTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropTag_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetEdgeResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -15077,19 +11849,19 @@ public static class getEdge_result implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetEdgeResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropTag_result.class, metaDataMap); } - public getEdge_result() { + public dropTag_result() { } - public getEdge_result( - GetEdgeResp success) { + public dropTag_result( + ExecResp success) { this(); this.success = success; } @@ -15097,21 +11869,21 @@ public getEdge_result( /** * Performs a deep copy on other. */ - public getEdge_result(getEdge_result other) { + public dropTag_result(dropTag_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getEdge_result deepCopy() { - return new getEdge_result(this); + public dropTag_result deepCopy() { + return new dropTag_result(this); } - public GetEdgeResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getEdge_result setSuccess(GetEdgeResp success) { + public dropTag_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -15137,7 +11909,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetEdgeResp)__value); + setSuccess((ExecResp)__value); } break; @@ -15162,9 +11934,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdge_result)) + if (!(_that instanceof dropTag_result)) return false; - getEdge_result that = (getEdge_result)_that; + dropTag_result that = (dropTag_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -15177,7 +11949,7 @@ public int hashCode() { } @Override - public int compareTo(getEdge_result other) { + public int compareTo(dropTag_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15212,7 +11984,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetEdgeResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15253,7 +12025,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getEdge_result"); + StringBuilder sb = new StringBuilder("dropTag_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15280,11 +12052,11 @@ public void validate() throws TException { } - public static class listEdges_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listEdges_args"); + public static class getTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getTag_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListEdgesReq req; + public GetTagReq req; public static final int REQ = 1; // isset id assignments @@ -15294,19 +12066,19 @@ public static class listEdges_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListEdgesReq.class))); + new StructMetaData(TType.STRUCT, GetTagReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdges_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getTag_args.class, metaDataMap); } - public listEdges_args() { + public getTag_args() { } - public listEdges_args( - ListEdgesReq req) { + public getTag_args( + GetTagReq req) { this(); this.req = req; } @@ -15314,21 +12086,21 @@ public listEdges_args( /** * Performs a deep copy on other. */ - public listEdges_args(listEdges_args other) { + public getTag_args(getTag_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listEdges_args deepCopy() { - return new listEdges_args(this); + public getTag_args deepCopy() { + return new getTag_args(this); } - public ListEdgesReq getReq() { + public GetTagReq getReq() { return this.req; } - public listEdges_args setReq(ListEdgesReq req) { + public getTag_args setReq(GetTagReq req) { this.req = req; return this; } @@ -15354,7 +12126,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListEdgesReq)__value); + setReq((GetTagReq)__value); } break; @@ -15379,9 +12151,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdges_args)) + if (!(_that instanceof getTag_args)) return false; - listEdges_args that = (listEdges_args)_that; + getTag_args that = (getTag_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -15394,7 +12166,7 @@ public int hashCode() { } @Override - public int compareTo(listEdges_args other) { + public int compareTo(getTag_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15429,7 +12201,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListEdgesReq(); + this.req = new GetTagReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15471,7 +12243,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listEdges_args"); + StringBuilder sb = new StringBuilder("getTag_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15498,11 +12270,11 @@ public void validate() throws TException { } - public static class listEdges_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listEdges_result"); + public static class getTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getTag_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListEdgesResp success; + public GetTagResp success; public static final int SUCCESS = 0; // isset id assignments @@ -15512,19 +12284,19 @@ public static class listEdges_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListEdgesResp.class))); + new StructMetaData(TType.STRUCT, GetTagResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdges_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getTag_result.class, metaDataMap); } - public listEdges_result() { + public getTag_result() { } - public listEdges_result( - ListEdgesResp success) { + public getTag_result( + GetTagResp success) { this(); this.success = success; } @@ -15532,21 +12304,21 @@ public listEdges_result( /** * Performs a deep copy on other. */ - public listEdges_result(listEdges_result other) { + public getTag_result(getTag_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listEdges_result deepCopy() { - return new listEdges_result(this); + public getTag_result deepCopy() { + return new getTag_result(this); } - public ListEdgesResp getSuccess() { + public GetTagResp getSuccess() { return this.success; } - public listEdges_result setSuccess(ListEdgesResp success) { + public getTag_result setSuccess(GetTagResp success) { this.success = success; return this; } @@ -15572,7 +12344,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListEdgesResp)__value); + setSuccess((GetTagResp)__value); } break; @@ -15597,9 +12369,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdges_result)) + if (!(_that instanceof getTag_result)) return false; - listEdges_result that = (listEdges_result)_that; + getTag_result that = (getTag_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -15612,7 +12384,7 @@ public int hashCode() { } @Override - public int compareTo(listEdges_result other) { + public int compareTo(getTag_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15647,7 +12419,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListEdgesResp(); + this.success = new GetTagResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15688,7 +12460,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listEdges_result"); + StringBuilder sb = new StringBuilder("getTag_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15715,11 +12487,11 @@ public void validate() throws TException { } - public static class listHosts_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listHosts_args"); + public static class listTags_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listTags_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListHostsReq req; + public ListTagsReq req; public static final int REQ = 1; // isset id assignments @@ -15729,19 +12501,19 @@ public static class listHosts_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListHostsReq.class))); + new StructMetaData(TType.STRUCT, ListTagsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listHosts_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTags_args.class, metaDataMap); } - public listHosts_args() { + public listTags_args() { } - public listHosts_args( - ListHostsReq req) { + public listTags_args( + ListTagsReq req) { this(); this.req = req; } @@ -15749,21 +12521,21 @@ public listHosts_args( /** * Performs a deep copy on other. */ - public listHosts_args(listHosts_args other) { + public listTags_args(listTags_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listHosts_args deepCopy() { - return new listHosts_args(this); + public listTags_args deepCopy() { + return new listTags_args(this); } - public ListHostsReq getReq() { + public ListTagsReq getReq() { return this.req; } - public listHosts_args setReq(ListHostsReq req) { + public listTags_args setReq(ListTagsReq req) { this.req = req; return this; } @@ -15789,7 +12561,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListHostsReq)__value); + setReq((ListTagsReq)__value); } break; @@ -15814,9 +12586,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listHosts_args)) + if (!(_that instanceof listTags_args)) return false; - listHosts_args that = (listHosts_args)_that; + listTags_args that = (listTags_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -15829,7 +12601,7 @@ public int hashCode() { } @Override - public int compareTo(listHosts_args other) { + public int compareTo(listTags_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15864,7 +12636,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListHostsReq(); + this.req = new ListTagsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15906,7 +12678,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listHosts_args"); + StringBuilder sb = new StringBuilder("listTags_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15933,11 +12705,11 @@ public void validate() throws TException { } - public static class listHosts_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listHosts_result"); + public static class listTags_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listTags_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListHostsResp success; + public ListTagsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -15947,19 +12719,19 @@ public static class listHosts_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListHostsResp.class))); + new StructMetaData(TType.STRUCT, ListTagsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listHosts_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTags_result.class, metaDataMap); } - public listHosts_result() { + public listTags_result() { } - public listHosts_result( - ListHostsResp success) { + public listTags_result( + ListTagsResp success) { this(); this.success = success; } @@ -15967,21 +12739,21 @@ public listHosts_result( /** * Performs a deep copy on other. */ - public listHosts_result(listHosts_result other) { + public listTags_result(listTags_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listHosts_result deepCopy() { - return new listHosts_result(this); + public listTags_result deepCopy() { + return new listTags_result(this); } - public ListHostsResp getSuccess() { + public ListTagsResp getSuccess() { return this.success; } - public listHosts_result setSuccess(ListHostsResp success) { + public listTags_result setSuccess(ListTagsResp success) { this.success = success; return this; } @@ -16007,7 +12779,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListHostsResp)__value); + setSuccess((ListTagsResp)__value); } break; @@ -16032,9 +12804,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listHosts_result)) + if (!(_that instanceof listTags_result)) return false; - listHosts_result that = (listHosts_result)_that; + listTags_result that = (listTags_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -16047,7 +12819,7 @@ public int hashCode() { } @Override - public int compareTo(listHosts_result other) { + public int compareTo(listTags_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16082,7 +12854,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListHostsResp(); + this.success = new ListTagsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16123,7 +12895,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listHosts_result"); + StringBuilder sb = new StringBuilder("listTags_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16150,11 +12922,11 @@ public void validate() throws TException { } - public static class getPartsAlloc_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getPartsAlloc_args"); + public static class createEdge_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createEdge_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetPartsAllocReq req; + public CreateEdgeReq req; public static final int REQ = 1; // isset id assignments @@ -16164,19 +12936,19 @@ public static class getPartsAlloc_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetPartsAllocReq.class))); + new StructMetaData(TType.STRUCT, CreateEdgeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getPartsAlloc_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createEdge_args.class, metaDataMap); } - public getPartsAlloc_args() { + public createEdge_args() { } - public getPartsAlloc_args( - GetPartsAllocReq req) { + public createEdge_args( + CreateEdgeReq req) { this(); this.req = req; } @@ -16184,21 +12956,21 @@ public getPartsAlloc_args( /** * Performs a deep copy on other. */ - public getPartsAlloc_args(getPartsAlloc_args other) { + public createEdge_args(createEdge_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getPartsAlloc_args deepCopy() { - return new getPartsAlloc_args(this); + public createEdge_args deepCopy() { + return new createEdge_args(this); } - public GetPartsAllocReq getReq() { + public CreateEdgeReq getReq() { return this.req; } - public getPartsAlloc_args setReq(GetPartsAllocReq req) { + public createEdge_args setReq(CreateEdgeReq req) { this.req = req; return this; } @@ -16224,7 +12996,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetPartsAllocReq)__value); + setReq((CreateEdgeReq)__value); } break; @@ -16249,9 +13021,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getPartsAlloc_args)) + if (!(_that instanceof createEdge_args)) return false; - getPartsAlloc_args that = (getPartsAlloc_args)_that; + createEdge_args that = (createEdge_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -16264,7 +13036,7 @@ public int hashCode() { } @Override - public int compareTo(getPartsAlloc_args other) { + public int compareTo(createEdge_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16299,7 +13071,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetPartsAllocReq(); + this.req = new CreateEdgeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16341,7 +13113,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getPartsAlloc_args"); + StringBuilder sb = new StringBuilder("createEdge_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16368,11 +13140,11 @@ public void validate() throws TException { } - public static class getPartsAlloc_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getPartsAlloc_result"); + public static class createEdge_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createEdge_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetPartsAllocResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -16382,19 +13154,19 @@ public static class getPartsAlloc_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetPartsAllocResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getPartsAlloc_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createEdge_result.class, metaDataMap); } - public getPartsAlloc_result() { + public createEdge_result() { } - public getPartsAlloc_result( - GetPartsAllocResp success) { + public createEdge_result( + ExecResp success) { this(); this.success = success; } @@ -16402,21 +13174,21 @@ public getPartsAlloc_result( /** * Performs a deep copy on other. */ - public getPartsAlloc_result(getPartsAlloc_result other) { + public createEdge_result(createEdge_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getPartsAlloc_result deepCopy() { - return new getPartsAlloc_result(this); + public createEdge_result deepCopy() { + return new createEdge_result(this); } - public GetPartsAllocResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getPartsAlloc_result setSuccess(GetPartsAllocResp success) { + public createEdge_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -16442,7 +13214,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetPartsAllocResp)__value); + setSuccess((ExecResp)__value); } break; @@ -16467,9 +13239,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getPartsAlloc_result)) + if (!(_that instanceof createEdge_result)) return false; - getPartsAlloc_result that = (getPartsAlloc_result)_that; + createEdge_result that = (createEdge_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -16482,7 +13254,7 @@ public int hashCode() { } @Override - public int compareTo(getPartsAlloc_result other) { + public int compareTo(createEdge_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16517,7 +13289,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetPartsAllocResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16558,7 +13330,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getPartsAlloc_result"); + StringBuilder sb = new StringBuilder("createEdge_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16585,11 +13357,11 @@ public void validate() throws TException { } - public static class listParts_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listParts_args"); + public static class alterEdge_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterEdge_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListPartsReq req; + public AlterEdgeReq req; public static final int REQ = 1; // isset id assignments @@ -16599,19 +13371,19 @@ public static class listParts_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListPartsReq.class))); + new StructMetaData(TType.STRUCT, AlterEdgeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listParts_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterEdge_args.class, metaDataMap); } - public listParts_args() { + public alterEdge_args() { } - public listParts_args( - ListPartsReq req) { + public alterEdge_args( + AlterEdgeReq req) { this(); this.req = req; } @@ -16619,21 +13391,21 @@ public listParts_args( /** * Performs a deep copy on other. */ - public listParts_args(listParts_args other) { + public alterEdge_args(alterEdge_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listParts_args deepCopy() { - return new listParts_args(this); + public alterEdge_args deepCopy() { + return new alterEdge_args(this); } - public ListPartsReq getReq() { + public AlterEdgeReq getReq() { return this.req; } - public listParts_args setReq(ListPartsReq req) { + public alterEdge_args setReq(AlterEdgeReq req) { this.req = req; return this; } @@ -16659,7 +13431,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListPartsReq)__value); + setReq((AlterEdgeReq)__value); } break; @@ -16684,9 +13456,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listParts_args)) + if (!(_that instanceof alterEdge_args)) return false; - listParts_args that = (listParts_args)_that; + alterEdge_args that = (alterEdge_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -16699,7 +13471,7 @@ public int hashCode() { } @Override - public int compareTo(listParts_args other) { + public int compareTo(alterEdge_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16734,7 +13506,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListPartsReq(); + this.req = new AlterEdgeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16776,7 +13548,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listParts_args"); + StringBuilder sb = new StringBuilder("alterEdge_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16803,11 +13575,11 @@ public void validate() throws TException { } - public static class listParts_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listParts_result"); + public static class alterEdge_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterEdge_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListPartsResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -16817,19 +13589,19 @@ public static class listParts_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListPartsResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listParts_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterEdge_result.class, metaDataMap); } - public listParts_result() { + public alterEdge_result() { } - public listParts_result( - ListPartsResp success) { + public alterEdge_result( + ExecResp success) { this(); this.success = success; } @@ -16837,21 +13609,21 @@ public listParts_result( /** * Performs a deep copy on other. */ - public listParts_result(listParts_result other) { + public alterEdge_result(alterEdge_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listParts_result deepCopy() { - return new listParts_result(this); + public alterEdge_result deepCopy() { + return new alterEdge_result(this); } - public ListPartsResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listParts_result setSuccess(ListPartsResp success) { + public alterEdge_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -16877,7 +13649,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListPartsResp)__value); + setSuccess((ExecResp)__value); } break; @@ -16902,9 +13674,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listParts_result)) + if (!(_that instanceof alterEdge_result)) return false; - listParts_result that = (listParts_result)_that; + alterEdge_result that = (alterEdge_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -16917,7 +13689,7 @@ public int hashCode() { } @Override - public int compareTo(listParts_result other) { + public int compareTo(alterEdge_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16952,7 +13724,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListPartsResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16993,7 +13765,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listParts_result"); + StringBuilder sb = new StringBuilder("alterEdge_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17020,11 +13792,11 @@ public void validate() throws TException { } - public static class multiPut_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("multiPut_args"); + public static class dropEdge_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropEdge_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public MultiPutReq req; + public DropEdgeReq req; public static final int REQ = 1; // isset id assignments @@ -17034,19 +13806,19 @@ public static class multiPut_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, MultiPutReq.class))); + new StructMetaData(TType.STRUCT, DropEdgeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(multiPut_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropEdge_args.class, metaDataMap); } - public multiPut_args() { + public dropEdge_args() { } - public multiPut_args( - MultiPutReq req) { + public dropEdge_args( + DropEdgeReq req) { this(); this.req = req; } @@ -17054,21 +13826,21 @@ public multiPut_args( /** * Performs a deep copy on other. */ - public multiPut_args(multiPut_args other) { + public dropEdge_args(dropEdge_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public multiPut_args deepCopy() { - return new multiPut_args(this); + public dropEdge_args deepCopy() { + return new dropEdge_args(this); } - public MultiPutReq getReq() { + public DropEdgeReq getReq() { return this.req; } - public multiPut_args setReq(MultiPutReq req) { + public dropEdge_args setReq(DropEdgeReq req) { this.req = req; return this; } @@ -17094,7 +13866,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((MultiPutReq)__value); + setReq((DropEdgeReq)__value); } break; @@ -17119,9 +13891,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof multiPut_args)) + if (!(_that instanceof dropEdge_args)) return false; - multiPut_args that = (multiPut_args)_that; + dropEdge_args that = (dropEdge_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -17134,7 +13906,7 @@ public int hashCode() { } @Override - public int compareTo(multiPut_args other) { + public int compareTo(dropEdge_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17169,7 +13941,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new MultiPutReq(); + this.req = new DropEdgeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -17211,7 +13983,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("multiPut_args"); + StringBuilder sb = new StringBuilder("dropEdge_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17238,8 +14010,8 @@ public void validate() throws TException { } - public static class multiPut_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("multiPut_result"); + public static class dropEdge_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropEdge_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -17257,13 +14029,13 @@ public static class multiPut_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(multiPut_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropEdge_result.class, metaDataMap); } - public multiPut_result() { + public dropEdge_result() { } - public multiPut_result( + public dropEdge_result( ExecResp success) { this(); this.success = success; @@ -17272,21 +14044,21 @@ public multiPut_result( /** * Performs a deep copy on other. */ - public multiPut_result(multiPut_result other) { + public dropEdge_result(dropEdge_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public multiPut_result deepCopy() { - return new multiPut_result(this); + public dropEdge_result deepCopy() { + return new dropEdge_result(this); } public ExecResp getSuccess() { return this.success; } - public multiPut_result setSuccess(ExecResp success) { + public dropEdge_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -17337,9 +14109,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof multiPut_result)) + if (!(_that instanceof dropEdge_result)) return false; - multiPut_result that = (multiPut_result)_that; + dropEdge_result that = (dropEdge_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -17352,7 +14124,7 @@ public int hashCode() { } @Override - public int compareTo(multiPut_result other) { + public int compareTo(dropEdge_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17428,7 +14200,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("multiPut_result"); + StringBuilder sb = new StringBuilder("dropEdge_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17455,11 +14227,11 @@ public void validate() throws TException { } - public static class get_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("get_args"); + public static class getEdge_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getEdge_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetReq req; + public GetEdgeReq req; public static final int REQ = 1; // isset id assignments @@ -17469,19 +14241,19 @@ public static class get_args implements TBase, java.io.Serializable, Cloneable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetReq.class))); + new StructMetaData(TType.STRUCT, GetEdgeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getEdge_args.class, metaDataMap); } - public get_args() { + public getEdge_args() { } - public get_args( - GetReq req) { + public getEdge_args( + GetEdgeReq req) { this(); this.req = req; } @@ -17489,21 +14261,21 @@ public get_args( /** * Performs a deep copy on other. */ - public get_args(get_args other) { + public getEdge_args(getEdge_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public get_args deepCopy() { - return new get_args(this); + public getEdge_args deepCopy() { + return new getEdge_args(this); } - public GetReq getReq() { + public GetEdgeReq getReq() { return this.req; } - public get_args setReq(GetReq req) { + public getEdge_args setReq(GetEdgeReq req) { this.req = req; return this; } @@ -17529,7 +14301,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetReq)__value); + setReq((GetEdgeReq)__value); } break; @@ -17554,9 +14326,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof get_args)) + if (!(_that instanceof getEdge_args)) return false; - get_args that = (get_args)_that; + getEdge_args that = (getEdge_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -17569,7 +14341,7 @@ public int hashCode() { } @Override - public int compareTo(get_args other) { + public int compareTo(getEdge_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17604,7 +14376,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetReq(); + this.req = new GetEdgeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -17646,7 +14418,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("get_args"); + StringBuilder sb = new StringBuilder("getEdge_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17673,11 +14445,11 @@ public void validate() throws TException { } - public static class get_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("get_result"); + public static class getEdge_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getEdge_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetResp success; + public GetEdgeResp success; public static final int SUCCESS = 0; // isset id assignments @@ -17687,19 +14459,19 @@ public static class get_result implements TBase, java.io.Serializable, Cloneable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetResp.class))); + new StructMetaData(TType.STRUCT, GetEdgeResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getEdge_result.class, metaDataMap); } - public get_result() { + public getEdge_result() { } - public get_result( - GetResp success) { + public getEdge_result( + GetEdgeResp success) { this(); this.success = success; } @@ -17707,21 +14479,21 @@ public get_result( /** * Performs a deep copy on other. */ - public get_result(get_result other) { + public getEdge_result(getEdge_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public get_result deepCopy() { - return new get_result(this); + public getEdge_result deepCopy() { + return new getEdge_result(this); } - public GetResp getSuccess() { + public GetEdgeResp getSuccess() { return this.success; } - public get_result setSuccess(GetResp success) { + public getEdge_result setSuccess(GetEdgeResp success) { this.success = success; return this; } @@ -17747,7 +14519,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetResp)__value); + setSuccess((GetEdgeResp)__value); } break; @@ -17772,9 +14544,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof get_result)) + if (!(_that instanceof getEdge_result)) return false; - get_result that = (get_result)_that; + getEdge_result that = (getEdge_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -17787,7 +14559,7 @@ public int hashCode() { } @Override - public int compareTo(get_result other) { + public int compareTo(getEdge_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17822,7 +14594,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetResp(); + this.success = new GetEdgeResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -17863,7 +14635,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("get_result"); + StringBuilder sb = new StringBuilder("getEdge_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17890,11 +14662,11 @@ public void validate() throws TException { } - public static class multiGet_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("multiGet_args"); + public static class listEdges_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listEdges_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public MultiGetReq req; + public ListEdgesReq req; public static final int REQ = 1; // isset id assignments @@ -17904,19 +14676,19 @@ public static class multiGet_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, MultiGetReq.class))); + new StructMetaData(TType.STRUCT, ListEdgesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(multiGet_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdges_args.class, metaDataMap); } - public multiGet_args() { + public listEdges_args() { } - public multiGet_args( - MultiGetReq req) { + public listEdges_args( + ListEdgesReq req) { this(); this.req = req; } @@ -17924,21 +14696,21 @@ public multiGet_args( /** * Performs a deep copy on other. */ - public multiGet_args(multiGet_args other) { + public listEdges_args(listEdges_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public multiGet_args deepCopy() { - return new multiGet_args(this); + public listEdges_args deepCopy() { + return new listEdges_args(this); } - public MultiGetReq getReq() { + public ListEdgesReq getReq() { return this.req; } - public multiGet_args setReq(MultiGetReq req) { + public listEdges_args setReq(ListEdgesReq req) { this.req = req; return this; } @@ -17964,7 +14736,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((MultiGetReq)__value); + setReq((ListEdgesReq)__value); } break; @@ -17989,9 +14761,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof multiGet_args)) + if (!(_that instanceof listEdges_args)) return false; - multiGet_args that = (multiGet_args)_that; + listEdges_args that = (listEdges_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -18004,7 +14776,7 @@ public int hashCode() { } @Override - public int compareTo(multiGet_args other) { + public int compareTo(listEdges_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18039,7 +14811,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new MultiGetReq(); + this.req = new ListEdgesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18081,7 +14853,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("multiGet_args"); + StringBuilder sb = new StringBuilder("listEdges_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18108,11 +14880,11 @@ public void validate() throws TException { } - public static class multiGet_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("multiGet_result"); + public static class listEdges_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listEdges_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public MultiGetResp success; + public ListEdgesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -18122,19 +14894,19 @@ public static class multiGet_result implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, MultiGetResp.class))); + new StructMetaData(TType.STRUCT, ListEdgesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(multiGet_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdges_result.class, metaDataMap); } - public multiGet_result() { + public listEdges_result() { } - public multiGet_result( - MultiGetResp success) { + public listEdges_result( + ListEdgesResp success) { this(); this.success = success; } @@ -18142,21 +14914,21 @@ public multiGet_result( /** * Performs a deep copy on other. */ - public multiGet_result(multiGet_result other) { + public listEdges_result(listEdges_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public multiGet_result deepCopy() { - return new multiGet_result(this); + public listEdges_result deepCopy() { + return new listEdges_result(this); } - public MultiGetResp getSuccess() { + public ListEdgesResp getSuccess() { return this.success; } - public multiGet_result setSuccess(MultiGetResp success) { + public listEdges_result setSuccess(ListEdgesResp success) { this.success = success; return this; } @@ -18182,7 +14954,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((MultiGetResp)__value); + setSuccess((ListEdgesResp)__value); } break; @@ -18207,9 +14979,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof multiGet_result)) + if (!(_that instanceof listEdges_result)) return false; - multiGet_result that = (multiGet_result)_that; + listEdges_result that = (listEdges_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -18222,7 +14994,7 @@ public int hashCode() { } @Override - public int compareTo(multiGet_result other) { + public int compareTo(listEdges_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18257,7 +15029,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new MultiGetResp(); + this.success = new ListEdgesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18298,7 +15070,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("multiGet_result"); + StringBuilder sb = new StringBuilder("listEdges_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18325,11 +15097,11 @@ public void validate() throws TException { } - public static class remove_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("remove_args"); + public static class listHosts_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listHosts_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RemoveReq req; + public ListHostsReq req; public static final int REQ = 1; // isset id assignments @@ -18339,19 +15111,19 @@ public static class remove_args implements TBase, java.io.Serializable, Cloneabl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RemoveReq.class))); + new StructMetaData(TType.STRUCT, ListHostsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(remove_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listHosts_args.class, metaDataMap); } - public remove_args() { + public listHosts_args() { } - public remove_args( - RemoveReq req) { + public listHosts_args( + ListHostsReq req) { this(); this.req = req; } @@ -18359,21 +15131,21 @@ public remove_args( /** * Performs a deep copy on other. */ - public remove_args(remove_args other) { + public listHosts_args(listHosts_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public remove_args deepCopy() { - return new remove_args(this); + public listHosts_args deepCopy() { + return new listHosts_args(this); } - public RemoveReq getReq() { + public ListHostsReq getReq() { return this.req; } - public remove_args setReq(RemoveReq req) { + public listHosts_args setReq(ListHostsReq req) { this.req = req; return this; } @@ -18399,7 +15171,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RemoveReq)__value); + setReq((ListHostsReq)__value); } break; @@ -18424,9 +15196,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof remove_args)) + if (!(_that instanceof listHosts_args)) return false; - remove_args that = (remove_args)_that; + listHosts_args that = (listHosts_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -18439,7 +15211,7 @@ public int hashCode() { } @Override - public int compareTo(remove_args other) { + public int compareTo(listHosts_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18474,7 +15246,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RemoveReq(); + this.req = new ListHostsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18516,7 +15288,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("remove_args"); + StringBuilder sb = new StringBuilder("listHosts_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18543,11 +15315,11 @@ public void validate() throws TException { } - public static class remove_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("remove_result"); + public static class listHosts_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listHosts_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListHostsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -18557,19 +15329,19 @@ public static class remove_result implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, ListHostsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(remove_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listHosts_result.class, metaDataMap); } - public remove_result() { + public listHosts_result() { } - public remove_result( - ExecResp success) { + public listHosts_result( + ListHostsResp success) { this(); this.success = success; } @@ -18577,21 +15349,21 @@ public remove_result( /** * Performs a deep copy on other. */ - public remove_result(remove_result other) { + public listHosts_result(listHosts_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public remove_result deepCopy() { - return new remove_result(this); + public listHosts_result deepCopy() { + return new listHosts_result(this); } - public ExecResp getSuccess() { + public ListHostsResp getSuccess() { return this.success; } - public remove_result setSuccess(ExecResp success) { + public listHosts_result setSuccess(ListHostsResp success) { this.success = success; return this; } @@ -18617,7 +15389,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListHostsResp)__value); } break; @@ -18642,9 +15414,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof remove_result)) + if (!(_that instanceof listHosts_result)) return false; - remove_result that = (remove_result)_that; + listHosts_result that = (listHosts_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -18657,7 +15429,7 @@ public int hashCode() { } @Override - public int compareTo(remove_result other) { + public int compareTo(listHosts_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18692,7 +15464,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListHostsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18733,7 +15505,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("remove_result"); + StringBuilder sb = new StringBuilder("listHosts_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18760,11 +15532,11 @@ public void validate() throws TException { } - public static class removeRange_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("removeRange_args"); + public static class getPartsAlloc_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getPartsAlloc_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RemoveRangeReq req; + public GetPartsAllocReq req; public static final int REQ = 1; // isset id assignments @@ -18774,19 +15546,19 @@ public static class removeRange_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RemoveRangeReq.class))); + new StructMetaData(TType.STRUCT, GetPartsAllocReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeRange_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getPartsAlloc_args.class, metaDataMap); } - public removeRange_args() { + public getPartsAlloc_args() { } - public removeRange_args( - RemoveRangeReq req) { + public getPartsAlloc_args( + GetPartsAllocReq req) { this(); this.req = req; } @@ -18794,21 +15566,21 @@ public removeRange_args( /** * Performs a deep copy on other. */ - public removeRange_args(removeRange_args other) { + public getPartsAlloc_args(getPartsAlloc_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public removeRange_args deepCopy() { - return new removeRange_args(this); + public getPartsAlloc_args deepCopy() { + return new getPartsAlloc_args(this); } - public RemoveRangeReq getReq() { + public GetPartsAllocReq getReq() { return this.req; } - public removeRange_args setReq(RemoveRangeReq req) { + public getPartsAlloc_args setReq(GetPartsAllocReq req) { this.req = req; return this; } @@ -18834,7 +15606,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RemoveRangeReq)__value); + setReq((GetPartsAllocReq)__value); } break; @@ -18859,9 +15631,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeRange_args)) + if (!(_that instanceof getPartsAlloc_args)) return false; - removeRange_args that = (removeRange_args)_that; + getPartsAlloc_args that = (getPartsAlloc_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -18874,7 +15646,7 @@ public int hashCode() { } @Override - public int compareTo(removeRange_args other) { + public int compareTo(getPartsAlloc_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18909,7 +15681,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RemoveRangeReq(); + this.req = new GetPartsAllocReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18951,7 +15723,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("removeRange_args"); + StringBuilder sb = new StringBuilder("getPartsAlloc_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18978,11 +15750,11 @@ public void validate() throws TException { } - public static class removeRange_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("removeRange_result"); + public static class getPartsAlloc_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getPartsAlloc_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public GetPartsAllocResp success; public static final int SUCCESS = 0; // isset id assignments @@ -18992,19 +15764,19 @@ public static class removeRange_result implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, GetPartsAllocResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeRange_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getPartsAlloc_result.class, metaDataMap); } - public removeRange_result() { + public getPartsAlloc_result() { } - public removeRange_result( - ExecResp success) { + public getPartsAlloc_result( + GetPartsAllocResp success) { this(); this.success = success; } @@ -19012,21 +15784,21 @@ public removeRange_result( /** * Performs a deep copy on other. */ - public removeRange_result(removeRange_result other) { + public getPartsAlloc_result(getPartsAlloc_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public removeRange_result deepCopy() { - return new removeRange_result(this); + public getPartsAlloc_result deepCopy() { + return new getPartsAlloc_result(this); } - public ExecResp getSuccess() { + public GetPartsAllocResp getSuccess() { return this.success; } - public removeRange_result setSuccess(ExecResp success) { + public getPartsAlloc_result setSuccess(GetPartsAllocResp success) { this.success = success; return this; } @@ -19052,7 +15824,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetPartsAllocResp)__value); } break; @@ -19077,9 +15849,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeRange_result)) + if (!(_that instanceof getPartsAlloc_result)) return false; - removeRange_result that = (removeRange_result)_that; + getPartsAlloc_result that = (getPartsAlloc_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -19092,7 +15864,7 @@ public int hashCode() { } @Override - public int compareTo(removeRange_result other) { + public int compareTo(getPartsAlloc_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19127,7 +15899,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new GetPartsAllocResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19168,7 +15940,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("removeRange_result"); + StringBuilder sb = new StringBuilder("getPartsAlloc_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19195,11 +15967,11 @@ public void validate() throws TException { } - public static class scan_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("scan_args"); + public static class listParts_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listParts_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ScanReq req; + public ListPartsReq req; public static final int REQ = 1; // isset id assignments @@ -19209,19 +15981,19 @@ public static class scan_args implements TBase, java.io.Serializable, Cloneable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ScanReq.class))); + new StructMetaData(TType.STRUCT, ListPartsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listParts_args.class, metaDataMap); } - public scan_args() { + public listParts_args() { } - public scan_args( - ScanReq req) { + public listParts_args( + ListPartsReq req) { this(); this.req = req; } @@ -19229,21 +16001,21 @@ public scan_args( /** * Performs a deep copy on other. */ - public scan_args(scan_args other) { + public listParts_args(listParts_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public scan_args deepCopy() { - return new scan_args(this); + public listParts_args deepCopy() { + return new listParts_args(this); } - public ScanReq getReq() { + public ListPartsReq getReq() { return this.req; } - public scan_args setReq(ScanReq req) { + public listParts_args setReq(ListPartsReq req) { this.req = req; return this; } @@ -19269,7 +16041,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ScanReq)__value); + setReq((ListPartsReq)__value); } break; @@ -19294,9 +16066,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof scan_args)) + if (!(_that instanceof listParts_args)) return false; - scan_args that = (scan_args)_that; + listParts_args that = (listParts_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -19309,7 +16081,7 @@ public int hashCode() { } @Override - public int compareTo(scan_args other) { + public int compareTo(listParts_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19344,7 +16116,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ScanReq(); + this.req = new ListPartsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19386,7 +16158,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("scan_args"); + StringBuilder sb = new StringBuilder("listParts_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19413,11 +16185,11 @@ public void validate() throws TException { } - public static class scan_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("scan_result"); + public static class listParts_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listParts_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ScanResp success; + public ListPartsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -19427,19 +16199,19 @@ public static class scan_result implements TBase, java.io.Serializable, Cloneabl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ScanResp.class))); + new StructMetaData(TType.STRUCT, ListPartsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listParts_result.class, metaDataMap); } - public scan_result() { + public listParts_result() { } - public scan_result( - ScanResp success) { + public listParts_result( + ListPartsResp success) { this(); this.success = success; } @@ -19447,21 +16219,21 @@ public scan_result( /** * Performs a deep copy on other. */ - public scan_result(scan_result other) { + public listParts_result(listParts_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public scan_result deepCopy() { - return new scan_result(this); + public listParts_result deepCopy() { + return new listParts_result(this); } - public ScanResp getSuccess() { + public ListPartsResp getSuccess() { return this.success; } - public scan_result setSuccess(ScanResp success) { + public listParts_result setSuccess(ListPartsResp success) { this.success = success; return this; } @@ -19487,7 +16259,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ScanResp)__value); + setSuccess((ListPartsResp)__value); } break; @@ -19512,9 +16284,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof scan_result)) + if (!(_that instanceof listParts_result)) return false; - scan_result that = (scan_result)_that; + listParts_result that = (listParts_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -19527,7 +16299,7 @@ public int hashCode() { } @Override - public int compareTo(scan_result other) { + public int compareTo(listParts_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19562,7 +16334,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ScanResp(); + this.success = new ListPartsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19603,7 +16375,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("scan_result"); + StringBuilder sb = new StringBuilder("listParts_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19630,11 +16402,11 @@ public void validate() throws TException { } - public static class createTagIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createTagIndex_args"); + public static class multiPut_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("multiPut_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateTagIndexReq req; + public MultiPutReq req; public static final int REQ = 1; // isset id assignments @@ -19644,19 +16416,19 @@ public static class createTagIndex_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateTagIndexReq.class))); + new StructMetaData(TType.STRUCT, MultiPutReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(multiPut_args.class, metaDataMap); } - public createTagIndex_args() { + public multiPut_args() { } - public createTagIndex_args( - CreateTagIndexReq req) { + public multiPut_args( + MultiPutReq req) { this(); this.req = req; } @@ -19664,21 +16436,21 @@ public createTagIndex_args( /** * Performs a deep copy on other. */ - public createTagIndex_args(createTagIndex_args other) { + public multiPut_args(multiPut_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createTagIndex_args deepCopy() { - return new createTagIndex_args(this); + public multiPut_args deepCopy() { + return new multiPut_args(this); } - public CreateTagIndexReq getReq() { + public MultiPutReq getReq() { return this.req; } - public createTagIndex_args setReq(CreateTagIndexReq req) { + public multiPut_args setReq(MultiPutReq req) { this.req = req; return this; } @@ -19704,7 +16476,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateTagIndexReq)__value); + setReq((MultiPutReq)__value); } break; @@ -19729,9 +16501,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createTagIndex_args)) + if (!(_that instanceof multiPut_args)) return false; - createTagIndex_args that = (createTagIndex_args)_that; + multiPut_args that = (multiPut_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -19744,7 +16516,7 @@ public int hashCode() { } @Override - public int compareTo(createTagIndex_args other) { + public int compareTo(multiPut_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19779,7 +16551,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateTagIndexReq(); + this.req = new MultiPutReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19821,7 +16593,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createTagIndex_args"); + StringBuilder sb = new StringBuilder("multiPut_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19848,8 +16620,8 @@ public void validate() throws TException { } - public static class createTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createTagIndex_result"); + public static class multiPut_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("multiPut_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -19867,13 +16639,13 @@ public static class createTagIndex_result implements TBase, java.io.Serializable } static { - FieldMetaData.addStructMetaDataMap(createTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(multiPut_result.class, metaDataMap); } - public createTagIndex_result() { + public multiPut_result() { } - public createTagIndex_result( + public multiPut_result( ExecResp success) { this(); this.success = success; @@ -19882,21 +16654,21 @@ public createTagIndex_result( /** * Performs a deep copy on other. */ - public createTagIndex_result(createTagIndex_result other) { + public multiPut_result(multiPut_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createTagIndex_result deepCopy() { - return new createTagIndex_result(this); + public multiPut_result deepCopy() { + return new multiPut_result(this); } public ExecResp getSuccess() { return this.success; } - public createTagIndex_result setSuccess(ExecResp success) { + public multiPut_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -19947,9 +16719,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createTagIndex_result)) + if (!(_that instanceof multiPut_result)) return false; - createTagIndex_result that = (createTagIndex_result)_that; + multiPut_result that = (multiPut_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -19962,7 +16734,7 @@ public int hashCode() { } @Override - public int compareTo(createTagIndex_result other) { + public int compareTo(multiPut_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20038,7 +16810,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createTagIndex_result"); + StringBuilder sb = new StringBuilder("multiPut_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20065,11 +16837,11 @@ public void validate() throws TException { } - public static class dropTagIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropTagIndex_args"); + public static class get_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("get_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropTagIndexReq req; + public GetReq req; public static final int REQ = 1; // isset id assignments @@ -20079,19 +16851,19 @@ public static class dropTagIndex_args implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropTagIndexReq.class))); + new StructMetaData(TType.STRUCT, GetReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); } - public dropTagIndex_args() { + public get_args() { } - public dropTagIndex_args( - DropTagIndexReq req) { + public get_args( + GetReq req) { this(); this.req = req; } @@ -20099,21 +16871,21 @@ public dropTagIndex_args( /** * Performs a deep copy on other. */ - public dropTagIndex_args(dropTagIndex_args other) { + public get_args(get_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropTagIndex_args deepCopy() { - return new dropTagIndex_args(this); + public get_args deepCopy() { + return new get_args(this); } - public DropTagIndexReq getReq() { + public GetReq getReq() { return this.req; } - public dropTagIndex_args setReq(DropTagIndexReq req) { + public get_args setReq(GetReq req) { this.req = req; return this; } @@ -20139,7 +16911,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropTagIndexReq)__value); + setReq((GetReq)__value); } break; @@ -20164,9 +16936,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropTagIndex_args)) + if (!(_that instanceof get_args)) return false; - dropTagIndex_args that = (dropTagIndex_args)_that; + get_args that = (get_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -20179,7 +16951,7 @@ public int hashCode() { } @Override - public int compareTo(dropTagIndex_args other) { + public int compareTo(get_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20214,7 +16986,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropTagIndexReq(); + this.req = new GetReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20256,7 +17028,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropTagIndex_args"); + StringBuilder sb = new StringBuilder("get_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20283,11 +17055,11 @@ public void validate() throws TException { } - public static class dropTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropTagIndex_result"); + public static class get_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("get_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public GetResp success; public static final int SUCCESS = 0; // isset id assignments @@ -20297,19 +17069,19 @@ public static class dropTagIndex_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, GetResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); } - public dropTagIndex_result() { + public get_result() { } - public dropTagIndex_result( - ExecResp success) { + public get_result( + GetResp success) { this(); this.success = success; } @@ -20317,21 +17089,21 @@ public dropTagIndex_result( /** * Performs a deep copy on other. */ - public dropTagIndex_result(dropTagIndex_result other) { + public get_result(get_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropTagIndex_result deepCopy() { - return new dropTagIndex_result(this); + public get_result deepCopy() { + return new get_result(this); } - public ExecResp getSuccess() { + public GetResp getSuccess() { return this.success; } - public dropTagIndex_result setSuccess(ExecResp success) { + public get_result setSuccess(GetResp success) { this.success = success; return this; } @@ -20357,7 +17129,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetResp)__value); } break; @@ -20382,9 +17154,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropTagIndex_result)) + if (!(_that instanceof get_result)) return false; - dropTagIndex_result that = (dropTagIndex_result)_that; + get_result that = (get_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -20397,7 +17169,7 @@ public int hashCode() { } @Override - public int compareTo(dropTagIndex_result other) { + public int compareTo(get_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20432,7 +17204,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new GetResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20473,7 +17245,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropTagIndex_result"); + StringBuilder sb = new StringBuilder("get_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20500,11 +17272,11 @@ public void validate() throws TException { } - public static class getTagIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getTagIndex_args"); + public static class multiGet_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("multiGet_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetTagIndexReq req; + public MultiGetReq req; public static final int REQ = 1; // isset id assignments @@ -20514,19 +17286,19 @@ public static class getTagIndex_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetTagIndexReq.class))); + new StructMetaData(TType.STRUCT, MultiGetReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(multiGet_args.class, metaDataMap); } - public getTagIndex_args() { + public multiGet_args() { } - public getTagIndex_args( - GetTagIndexReq req) { + public multiGet_args( + MultiGetReq req) { this(); this.req = req; } @@ -20534,21 +17306,21 @@ public getTagIndex_args( /** * Performs a deep copy on other. */ - public getTagIndex_args(getTagIndex_args other) { + public multiGet_args(multiGet_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getTagIndex_args deepCopy() { - return new getTagIndex_args(this); + public multiGet_args deepCopy() { + return new multiGet_args(this); } - public GetTagIndexReq getReq() { + public MultiGetReq getReq() { return this.req; } - public getTagIndex_args setReq(GetTagIndexReq req) { + public multiGet_args setReq(MultiGetReq req) { this.req = req; return this; } @@ -20574,7 +17346,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetTagIndexReq)__value); + setReq((MultiGetReq)__value); } break; @@ -20599,9 +17371,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getTagIndex_args)) + if (!(_that instanceof multiGet_args)) return false; - getTagIndex_args that = (getTagIndex_args)_that; + multiGet_args that = (multiGet_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -20614,7 +17386,7 @@ public int hashCode() { } @Override - public int compareTo(getTagIndex_args other) { + public int compareTo(multiGet_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20649,7 +17421,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetTagIndexReq(); + this.req = new MultiGetReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20691,7 +17463,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getTagIndex_args"); + StringBuilder sb = new StringBuilder("multiGet_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20718,11 +17490,11 @@ public void validate() throws TException { } - public static class getTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getTagIndex_result"); + public static class multiGet_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("multiGet_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetTagIndexResp success; + public MultiGetResp success; public static final int SUCCESS = 0; // isset id assignments @@ -20732,19 +17504,19 @@ public static class getTagIndex_result implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetTagIndexResp.class))); + new StructMetaData(TType.STRUCT, MultiGetResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(multiGet_result.class, metaDataMap); } - public getTagIndex_result() { + public multiGet_result() { } - public getTagIndex_result( - GetTagIndexResp success) { + public multiGet_result( + MultiGetResp success) { this(); this.success = success; } @@ -20752,21 +17524,21 @@ public getTagIndex_result( /** * Performs a deep copy on other. */ - public getTagIndex_result(getTagIndex_result other) { + public multiGet_result(multiGet_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getTagIndex_result deepCopy() { - return new getTagIndex_result(this); + public multiGet_result deepCopy() { + return new multiGet_result(this); } - public GetTagIndexResp getSuccess() { + public MultiGetResp getSuccess() { return this.success; } - public getTagIndex_result setSuccess(GetTagIndexResp success) { + public multiGet_result setSuccess(MultiGetResp success) { this.success = success; return this; } @@ -20792,7 +17564,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetTagIndexResp)__value); + setSuccess((MultiGetResp)__value); } break; @@ -20817,9 +17589,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getTagIndex_result)) + if (!(_that instanceof multiGet_result)) return false; - getTagIndex_result that = (getTagIndex_result)_that; + multiGet_result that = (multiGet_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -20832,7 +17604,7 @@ public int hashCode() { } @Override - public int compareTo(getTagIndex_result other) { + public int compareTo(multiGet_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20867,7 +17639,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetTagIndexResp(); + this.success = new MultiGetResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20908,7 +17680,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getTagIndex_result"); + StringBuilder sb = new StringBuilder("multiGet_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20935,11 +17707,11 @@ public void validate() throws TException { } - public static class listTagIndexes_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listTagIndexes_args"); + public static class remove_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("remove_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListTagIndexesReq req; + public RemoveReq req; public static final int REQ = 1; // isset id assignments @@ -20949,19 +17721,19 @@ public static class listTagIndexes_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListTagIndexesReq.class))); + new StructMetaData(TType.STRUCT, RemoveReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexes_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(remove_args.class, metaDataMap); } - public listTagIndexes_args() { + public remove_args() { } - public listTagIndexes_args( - ListTagIndexesReq req) { + public remove_args( + RemoveReq req) { this(); this.req = req; } @@ -20969,21 +17741,21 @@ public listTagIndexes_args( /** * Performs a deep copy on other. */ - public listTagIndexes_args(listTagIndexes_args other) { + public remove_args(remove_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listTagIndexes_args deepCopy() { - return new listTagIndexes_args(this); + public remove_args deepCopy() { + return new remove_args(this); } - public ListTagIndexesReq getReq() { + public RemoveReq getReq() { return this.req; } - public listTagIndexes_args setReq(ListTagIndexesReq req) { + public remove_args setReq(RemoveReq req) { this.req = req; return this; } @@ -21009,7 +17781,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListTagIndexesReq)__value); + setReq((RemoveReq)__value); } break; @@ -21034,9 +17806,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexes_args)) + if (!(_that instanceof remove_args)) return false; - listTagIndexes_args that = (listTagIndexes_args)_that; + remove_args that = (remove_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -21049,7 +17821,7 @@ public int hashCode() { } @Override - public int compareTo(listTagIndexes_args other) { + public int compareTo(remove_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21084,7 +17856,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListTagIndexesReq(); + this.req = new RemoveReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21126,7 +17898,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listTagIndexes_args"); + StringBuilder sb = new StringBuilder("remove_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21153,11 +17925,11 @@ public void validate() throws TException { } - public static class listTagIndexes_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listTagIndexes_result"); + public static class remove_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("remove_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListTagIndexesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -21167,19 +17939,19 @@ public static class listTagIndexes_result implements TBase, java.io.Serializable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListTagIndexesResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexes_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(remove_result.class, metaDataMap); } - public listTagIndexes_result() { + public remove_result() { } - public listTagIndexes_result( - ListTagIndexesResp success) { + public remove_result( + ExecResp success) { this(); this.success = success; } @@ -21187,21 +17959,21 @@ public listTagIndexes_result( /** * Performs a deep copy on other. */ - public listTagIndexes_result(listTagIndexes_result other) { + public remove_result(remove_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listTagIndexes_result deepCopy() { - return new listTagIndexes_result(this); + public remove_result deepCopy() { + return new remove_result(this); } - public ListTagIndexesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listTagIndexes_result setSuccess(ListTagIndexesResp success) { + public remove_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -21227,7 +17999,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListTagIndexesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -21252,9 +18024,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexes_result)) + if (!(_that instanceof remove_result)) return false; - listTagIndexes_result that = (listTagIndexes_result)_that; + remove_result that = (remove_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -21267,7 +18039,7 @@ public int hashCode() { } @Override - public int compareTo(listTagIndexes_result other) { + public int compareTo(remove_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21302,7 +18074,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListTagIndexesResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21343,7 +18115,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listTagIndexes_result"); + StringBuilder sb = new StringBuilder("remove_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21370,11 +18142,11 @@ public void validate() throws TException { } - public static class rebuildTagIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("rebuildTagIndex_args"); + public static class removeRange_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("removeRange_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RebuildIndexReq req; + public RemoveRangeReq req; public static final int REQ = 1; // isset id assignments @@ -21384,19 +18156,19 @@ public static class rebuildTagIndex_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RebuildIndexReq.class))); + new StructMetaData(TType.STRUCT, RemoveRangeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(rebuildTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeRange_args.class, metaDataMap); } - public rebuildTagIndex_args() { + public removeRange_args() { } - public rebuildTagIndex_args( - RebuildIndexReq req) { + public removeRange_args( + RemoveRangeReq req) { this(); this.req = req; } @@ -21404,21 +18176,21 @@ public rebuildTagIndex_args( /** * Performs a deep copy on other. */ - public rebuildTagIndex_args(rebuildTagIndex_args other) { + public removeRange_args(removeRange_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public rebuildTagIndex_args deepCopy() { - return new rebuildTagIndex_args(this); + public removeRange_args deepCopy() { + return new removeRange_args(this); } - public RebuildIndexReq getReq() { + public RemoveRangeReq getReq() { return this.req; } - public rebuildTagIndex_args setReq(RebuildIndexReq req) { + public removeRange_args setReq(RemoveRangeReq req) { this.req = req; return this; } @@ -21444,7 +18216,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RebuildIndexReq)__value); + setReq((RemoveRangeReq)__value); } break; @@ -21469,9 +18241,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildTagIndex_args)) + if (!(_that instanceof removeRange_args)) return false; - rebuildTagIndex_args that = (rebuildTagIndex_args)_that; + removeRange_args that = (removeRange_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -21484,7 +18256,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildTagIndex_args other) { + public int compareTo(removeRange_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21519,7 +18291,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RebuildIndexReq(); + this.req = new RemoveRangeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21561,7 +18333,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("rebuildTagIndex_args"); + StringBuilder sb = new StringBuilder("removeRange_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21588,8 +18360,8 @@ public void validate() throws TException { } - public static class rebuildTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("rebuildTagIndex_result"); + public static class removeRange_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("removeRange_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -21607,13 +18379,13 @@ public static class rebuildTagIndex_result implements TBase, java.io.Serializabl } static { - FieldMetaData.addStructMetaDataMap(rebuildTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeRange_result.class, metaDataMap); } - public rebuildTagIndex_result() { + public removeRange_result() { } - public rebuildTagIndex_result( + public removeRange_result( ExecResp success) { this(); this.success = success; @@ -21622,21 +18394,21 @@ public rebuildTagIndex_result( /** * Performs a deep copy on other. */ - public rebuildTagIndex_result(rebuildTagIndex_result other) { + public removeRange_result(removeRange_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public rebuildTagIndex_result deepCopy() { - return new rebuildTagIndex_result(this); + public removeRange_result deepCopy() { + return new removeRange_result(this); } public ExecResp getSuccess() { return this.success; } - public rebuildTagIndex_result setSuccess(ExecResp success) { + public removeRange_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -21687,9 +18459,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildTagIndex_result)) + if (!(_that instanceof removeRange_result)) return false; - rebuildTagIndex_result that = (rebuildTagIndex_result)_that; + removeRange_result that = (removeRange_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -21702,7 +18474,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildTagIndex_result other) { + public int compareTo(removeRange_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21778,7 +18550,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("rebuildTagIndex_result"); + StringBuilder sb = new StringBuilder("removeRange_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21805,11 +18577,11 @@ public void validate() throws TException { } - public static class listTagIndexStatus_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listTagIndexStatus_args"); + public static class scan_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("scan_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListIndexStatusReq req; + public ScanReq req; public static final int REQ = 1; // isset id assignments @@ -21819,19 +18591,19 @@ public static class listTagIndexStatus_args implements TBase, java.io.Serializab static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListIndexStatusReq.class))); + new StructMetaData(TType.STRUCT, ScanReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexStatus_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap); } - public listTagIndexStatus_args() { + public scan_args() { } - public listTagIndexStatus_args( - ListIndexStatusReq req) { + public scan_args( + ScanReq req) { this(); this.req = req; } @@ -21839,21 +18611,21 @@ public listTagIndexStatus_args( /** * Performs a deep copy on other. */ - public listTagIndexStatus_args(listTagIndexStatus_args other) { + public scan_args(scan_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listTagIndexStatus_args deepCopy() { - return new listTagIndexStatus_args(this); + public scan_args deepCopy() { + return new scan_args(this); } - public ListIndexStatusReq getReq() { + public ScanReq getReq() { return this.req; } - public listTagIndexStatus_args setReq(ListIndexStatusReq req) { + public scan_args setReq(ScanReq req) { this.req = req; return this; } @@ -21879,7 +18651,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListIndexStatusReq)__value); + setReq((ScanReq)__value); } break; @@ -21904,9 +18676,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexStatus_args)) + if (!(_that instanceof scan_args)) return false; - listTagIndexStatus_args that = (listTagIndexStatus_args)_that; + scan_args that = (scan_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -21919,7 +18691,7 @@ public int hashCode() { } @Override - public int compareTo(listTagIndexStatus_args other) { + public int compareTo(scan_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21954,7 +18726,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListIndexStatusReq(); + this.req = new ScanReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21996,7 +18768,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listTagIndexStatus_args"); + StringBuilder sb = new StringBuilder("scan_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22023,11 +18795,11 @@ public void validate() throws TException { } - public static class listTagIndexStatus_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listTagIndexStatus_result"); + public static class scan_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("scan_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListIndexStatusResp success; + public ScanResp success; public static final int SUCCESS = 0; // isset id assignments @@ -22037,19 +18809,19 @@ public static class listTagIndexStatus_result implements TBase, java.io.Serializ static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListIndexStatusResp.class))); + new StructMetaData(TType.STRUCT, ScanResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexStatus_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap); } - public listTagIndexStatus_result() { + public scan_result() { } - public listTagIndexStatus_result( - ListIndexStatusResp success) { + public scan_result( + ScanResp success) { this(); this.success = success; } @@ -22057,21 +18829,21 @@ public listTagIndexStatus_result( /** * Performs a deep copy on other. */ - public listTagIndexStatus_result(listTagIndexStatus_result other) { + public scan_result(scan_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listTagIndexStatus_result deepCopy() { - return new listTagIndexStatus_result(this); + public scan_result deepCopy() { + return new scan_result(this); } - public ListIndexStatusResp getSuccess() { + public ScanResp getSuccess() { return this.success; } - public listTagIndexStatus_result setSuccess(ListIndexStatusResp success) { + public scan_result setSuccess(ScanResp success) { this.success = success; return this; } @@ -22097,7 +18869,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListIndexStatusResp)__value); + setSuccess((ScanResp)__value); } break; @@ -22122,9 +18894,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexStatus_result)) + if (!(_that instanceof scan_result)) return false; - listTagIndexStatus_result that = (listTagIndexStatus_result)_that; + scan_result that = (scan_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -22137,7 +18909,7 @@ public int hashCode() { } @Override - public int compareTo(listTagIndexStatus_result other) { + public int compareTo(scan_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22172,7 +18944,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListIndexStatusResp(); + this.success = new ScanResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22213,7 +18985,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listTagIndexStatus_result"); + StringBuilder sb = new StringBuilder("scan_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22240,11 +19012,11 @@ public void validate() throws TException { } - public static class createEdgeIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createEdgeIndex_args"); + public static class createTagIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createTagIndex_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateEdgeIndexReq req; + public CreateTagIndexReq req; public static final int REQ = 1; // isset id assignments @@ -22254,19 +19026,19 @@ public static class createEdgeIndex_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateEdgeIndexReq.class))); + new StructMetaData(TType.STRUCT, CreateTagIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createTagIndex_args.class, metaDataMap); } - public createEdgeIndex_args() { + public createTagIndex_args() { } - public createEdgeIndex_args( - CreateEdgeIndexReq req) { + public createTagIndex_args( + CreateTagIndexReq req) { this(); this.req = req; } @@ -22274,21 +19046,21 @@ public createEdgeIndex_args( /** * Performs a deep copy on other. */ - public createEdgeIndex_args(createEdgeIndex_args other) { + public createTagIndex_args(createTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createEdgeIndex_args deepCopy() { - return new createEdgeIndex_args(this); + public createTagIndex_args deepCopy() { + return new createTagIndex_args(this); } - public CreateEdgeIndexReq getReq() { + public CreateTagIndexReq getReq() { return this.req; } - public createEdgeIndex_args setReq(CreateEdgeIndexReq req) { + public createTagIndex_args setReq(CreateTagIndexReq req) { this.req = req; return this; } @@ -22314,7 +19086,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateEdgeIndexReq)__value); + setReq((CreateTagIndexReq)__value); } break; @@ -22339,9 +19111,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdgeIndex_args)) + if (!(_that instanceof createTagIndex_args)) return false; - createEdgeIndex_args that = (createEdgeIndex_args)_that; + createTagIndex_args that = (createTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -22354,7 +19126,7 @@ public int hashCode() { } @Override - public int compareTo(createEdgeIndex_args other) { + public int compareTo(createTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22389,7 +19161,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateEdgeIndexReq(); + this.req = new CreateTagIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22431,7 +19203,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createEdgeIndex_args"); + StringBuilder sb = new StringBuilder("createTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22458,8 +19230,8 @@ public void validate() throws TException { } - public static class createEdgeIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createEdgeIndex_result"); + public static class createTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createTagIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -22477,13 +19249,13 @@ public static class createEdgeIndex_result implements TBase, java.io.Serializabl } static { - FieldMetaData.addStructMetaDataMap(createEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createTagIndex_result.class, metaDataMap); } - public createEdgeIndex_result() { + public createTagIndex_result() { } - public createEdgeIndex_result( + public createTagIndex_result( ExecResp success) { this(); this.success = success; @@ -22492,21 +19264,21 @@ public createEdgeIndex_result( /** * Performs a deep copy on other. */ - public createEdgeIndex_result(createEdgeIndex_result other) { + public createTagIndex_result(createTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createEdgeIndex_result deepCopy() { - return new createEdgeIndex_result(this); + public createTagIndex_result deepCopy() { + return new createTagIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public createEdgeIndex_result setSuccess(ExecResp success) { + public createTagIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -22557,9 +19329,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdgeIndex_result)) + if (!(_that instanceof createTagIndex_result)) return false; - createEdgeIndex_result that = (createEdgeIndex_result)_that; + createTagIndex_result that = (createTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -22572,7 +19344,7 @@ public int hashCode() { } @Override - public int compareTo(createEdgeIndex_result other) { + public int compareTo(createTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22648,7 +19420,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createEdgeIndex_result"); + StringBuilder sb = new StringBuilder("createTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22675,11 +19447,11 @@ public void validate() throws TException { } - public static class dropEdgeIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropEdgeIndex_args"); + public static class dropTagIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropTagIndex_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropEdgeIndexReq req; + public DropTagIndexReq req; public static final int REQ = 1; // isset id assignments @@ -22689,19 +19461,19 @@ public static class dropEdgeIndex_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropEdgeIndexReq.class))); + new StructMetaData(TType.STRUCT, DropTagIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropTagIndex_args.class, metaDataMap); } - public dropEdgeIndex_args() { + public dropTagIndex_args() { } - public dropEdgeIndex_args( - DropEdgeIndexReq req) { + public dropTagIndex_args( + DropTagIndexReq req) { this(); this.req = req; } @@ -22709,21 +19481,21 @@ public dropEdgeIndex_args( /** * Performs a deep copy on other. */ - public dropEdgeIndex_args(dropEdgeIndex_args other) { + public dropTagIndex_args(dropTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropEdgeIndex_args deepCopy() { - return new dropEdgeIndex_args(this); + public dropTagIndex_args deepCopy() { + return new dropTagIndex_args(this); } - public DropEdgeIndexReq getReq() { + public DropTagIndexReq getReq() { return this.req; } - public dropEdgeIndex_args setReq(DropEdgeIndexReq req) { + public dropTagIndex_args setReq(DropTagIndexReq req) { this.req = req; return this; } @@ -22749,7 +19521,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropEdgeIndexReq)__value); + setReq((DropTagIndexReq)__value); } break; @@ -22774,9 +19546,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdgeIndex_args)) + if (!(_that instanceof dropTagIndex_args)) return false; - dropEdgeIndex_args that = (dropEdgeIndex_args)_that; + dropTagIndex_args that = (dropTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -22789,7 +19561,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdgeIndex_args other) { + public int compareTo(dropTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22824,7 +19596,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropEdgeIndexReq(); + this.req = new DropTagIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22866,7 +19638,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropEdgeIndex_args"); + StringBuilder sb = new StringBuilder("dropTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22893,8 +19665,8 @@ public void validate() throws TException { } - public static class dropEdgeIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropEdgeIndex_result"); + public static class dropTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropTagIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -22912,13 +19684,13 @@ public static class dropEdgeIndex_result implements TBase, java.io.Serializable, } static { - FieldMetaData.addStructMetaDataMap(dropEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropTagIndex_result.class, metaDataMap); } - public dropEdgeIndex_result() { + public dropTagIndex_result() { } - public dropEdgeIndex_result( + public dropTagIndex_result( ExecResp success) { this(); this.success = success; @@ -22927,21 +19699,21 @@ public dropEdgeIndex_result( /** * Performs a deep copy on other. */ - public dropEdgeIndex_result(dropEdgeIndex_result other) { + public dropTagIndex_result(dropTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropEdgeIndex_result deepCopy() { - return new dropEdgeIndex_result(this); + public dropTagIndex_result deepCopy() { + return new dropTagIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public dropEdgeIndex_result setSuccess(ExecResp success) { + public dropTagIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -22992,9 +19764,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdgeIndex_result)) + if (!(_that instanceof dropTagIndex_result)) return false; - dropEdgeIndex_result that = (dropEdgeIndex_result)_that; + dropTagIndex_result that = (dropTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -23007,7 +19779,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdgeIndex_result other) { + public int compareTo(dropTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23083,7 +19855,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropEdgeIndex_result"); + StringBuilder sb = new StringBuilder("dropTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23110,11 +19882,11 @@ public void validate() throws TException { } - public static class getEdgeIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getEdgeIndex_args"); + public static class getTagIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getTagIndex_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetEdgeIndexReq req; + public GetTagIndexReq req; public static final int REQ = 1; // isset id assignments @@ -23124,19 +19896,19 @@ public static class getEdgeIndex_args implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetEdgeIndexReq.class))); + new StructMetaData(TType.STRUCT, GetTagIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getTagIndex_args.class, metaDataMap); } - public getEdgeIndex_args() { + public getTagIndex_args() { } - public getEdgeIndex_args( - GetEdgeIndexReq req) { + public getTagIndex_args( + GetTagIndexReq req) { this(); this.req = req; } @@ -23144,21 +19916,21 @@ public getEdgeIndex_args( /** * Performs a deep copy on other. */ - public getEdgeIndex_args(getEdgeIndex_args other) { + public getTagIndex_args(getTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getEdgeIndex_args deepCopy() { - return new getEdgeIndex_args(this); + public getTagIndex_args deepCopy() { + return new getTagIndex_args(this); } - public GetEdgeIndexReq getReq() { + public GetTagIndexReq getReq() { return this.req; } - public getEdgeIndex_args setReq(GetEdgeIndexReq req) { + public getTagIndex_args setReq(GetTagIndexReq req) { this.req = req; return this; } @@ -23184,7 +19956,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetEdgeIndexReq)__value); + setReq((GetTagIndexReq)__value); } break; @@ -23209,9 +19981,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdgeIndex_args)) + if (!(_that instanceof getTagIndex_args)) return false; - getEdgeIndex_args that = (getEdgeIndex_args)_that; + getTagIndex_args that = (getTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -23224,7 +19996,7 @@ public int hashCode() { } @Override - public int compareTo(getEdgeIndex_args other) { + public int compareTo(getTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23259,7 +20031,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetEdgeIndexReq(); + this.req = new GetTagIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -23301,7 +20073,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getEdgeIndex_args"); + StringBuilder sb = new StringBuilder("getTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23328,11 +20100,11 @@ public void validate() throws TException { } - public static class getEdgeIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getEdgeIndex_result"); + public static class getTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getTagIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetEdgeIndexResp success; + public GetTagIndexResp success; public static final int SUCCESS = 0; // isset id assignments @@ -23342,19 +20114,19 @@ public static class getEdgeIndex_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetEdgeIndexResp.class))); + new StructMetaData(TType.STRUCT, GetTagIndexResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getTagIndex_result.class, metaDataMap); } - public getEdgeIndex_result() { + public getTagIndex_result() { } - public getEdgeIndex_result( - GetEdgeIndexResp success) { + public getTagIndex_result( + GetTagIndexResp success) { this(); this.success = success; } @@ -23362,21 +20134,21 @@ public getEdgeIndex_result( /** * Performs a deep copy on other. */ - public getEdgeIndex_result(getEdgeIndex_result other) { + public getTagIndex_result(getTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getEdgeIndex_result deepCopy() { - return new getEdgeIndex_result(this); + public getTagIndex_result deepCopy() { + return new getTagIndex_result(this); } - public GetEdgeIndexResp getSuccess() { + public GetTagIndexResp getSuccess() { return this.success; } - public getEdgeIndex_result setSuccess(GetEdgeIndexResp success) { + public getTagIndex_result setSuccess(GetTagIndexResp success) { this.success = success; return this; } @@ -23402,7 +20174,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetEdgeIndexResp)__value); + setSuccess((GetTagIndexResp)__value); } break; @@ -23427,9 +20199,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdgeIndex_result)) + if (!(_that instanceof getTagIndex_result)) return false; - getEdgeIndex_result that = (getEdgeIndex_result)_that; + getTagIndex_result that = (getTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -23442,7 +20214,7 @@ public int hashCode() { } @Override - public int compareTo(getEdgeIndex_result other) { + public int compareTo(getTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23477,7 +20249,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetEdgeIndexResp(); + this.success = new GetTagIndexResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -23518,7 +20290,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getEdgeIndex_result"); + StringBuilder sb = new StringBuilder("getTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23545,11 +20317,11 @@ public void validate() throws TException { } - public static class listEdgeIndexes_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listEdgeIndexes_args"); + public static class listTagIndexes_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listTagIndexes_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListEdgeIndexesReq req; + public ListTagIndexesReq req; public static final int REQ = 1; // isset id assignments @@ -23559,19 +20331,19 @@ public static class listEdgeIndexes_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListEdgeIndexesReq.class))); + new StructMetaData(TType.STRUCT, ListTagIndexesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexes_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexes_args.class, metaDataMap); } - public listEdgeIndexes_args() { + public listTagIndexes_args() { } - public listEdgeIndexes_args( - ListEdgeIndexesReq req) { + public listTagIndexes_args( + ListTagIndexesReq req) { this(); this.req = req; } @@ -23579,21 +20351,21 @@ public listEdgeIndexes_args( /** * Performs a deep copy on other. */ - public listEdgeIndexes_args(listEdgeIndexes_args other) { + public listTagIndexes_args(listTagIndexes_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listEdgeIndexes_args deepCopy() { - return new listEdgeIndexes_args(this); + public listTagIndexes_args deepCopy() { + return new listTagIndexes_args(this); } - public ListEdgeIndexesReq getReq() { + public ListTagIndexesReq getReq() { return this.req; } - public listEdgeIndexes_args setReq(ListEdgeIndexesReq req) { + public listTagIndexes_args setReq(ListTagIndexesReq req) { this.req = req; return this; } @@ -23619,7 +20391,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListEdgeIndexesReq)__value); + setReq((ListTagIndexesReq)__value); } break; @@ -23644,9 +20416,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexes_args)) + if (!(_that instanceof listTagIndexes_args)) return false; - listEdgeIndexes_args that = (listEdgeIndexes_args)_that; + listTagIndexes_args that = (listTagIndexes_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -23659,7 +20431,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexes_args other) { + public int compareTo(listTagIndexes_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23694,7 +20466,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListEdgeIndexesReq(); + this.req = new ListTagIndexesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -23736,7 +20508,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listEdgeIndexes_args"); + StringBuilder sb = new StringBuilder("listTagIndexes_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23763,11 +20535,11 @@ public void validate() throws TException { } - public static class listEdgeIndexes_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listEdgeIndexes_result"); + public static class listTagIndexes_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listTagIndexes_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListEdgeIndexesResp success; + public ListTagIndexesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -23777,19 +20549,19 @@ public static class listEdgeIndexes_result implements TBase, java.io.Serializabl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListEdgeIndexesResp.class))); + new StructMetaData(TType.STRUCT, ListTagIndexesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexes_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexes_result.class, metaDataMap); } - public listEdgeIndexes_result() { + public listTagIndexes_result() { } - public listEdgeIndexes_result( - ListEdgeIndexesResp success) { + public listTagIndexes_result( + ListTagIndexesResp success) { this(); this.success = success; } @@ -23797,21 +20569,21 @@ public listEdgeIndexes_result( /** * Performs a deep copy on other. */ - public listEdgeIndexes_result(listEdgeIndexes_result other) { + public listTagIndexes_result(listTagIndexes_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listEdgeIndexes_result deepCopy() { - return new listEdgeIndexes_result(this); + public listTagIndexes_result deepCopy() { + return new listTagIndexes_result(this); } - public ListEdgeIndexesResp getSuccess() { + public ListTagIndexesResp getSuccess() { return this.success; } - public listEdgeIndexes_result setSuccess(ListEdgeIndexesResp success) { + public listTagIndexes_result setSuccess(ListTagIndexesResp success) { this.success = success; return this; } @@ -23837,7 +20609,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListEdgeIndexesResp)__value); + setSuccess((ListTagIndexesResp)__value); } break; @@ -23862,9 +20634,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexes_result)) + if (!(_that instanceof listTagIndexes_result)) return false; - listEdgeIndexes_result that = (listEdgeIndexes_result)_that; + listTagIndexes_result that = (listTagIndexes_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -23877,7 +20649,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexes_result other) { + public int compareTo(listTagIndexes_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23912,7 +20684,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListEdgeIndexesResp(); + this.success = new ListTagIndexesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -23953,7 +20725,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listEdgeIndexes_result"); + StringBuilder sb = new StringBuilder("listTagIndexes_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23980,8 +20752,8 @@ public void validate() throws TException { } - public static class rebuildEdgeIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("rebuildEdgeIndex_args"); + public static class rebuildTagIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("rebuildTagIndex_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); public RebuildIndexReq req; @@ -23999,13 +20771,13 @@ public static class rebuildEdgeIndex_args implements TBase, java.io.Serializable } static { - FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildTagIndex_args.class, metaDataMap); } - public rebuildEdgeIndex_args() { + public rebuildTagIndex_args() { } - public rebuildEdgeIndex_args( + public rebuildTagIndex_args( RebuildIndexReq req) { this(); this.req = req; @@ -24014,21 +20786,21 @@ public rebuildEdgeIndex_args( /** * Performs a deep copy on other. */ - public rebuildEdgeIndex_args(rebuildEdgeIndex_args other) { + public rebuildTagIndex_args(rebuildTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public rebuildEdgeIndex_args deepCopy() { - return new rebuildEdgeIndex_args(this); + public rebuildTagIndex_args deepCopy() { + return new rebuildTagIndex_args(this); } public RebuildIndexReq getReq() { return this.req; } - public rebuildEdgeIndex_args setReq(RebuildIndexReq req) { + public rebuildTagIndex_args setReq(RebuildIndexReq req) { this.req = req; return this; } @@ -24079,9 +20851,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildEdgeIndex_args)) + if (!(_that instanceof rebuildTagIndex_args)) return false; - rebuildEdgeIndex_args that = (rebuildEdgeIndex_args)_that; + rebuildTagIndex_args that = (rebuildTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -24094,7 +20866,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildEdgeIndex_args other) { + public int compareTo(rebuildTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24171,7 +20943,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("rebuildEdgeIndex_args"); + StringBuilder sb = new StringBuilder("rebuildTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24198,8 +20970,8 @@ public void validate() throws TException { } - public static class rebuildEdgeIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("rebuildEdgeIndex_result"); + public static class rebuildTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("rebuildTagIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -24217,13 +20989,13 @@ public static class rebuildEdgeIndex_result implements TBase, java.io.Serializab } static { - FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildTagIndex_result.class, metaDataMap); } - public rebuildEdgeIndex_result() { + public rebuildTagIndex_result() { } - public rebuildEdgeIndex_result( + public rebuildTagIndex_result( ExecResp success) { this(); this.success = success; @@ -24232,21 +21004,21 @@ public rebuildEdgeIndex_result( /** * Performs a deep copy on other. */ - public rebuildEdgeIndex_result(rebuildEdgeIndex_result other) { + public rebuildTagIndex_result(rebuildTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public rebuildEdgeIndex_result deepCopy() { - return new rebuildEdgeIndex_result(this); + public rebuildTagIndex_result deepCopy() { + return new rebuildTagIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public rebuildEdgeIndex_result setSuccess(ExecResp success) { + public rebuildTagIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -24297,9 +21069,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildEdgeIndex_result)) + if (!(_that instanceof rebuildTagIndex_result)) return false; - rebuildEdgeIndex_result that = (rebuildEdgeIndex_result)_that; + rebuildTagIndex_result that = (rebuildTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -24312,7 +21084,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildEdgeIndex_result other) { + public int compareTo(rebuildTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24388,7 +21160,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("rebuildEdgeIndex_result"); + StringBuilder sb = new StringBuilder("rebuildTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24415,8 +21187,8 @@ public void validate() throws TException { } - public static class listEdgeIndexStatus_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listEdgeIndexStatus_args"); + public static class listTagIndexStatus_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listTagIndexStatus_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); public ListIndexStatusReq req; @@ -24434,13 +21206,13 @@ public static class listEdgeIndexStatus_args implements TBase, java.io.Serializa } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexStatus_args.class, metaDataMap); } - public listEdgeIndexStatus_args() { + public listTagIndexStatus_args() { } - public listEdgeIndexStatus_args( + public listTagIndexStatus_args( ListIndexStatusReq req) { this(); this.req = req; @@ -24449,21 +21221,21 @@ public listEdgeIndexStatus_args( /** * Performs a deep copy on other. */ - public listEdgeIndexStatus_args(listEdgeIndexStatus_args other) { + public listTagIndexStatus_args(listTagIndexStatus_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listEdgeIndexStatus_args deepCopy() { - return new listEdgeIndexStatus_args(this); + public listTagIndexStatus_args deepCopy() { + return new listTagIndexStatus_args(this); } public ListIndexStatusReq getReq() { return this.req; } - public listEdgeIndexStatus_args setReq(ListIndexStatusReq req) { + public listTagIndexStatus_args setReq(ListIndexStatusReq req) { this.req = req; return this; } @@ -24514,9 +21286,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexStatus_args)) + if (!(_that instanceof listTagIndexStatus_args)) return false; - listEdgeIndexStatus_args that = (listEdgeIndexStatus_args)_that; + listTagIndexStatus_args that = (listTagIndexStatus_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -24529,7 +21301,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexStatus_args other) { + public int compareTo(listTagIndexStatus_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24606,7 +21378,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listEdgeIndexStatus_args"); + StringBuilder sb = new StringBuilder("listTagIndexStatus_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24633,8 +21405,8 @@ public void validate() throws TException { } - public static class listEdgeIndexStatus_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listEdgeIndexStatus_result"); + public static class listTagIndexStatus_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listTagIndexStatus_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ListIndexStatusResp success; @@ -24652,13 +21424,13 @@ public static class listEdgeIndexStatus_result implements TBase, java.io.Seriali } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexStatus_result.class, metaDataMap); } - public listEdgeIndexStatus_result() { + public listTagIndexStatus_result() { } - public listEdgeIndexStatus_result( + public listTagIndexStatus_result( ListIndexStatusResp success) { this(); this.success = success; @@ -24667,21 +21439,21 @@ public listEdgeIndexStatus_result( /** * Performs a deep copy on other. */ - public listEdgeIndexStatus_result(listEdgeIndexStatus_result other) { + public listTagIndexStatus_result(listTagIndexStatus_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listEdgeIndexStatus_result deepCopy() { - return new listEdgeIndexStatus_result(this); + public listTagIndexStatus_result deepCopy() { + return new listTagIndexStatus_result(this); } public ListIndexStatusResp getSuccess() { return this.success; } - public listEdgeIndexStatus_result setSuccess(ListIndexStatusResp success) { + public listTagIndexStatus_result setSuccess(ListIndexStatusResp success) { this.success = success; return this; } @@ -24732,9 +21504,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexStatus_result)) + if (!(_that instanceof listTagIndexStatus_result)) return false; - listEdgeIndexStatus_result that = (listEdgeIndexStatus_result)_that; + listTagIndexStatus_result that = (listTagIndexStatus_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -24747,7 +21519,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexStatus_result other) { + public int compareTo(listTagIndexStatus_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24823,7 +21595,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listEdgeIndexStatus_result"); + StringBuilder sb = new StringBuilder("listTagIndexStatus_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24850,11 +21622,11 @@ public void validate() throws TException { } - public static class createUser_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createUser_args"); + public static class createEdgeIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createEdgeIndex_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateUserReq req; + public CreateEdgeIndexReq req; public static final int REQ = 1; // isset id assignments @@ -24864,19 +21636,19 @@ public static class createUser_args implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateUserReq.class))); + new StructMetaData(TType.STRUCT, CreateEdgeIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createEdgeIndex_args.class, metaDataMap); } - public createUser_args() { + public createEdgeIndex_args() { } - public createUser_args( - CreateUserReq req) { + public createEdgeIndex_args( + CreateEdgeIndexReq req) { this(); this.req = req; } @@ -24884,21 +21656,21 @@ public createUser_args( /** * Performs a deep copy on other. */ - public createUser_args(createUser_args other) { + public createEdgeIndex_args(createEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createUser_args deepCopy() { - return new createUser_args(this); + public createEdgeIndex_args deepCopy() { + return new createEdgeIndex_args(this); } - public CreateUserReq getReq() { + public CreateEdgeIndexReq getReq() { return this.req; } - public createUser_args setReq(CreateUserReq req) { + public createEdgeIndex_args setReq(CreateEdgeIndexReq req) { this.req = req; return this; } @@ -24924,7 +21696,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateUserReq)__value); + setReq((CreateEdgeIndexReq)__value); } break; @@ -24949,9 +21721,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createUser_args)) + if (!(_that instanceof createEdgeIndex_args)) return false; - createUser_args that = (createUser_args)_that; + createEdgeIndex_args that = (createEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -24964,7 +21736,7 @@ public int hashCode() { } @Override - public int compareTo(createUser_args other) { + public int compareTo(createEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24999,7 +21771,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateUserReq(); + this.req = new CreateEdgeIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -25041,7 +21813,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createUser_args"); + StringBuilder sb = new StringBuilder("createEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25068,8 +21840,8 @@ public void validate() throws TException { } - public static class createUser_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createUser_result"); + public static class createEdgeIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createEdgeIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -25087,13 +21859,13 @@ public static class createUser_result implements TBase, java.io.Serializable, Cl } static { - FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createEdgeIndex_result.class, metaDataMap); } - public createUser_result() { + public createEdgeIndex_result() { } - public createUser_result( + public createEdgeIndex_result( ExecResp success) { this(); this.success = success; @@ -25102,21 +21874,21 @@ public createUser_result( /** * Performs a deep copy on other. */ - public createUser_result(createUser_result other) { + public createEdgeIndex_result(createEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createUser_result deepCopy() { - return new createUser_result(this); + public createEdgeIndex_result deepCopy() { + return new createEdgeIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public createUser_result setSuccess(ExecResp success) { + public createEdgeIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -25167,9 +21939,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createUser_result)) + if (!(_that instanceof createEdgeIndex_result)) return false; - createUser_result that = (createUser_result)_that; + createEdgeIndex_result that = (createEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -25182,7 +21954,7 @@ public int hashCode() { } @Override - public int compareTo(createUser_result other) { + public int compareTo(createEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25258,7 +22030,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createUser_result"); + StringBuilder sb = new StringBuilder("createEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25285,11 +22057,11 @@ public void validate() throws TException { } - public static class dropUser_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropUser_args"); + public static class dropEdgeIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropEdgeIndex_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropUserReq req; + public DropEdgeIndexReq req; public static final int REQ = 1; // isset id assignments @@ -25299,19 +22071,19 @@ public static class dropUser_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropUserReq.class))); + new StructMetaData(TType.STRUCT, DropEdgeIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropUser_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropEdgeIndex_args.class, metaDataMap); } - public dropUser_args() { + public dropEdgeIndex_args() { } - public dropUser_args( - DropUserReq req) { + public dropEdgeIndex_args( + DropEdgeIndexReq req) { this(); this.req = req; } @@ -25319,21 +22091,21 @@ public dropUser_args( /** * Performs a deep copy on other. */ - public dropUser_args(dropUser_args other) { + public dropEdgeIndex_args(dropEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropUser_args deepCopy() { - return new dropUser_args(this); + public dropEdgeIndex_args deepCopy() { + return new dropEdgeIndex_args(this); } - public DropUserReq getReq() { + public DropEdgeIndexReq getReq() { return this.req; } - public dropUser_args setReq(DropUserReq req) { + public dropEdgeIndex_args setReq(DropEdgeIndexReq req) { this.req = req; return this; } @@ -25359,7 +22131,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropUserReq)__value); + setReq((DropEdgeIndexReq)__value); } break; @@ -25384,9 +22156,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropUser_args)) + if (!(_that instanceof dropEdgeIndex_args)) return false; - dropUser_args that = (dropUser_args)_that; + dropEdgeIndex_args that = (dropEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -25399,7 +22171,7 @@ public int hashCode() { } @Override - public int compareTo(dropUser_args other) { + public int compareTo(dropEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25434,7 +22206,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropUserReq(); + this.req = new DropEdgeIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -25476,7 +22248,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropUser_args"); + StringBuilder sb = new StringBuilder("dropEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25503,8 +22275,8 @@ public void validate() throws TException { } - public static class dropUser_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropUser_result"); + public static class dropEdgeIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropEdgeIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -25522,13 +22294,13 @@ public static class dropUser_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(dropUser_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropEdgeIndex_result.class, metaDataMap); } - public dropUser_result() { + public dropEdgeIndex_result() { } - public dropUser_result( + public dropEdgeIndex_result( ExecResp success) { this(); this.success = success; @@ -25537,21 +22309,21 @@ public dropUser_result( /** * Performs a deep copy on other. */ - public dropUser_result(dropUser_result other) { + public dropEdgeIndex_result(dropEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropUser_result deepCopy() { - return new dropUser_result(this); + public dropEdgeIndex_result deepCopy() { + return new dropEdgeIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public dropUser_result setSuccess(ExecResp success) { + public dropEdgeIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -25602,9 +22374,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropUser_result)) + if (!(_that instanceof dropEdgeIndex_result)) return false; - dropUser_result that = (dropUser_result)_that; + dropEdgeIndex_result that = (dropEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -25617,7 +22389,7 @@ public int hashCode() { } @Override - public int compareTo(dropUser_result other) { + public int compareTo(dropEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25693,7 +22465,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropUser_result"); + StringBuilder sb = new StringBuilder("dropEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25720,11 +22492,11 @@ public void validate() throws TException { } - public static class alterUser_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("alterUser_args"); + public static class getEdgeIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getEdgeIndex_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AlterUserReq req; + public GetEdgeIndexReq req; public static final int REQ = 1; // isset id assignments @@ -25734,19 +22506,19 @@ public static class alterUser_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AlterUserReq.class))); + new StructMetaData(TType.STRUCT, GetEdgeIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterUser_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getEdgeIndex_args.class, metaDataMap); } - public alterUser_args() { + public getEdgeIndex_args() { } - public alterUser_args( - AlterUserReq req) { + public getEdgeIndex_args( + GetEdgeIndexReq req) { this(); this.req = req; } @@ -25754,21 +22526,21 @@ public alterUser_args( /** * Performs a deep copy on other. */ - public alterUser_args(alterUser_args other) { + public getEdgeIndex_args(getEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public alterUser_args deepCopy() { - return new alterUser_args(this); + public getEdgeIndex_args deepCopy() { + return new getEdgeIndex_args(this); } - public AlterUserReq getReq() { + public GetEdgeIndexReq getReq() { return this.req; } - public alterUser_args setReq(AlterUserReq req) { + public getEdgeIndex_args setReq(GetEdgeIndexReq req) { this.req = req; return this; } @@ -25794,7 +22566,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AlterUserReq)__value); + setReq((GetEdgeIndexReq)__value); } break; @@ -25819,9 +22591,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterUser_args)) + if (!(_that instanceof getEdgeIndex_args)) return false; - alterUser_args that = (alterUser_args)_that; + getEdgeIndex_args that = (getEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -25834,7 +22606,7 @@ public int hashCode() { } @Override - public int compareTo(alterUser_args other) { + public int compareTo(getEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25869,7 +22641,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AlterUserReq(); + this.req = new GetEdgeIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -25911,7 +22683,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("alterUser_args"); + StringBuilder sb = new StringBuilder("getEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25938,11 +22710,11 @@ public void validate() throws TException { } - public static class alterUser_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("alterUser_result"); + public static class getEdgeIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getEdgeIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public GetEdgeIndexResp success; public static final int SUCCESS = 0; // isset id assignments @@ -25952,19 +22724,19 @@ public static class alterUser_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, GetEdgeIndexResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterUser_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getEdgeIndex_result.class, metaDataMap); } - public alterUser_result() { + public getEdgeIndex_result() { } - public alterUser_result( - ExecResp success) { + public getEdgeIndex_result( + GetEdgeIndexResp success) { this(); this.success = success; } @@ -25972,21 +22744,21 @@ public alterUser_result( /** * Performs a deep copy on other. */ - public alterUser_result(alterUser_result other) { + public getEdgeIndex_result(getEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public alterUser_result deepCopy() { - return new alterUser_result(this); + public getEdgeIndex_result deepCopy() { + return new getEdgeIndex_result(this); } - public ExecResp getSuccess() { + public GetEdgeIndexResp getSuccess() { return this.success; } - public alterUser_result setSuccess(ExecResp success) { + public getEdgeIndex_result setSuccess(GetEdgeIndexResp success) { this.success = success; return this; } @@ -26012,7 +22784,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetEdgeIndexResp)__value); } break; @@ -26037,9 +22809,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterUser_result)) + if (!(_that instanceof getEdgeIndex_result)) return false; - alterUser_result that = (alterUser_result)_that; + getEdgeIndex_result that = (getEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -26052,7 +22824,7 @@ public int hashCode() { } @Override - public int compareTo(alterUser_result other) { + public int compareTo(getEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26087,7 +22859,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new GetEdgeIndexResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26128,7 +22900,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("alterUser_result"); + StringBuilder sb = new StringBuilder("getEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26155,11 +22927,11 @@ public void validate() throws TException { } - public static class grantRole_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("grantRole_args"); + public static class listEdgeIndexes_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listEdgeIndexes_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GrantRoleReq req; + public ListEdgeIndexesReq req; public static final int REQ = 1; // isset id assignments @@ -26169,19 +22941,19 @@ public static class grantRole_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GrantRoleReq.class))); + new StructMetaData(TType.STRUCT, ListEdgeIndexesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(grantRole_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexes_args.class, metaDataMap); } - public grantRole_args() { + public listEdgeIndexes_args() { } - public grantRole_args( - GrantRoleReq req) { + public listEdgeIndexes_args( + ListEdgeIndexesReq req) { this(); this.req = req; } @@ -26189,21 +22961,21 @@ public grantRole_args( /** * Performs a deep copy on other. */ - public grantRole_args(grantRole_args other) { + public listEdgeIndexes_args(listEdgeIndexes_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public grantRole_args deepCopy() { - return new grantRole_args(this); + public listEdgeIndexes_args deepCopy() { + return new listEdgeIndexes_args(this); } - public GrantRoleReq getReq() { + public ListEdgeIndexesReq getReq() { return this.req; } - public grantRole_args setReq(GrantRoleReq req) { + public listEdgeIndexes_args setReq(ListEdgeIndexesReq req) { this.req = req; return this; } @@ -26229,7 +23001,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GrantRoleReq)__value); + setReq((ListEdgeIndexesReq)__value); } break; @@ -26254,9 +23026,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof grantRole_args)) + if (!(_that instanceof listEdgeIndexes_args)) return false; - grantRole_args that = (grantRole_args)_that; + listEdgeIndexes_args that = (listEdgeIndexes_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -26269,7 +23041,7 @@ public int hashCode() { } @Override - public int compareTo(grantRole_args other) { + public int compareTo(listEdgeIndexes_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26304,7 +23076,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GrantRoleReq(); + this.req = new ListEdgeIndexesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26346,7 +23118,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("grantRole_args"); + StringBuilder sb = new StringBuilder("listEdgeIndexes_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26373,11 +23145,11 @@ public void validate() throws TException { } - public static class grantRole_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("grantRole_result"); + public static class listEdgeIndexes_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listEdgeIndexes_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListEdgeIndexesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -26387,19 +23159,19 @@ public static class grantRole_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, ListEdgeIndexesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(grantRole_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexes_result.class, metaDataMap); } - public grantRole_result() { + public listEdgeIndexes_result() { } - public grantRole_result( - ExecResp success) { + public listEdgeIndexes_result( + ListEdgeIndexesResp success) { this(); this.success = success; } @@ -26407,21 +23179,21 @@ public grantRole_result( /** * Performs a deep copy on other. */ - public grantRole_result(grantRole_result other) { + public listEdgeIndexes_result(listEdgeIndexes_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public grantRole_result deepCopy() { - return new grantRole_result(this); + public listEdgeIndexes_result deepCopy() { + return new listEdgeIndexes_result(this); } - public ExecResp getSuccess() { + public ListEdgeIndexesResp getSuccess() { return this.success; } - public grantRole_result setSuccess(ExecResp success) { + public listEdgeIndexes_result setSuccess(ListEdgeIndexesResp success) { this.success = success; return this; } @@ -26447,7 +23219,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListEdgeIndexesResp)__value); } break; @@ -26472,9 +23244,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof grantRole_result)) + if (!(_that instanceof listEdgeIndexes_result)) return false; - grantRole_result that = (grantRole_result)_that; + listEdgeIndexes_result that = (listEdgeIndexes_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -26487,7 +23259,7 @@ public int hashCode() { } @Override - public int compareTo(grantRole_result other) { + public int compareTo(listEdgeIndexes_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26522,7 +23294,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListEdgeIndexesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26563,7 +23335,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("grantRole_result"); + StringBuilder sb = new StringBuilder("listEdgeIndexes_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26590,11 +23362,11 @@ public void validate() throws TException { } - public static class revokeRole_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("revokeRole_args"); + public static class rebuildEdgeIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("rebuildEdgeIndex_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RevokeRoleReq req; + public RebuildIndexReq req; public static final int REQ = 1; // isset id assignments @@ -26604,19 +23376,19 @@ public static class revokeRole_args implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RevokeRoleReq.class))); + new StructMetaData(TType.STRUCT, RebuildIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(revokeRole_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_args.class, metaDataMap); } - public revokeRole_args() { + public rebuildEdgeIndex_args() { } - public revokeRole_args( - RevokeRoleReq req) { + public rebuildEdgeIndex_args( + RebuildIndexReq req) { this(); this.req = req; } @@ -26624,21 +23396,21 @@ public revokeRole_args( /** * Performs a deep copy on other. */ - public revokeRole_args(revokeRole_args other) { + public rebuildEdgeIndex_args(rebuildEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public revokeRole_args deepCopy() { - return new revokeRole_args(this); + public rebuildEdgeIndex_args deepCopy() { + return new rebuildEdgeIndex_args(this); } - public RevokeRoleReq getReq() { + public RebuildIndexReq getReq() { return this.req; } - public revokeRole_args setReq(RevokeRoleReq req) { + public rebuildEdgeIndex_args setReq(RebuildIndexReq req) { this.req = req; return this; } @@ -26664,7 +23436,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RevokeRoleReq)__value); + setReq((RebuildIndexReq)__value); } break; @@ -26689,9 +23461,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof revokeRole_args)) + if (!(_that instanceof rebuildEdgeIndex_args)) return false; - revokeRole_args that = (revokeRole_args)_that; + rebuildEdgeIndex_args that = (rebuildEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -26704,7 +23476,7 @@ public int hashCode() { } @Override - public int compareTo(revokeRole_args other) { + public int compareTo(rebuildEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26739,7 +23511,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RevokeRoleReq(); + this.req = new RebuildIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26781,7 +23553,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("revokeRole_args"); + StringBuilder sb = new StringBuilder("rebuildEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26808,8 +23580,8 @@ public void validate() throws TException { } - public static class revokeRole_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("revokeRole_result"); + public static class rebuildEdgeIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("rebuildEdgeIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -26827,13 +23599,13 @@ public static class revokeRole_result implements TBase, java.io.Serializable, Cl } static { - FieldMetaData.addStructMetaDataMap(revokeRole_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_result.class, metaDataMap); } - public revokeRole_result() { + public rebuildEdgeIndex_result() { } - public revokeRole_result( + public rebuildEdgeIndex_result( ExecResp success) { this(); this.success = success; @@ -26842,21 +23614,21 @@ public revokeRole_result( /** * Performs a deep copy on other. */ - public revokeRole_result(revokeRole_result other) { + public rebuildEdgeIndex_result(rebuildEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public revokeRole_result deepCopy() { - return new revokeRole_result(this); + public rebuildEdgeIndex_result deepCopy() { + return new rebuildEdgeIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public revokeRole_result setSuccess(ExecResp success) { + public rebuildEdgeIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -26907,9 +23679,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof revokeRole_result)) + if (!(_that instanceof rebuildEdgeIndex_result)) return false; - revokeRole_result that = (revokeRole_result)_that; + rebuildEdgeIndex_result that = (rebuildEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -26922,7 +23694,7 @@ public int hashCode() { } @Override - public int compareTo(revokeRole_result other) { + public int compareTo(rebuildEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26998,7 +23770,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("revokeRole_result"); + StringBuilder sb = new StringBuilder("rebuildEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27025,11 +23797,11 @@ public void validate() throws TException { } - public static class listUsers_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listUsers_args"); + public static class listEdgeIndexStatus_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listEdgeIndexStatus_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListUsersReq req; + public ListIndexStatusReq req; public static final int REQ = 1; // isset id assignments @@ -27039,19 +23811,19 @@ public static class listUsers_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListUsersReq.class))); + new StructMetaData(TType.STRUCT, ListIndexStatusReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listUsers_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_args.class, metaDataMap); } - public listUsers_args() { + public listEdgeIndexStatus_args() { } - public listUsers_args( - ListUsersReq req) { + public listEdgeIndexStatus_args( + ListIndexStatusReq req) { this(); this.req = req; } @@ -27059,21 +23831,21 @@ public listUsers_args( /** * Performs a deep copy on other. */ - public listUsers_args(listUsers_args other) { + public listEdgeIndexStatus_args(listEdgeIndexStatus_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listUsers_args deepCopy() { - return new listUsers_args(this); + public listEdgeIndexStatus_args deepCopy() { + return new listEdgeIndexStatus_args(this); } - public ListUsersReq getReq() { + public ListIndexStatusReq getReq() { return this.req; } - public listUsers_args setReq(ListUsersReq req) { + public listEdgeIndexStatus_args setReq(ListIndexStatusReq req) { this.req = req; return this; } @@ -27099,7 +23871,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListUsersReq)__value); + setReq((ListIndexStatusReq)__value); } break; @@ -27124,9 +23896,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listUsers_args)) + if (!(_that instanceof listEdgeIndexStatus_args)) return false; - listUsers_args that = (listUsers_args)_that; + listEdgeIndexStatus_args that = (listEdgeIndexStatus_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -27139,7 +23911,7 @@ public int hashCode() { } @Override - public int compareTo(listUsers_args other) { + public int compareTo(listEdgeIndexStatus_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27174,7 +23946,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListUsersReq(); + this.req = new ListIndexStatusReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -27216,7 +23988,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listUsers_args"); + StringBuilder sb = new StringBuilder("listEdgeIndexStatus_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27243,11 +24015,11 @@ public void validate() throws TException { } - public static class listUsers_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listUsers_result"); + public static class listEdgeIndexStatus_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listEdgeIndexStatus_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListUsersResp success; + public ListIndexStatusResp success; public static final int SUCCESS = 0; // isset id assignments @@ -27257,19 +24029,19 @@ public static class listUsers_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListUsersResp.class))); + new StructMetaData(TType.STRUCT, ListIndexStatusResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listUsers_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_result.class, metaDataMap); } - public listUsers_result() { + public listEdgeIndexStatus_result() { } - public listUsers_result( - ListUsersResp success) { + public listEdgeIndexStatus_result( + ListIndexStatusResp success) { this(); this.success = success; } @@ -27277,21 +24049,21 @@ public listUsers_result( /** * Performs a deep copy on other. */ - public listUsers_result(listUsers_result other) { + public listEdgeIndexStatus_result(listEdgeIndexStatus_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listUsers_result deepCopy() { - return new listUsers_result(this); + public listEdgeIndexStatus_result deepCopy() { + return new listEdgeIndexStatus_result(this); } - public ListUsersResp getSuccess() { + public ListIndexStatusResp getSuccess() { return this.success; } - public listUsers_result setSuccess(ListUsersResp success) { + public listEdgeIndexStatus_result setSuccess(ListIndexStatusResp success) { this.success = success; return this; } @@ -27317,7 +24089,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListUsersResp)__value); + setSuccess((ListIndexStatusResp)__value); } break; @@ -27342,9 +24114,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listUsers_result)) + if (!(_that instanceof listEdgeIndexStatus_result)) return false; - listUsers_result that = (listUsers_result)_that; + listEdgeIndexStatus_result that = (listEdgeIndexStatus_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -27357,7 +24129,7 @@ public int hashCode() { } @Override - public int compareTo(listUsers_result other) { + public int compareTo(listEdgeIndexStatus_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27392,7 +24164,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListUsersResp(); + this.success = new ListIndexStatusResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -27433,7 +24205,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listUsers_result"); + StringBuilder sb = new StringBuilder("listEdgeIndexStatus_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27460,11 +24232,11 @@ public void validate() throws TException { } - public static class listRoles_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listRoles_args"); + public static class createUser_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createUser_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListRolesReq req; + public CreateUserReq req; public static final int REQ = 1; // isset id assignments @@ -27474,19 +24246,19 @@ public static class listRoles_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListRolesReq.class))); + new StructMetaData(TType.STRUCT, CreateUserReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listRoles_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap); } - public listRoles_args() { + public createUser_args() { } - public listRoles_args( - ListRolesReq req) { + public createUser_args( + CreateUserReq req) { this(); this.req = req; } @@ -27494,21 +24266,21 @@ public listRoles_args( /** * Performs a deep copy on other. */ - public listRoles_args(listRoles_args other) { + public createUser_args(createUser_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listRoles_args deepCopy() { - return new listRoles_args(this); + public createUser_args deepCopy() { + return new createUser_args(this); } - public ListRolesReq getReq() { + public CreateUserReq getReq() { return this.req; } - public listRoles_args setReq(ListRolesReq req) { + public createUser_args setReq(CreateUserReq req) { this.req = req; return this; } @@ -27534,7 +24306,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListRolesReq)__value); + setReq((CreateUserReq)__value); } break; @@ -27559,9 +24331,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listRoles_args)) + if (!(_that instanceof createUser_args)) return false; - listRoles_args that = (listRoles_args)_that; + createUser_args that = (createUser_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -27574,7 +24346,7 @@ public int hashCode() { } @Override - public int compareTo(listRoles_args other) { + public int compareTo(createUser_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27609,7 +24381,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListRolesReq(); + this.req = new CreateUserReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -27651,7 +24423,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listRoles_args"); + StringBuilder sb = new StringBuilder("createUser_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27678,11 +24450,11 @@ public void validate() throws TException { } - public static class listRoles_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listRoles_result"); + public static class createUser_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createUser_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListRolesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -27692,19 +24464,19 @@ public static class listRoles_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListRolesResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listRoles_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap); } - public listRoles_result() { + public createUser_result() { } - public listRoles_result( - ListRolesResp success) { + public createUser_result( + ExecResp success) { this(); this.success = success; } @@ -27712,21 +24484,21 @@ public listRoles_result( /** * Performs a deep copy on other. */ - public listRoles_result(listRoles_result other) { + public createUser_result(createUser_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listRoles_result deepCopy() { - return new listRoles_result(this); + public createUser_result deepCopy() { + return new createUser_result(this); } - public ListRolesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listRoles_result setSuccess(ListRolesResp success) { + public createUser_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -27752,7 +24524,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListRolesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -27777,9 +24549,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listRoles_result)) + if (!(_that instanceof createUser_result)) return false; - listRoles_result that = (listRoles_result)_that; + createUser_result that = (createUser_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -27792,7 +24564,7 @@ public int hashCode() { } @Override - public int compareTo(listRoles_result other) { + public int compareTo(createUser_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27827,7 +24599,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListRolesResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -27868,7 +24640,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listRoles_result"); + StringBuilder sb = new StringBuilder("createUser_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27895,11 +24667,11 @@ public void validate() throws TException { } - public static class getUserRoles_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getUserRoles_args"); + public static class dropUser_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropUser_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetUserRolesReq req; + public DropUserReq req; public static final int REQ = 1; // isset id assignments @@ -27909,19 +24681,19 @@ public static class getUserRoles_args implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetUserRolesReq.class))); + new StructMetaData(TType.STRUCT, DropUserReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getUserRoles_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropUser_args.class, metaDataMap); } - public getUserRoles_args() { + public dropUser_args() { } - public getUserRoles_args( - GetUserRolesReq req) { + public dropUser_args( + DropUserReq req) { this(); this.req = req; } @@ -27929,21 +24701,21 @@ public getUserRoles_args( /** * Performs a deep copy on other. */ - public getUserRoles_args(getUserRoles_args other) { + public dropUser_args(dropUser_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getUserRoles_args deepCopy() { - return new getUserRoles_args(this); + public dropUser_args deepCopy() { + return new dropUser_args(this); } - public GetUserRolesReq getReq() { + public DropUserReq getReq() { return this.req; } - public getUserRoles_args setReq(GetUserRolesReq req) { + public dropUser_args setReq(DropUserReq req) { this.req = req; return this; } @@ -27969,7 +24741,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetUserRolesReq)__value); + setReq((DropUserReq)__value); } break; @@ -27994,9 +24766,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getUserRoles_args)) + if (!(_that instanceof dropUser_args)) return false; - getUserRoles_args that = (getUserRoles_args)_that; + dropUser_args that = (dropUser_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -28009,7 +24781,7 @@ public int hashCode() { } @Override - public int compareTo(getUserRoles_args other) { + public int compareTo(dropUser_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28044,7 +24816,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetUserRolesReq(); + this.req = new DropUserReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28086,7 +24858,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getUserRoles_args"); + StringBuilder sb = new StringBuilder("dropUser_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28113,11 +24885,11 @@ public void validate() throws TException { } - public static class getUserRoles_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getUserRoles_result"); + public static class dropUser_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropUser_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListRolesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -28127,19 +24899,19 @@ public static class getUserRoles_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListRolesResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getUserRoles_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropUser_result.class, metaDataMap); } - public getUserRoles_result() { + public dropUser_result() { } - public getUserRoles_result( - ListRolesResp success) { + public dropUser_result( + ExecResp success) { this(); this.success = success; } @@ -28147,21 +24919,21 @@ public getUserRoles_result( /** * Performs a deep copy on other. */ - public getUserRoles_result(getUserRoles_result other) { + public dropUser_result(dropUser_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getUserRoles_result deepCopy() { - return new getUserRoles_result(this); + public dropUser_result deepCopy() { + return new dropUser_result(this); } - public ListRolesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getUserRoles_result setSuccess(ListRolesResp success) { + public dropUser_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -28187,7 +24959,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListRolesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -28212,9 +24984,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getUserRoles_result)) + if (!(_that instanceof dropUser_result)) return false; - getUserRoles_result that = (getUserRoles_result)_that; + dropUser_result that = (dropUser_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -28227,7 +24999,7 @@ public int hashCode() { } @Override - public int compareTo(getUserRoles_result other) { + public int compareTo(dropUser_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28262,7 +25034,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListRolesResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28303,7 +25075,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getUserRoles_result"); + StringBuilder sb = new StringBuilder("dropUser_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28330,11 +25102,11 @@ public void validate() throws TException { } - public static class changePassword_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("changePassword_args"); + public static class alterUser_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterUser_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ChangePasswordReq req; + public AlterUserReq req; public static final int REQ = 1; // isset id assignments @@ -28344,19 +25116,19 @@ public static class changePassword_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ChangePasswordReq.class))); + new StructMetaData(TType.STRUCT, AlterUserReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(changePassword_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterUser_args.class, metaDataMap); } - public changePassword_args() { + public alterUser_args() { } - public changePassword_args( - ChangePasswordReq req) { + public alterUser_args( + AlterUserReq req) { this(); this.req = req; } @@ -28364,21 +25136,21 @@ public changePassword_args( /** * Performs a deep copy on other. */ - public changePassword_args(changePassword_args other) { + public alterUser_args(alterUser_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public changePassword_args deepCopy() { - return new changePassword_args(this); + public alterUser_args deepCopy() { + return new alterUser_args(this); } - public ChangePasswordReq getReq() { + public AlterUserReq getReq() { return this.req; } - public changePassword_args setReq(ChangePasswordReq req) { + public alterUser_args setReq(AlterUserReq req) { this.req = req; return this; } @@ -28404,7 +25176,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ChangePasswordReq)__value); + setReq((AlterUserReq)__value); } break; @@ -28429,9 +25201,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof changePassword_args)) + if (!(_that instanceof alterUser_args)) return false; - changePassword_args that = (changePassword_args)_that; + alterUser_args that = (alterUser_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -28444,7 +25216,7 @@ public int hashCode() { } @Override - public int compareTo(changePassword_args other) { + public int compareTo(alterUser_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28479,7 +25251,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ChangePasswordReq(); + this.req = new AlterUserReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28521,7 +25293,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("changePassword_args"); + StringBuilder sb = new StringBuilder("alterUser_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28548,8 +25320,8 @@ public void validate() throws TException { } - public static class changePassword_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("changePassword_result"); + public static class alterUser_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterUser_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -28567,13 +25339,13 @@ public static class changePassword_result implements TBase, java.io.Serializable } static { - FieldMetaData.addStructMetaDataMap(changePassword_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterUser_result.class, metaDataMap); } - public changePassword_result() { + public alterUser_result() { } - public changePassword_result( + public alterUser_result( ExecResp success) { this(); this.success = success; @@ -28582,21 +25354,21 @@ public changePassword_result( /** * Performs a deep copy on other. */ - public changePassword_result(changePassword_result other) { + public alterUser_result(alterUser_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public changePassword_result deepCopy() { - return new changePassword_result(this); + public alterUser_result deepCopy() { + return new alterUser_result(this); } public ExecResp getSuccess() { return this.success; } - public changePassword_result setSuccess(ExecResp success) { + public alterUser_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -28647,9 +25419,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof changePassword_result)) + if (!(_that instanceof alterUser_result)) return false; - changePassword_result that = (changePassword_result)_that; + alterUser_result that = (alterUser_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -28662,7 +25434,7 @@ public int hashCode() { } @Override - public int compareTo(changePassword_result other) { + public int compareTo(alterUser_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28738,7 +25510,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("changePassword_result"); + StringBuilder sb = new StringBuilder("alterUser_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28765,11 +25537,11 @@ public void validate() throws TException { } - public static class heartBeat_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("heartBeat_args"); + public static class grantRole_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("grantRole_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public HBReq req; + public GrantRoleReq req; public static final int REQ = 1; // isset id assignments @@ -28779,19 +25551,19 @@ public static class heartBeat_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, HBReq.class))); + new StructMetaData(TType.STRUCT, GrantRoleReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(heartBeat_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(grantRole_args.class, metaDataMap); } - public heartBeat_args() { + public grantRole_args() { } - public heartBeat_args( - HBReq req) { + public grantRole_args( + GrantRoleReq req) { this(); this.req = req; } @@ -28799,21 +25571,21 @@ public heartBeat_args( /** * Performs a deep copy on other. */ - public heartBeat_args(heartBeat_args other) { + public grantRole_args(grantRole_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public heartBeat_args deepCopy() { - return new heartBeat_args(this); + public grantRole_args deepCopy() { + return new grantRole_args(this); } - public HBReq getReq() { + public GrantRoleReq getReq() { return this.req; } - public heartBeat_args setReq(HBReq req) { + public grantRole_args setReq(GrantRoleReq req) { this.req = req; return this; } @@ -28839,7 +25611,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((HBReq)__value); + setReq((GrantRoleReq)__value); } break; @@ -28864,9 +25636,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof heartBeat_args)) + if (!(_that instanceof grantRole_args)) return false; - heartBeat_args that = (heartBeat_args)_that; + grantRole_args that = (grantRole_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -28879,7 +25651,7 @@ public int hashCode() { } @Override - public int compareTo(heartBeat_args other) { + public int compareTo(grantRole_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28914,7 +25686,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new HBReq(); + this.req = new GrantRoleReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28956,7 +25728,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("heartBeat_args"); + StringBuilder sb = new StringBuilder("grantRole_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28983,11 +25755,11 @@ public void validate() throws TException { } - public static class heartBeat_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("heartBeat_result"); + public static class grantRole_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("grantRole_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public HBResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -28997,19 +25769,19 @@ public static class heartBeat_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, HBResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(heartBeat_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(grantRole_result.class, metaDataMap); } - public heartBeat_result() { + public grantRole_result() { } - public heartBeat_result( - HBResp success) { + public grantRole_result( + ExecResp success) { this(); this.success = success; } @@ -29017,21 +25789,21 @@ public heartBeat_result( /** * Performs a deep copy on other. */ - public heartBeat_result(heartBeat_result other) { + public grantRole_result(grantRole_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public heartBeat_result deepCopy() { - return new heartBeat_result(this); + public grantRole_result deepCopy() { + return new grantRole_result(this); } - public HBResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public heartBeat_result setSuccess(HBResp success) { + public grantRole_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -29057,7 +25829,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((HBResp)__value); + setSuccess((ExecResp)__value); } break; @@ -29082,9 +25854,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof heartBeat_result)) + if (!(_that instanceof grantRole_result)) return false; - heartBeat_result that = (heartBeat_result)_that; + grantRole_result that = (grantRole_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -29097,7 +25869,7 @@ public int hashCode() { } @Override - public int compareTo(heartBeat_result other) { + public int compareTo(grantRole_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -29132,7 +25904,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new HBResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29173,7 +25945,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("heartBeat_result"); + StringBuilder sb = new StringBuilder("grantRole_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29200,11 +25972,11 @@ public void validate() throws TException { } - public static class regConfig_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("regConfig_args"); + public static class revokeRole_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("revokeRole_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RegConfigReq req; + public RevokeRoleReq req; public static final int REQ = 1; // isset id assignments @@ -29214,19 +25986,19 @@ public static class regConfig_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RegConfigReq.class))); + new StructMetaData(TType.STRUCT, RevokeRoleReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(regConfig_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(revokeRole_args.class, metaDataMap); } - public regConfig_args() { + public revokeRole_args() { } - public regConfig_args( - RegConfigReq req) { + public revokeRole_args( + RevokeRoleReq req) { this(); this.req = req; } @@ -29234,21 +26006,21 @@ public regConfig_args( /** * Performs a deep copy on other. */ - public regConfig_args(regConfig_args other) { + public revokeRole_args(revokeRole_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public regConfig_args deepCopy() { - return new regConfig_args(this); + public revokeRole_args deepCopy() { + return new revokeRole_args(this); } - public RegConfigReq getReq() { + public RevokeRoleReq getReq() { return this.req; } - public regConfig_args setReq(RegConfigReq req) { + public revokeRole_args setReq(RevokeRoleReq req) { this.req = req; return this; } @@ -29274,7 +26046,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RegConfigReq)__value); + setReq((RevokeRoleReq)__value); } break; @@ -29299,9 +26071,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof regConfig_args)) + if (!(_that instanceof revokeRole_args)) return false; - regConfig_args that = (regConfig_args)_that; + revokeRole_args that = (revokeRole_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -29313,6 +26085,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } + @Override + public int compareTo(revokeRole_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + public void read(TProtocol iprot) throws TException { TField __field; iprot.readStructBegin(metaDataMap); @@ -29326,7 +26121,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RegConfigReq(); + this.req = new RevokeRoleReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29368,7 +26163,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("regConfig_args"); + StringBuilder sb = new StringBuilder("revokeRole_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29395,8 +26190,8 @@ public void validate() throws TException { } - public static class regConfig_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("regConfig_result"); + public static class revokeRole_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("revokeRole_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -29414,13 +26209,13 @@ public static class regConfig_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(regConfig_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(revokeRole_result.class, metaDataMap); } - public regConfig_result() { + public revokeRole_result() { } - public regConfig_result( + public revokeRole_result( ExecResp success) { this(); this.success = success; @@ -29429,21 +26224,21 @@ public regConfig_result( /** * Performs a deep copy on other. */ - public regConfig_result(regConfig_result other) { + public revokeRole_result(revokeRole_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public regConfig_result deepCopy() { - return new regConfig_result(this); + public revokeRole_result deepCopy() { + return new revokeRole_result(this); } public ExecResp getSuccess() { return this.success; } - public regConfig_result setSuccess(ExecResp success) { + public revokeRole_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -29494,9 +26289,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof regConfig_result)) + if (!(_that instanceof revokeRole_result)) return false; - regConfig_result that = (regConfig_result)_that; + revokeRole_result that = (revokeRole_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -29509,7 +26304,7 @@ public int hashCode() { } @Override - public int compareTo(regConfig_result other) { + public int compareTo(revokeRole_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -29585,7 +26380,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("regConfig_result"); + StringBuilder sb = new StringBuilder("revokeRole_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29612,11 +26407,11 @@ public void validate() throws TException { } - public static class getConfig_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getConfig_args"); + public static class listUsers_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listUsers_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetConfigReq req; + public ListUsersReq req; public static final int REQ = 1; // isset id assignments @@ -29626,19 +26421,19 @@ public static class getConfig_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetConfigReq.class))); + new StructMetaData(TType.STRUCT, ListUsersReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getConfig_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listUsers_args.class, metaDataMap); } - public getConfig_args() { + public listUsers_args() { } - public getConfig_args( - GetConfigReq req) { + public listUsers_args( + ListUsersReq req) { this(); this.req = req; } @@ -29646,21 +26441,21 @@ public getConfig_args( /** * Performs a deep copy on other. */ - public getConfig_args(getConfig_args other) { + public listUsers_args(listUsers_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getConfig_args deepCopy() { - return new getConfig_args(this); + public listUsers_args deepCopy() { + return new listUsers_args(this); } - public GetConfigReq getReq() { + public ListUsersReq getReq() { return this.req; } - public getConfig_args setReq(GetConfigReq req) { + public listUsers_args setReq(ListUsersReq req) { this.req = req; return this; } @@ -29686,7 +26481,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetConfigReq)__value); + setReq((ListUsersReq)__value); } break; @@ -29711,9 +26506,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getConfig_args)) + if (!(_that instanceof listUsers_args)) return false; - getConfig_args that = (getConfig_args)_that; + listUsers_args that = (listUsers_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -29725,6 +26520,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } + @Override + public int compareTo(listUsers_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + public void read(TProtocol iprot) throws TException { TField __field; iprot.readStructBegin(metaDataMap); @@ -29738,7 +26556,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetConfigReq(); + this.req = new ListUsersReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29780,7 +26598,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getConfig_args"); + StringBuilder sb = new StringBuilder("listUsers_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29807,11 +26625,11 @@ public void validate() throws TException { } - public static class getConfig_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getConfig_result"); + public static class listUsers_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listUsers_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetConfigResp success; + public ListUsersResp success; public static final int SUCCESS = 0; // isset id assignments @@ -29821,19 +26639,19 @@ public static class getConfig_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetConfigResp.class))); + new StructMetaData(TType.STRUCT, ListUsersResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getConfig_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listUsers_result.class, metaDataMap); } - public getConfig_result() { + public listUsers_result() { } - public getConfig_result( - GetConfigResp success) { + public listUsers_result( + ListUsersResp success) { this(); this.success = success; } @@ -29841,21 +26659,21 @@ public getConfig_result( /** * Performs a deep copy on other. */ - public getConfig_result(getConfig_result other) { + public listUsers_result(listUsers_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getConfig_result deepCopy() { - return new getConfig_result(this); + public listUsers_result deepCopy() { + return new listUsers_result(this); } - public GetConfigResp getSuccess() { + public ListUsersResp getSuccess() { return this.success; } - public getConfig_result setSuccess(GetConfigResp success) { + public listUsers_result setSuccess(ListUsersResp success) { this.success = success; return this; } @@ -29881,7 +26699,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetConfigResp)__value); + setSuccess((ListUsersResp)__value); } break; @@ -29906,9 +26724,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getConfig_result)) + if (!(_that instanceof listUsers_result)) return false; - getConfig_result that = (getConfig_result)_that; + listUsers_result that = (listUsers_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -29920,6 +26738,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } + @Override + public int compareTo(listUsers_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + public void read(TProtocol iprot) throws TException { TField __field; iprot.readStructBegin(metaDataMap); @@ -29933,7 +26774,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetConfigResp(); + this.success = new ListUsersResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29974,7 +26815,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getConfig_result"); + StringBuilder sb = new StringBuilder("listUsers_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -30001,11 +26842,11 @@ public void validate() throws TException { } - public static class setConfig_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("setConfig_args"); + public static class listRoles_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listRoles_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public SetConfigReq req; + public ListRolesReq req; public static final int REQ = 1; // isset id assignments @@ -30015,19 +26856,19 @@ public static class setConfig_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, SetConfigReq.class))); + new StructMetaData(TType.STRUCT, ListRolesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(setConfig_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listRoles_args.class, metaDataMap); } - public setConfig_args() { + public listRoles_args() { } - public setConfig_args( - SetConfigReq req) { + public listRoles_args( + ListRolesReq req) { this(); this.req = req; } @@ -30035,21 +26876,21 @@ public setConfig_args( /** * Performs a deep copy on other. */ - public setConfig_args(setConfig_args other) { + public listRoles_args(listRoles_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public setConfig_args deepCopy() { - return new setConfig_args(this); + public listRoles_args deepCopy() { + return new listRoles_args(this); } - public SetConfigReq getReq() { + public ListRolesReq getReq() { return this.req; } - public setConfig_args setReq(SetConfigReq req) { + public listRoles_args setReq(ListRolesReq req) { this.req = req; return this; } @@ -30075,7 +26916,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((SetConfigReq)__value); + setReq((ListRolesReq)__value); } break; @@ -30100,9 +26941,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof setConfig_args)) + if (!(_that instanceof listRoles_args)) return false; - setConfig_args that = (setConfig_args)_that; + listRoles_args that = (listRoles_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -30114,6 +26955,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } + @Override + public int compareTo(listRoles_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + public void read(TProtocol iprot) throws TException { TField __field; iprot.readStructBegin(metaDataMap); @@ -30127,7 +26991,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new SetConfigReq(); + this.req = new ListRolesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -30169,7 +27033,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("setConfig_args"); + StringBuilder sb = new StringBuilder("listRoles_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -30196,11 +27060,11 @@ public void validate() throws TException { } - public static class setConfig_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("setConfig_result"); + public static class listRoles_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listRoles_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListRolesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -30210,19 +27074,19 @@ public static class setConfig_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, ListRolesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(setConfig_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listRoles_result.class, metaDataMap); } - public setConfig_result() { + public listRoles_result() { } - public setConfig_result( - ExecResp success) { + public listRoles_result( + ListRolesResp success) { this(); this.success = success; } @@ -30230,21 +27094,21 @@ public setConfig_result( /** * Performs a deep copy on other. */ - public setConfig_result(setConfig_result other) { + public listRoles_result(listRoles_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public setConfig_result deepCopy() { - return new setConfig_result(this); + public listRoles_result deepCopy() { + return new listRoles_result(this); } - public ExecResp getSuccess() { + public ListRolesResp getSuccess() { return this.success; } - public setConfig_result setSuccess(ExecResp success) { + public listRoles_result setSuccess(ListRolesResp success) { this.success = success; return this; } @@ -30270,7 +27134,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListRolesResp)__value); } break; @@ -30295,9 +27159,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof setConfig_result)) + if (!(_that instanceof listRoles_result)) return false; - setConfig_result that = (setConfig_result)_that; + listRoles_result that = (listRoles_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -30310,7 +27174,7 @@ public int hashCode() { } @Override - public int compareTo(setConfig_result other) { + public int compareTo(listRoles_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -30345,7 +27209,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListRolesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -30386,7 +27250,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("setConfig_result"); + StringBuilder sb = new StringBuilder("listRoles_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -30413,11 +27277,11 @@ public void validate() throws TException { } - public static class listConfigs_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listConfigs_args"); + public static class getUserRoles_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getUserRoles_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListConfigsReq req; + public GetUserRolesReq req; public static final int REQ = 1; // isset id assignments @@ -30427,19 +27291,19 @@ public static class listConfigs_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListConfigsReq.class))); + new StructMetaData(TType.STRUCT, GetUserRolesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listConfigs_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getUserRoles_args.class, metaDataMap); } - public listConfigs_args() { + public getUserRoles_args() { } - public listConfigs_args( - ListConfigsReq req) { + public getUserRoles_args( + GetUserRolesReq req) { this(); this.req = req; } @@ -30447,21 +27311,21 @@ public listConfigs_args( /** * Performs a deep copy on other. */ - public listConfigs_args(listConfigs_args other) { + public getUserRoles_args(getUserRoles_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listConfigs_args deepCopy() { - return new listConfigs_args(this); + public getUserRoles_args deepCopy() { + return new getUserRoles_args(this); } - public ListConfigsReq getReq() { + public GetUserRolesReq getReq() { return this.req; } - public listConfigs_args setReq(ListConfigsReq req) { + public getUserRoles_args setReq(GetUserRolesReq req) { this.req = req; return this; } @@ -30487,7 +27351,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListConfigsReq)__value); + setReq((GetUserRolesReq)__value); } break; @@ -30512,9 +27376,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listConfigs_args)) + if (!(_that instanceof getUserRoles_args)) return false; - listConfigs_args that = (listConfigs_args)_that; + getUserRoles_args that = (getUserRoles_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -30527,7 +27391,7 @@ public int hashCode() { } @Override - public int compareTo(listConfigs_args other) { + public int compareTo(getUserRoles_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -30562,7 +27426,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListConfigsReq(); + this.req = new GetUserRolesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -30604,7 +27468,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listConfigs_args"); + StringBuilder sb = new StringBuilder("getUserRoles_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -30631,11 +27495,11 @@ public void validate() throws TException { } - public static class listConfigs_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("listConfigs_result"); + public static class getUserRoles_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getUserRoles_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListConfigsResp success; + public ListRolesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -30645,19 +27509,19 @@ public static class listConfigs_result implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListConfigsResp.class))); + new StructMetaData(TType.STRUCT, ListRolesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listConfigs_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getUserRoles_result.class, metaDataMap); } - public listConfigs_result() { + public getUserRoles_result() { } - public listConfigs_result( - ListConfigsResp success) { + public getUserRoles_result( + ListRolesResp success) { this(); this.success = success; } @@ -30665,21 +27529,21 @@ public listConfigs_result( /** * Performs a deep copy on other. */ - public listConfigs_result(listConfigs_result other) { + public getUserRoles_result(getUserRoles_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listConfigs_result deepCopy() { - return new listConfigs_result(this); + public getUserRoles_result deepCopy() { + return new getUserRoles_result(this); } - public ListConfigsResp getSuccess() { + public ListRolesResp getSuccess() { return this.success; } - public listConfigs_result setSuccess(ListConfigsResp success) { + public getUserRoles_result setSuccess(ListRolesResp success) { this.success = success; return this; } @@ -30705,7 +27569,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListConfigsResp)__value); + setSuccess((ListRolesResp)__value); } break; @@ -30730,9 +27594,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listConfigs_result)) + if (!(_that instanceof getUserRoles_result)) return false; - listConfigs_result that = (listConfigs_result)_that; + getUserRoles_result that = (getUserRoles_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -30744,6 +27608,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } + @Override + public int compareTo(getUserRoles_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + public void read(TProtocol iprot) throws TException { TField __field; iprot.readStructBegin(metaDataMap); @@ -30757,7 +27644,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListConfigsResp(); + this.success = new ListRolesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -30798,7 +27685,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listConfigs_result"); + StringBuilder sb = new StringBuilder("getUserRoles_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -30825,11 +27712,11 @@ public void validate() throws TException { } - public static class createSnapshot_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createSnapshot_args"); + public static class changePassword_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("changePassword_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateSnapshotReq req; + public ChangePasswordReq req; public static final int REQ = 1; // isset id assignments @@ -30839,19 +27726,19 @@ public static class createSnapshot_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateSnapshotReq.class))); + new StructMetaData(TType.STRUCT, ChangePasswordReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createSnapshot_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(changePassword_args.class, metaDataMap); } - public createSnapshot_args() { + public changePassword_args() { } - public createSnapshot_args( - CreateSnapshotReq req) { + public changePassword_args( + ChangePasswordReq req) { this(); this.req = req; } @@ -30859,21 +27746,21 @@ public createSnapshot_args( /** * Performs a deep copy on other. */ - public createSnapshot_args(createSnapshot_args other) { + public changePassword_args(changePassword_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createSnapshot_args deepCopy() { - return new createSnapshot_args(this); + public changePassword_args deepCopy() { + return new changePassword_args(this); } - public CreateSnapshotReq getReq() { + public ChangePasswordReq getReq() { return this.req; } - public createSnapshot_args setReq(CreateSnapshotReq req) { + public changePassword_args setReq(ChangePasswordReq req) { this.req = req; return this; } @@ -30899,7 +27786,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateSnapshotReq)__value); + setReq((ChangePasswordReq)__value); } break; @@ -30924,9 +27811,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSnapshot_args)) + if (!(_that instanceof changePassword_args)) return false; - createSnapshot_args that = (createSnapshot_args)_that; + changePassword_args that = (changePassword_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -30939,7 +27826,7 @@ public int hashCode() { } @Override - public int compareTo(createSnapshot_args other) { + public int compareTo(changePassword_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -30974,7 +27861,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateSnapshotReq(); + this.req = new ChangePasswordReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -31016,7 +27903,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createSnapshot_args"); + StringBuilder sb = new StringBuilder("changePassword_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -31043,8 +27930,8 @@ public void validate() throws TException { } - public static class createSnapshot_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createSnapshot_result"); + public static class changePassword_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("changePassword_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -31062,13 +27949,13 @@ public static class createSnapshot_result implements TBase, java.io.Serializable } static { - FieldMetaData.addStructMetaDataMap(createSnapshot_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(changePassword_result.class, metaDataMap); } - public createSnapshot_result() { + public changePassword_result() { } - public createSnapshot_result( + public changePassword_result( ExecResp success) { this(); this.success = success; @@ -31077,21 +27964,21 @@ public createSnapshot_result( /** * Performs a deep copy on other. */ - public createSnapshot_result(createSnapshot_result other) { + public changePassword_result(changePassword_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createSnapshot_result deepCopy() { - return new createSnapshot_result(this); + public changePassword_result deepCopy() { + return new changePassword_result(this); } public ExecResp getSuccess() { return this.success; } - public createSnapshot_result setSuccess(ExecResp success) { + public changePassword_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -31142,9 +28029,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSnapshot_result)) + if (!(_that instanceof changePassword_result)) return false; - createSnapshot_result that = (createSnapshot_result)_that; + changePassword_result that = (changePassword_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -31157,7 +28044,7 @@ public int hashCode() { } @Override - public int compareTo(createSnapshot_result other) { + public int compareTo(changePassword_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -31233,7 +28120,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createSnapshot_result"); + StringBuilder sb = new StringBuilder("changePassword_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -31260,11 +28147,11 @@ public void validate() throws TException { } - public static class dropSnapshot_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropSnapshot_args"); + public static class heartBeat_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("heartBeat_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropSnapshotReq req; + public HBReq req; public static final int REQ = 1; // isset id assignments @@ -31274,19 +28161,19 @@ public static class dropSnapshot_args implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropSnapshotReq.class))); + new StructMetaData(TType.STRUCT, HBReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropSnapshot_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(heartBeat_args.class, metaDataMap); } - public dropSnapshot_args() { + public heartBeat_args() { } - public dropSnapshot_args( - DropSnapshotReq req) { + public heartBeat_args( + HBReq req) { this(); this.req = req; } @@ -31294,21 +28181,21 @@ public dropSnapshot_args( /** * Performs a deep copy on other. */ - public dropSnapshot_args(dropSnapshot_args other) { + public heartBeat_args(heartBeat_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropSnapshot_args deepCopy() { - return new dropSnapshot_args(this); + public heartBeat_args deepCopy() { + return new heartBeat_args(this); } - public DropSnapshotReq getReq() { + public HBReq getReq() { return this.req; } - public dropSnapshot_args setReq(DropSnapshotReq req) { + public heartBeat_args setReq(HBReq req) { this.req = req; return this; } @@ -31334,7 +28221,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropSnapshotReq)__value); + setReq((HBReq)__value); } break; @@ -31359,9 +28246,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropSnapshot_args)) + if (!(_that instanceof heartBeat_args)) return false; - dropSnapshot_args that = (dropSnapshot_args)_that; + heartBeat_args that = (heartBeat_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -31374,7 +28261,7 @@ public int hashCode() { } @Override - public int compareTo(dropSnapshot_args other) { + public int compareTo(heartBeat_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -31409,7 +28296,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropSnapshotReq(); + this.req = new HBReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -31451,7 +28338,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropSnapshot_args"); + StringBuilder sb = new StringBuilder("heartBeat_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -31478,11 +28365,11 @@ public void validate() throws TException { } - public static class dropSnapshot_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropSnapshot_result"); + public static class heartBeat_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("heartBeat_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public HBResp success; public static final int SUCCESS = 0; // isset id assignments @@ -31492,19 +28379,19 @@ public static class dropSnapshot_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, HBResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropSnapshot_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(heartBeat_result.class, metaDataMap); } - public dropSnapshot_result() { + public heartBeat_result() { } - public dropSnapshot_result( - ExecResp success) { + public heartBeat_result( + HBResp success) { this(); this.success = success; } @@ -31512,21 +28399,21 @@ public dropSnapshot_result( /** * Performs a deep copy on other. */ - public dropSnapshot_result(dropSnapshot_result other) { + public heartBeat_result(heartBeat_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropSnapshot_result deepCopy() { - return new dropSnapshot_result(this); + public heartBeat_result deepCopy() { + return new heartBeat_result(this); } - public ExecResp getSuccess() { + public HBResp getSuccess() { return this.success; } - public dropSnapshot_result setSuccess(ExecResp success) { + public heartBeat_result setSuccess(HBResp success) { this.success = success; return this; } @@ -31552,7 +28439,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((HBResp)__value); } break; @@ -31577,9 +28464,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropSnapshot_result)) + if (!(_that instanceof heartBeat_result)) return false; - dropSnapshot_result that = (dropSnapshot_result)_that; + heartBeat_result that = (heartBeat_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -31592,7 +28479,7 @@ public int hashCode() { } @Override - public int compareTo(dropSnapshot_result other) { + public int compareTo(heartBeat_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -31627,7 +28514,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new HBResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -31668,7 +28555,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropSnapshot_result"); + StringBuilder sb = new StringBuilder("heartBeat_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -31695,11 +28582,11 @@ public void validate() throws TException { } - public static class listSnapshots_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listSnapshots_args"); + public static class regConfig_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("regConfig_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListSnapshotsReq req; + public RegConfigReq req; public static final int REQ = 1; // isset id assignments @@ -31709,19 +28596,19 @@ public static class listSnapshots_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListSnapshotsReq.class))); + new StructMetaData(TType.STRUCT, RegConfigReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSnapshots_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(regConfig_args.class, metaDataMap); } - public listSnapshots_args() { + public regConfig_args() { } - public listSnapshots_args( - ListSnapshotsReq req) { + public regConfig_args( + RegConfigReq req) { this(); this.req = req; } @@ -31729,21 +28616,21 @@ public listSnapshots_args( /** * Performs a deep copy on other. */ - public listSnapshots_args(listSnapshots_args other) { + public regConfig_args(regConfig_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listSnapshots_args deepCopy() { - return new listSnapshots_args(this); + public regConfig_args deepCopy() { + return new regConfig_args(this); } - public ListSnapshotsReq getReq() { + public RegConfigReq getReq() { return this.req; } - public listSnapshots_args setReq(ListSnapshotsReq req) { + public regConfig_args setReq(RegConfigReq req) { this.req = req; return this; } @@ -31769,7 +28656,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListSnapshotsReq)__value); + setReq((RegConfigReq)__value); } break; @@ -31794,9 +28681,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSnapshots_args)) + if (!(_that instanceof regConfig_args)) return false; - listSnapshots_args that = (listSnapshots_args)_that; + regConfig_args that = (regConfig_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -31808,29 +28695,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } - @Override - public int compareTo(listSnapshots_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - public void read(TProtocol iprot) throws TException { TField __field; iprot.readStructBegin(metaDataMap); @@ -31844,7 +28708,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListSnapshotsReq(); + this.req = new RegConfigReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -31886,7 +28750,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listSnapshots_args"); + StringBuilder sb = new StringBuilder("regConfig_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -31913,11 +28777,11 @@ public void validate() throws TException { } - public static class listSnapshots_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listSnapshots_result"); + public static class regConfig_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("regConfig_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListSnapshotsResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -31927,19 +28791,19 @@ public static class listSnapshots_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListSnapshotsResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSnapshots_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(regConfig_result.class, metaDataMap); } - public listSnapshots_result() { + public regConfig_result() { } - public listSnapshots_result( - ListSnapshotsResp success) { + public regConfig_result( + ExecResp success) { this(); this.success = success; } @@ -31947,21 +28811,21 @@ public listSnapshots_result( /** * Performs a deep copy on other. */ - public listSnapshots_result(listSnapshots_result other) { + public regConfig_result(regConfig_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listSnapshots_result deepCopy() { - return new listSnapshots_result(this); + public regConfig_result deepCopy() { + return new regConfig_result(this); } - public ListSnapshotsResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listSnapshots_result setSuccess(ListSnapshotsResp success) { + public regConfig_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -31987,7 +28851,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListSnapshotsResp)__value); + setSuccess((ExecResp)__value); } break; @@ -32012,9 +28876,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSnapshots_result)) + if (!(_that instanceof regConfig_result)) return false; - listSnapshots_result that = (listSnapshots_result)_that; + regConfig_result that = (regConfig_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -32027,7 +28891,7 @@ public int hashCode() { } @Override - public int compareTo(listSnapshots_result other) { + public int compareTo(regConfig_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -32062,7 +28926,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListSnapshotsResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -32103,7 +28967,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listSnapshots_result"); + StringBuilder sb = new StringBuilder("regConfig_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -32130,11 +28994,11 @@ public void validate() throws TException { } - public static class runAdminJob_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("runAdminJob_args"); + public static class getConfig_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("getConfig_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AdminJobReq req; + public GetConfigReq req; public static final int REQ = 1; // isset id assignments @@ -32144,19 +29008,19 @@ public static class runAdminJob_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AdminJobReq.class))); + new StructMetaData(TType.STRUCT, GetConfigReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(runAdminJob_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getConfig_args.class, metaDataMap); } - public runAdminJob_args() { + public getConfig_args() { } - public runAdminJob_args( - AdminJobReq req) { + public getConfig_args( + GetConfigReq req) { this(); this.req = req; } @@ -32164,21 +29028,21 @@ public runAdminJob_args( /** * Performs a deep copy on other. */ - public runAdminJob_args(runAdminJob_args other) { + public getConfig_args(getConfig_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public runAdminJob_args deepCopy() { - return new runAdminJob_args(this); + public getConfig_args deepCopy() { + return new getConfig_args(this); } - public AdminJobReq getReq() { + public GetConfigReq getReq() { return this.req; } - public runAdminJob_args setReq(AdminJobReq req) { + public getConfig_args setReq(GetConfigReq req) { this.req = req; return this; } @@ -32204,7 +29068,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AdminJobReq)__value); + setReq((GetConfigReq)__value); } break; @@ -32229,9 +29093,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof runAdminJob_args)) + if (!(_that instanceof getConfig_args)) return false; - runAdminJob_args that = (runAdminJob_args)_that; + getConfig_args that = (getConfig_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -32243,29 +29107,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } - @Override - public int compareTo(runAdminJob_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - public void read(TProtocol iprot) throws TException { TField __field; iprot.readStructBegin(metaDataMap); @@ -32279,7 +29120,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AdminJobReq(); + this.req = new GetConfigReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -32321,7 +29162,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("runAdminJob_args"); + StringBuilder sb = new StringBuilder("getConfig_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -32348,11 +29189,11 @@ public void validate() throws TException { } - public static class runAdminJob_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("runAdminJob_result"); + public static class getConfig_result implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("getConfig_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public AdminJobResp success; + public GetConfigResp success; public static final int SUCCESS = 0; // isset id assignments @@ -32362,19 +29203,19 @@ public static class runAdminJob_result implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AdminJobResp.class))); + new StructMetaData(TType.STRUCT, GetConfigResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(runAdminJob_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getConfig_result.class, metaDataMap); } - public runAdminJob_result() { + public getConfig_result() { } - public runAdminJob_result( - AdminJobResp success) { + public getConfig_result( + GetConfigResp success) { this(); this.success = success; } @@ -32382,21 +29223,21 @@ public runAdminJob_result( /** * Performs a deep copy on other. */ - public runAdminJob_result(runAdminJob_result other) { + public getConfig_result(getConfig_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public runAdminJob_result deepCopy() { - return new runAdminJob_result(this); + public getConfig_result deepCopy() { + return new getConfig_result(this); } - public AdminJobResp getSuccess() { + public GetConfigResp getSuccess() { return this.success; } - public runAdminJob_result setSuccess(AdminJobResp success) { + public getConfig_result setSuccess(GetConfigResp success) { this.success = success; return this; } @@ -32422,7 +29263,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((AdminJobResp)__value); + setSuccess((GetConfigResp)__value); } break; @@ -32447,9 +29288,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof runAdminJob_result)) + if (!(_that instanceof getConfig_result)) return false; - runAdminJob_result that = (runAdminJob_result)_that; + getConfig_result that = (getConfig_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -32461,29 +29302,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(runAdminJob_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - public void read(TProtocol iprot) throws TException { TField __field; iprot.readStructBegin(metaDataMap); @@ -32497,7 +29315,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new AdminJobResp(); + this.success = new GetConfigResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -32538,7 +29356,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("runAdminJob_result"); + StringBuilder sb = new StringBuilder("getConfig_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -32565,11 +29383,11 @@ public void validate() throws TException { } - public static class addZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addZone_args"); + public static class setConfig_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("setConfig_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AddZoneReq req; + public SetConfigReq req; public static final int REQ = 1; // isset id assignments @@ -32579,19 +29397,19 @@ public static class addZone_args implements TBase, java.io.Serializable, Cloneab static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AddZoneReq.class))); + new StructMetaData(TType.STRUCT, SetConfigReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(setConfig_args.class, metaDataMap); } - public addZone_args() { + public setConfig_args() { } - public addZone_args( - AddZoneReq req) { + public setConfig_args( + SetConfigReq req) { this(); this.req = req; } @@ -32599,21 +29417,21 @@ public addZone_args( /** * Performs a deep copy on other. */ - public addZone_args(addZone_args other) { + public setConfig_args(setConfig_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public addZone_args deepCopy() { - return new addZone_args(this); + public setConfig_args deepCopy() { + return new setConfig_args(this); } - public AddZoneReq getReq() { + public SetConfigReq getReq() { return this.req; } - public addZone_args setReq(AddZoneReq req) { + public setConfig_args setReq(SetConfigReq req) { this.req = req; return this; } @@ -32639,7 +29457,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AddZoneReq)__value); + setReq((SetConfigReq)__value); } break; @@ -32664,9 +29482,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addZone_args)) + if (!(_that instanceof setConfig_args)) return false; - addZone_args that = (addZone_args)_that; + setConfig_args that = (setConfig_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -32678,29 +29496,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } - @Override - public int compareTo(addZone_args other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - public void read(TProtocol iprot) throws TException { TField __field; iprot.readStructBegin(metaDataMap); @@ -32714,7 +29509,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AddZoneReq(); + this.req = new SetConfigReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -32756,7 +29551,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("addZone_args"); + StringBuilder sb = new StringBuilder("setConfig_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -32783,8 +29578,8 @@ public void validate() throws TException { } - public static class addZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addZone_result"); + public static class setConfig_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("setConfig_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -32802,13 +29597,13 @@ public static class addZone_result implements TBase, java.io.Serializable, Clone } static { - FieldMetaData.addStructMetaDataMap(addZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(setConfig_result.class, metaDataMap); } - public addZone_result() { + public setConfig_result() { } - public addZone_result( + public setConfig_result( ExecResp success) { this(); this.success = success; @@ -32817,21 +29612,21 @@ public addZone_result( /** * Performs a deep copy on other. */ - public addZone_result(addZone_result other) { + public setConfig_result(setConfig_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public addZone_result deepCopy() { - return new addZone_result(this); + public setConfig_result deepCopy() { + return new setConfig_result(this); } public ExecResp getSuccess() { return this.success; } - public addZone_result setSuccess(ExecResp success) { + public setConfig_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -32882,9 +29677,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addZone_result)) + if (!(_that instanceof setConfig_result)) return false; - addZone_result that = (addZone_result)_that; + setConfig_result that = (setConfig_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -32897,7 +29692,7 @@ public int hashCode() { } @Override - public int compareTo(addZone_result other) { + public int compareTo(setConfig_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -32973,7 +29768,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("addZone_result"); + StringBuilder sb = new StringBuilder("setConfig_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -33000,11 +29795,11 @@ public void validate() throws TException { } - public static class dropZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropZone_args"); + public static class listConfigs_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listConfigs_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropZoneReq req; + public ListConfigsReq req; public static final int REQ = 1; // isset id assignments @@ -33014,19 +29809,19 @@ public static class dropZone_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropZoneReq.class))); + new StructMetaData(TType.STRUCT, ListConfigsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listConfigs_args.class, metaDataMap); } - public dropZone_args() { + public listConfigs_args() { } - public dropZone_args( - DropZoneReq req) { + public listConfigs_args( + ListConfigsReq req) { this(); this.req = req; } @@ -33034,21 +29829,21 @@ public dropZone_args( /** * Performs a deep copy on other. */ - public dropZone_args(dropZone_args other) { + public listConfigs_args(listConfigs_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropZone_args deepCopy() { - return new dropZone_args(this); + public listConfigs_args deepCopy() { + return new listConfigs_args(this); } - public DropZoneReq getReq() { + public ListConfigsReq getReq() { return this.req; } - public dropZone_args setReq(DropZoneReq req) { + public listConfigs_args setReq(ListConfigsReq req) { this.req = req; return this; } @@ -33074,7 +29869,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropZoneReq)__value); + setReq((ListConfigsReq)__value); } break; @@ -33099,9 +29894,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropZone_args)) + if (!(_that instanceof listConfigs_args)) return false; - dropZone_args that = (dropZone_args)_that; + listConfigs_args that = (listConfigs_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -33114,7 +29909,7 @@ public int hashCode() { } @Override - public int compareTo(dropZone_args other) { + public int compareTo(listConfigs_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -33149,7 +29944,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropZoneReq(); + this.req = new ListConfigsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -33191,7 +29986,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropZone_args"); + StringBuilder sb = new StringBuilder("listConfigs_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -33218,11 +30013,11 @@ public void validate() throws TException { } - public static class dropZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropZone_result"); + public static class listConfigs_result implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("listConfigs_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListConfigsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -33232,19 +30027,19 @@ public static class dropZone_result implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, ListConfigsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listConfigs_result.class, metaDataMap); } - public dropZone_result() { + public listConfigs_result() { } - public dropZone_result( - ExecResp success) { + public listConfigs_result( + ListConfigsResp success) { this(); this.success = success; } @@ -33252,21 +30047,21 @@ public dropZone_result( /** * Performs a deep copy on other. */ - public dropZone_result(dropZone_result other) { + public listConfigs_result(listConfigs_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropZone_result deepCopy() { - return new dropZone_result(this); + public listConfigs_result deepCopy() { + return new listConfigs_result(this); } - public ExecResp getSuccess() { + public ListConfigsResp getSuccess() { return this.success; } - public dropZone_result setSuccess(ExecResp success) { + public listConfigs_result setSuccess(ListConfigsResp success) { this.success = success; return this; } @@ -33292,7 +30087,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListConfigsResp)__value); } break; @@ -33317,9 +30112,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropZone_result)) + if (!(_that instanceof listConfigs_result)) return false; - dropZone_result that = (dropZone_result)_that; + listConfigs_result that = (listConfigs_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -33331,29 +30126,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(dropZone_result other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - return 0; - } - public void read(TProtocol iprot) throws TException { TField __field; iprot.readStructBegin(metaDataMap); @@ -33367,7 +30139,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListConfigsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -33408,7 +30180,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropZone_result"); + StringBuilder sb = new StringBuilder("listConfigs_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -33435,11 +30207,11 @@ public void validate() throws TException { } - public static class addHostIntoZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addHostIntoZone_args"); + public static class createSnapshot_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createSnapshot_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AddHostIntoZoneReq req; + public CreateSnapshotReq req; public static final int REQ = 1; // isset id assignments @@ -33449,19 +30221,19 @@ public static class addHostIntoZone_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AddHostIntoZoneReq.class))); + new StructMetaData(TType.STRUCT, CreateSnapshotReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addHostIntoZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSnapshot_args.class, metaDataMap); } - public addHostIntoZone_args() { + public createSnapshot_args() { } - public addHostIntoZone_args( - AddHostIntoZoneReq req) { + public createSnapshot_args( + CreateSnapshotReq req) { this(); this.req = req; } @@ -33469,21 +30241,21 @@ public addHostIntoZone_args( /** * Performs a deep copy on other. */ - public addHostIntoZone_args(addHostIntoZone_args other) { + public createSnapshot_args(createSnapshot_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public addHostIntoZone_args deepCopy() { - return new addHostIntoZone_args(this); + public createSnapshot_args deepCopy() { + return new createSnapshot_args(this); } - public AddHostIntoZoneReq getReq() { + public CreateSnapshotReq getReq() { return this.req; } - public addHostIntoZone_args setReq(AddHostIntoZoneReq req) { + public createSnapshot_args setReq(CreateSnapshotReq req) { this.req = req; return this; } @@ -33509,7 +30281,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AddHostIntoZoneReq)__value); + setReq((CreateSnapshotReq)__value); } break; @@ -33534,9 +30306,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addHostIntoZone_args)) + if (!(_that instanceof createSnapshot_args)) return false; - addHostIntoZone_args that = (addHostIntoZone_args)_that; + createSnapshot_args that = (createSnapshot_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -33549,7 +30321,7 @@ public int hashCode() { } @Override - public int compareTo(addHostIntoZone_args other) { + public int compareTo(createSnapshot_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -33584,7 +30356,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AddHostIntoZoneReq(); + this.req = new CreateSnapshotReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -33626,7 +30398,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("addHostIntoZone_args"); + StringBuilder sb = new StringBuilder("createSnapshot_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -33653,8 +30425,8 @@ public void validate() throws TException { } - public static class addHostIntoZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addHostIntoZone_result"); + public static class createSnapshot_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createSnapshot_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -33672,13 +30444,13 @@ public static class addHostIntoZone_result implements TBase, java.io.Serializabl } static { - FieldMetaData.addStructMetaDataMap(addHostIntoZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSnapshot_result.class, metaDataMap); } - public addHostIntoZone_result() { + public createSnapshot_result() { } - public addHostIntoZone_result( + public createSnapshot_result( ExecResp success) { this(); this.success = success; @@ -33687,21 +30459,21 @@ public addHostIntoZone_result( /** * Performs a deep copy on other. */ - public addHostIntoZone_result(addHostIntoZone_result other) { + public createSnapshot_result(createSnapshot_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public addHostIntoZone_result deepCopy() { - return new addHostIntoZone_result(this); + public createSnapshot_result deepCopy() { + return new createSnapshot_result(this); } public ExecResp getSuccess() { return this.success; } - public addHostIntoZone_result setSuccess(ExecResp success) { + public createSnapshot_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -33752,9 +30524,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addHostIntoZone_result)) + if (!(_that instanceof createSnapshot_result)) return false; - addHostIntoZone_result that = (addHostIntoZone_result)_that; + createSnapshot_result that = (createSnapshot_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -33767,7 +30539,7 @@ public int hashCode() { } @Override - public int compareTo(addHostIntoZone_result other) { + public int compareTo(createSnapshot_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -33843,7 +30615,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("addHostIntoZone_result"); + StringBuilder sb = new StringBuilder("createSnapshot_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -33870,11 +30642,11 @@ public void validate() throws TException { } - public static class dropHostFromZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropHostFromZone_args"); + public static class dropSnapshot_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropSnapshot_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropHostFromZoneReq req; + public DropSnapshotReq req; public static final int REQ = 1; // isset id assignments @@ -33884,19 +30656,19 @@ public static class dropHostFromZone_args implements TBase, java.io.Serializable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropHostFromZoneReq.class))); + new StructMetaData(TType.STRUCT, DropSnapshotReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropHostFromZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropSnapshot_args.class, metaDataMap); } - public dropHostFromZone_args() { + public dropSnapshot_args() { } - public dropHostFromZone_args( - DropHostFromZoneReq req) { + public dropSnapshot_args( + DropSnapshotReq req) { this(); this.req = req; } @@ -33904,21 +30676,21 @@ public dropHostFromZone_args( /** * Performs a deep copy on other. */ - public dropHostFromZone_args(dropHostFromZone_args other) { + public dropSnapshot_args(dropSnapshot_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropHostFromZone_args deepCopy() { - return new dropHostFromZone_args(this); + public dropSnapshot_args deepCopy() { + return new dropSnapshot_args(this); } - public DropHostFromZoneReq getReq() { + public DropSnapshotReq getReq() { return this.req; } - public dropHostFromZone_args setReq(DropHostFromZoneReq req) { + public dropSnapshot_args setReq(DropSnapshotReq req) { this.req = req; return this; } @@ -33944,7 +30716,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropHostFromZoneReq)__value); + setReq((DropSnapshotReq)__value); } break; @@ -33969,9 +30741,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropHostFromZone_args)) + if (!(_that instanceof dropSnapshot_args)) return false; - dropHostFromZone_args that = (dropHostFromZone_args)_that; + dropSnapshot_args that = (dropSnapshot_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -33984,7 +30756,7 @@ public int hashCode() { } @Override - public int compareTo(dropHostFromZone_args other) { + public int compareTo(dropSnapshot_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -34019,7 +30791,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropHostFromZoneReq(); + this.req = new DropSnapshotReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -34061,7 +30833,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropHostFromZone_args"); + StringBuilder sb = new StringBuilder("dropSnapshot_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -34088,8 +30860,8 @@ public void validate() throws TException { } - public static class dropHostFromZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropHostFromZone_result"); + public static class dropSnapshot_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropSnapshot_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -34107,13 +30879,13 @@ public static class dropHostFromZone_result implements TBase, java.io.Serializab } static { - FieldMetaData.addStructMetaDataMap(dropHostFromZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropSnapshot_result.class, metaDataMap); } - public dropHostFromZone_result() { + public dropSnapshot_result() { } - public dropHostFromZone_result( + public dropSnapshot_result( ExecResp success) { this(); this.success = success; @@ -34122,21 +30894,21 @@ public dropHostFromZone_result( /** * Performs a deep copy on other. */ - public dropHostFromZone_result(dropHostFromZone_result other) { + public dropSnapshot_result(dropSnapshot_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropHostFromZone_result deepCopy() { - return new dropHostFromZone_result(this); + public dropSnapshot_result deepCopy() { + return new dropSnapshot_result(this); } public ExecResp getSuccess() { return this.success; } - public dropHostFromZone_result setSuccess(ExecResp success) { + public dropSnapshot_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -34187,9 +30959,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropHostFromZone_result)) + if (!(_that instanceof dropSnapshot_result)) return false; - dropHostFromZone_result that = (dropHostFromZone_result)_that; + dropSnapshot_result that = (dropSnapshot_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -34202,7 +30974,7 @@ public int hashCode() { } @Override - public int compareTo(dropHostFromZone_result other) { + public int compareTo(dropSnapshot_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -34278,7 +31050,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropHostFromZone_result"); + StringBuilder sb = new StringBuilder("dropSnapshot_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -34305,11 +31077,11 @@ public void validate() throws TException { } - public static class getZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getZone_args"); + public static class listSnapshots_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSnapshots_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetZoneReq req; + public ListSnapshotsReq req; public static final int REQ = 1; // isset id assignments @@ -34319,19 +31091,19 @@ public static class getZone_args implements TBase, java.io.Serializable, Cloneab static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetZoneReq.class))); + new StructMetaData(TType.STRUCT, ListSnapshotsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSnapshots_args.class, metaDataMap); } - public getZone_args() { + public listSnapshots_args() { } - public getZone_args( - GetZoneReq req) { + public listSnapshots_args( + ListSnapshotsReq req) { this(); this.req = req; } @@ -34339,21 +31111,21 @@ public getZone_args( /** * Performs a deep copy on other. */ - public getZone_args(getZone_args other) { + public listSnapshots_args(listSnapshots_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getZone_args deepCopy() { - return new getZone_args(this); + public listSnapshots_args deepCopy() { + return new listSnapshots_args(this); } - public GetZoneReq getReq() { + public ListSnapshotsReq getReq() { return this.req; } - public getZone_args setReq(GetZoneReq req) { + public listSnapshots_args setReq(ListSnapshotsReq req) { this.req = req; return this; } @@ -34379,7 +31151,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetZoneReq)__value); + setReq((ListSnapshotsReq)__value); } break; @@ -34404,9 +31176,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getZone_args)) + if (!(_that instanceof listSnapshots_args)) return false; - getZone_args that = (getZone_args)_that; + listSnapshots_args that = (listSnapshots_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -34419,7 +31191,7 @@ public int hashCode() { } @Override - public int compareTo(getZone_args other) { + public int compareTo(listSnapshots_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -34454,7 +31226,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetZoneReq(); + this.req = new ListSnapshotsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -34496,7 +31268,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getZone_args"); + StringBuilder sb = new StringBuilder("listSnapshots_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -34523,11 +31295,11 @@ public void validate() throws TException { } - public static class getZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getZone_result"); + public static class listSnapshots_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSnapshots_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetZoneResp success; + public ListSnapshotsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -34537,19 +31309,19 @@ public static class getZone_result implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetZoneResp.class))); + new StructMetaData(TType.STRUCT, ListSnapshotsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSnapshots_result.class, metaDataMap); } - public getZone_result() { + public listSnapshots_result() { } - public getZone_result( - GetZoneResp success) { + public listSnapshots_result( + ListSnapshotsResp success) { this(); this.success = success; } @@ -34557,21 +31329,21 @@ public getZone_result( /** * Performs a deep copy on other. */ - public getZone_result(getZone_result other) { + public listSnapshots_result(listSnapshots_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getZone_result deepCopy() { - return new getZone_result(this); + public listSnapshots_result deepCopy() { + return new listSnapshots_result(this); } - public GetZoneResp getSuccess() { + public ListSnapshotsResp getSuccess() { return this.success; } - public getZone_result setSuccess(GetZoneResp success) { + public listSnapshots_result setSuccess(ListSnapshotsResp success) { this.success = success; return this; } @@ -34597,7 +31369,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetZoneResp)__value); + setSuccess((ListSnapshotsResp)__value); } break; @@ -34622,9 +31394,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getZone_result)) + if (!(_that instanceof listSnapshots_result)) return false; - getZone_result that = (getZone_result)_that; + listSnapshots_result that = (listSnapshots_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -34637,7 +31409,7 @@ public int hashCode() { } @Override - public int compareTo(getZone_result other) { + public int compareTo(listSnapshots_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -34672,7 +31444,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetZoneResp(); + this.success = new ListSnapshotsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -34713,7 +31485,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getZone_result"); + StringBuilder sb = new StringBuilder("listSnapshots_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -34740,11 +31512,11 @@ public void validate() throws TException { } - public static class listZones_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listZones_args"); + public static class runAdminJob_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("runAdminJob_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListZonesReq req; + public AdminJobReq req; public static final int REQ = 1; // isset id assignments @@ -34754,19 +31526,19 @@ public static class listZones_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListZonesReq.class))); + new StructMetaData(TType.STRUCT, AdminJobReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listZones_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(runAdminJob_args.class, metaDataMap); } - public listZones_args() { + public runAdminJob_args() { } - public listZones_args( - ListZonesReq req) { + public runAdminJob_args( + AdminJobReq req) { this(); this.req = req; } @@ -34774,21 +31546,21 @@ public listZones_args( /** * Performs a deep copy on other. */ - public listZones_args(listZones_args other) { + public runAdminJob_args(runAdminJob_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listZones_args deepCopy() { - return new listZones_args(this); + public runAdminJob_args deepCopy() { + return new runAdminJob_args(this); } - public ListZonesReq getReq() { + public AdminJobReq getReq() { return this.req; } - public listZones_args setReq(ListZonesReq req) { + public runAdminJob_args setReq(AdminJobReq req) { this.req = req; return this; } @@ -34814,7 +31586,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListZonesReq)__value); + setReq((AdminJobReq)__value); } break; @@ -34839,9 +31611,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listZones_args)) + if (!(_that instanceof runAdminJob_args)) return false; - listZones_args that = (listZones_args)_that; + runAdminJob_args that = (runAdminJob_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -34854,7 +31626,7 @@ public int hashCode() { } @Override - public int compareTo(listZones_args other) { + public int compareTo(runAdminJob_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -34889,7 +31661,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListZonesReq(); + this.req = new AdminJobReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -34931,7 +31703,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listZones_args"); + StringBuilder sb = new StringBuilder("runAdminJob_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -34958,11 +31730,11 @@ public void validate() throws TException { } - public static class listZones_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listZones_result"); + public static class runAdminJob_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("runAdminJob_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListZonesResp success; + public AdminJobResp success; public static final int SUCCESS = 0; // isset id assignments @@ -34972,19 +31744,19 @@ public static class listZones_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListZonesResp.class))); + new StructMetaData(TType.STRUCT, AdminJobResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listZones_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(runAdminJob_result.class, metaDataMap); } - public listZones_result() { + public runAdminJob_result() { } - public listZones_result( - ListZonesResp success) { + public runAdminJob_result( + AdminJobResp success) { this(); this.success = success; } @@ -34992,21 +31764,21 @@ public listZones_result( /** * Performs a deep copy on other. */ - public listZones_result(listZones_result other) { + public runAdminJob_result(runAdminJob_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listZones_result deepCopy() { - return new listZones_result(this); + public runAdminJob_result deepCopy() { + return new runAdminJob_result(this); } - public ListZonesResp getSuccess() { + public AdminJobResp getSuccess() { return this.success; } - public listZones_result setSuccess(ListZonesResp success) { + public runAdminJob_result setSuccess(AdminJobResp success) { this.success = success; return this; } @@ -35032,7 +31804,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListZonesResp)__value); + setSuccess((AdminJobResp)__value); } break; @@ -35057,9 +31829,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listZones_result)) + if (!(_that instanceof runAdminJob_result)) return false; - listZones_result that = (listZones_result)_that; + runAdminJob_result that = (runAdminJob_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -35072,7 +31844,7 @@ public int hashCode() { } @Override - public int compareTo(listZones_result other) { + public int compareTo(runAdminJob_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -35107,7 +31879,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListZonesResp(); + this.success = new AdminJobResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -35148,7 +31920,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listZones_result"); + StringBuilder sb = new StringBuilder("runAdminJob_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -35175,11 +31947,11 @@ public void validate() throws TException { } - public static class addGroup_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addGroup_args"); + public static class addZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AddGroupReq req; + public AddZoneReq req; public static final int REQ = 1; // isset id assignments @@ -35189,19 +31961,19 @@ public static class addGroup_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AddGroupReq.class))); + new StructMetaData(TType.STRUCT, AddZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addGroup_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addZone_args.class, metaDataMap); } - public addGroup_args() { + public addZone_args() { } - public addGroup_args( - AddGroupReq req) { + public addZone_args( + AddZoneReq req) { this(); this.req = req; } @@ -35209,21 +31981,21 @@ public addGroup_args( /** * Performs a deep copy on other. */ - public addGroup_args(addGroup_args other) { + public addZone_args(addZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public addGroup_args deepCopy() { - return new addGroup_args(this); + public addZone_args deepCopy() { + return new addZone_args(this); } - public AddGroupReq getReq() { + public AddZoneReq getReq() { return this.req; } - public addGroup_args setReq(AddGroupReq req) { + public addZone_args setReq(AddZoneReq req) { this.req = req; return this; } @@ -35249,7 +32021,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AddGroupReq)__value); + setReq((AddZoneReq)__value); } break; @@ -35274,9 +32046,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addGroup_args)) + if (!(_that instanceof addZone_args)) return false; - addGroup_args that = (addGroup_args)_that; + addZone_args that = (addZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -35289,7 +32061,7 @@ public int hashCode() { } @Override - public int compareTo(addGroup_args other) { + public int compareTo(addZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -35324,7 +32096,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AddGroupReq(); + this.req = new AddZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -35366,7 +32138,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("addGroup_args"); + StringBuilder sb = new StringBuilder("addZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -35393,8 +32165,8 @@ public void validate() throws TException { } - public static class addGroup_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addGroup_result"); + public static class addZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -35412,13 +32184,13 @@ public static class addGroup_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(addGroup_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addZone_result.class, metaDataMap); } - public addGroup_result() { + public addZone_result() { } - public addGroup_result( + public addZone_result( ExecResp success) { this(); this.success = success; @@ -35427,21 +32199,21 @@ public addGroup_result( /** * Performs a deep copy on other. */ - public addGroup_result(addGroup_result other) { + public addZone_result(addZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public addGroup_result deepCopy() { - return new addGroup_result(this); + public addZone_result deepCopy() { + return new addZone_result(this); } public ExecResp getSuccess() { return this.success; } - public addGroup_result setSuccess(ExecResp success) { + public addZone_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -35492,9 +32264,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addGroup_result)) + if (!(_that instanceof addZone_result)) return false; - addGroup_result that = (addGroup_result)_that; + addZone_result that = (addZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -35507,7 +32279,7 @@ public int hashCode() { } @Override - public int compareTo(addGroup_result other) { + public int compareTo(addZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -35583,7 +32355,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("addGroup_result"); + StringBuilder sb = new StringBuilder("addZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -35610,11 +32382,11 @@ public void validate() throws TException { } - public static class dropGroup_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropGroup_args"); + public static class dropZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropGroupReq req; + public DropZoneReq req; public static final int REQ = 1; // isset id assignments @@ -35624,19 +32396,19 @@ public static class dropGroup_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropGroupReq.class))); + new StructMetaData(TType.STRUCT, DropZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropGroup_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropZone_args.class, metaDataMap); } - public dropGroup_args() { + public dropZone_args() { } - public dropGroup_args( - DropGroupReq req) { + public dropZone_args( + DropZoneReq req) { this(); this.req = req; } @@ -35644,21 +32416,21 @@ public dropGroup_args( /** * Performs a deep copy on other. */ - public dropGroup_args(dropGroup_args other) { + public dropZone_args(dropZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropGroup_args deepCopy() { - return new dropGroup_args(this); + public dropZone_args deepCopy() { + return new dropZone_args(this); } - public DropGroupReq getReq() { + public DropZoneReq getReq() { return this.req; } - public dropGroup_args setReq(DropGroupReq req) { + public dropZone_args setReq(DropZoneReq req) { this.req = req; return this; } @@ -35684,7 +32456,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropGroupReq)__value); + setReq((DropZoneReq)__value); } break; @@ -35709,9 +32481,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropGroup_args)) + if (!(_that instanceof dropZone_args)) return false; - dropGroup_args that = (dropGroup_args)_that; + dropZone_args that = (dropZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -35724,7 +32496,7 @@ public int hashCode() { } @Override - public int compareTo(dropGroup_args other) { + public int compareTo(dropZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -35759,7 +32531,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropGroupReq(); + this.req = new DropZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -35801,7 +32573,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropGroup_args"); + StringBuilder sb = new StringBuilder("dropZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -35828,8 +32600,8 @@ public void validate() throws TException { } - public static class dropGroup_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropGroup_result"); + public static class dropZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -35847,13 +32619,13 @@ public static class dropGroup_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(dropGroup_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropZone_result.class, metaDataMap); } - public dropGroup_result() { + public dropZone_result() { } - public dropGroup_result( + public dropZone_result( ExecResp success) { this(); this.success = success; @@ -35862,21 +32634,21 @@ public dropGroup_result( /** * Performs a deep copy on other. */ - public dropGroup_result(dropGroup_result other) { + public dropZone_result(dropZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropGroup_result deepCopy() { - return new dropGroup_result(this); + public dropZone_result deepCopy() { + return new dropZone_result(this); } public ExecResp getSuccess() { return this.success; } - public dropGroup_result setSuccess(ExecResp success) { + public dropZone_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -35927,9 +32699,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropGroup_result)) + if (!(_that instanceof dropZone_result)) return false; - dropGroup_result that = (dropGroup_result)_that; + dropZone_result that = (dropZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -35942,7 +32714,7 @@ public int hashCode() { } @Override - public int compareTo(dropGroup_result other) { + public int compareTo(dropZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36018,7 +32790,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropGroup_result"); + StringBuilder sb = new StringBuilder("dropZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36045,11 +32817,11 @@ public void validate() throws TException { } - public static class addZoneIntoGroup_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addZoneIntoGroup_args"); + public static class addHostIntoZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addHostIntoZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AddZoneIntoGroupReq req; + public AddHostIntoZoneReq req; public static final int REQ = 1; // isset id assignments @@ -36059,19 +32831,19 @@ public static class addZoneIntoGroup_args implements TBase, java.io.Serializable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AddZoneIntoGroupReq.class))); + new StructMetaData(TType.STRUCT, AddHostIntoZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addZoneIntoGroup_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addHostIntoZone_args.class, metaDataMap); } - public addZoneIntoGroup_args() { + public addHostIntoZone_args() { } - public addZoneIntoGroup_args( - AddZoneIntoGroupReq req) { + public addHostIntoZone_args( + AddHostIntoZoneReq req) { this(); this.req = req; } @@ -36079,21 +32851,21 @@ public addZoneIntoGroup_args( /** * Performs a deep copy on other. */ - public addZoneIntoGroup_args(addZoneIntoGroup_args other) { + public addHostIntoZone_args(addHostIntoZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public addZoneIntoGroup_args deepCopy() { - return new addZoneIntoGroup_args(this); + public addHostIntoZone_args deepCopy() { + return new addHostIntoZone_args(this); } - public AddZoneIntoGroupReq getReq() { + public AddHostIntoZoneReq getReq() { return this.req; } - public addZoneIntoGroup_args setReq(AddZoneIntoGroupReq req) { + public addHostIntoZone_args setReq(AddHostIntoZoneReq req) { this.req = req; return this; } @@ -36119,7 +32891,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AddZoneIntoGroupReq)__value); + setReq((AddHostIntoZoneReq)__value); } break; @@ -36144,9 +32916,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addZoneIntoGroup_args)) + if (!(_that instanceof addHostIntoZone_args)) return false; - addZoneIntoGroup_args that = (addZoneIntoGroup_args)_that; + addHostIntoZone_args that = (addHostIntoZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -36159,7 +32931,7 @@ public int hashCode() { } @Override - public int compareTo(addZoneIntoGroup_args other) { + public int compareTo(addHostIntoZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36194,7 +32966,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AddZoneIntoGroupReq(); + this.req = new AddHostIntoZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -36236,7 +33008,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("addZoneIntoGroup_args"); + StringBuilder sb = new StringBuilder("addHostIntoZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36263,8 +33035,8 @@ public void validate() throws TException { } - public static class addZoneIntoGroup_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addZoneIntoGroup_result"); + public static class addHostIntoZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addHostIntoZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -36282,13 +33054,13 @@ public static class addZoneIntoGroup_result implements TBase, java.io.Serializab } static { - FieldMetaData.addStructMetaDataMap(addZoneIntoGroup_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addHostIntoZone_result.class, metaDataMap); } - public addZoneIntoGroup_result() { + public addHostIntoZone_result() { } - public addZoneIntoGroup_result( + public addHostIntoZone_result( ExecResp success) { this(); this.success = success; @@ -36297,21 +33069,21 @@ public addZoneIntoGroup_result( /** * Performs a deep copy on other. */ - public addZoneIntoGroup_result(addZoneIntoGroup_result other) { + public addHostIntoZone_result(addHostIntoZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public addZoneIntoGroup_result deepCopy() { - return new addZoneIntoGroup_result(this); + public addHostIntoZone_result deepCopy() { + return new addHostIntoZone_result(this); } public ExecResp getSuccess() { return this.success; } - public addZoneIntoGroup_result setSuccess(ExecResp success) { + public addHostIntoZone_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -36362,9 +33134,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addZoneIntoGroup_result)) + if (!(_that instanceof addHostIntoZone_result)) return false; - addZoneIntoGroup_result that = (addZoneIntoGroup_result)_that; + addHostIntoZone_result that = (addHostIntoZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -36377,7 +33149,7 @@ public int hashCode() { } @Override - public int compareTo(addZoneIntoGroup_result other) { + public int compareTo(addHostIntoZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36453,7 +33225,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("addZoneIntoGroup_result"); + StringBuilder sb = new StringBuilder("addHostIntoZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36480,11 +33252,11 @@ public void validate() throws TException { } - public static class dropZoneFromGroup_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropZoneFromGroup_args"); + public static class dropHostFromZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropHostFromZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropZoneFromGroupReq req; + public DropHostFromZoneReq req; public static final int REQ = 1; // isset id assignments @@ -36494,19 +33266,19 @@ public static class dropZoneFromGroup_args implements TBase, java.io.Serializabl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropZoneFromGroupReq.class))); + new StructMetaData(TType.STRUCT, DropHostFromZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropZoneFromGroup_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropHostFromZone_args.class, metaDataMap); } - public dropZoneFromGroup_args() { + public dropHostFromZone_args() { } - public dropZoneFromGroup_args( - DropZoneFromGroupReq req) { + public dropHostFromZone_args( + DropHostFromZoneReq req) { this(); this.req = req; } @@ -36514,21 +33286,21 @@ public dropZoneFromGroup_args( /** * Performs a deep copy on other. */ - public dropZoneFromGroup_args(dropZoneFromGroup_args other) { + public dropHostFromZone_args(dropHostFromZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropZoneFromGroup_args deepCopy() { - return new dropZoneFromGroup_args(this); + public dropHostFromZone_args deepCopy() { + return new dropHostFromZone_args(this); } - public DropZoneFromGroupReq getReq() { + public DropHostFromZoneReq getReq() { return this.req; } - public dropZoneFromGroup_args setReq(DropZoneFromGroupReq req) { + public dropHostFromZone_args setReq(DropHostFromZoneReq req) { this.req = req; return this; } @@ -36554,7 +33326,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropZoneFromGroupReq)__value); + setReq((DropHostFromZoneReq)__value); } break; @@ -36579,9 +33351,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropZoneFromGroup_args)) + if (!(_that instanceof dropHostFromZone_args)) return false; - dropZoneFromGroup_args that = (dropZoneFromGroup_args)_that; + dropHostFromZone_args that = (dropHostFromZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -36594,7 +33366,7 @@ public int hashCode() { } @Override - public int compareTo(dropZoneFromGroup_args other) { + public int compareTo(dropHostFromZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36629,7 +33401,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropZoneFromGroupReq(); + this.req = new DropHostFromZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -36671,7 +33443,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropZoneFromGroup_args"); + StringBuilder sb = new StringBuilder("dropHostFromZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36698,8 +33470,8 @@ public void validate() throws TException { } - public static class dropZoneFromGroup_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropZoneFromGroup_result"); + public static class dropHostFromZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropHostFromZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -36717,13 +33489,13 @@ public static class dropZoneFromGroup_result implements TBase, java.io.Serializa } static { - FieldMetaData.addStructMetaDataMap(dropZoneFromGroup_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropHostFromZone_result.class, metaDataMap); } - public dropZoneFromGroup_result() { + public dropHostFromZone_result() { } - public dropZoneFromGroup_result( + public dropHostFromZone_result( ExecResp success) { this(); this.success = success; @@ -36732,21 +33504,21 @@ public dropZoneFromGroup_result( /** * Performs a deep copy on other. */ - public dropZoneFromGroup_result(dropZoneFromGroup_result other) { + public dropHostFromZone_result(dropHostFromZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropZoneFromGroup_result deepCopy() { - return new dropZoneFromGroup_result(this); + public dropHostFromZone_result deepCopy() { + return new dropHostFromZone_result(this); } public ExecResp getSuccess() { return this.success; } - public dropZoneFromGroup_result setSuccess(ExecResp success) { + public dropHostFromZone_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -36797,9 +33569,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropZoneFromGroup_result)) + if (!(_that instanceof dropHostFromZone_result)) return false; - dropZoneFromGroup_result that = (dropZoneFromGroup_result)_that; + dropHostFromZone_result that = (dropHostFromZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -36812,7 +33584,7 @@ public int hashCode() { } @Override - public int compareTo(dropZoneFromGroup_result other) { + public int compareTo(dropHostFromZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36888,7 +33660,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropZoneFromGroup_result"); + StringBuilder sb = new StringBuilder("dropHostFromZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36915,11 +33687,11 @@ public void validate() throws TException { } - public static class getGroup_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getGroup_args"); + public static class getZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetGroupReq req; + public GetZoneReq req; public static final int REQ = 1; // isset id assignments @@ -36929,19 +33701,19 @@ public static class getGroup_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetGroupReq.class))); + new StructMetaData(TType.STRUCT, GetZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getGroup_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getZone_args.class, metaDataMap); } - public getGroup_args() { + public getZone_args() { } - public getGroup_args( - GetGroupReq req) { + public getZone_args( + GetZoneReq req) { this(); this.req = req; } @@ -36949,21 +33721,21 @@ public getGroup_args( /** * Performs a deep copy on other. */ - public getGroup_args(getGroup_args other) { + public getZone_args(getZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getGroup_args deepCopy() { - return new getGroup_args(this); + public getZone_args deepCopy() { + return new getZone_args(this); } - public GetGroupReq getReq() { + public GetZoneReq getReq() { return this.req; } - public getGroup_args setReq(GetGroupReq req) { + public getZone_args setReq(GetZoneReq req) { this.req = req; return this; } @@ -36989,7 +33761,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetGroupReq)__value); + setReq((GetZoneReq)__value); } break; @@ -37014,9 +33786,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getGroup_args)) + if (!(_that instanceof getZone_args)) return false; - getGroup_args that = (getGroup_args)_that; + getZone_args that = (getZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -37029,7 +33801,7 @@ public int hashCode() { } @Override - public int compareTo(getGroup_args other) { + public int compareTo(getZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37064,7 +33836,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetGroupReq(); + this.req = new GetZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37106,7 +33878,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getGroup_args"); + StringBuilder sb = new StringBuilder("getZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37133,11 +33905,11 @@ public void validate() throws TException { } - public static class getGroup_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getGroup_result"); + public static class getZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetGroupResp success; + public GetZoneResp success; public static final int SUCCESS = 0; // isset id assignments @@ -37147,19 +33919,19 @@ public static class getGroup_result implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetGroupResp.class))); + new StructMetaData(TType.STRUCT, GetZoneResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getGroup_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getZone_result.class, metaDataMap); } - public getGroup_result() { + public getZone_result() { } - public getGroup_result( - GetGroupResp success) { + public getZone_result( + GetZoneResp success) { this(); this.success = success; } @@ -37167,21 +33939,21 @@ public getGroup_result( /** * Performs a deep copy on other. */ - public getGroup_result(getGroup_result other) { + public getZone_result(getZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getGroup_result deepCopy() { - return new getGroup_result(this); + public getZone_result deepCopy() { + return new getZone_result(this); } - public GetGroupResp getSuccess() { + public GetZoneResp getSuccess() { return this.success; } - public getGroup_result setSuccess(GetGroupResp success) { + public getZone_result setSuccess(GetZoneResp success) { this.success = success; return this; } @@ -37207,7 +33979,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetGroupResp)__value); + setSuccess((GetZoneResp)__value); } break; @@ -37232,9 +34004,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getGroup_result)) + if (!(_that instanceof getZone_result)) return false; - getGroup_result that = (getGroup_result)_that; + getZone_result that = (getZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -37247,7 +34019,7 @@ public int hashCode() { } @Override - public int compareTo(getGroup_result other) { + public int compareTo(getZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37282,7 +34054,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetGroupResp(); + this.success = new GetZoneResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37323,7 +34095,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getGroup_result"); + StringBuilder sb = new StringBuilder("getZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37350,11 +34122,11 @@ public void validate() throws TException { } - public static class listGroups_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listGroups_args"); + public static class listZones_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listZones_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListGroupsReq req; + public ListZonesReq req; public static final int REQ = 1; // isset id assignments @@ -37364,19 +34136,19 @@ public static class listGroups_args implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListGroupsReq.class))); + new StructMetaData(TType.STRUCT, ListZonesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listGroups_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listZones_args.class, metaDataMap); } - public listGroups_args() { + public listZones_args() { } - public listGroups_args( - ListGroupsReq req) { + public listZones_args( + ListZonesReq req) { this(); this.req = req; } @@ -37384,21 +34156,21 @@ public listGroups_args( /** * Performs a deep copy on other. */ - public listGroups_args(listGroups_args other) { + public listZones_args(listZones_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listGroups_args deepCopy() { - return new listGroups_args(this); + public listZones_args deepCopy() { + return new listZones_args(this); } - public ListGroupsReq getReq() { + public ListZonesReq getReq() { return this.req; } - public listGroups_args setReq(ListGroupsReq req) { + public listZones_args setReq(ListZonesReq req) { this.req = req; return this; } @@ -37424,7 +34196,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListGroupsReq)__value); + setReq((ListZonesReq)__value); } break; @@ -37449,9 +34221,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listGroups_args)) + if (!(_that instanceof listZones_args)) return false; - listGroups_args that = (listGroups_args)_that; + listZones_args that = (listZones_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -37464,7 +34236,7 @@ public int hashCode() { } @Override - public int compareTo(listGroups_args other) { + public int compareTo(listZones_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37499,7 +34271,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListGroupsReq(); + this.req = new ListZonesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37541,7 +34313,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listGroups_args"); + StringBuilder sb = new StringBuilder("listZones_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37568,11 +34340,11 @@ public void validate() throws TException { } - public static class listGroups_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listGroups_result"); + public static class listZones_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listZones_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListGroupsResp success; + public ListZonesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -37582,19 +34354,19 @@ public static class listGroups_result implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListGroupsResp.class))); + new StructMetaData(TType.STRUCT, ListZonesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listGroups_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listZones_result.class, metaDataMap); } - public listGroups_result() { + public listZones_result() { } - public listGroups_result( - ListGroupsResp success) { + public listZones_result( + ListZonesResp success) { this(); this.success = success; } @@ -37602,21 +34374,21 @@ public listGroups_result( /** * Performs a deep copy on other. */ - public listGroups_result(listGroups_result other) { + public listZones_result(listZones_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listGroups_result deepCopy() { - return new listGroups_result(this); + public listZones_result deepCopy() { + return new listZones_result(this); } - public ListGroupsResp getSuccess() { + public ListZonesResp getSuccess() { return this.success; } - public listGroups_result setSuccess(ListGroupsResp success) { + public listZones_result setSuccess(ListZonesResp success) { this.success = success; return this; } @@ -37642,7 +34414,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListGroupsResp)__value); + setSuccess((ListZonesResp)__value); } break; @@ -37667,9 +34439,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listGroups_result)) + if (!(_that instanceof listZones_result)) return false; - listGroups_result that = (listGroups_result)_that; + listZones_result that = (listZones_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -37682,7 +34454,7 @@ public int hashCode() { } @Override - public int compareTo(listGroups_result other) { + public int compareTo(listZones_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37717,7 +34489,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListGroupsResp(); + this.success = new ListZonesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37758,7 +34530,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listGroups_result"); + StringBuilder sb = new StringBuilder("listZones_result"); sb.append(space); sb.append("("); sb.append(newLine); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/PartitionList.java b/client/src/main/generated/com/vesoft/nebula/meta/PartitionList.java new file mode 100644 index 000000000..8ef493cd1 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/PartitionList.java @@ -0,0 +1,285 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.meta; + +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import java.util.Collections; +import java.util.BitSet; +import java.util.Arrays; +import com.facebook.thrift.*; +import com.facebook.thrift.annotations.*; +import com.facebook.thrift.async.*; +import com.facebook.thrift.meta_data.*; +import com.facebook.thrift.server.*; +import com.facebook.thrift.transport.*; +import com.facebook.thrift.protocol.*; + +@SuppressWarnings({ "unused", "serial" }) +public class PartitionList implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("PartitionList"); + private static final TField PART_LIST_FIELD_DESC = new TField("part_list", TType.LIST, (short)1); + + public List part_list; + public static final int PART_LIST = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(PART_LIST, new FieldMetaData("part_list", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new FieldValueMetaData(TType.I32)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(PartitionList.class, metaDataMap); + } + + public PartitionList() { + } + + public PartitionList( + List part_list) { + this(); + this.part_list = part_list; + } + + public static class Builder { + private List part_list; + + public Builder() { + } + + public Builder setPart_list(final List part_list) { + this.part_list = part_list; + return this; + } + + public PartitionList build() { + PartitionList result = new PartitionList(); + result.setPart_list(this.part_list); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public PartitionList(PartitionList other) { + if (other.isSetPart_list()) { + this.part_list = TBaseHelper.deepCopy(other.part_list); + } + } + + public PartitionList deepCopy() { + return new PartitionList(this); + } + + public List getPart_list() { + return this.part_list; + } + + public PartitionList setPart_list(List part_list) { + this.part_list = part_list; + return this; + } + + public void unsetPart_list() { + this.part_list = null; + } + + // Returns true if field part_list is set (has been assigned a value) and false otherwise + public boolean isSetPart_list() { + return this.part_list != null; + } + + public void setPart_listIsSet(boolean __value) { + if (!__value) { + this.part_list = null; + } + } + + @SuppressWarnings("unchecked") + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case PART_LIST: + if (__value == null) { + unsetPart_list(); + } else { + setPart_list((List)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case PART_LIST: + return getPart_list(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof PartitionList)) + return false; + PartitionList that = (PartitionList)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetPart_list(), that.isSetPart_list(), this.part_list, that.part_list)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {part_list}); + } + + @Override + public int compareTo(PartitionList other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPart_list()).compareTo(other.isSetPart_list()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(part_list, other.part_list); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case PART_LIST: + if (__field.type == TType.LIST) { + { + TList _list140 = iprot.readListBegin(); + this.part_list = new ArrayList(Math.max(0, _list140.size)); + for (int _i141 = 0; + (_list140.size < 0) ? iprot.peekList() : (_i141 < _list140.size); + ++_i141) + { + int _elem142; + _elem142 = iprot.readI32(); + this.part_list.add(_elem142); + } + iprot.readListEnd(); + } + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.part_list != null) { + oprot.writeFieldBegin(PART_LIST_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.I32, this.part_list.size())); + for (int _iter143 : this.part_list) { + oprot.writeI32(_iter143); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("PartitionList"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("part_list"); + sb.append(space); + sb.append(":").append(space); + if (this.getPart_list() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getPart_list(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + +} + diff --git a/client/src/main/generated/com/vesoft/nebula/meta/RegConfigReq.java b/client/src/main/generated/com/vesoft/nebula/meta/RegConfigReq.java index 28a37016a..54437a9a1 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/RegConfigReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/RegConfigReq.java @@ -175,16 +175,16 @@ public void read(TProtocol iprot) throws TException { case ITEMS: if (__field.type == TType.LIST) { { - TList _list174 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list174.size)); - for (int _i175 = 0; - (_list174.size < 0) ? iprot.peekList() : (_i175 < _list174.size); - ++_i175) + TList _list188 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list188.size)); + for (int _i189 = 0; + (_list188.size < 0) ? iprot.peekList() : (_i189 < _list188.size); + ++_i189) { - ConfigItem _elem176; - _elem176 = new ConfigItem(); - _elem176.read(iprot); - this.items.add(_elem176); + ConfigItem _elem190; + _elem190 = new ConfigItem(); + _elem190.read(iprot); + this.items.add(_elem190); } iprot.readListEnd(); } @@ -213,8 +213,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ITEMS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.items.size())); - for (ConfigItem _iter177 : this.items) { - _iter177.write(oprot); + for (ConfigItem _iter191 : this.items) { + _iter191.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaReq.java b/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaReq.java index 19fe5bc0f..650ba0c1b 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaReq.java @@ -261,15 +261,15 @@ public void read(TProtocol iprot) throws TException { case FILES: if (__field.type == TType.LIST) { { - TList _list255 = iprot.readListBegin(); - this.files = new ArrayList(Math.max(0, _list255.size)); - for (int _i256 = 0; - (_list255.size < 0) ? iprot.peekList() : (_i256 < _list255.size); - ++_i256) + TList _list253 = iprot.readListBegin(); + this.files = new ArrayList(Math.max(0, _list253.size)); + for (int _i254 = 0; + (_list253.size < 0) ? iprot.peekList() : (_i254 < _list253.size); + ++_i254) { - byte[] _elem257; - _elem257 = iprot.readBinary(); - this.files.add(_elem257); + byte[] _elem255; + _elem255 = iprot.readBinary(); + this.files.add(_elem255); } iprot.readListEnd(); } @@ -280,16 +280,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - TList _list258 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list258.size)); - for (int _i259 = 0; - (_list258.size < 0) ? iprot.peekList() : (_i259 < _list258.size); - ++_i259) + TList _list256 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list256.size)); + for (int _i257 = 0; + (_list256.size < 0) ? iprot.peekList() : (_i257 < _list256.size); + ++_i257) { - HostPair _elem260; - _elem260 = new HostPair(); - _elem260.read(iprot); - this.hosts.add(_elem260); + HostPair _elem258; + _elem258 = new HostPair(); + _elem258.read(iprot); + this.hosts.add(_elem258); } iprot.readListEnd(); } @@ -318,8 +318,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(FILES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.files.size())); - for (byte[] _iter261 : this.files) { - oprot.writeBinary(_iter261); + for (byte[] _iter259 : this.files) { + oprot.writeBinary(_iter259); } oprot.writeListEnd(); } @@ -329,8 +329,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(HOSTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.hosts.size())); - for (HostPair _iter262 : this.hosts) { - _iter262.write(oprot); + for (HostPair _iter260 : this.hosts) { + _iter260.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/Session.java b/client/src/main/generated/com/vesoft/nebula/meta/Session.java index fd2c1bd85..b31bc3e05 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/Session.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/Session.java @@ -738,18 +738,18 @@ public void read(TProtocol iprot) throws TException { case CONFIGS: if (__field.type == TType.MAP) { { - TMap _map280 = iprot.readMapBegin(); - this.configs = new HashMap(Math.max(0, 2*_map280.size)); - for (int _i281 = 0; - (_map280.size < 0) ? iprot.peekMap() : (_i281 < _map280.size); - ++_i281) + TMap _map278 = iprot.readMapBegin(); + this.configs = new HashMap(Math.max(0, 2*_map278.size)); + for (int _i279 = 0; + (_map278.size < 0) ? iprot.peekMap() : (_i279 < _map278.size); + ++_i279) { - byte[] _key282; - com.vesoft.nebula.Value _val283; - _key282 = iprot.readBinary(); - _val283 = new com.vesoft.nebula.Value(); - _val283.read(iprot); - this.configs.put(_key282, _val283); + byte[] _key280; + com.vesoft.nebula.Value _val281; + _key280 = iprot.readBinary(); + _val281 = new com.vesoft.nebula.Value(); + _val281.read(iprot); + this.configs.put(_key280, _val281); } iprot.readMapEnd(); } @@ -760,18 +760,18 @@ public void read(TProtocol iprot) throws TException { case QUERIES: if (__field.type == TType.MAP) { { - TMap _map284 = iprot.readMapBegin(); - this.queries = new HashMap(Math.max(0, 2*_map284.size)); - for (int _i285 = 0; - (_map284.size < 0) ? iprot.peekMap() : (_i285 < _map284.size); - ++_i285) + TMap _map282 = iprot.readMapBegin(); + this.queries = new HashMap(Math.max(0, 2*_map282.size)); + for (int _i283 = 0; + (_map282.size < 0) ? iprot.peekMap() : (_i283 < _map282.size); + ++_i283) { - long _key286; - QueryDesc _val287; - _key286 = iprot.readI64(); - _val287 = new QueryDesc(); - _val287.read(iprot); - this.queries.put(_key286, _val287); + long _key284; + QueryDesc _val285; + _key284 = iprot.readI64(); + _val285 = new QueryDesc(); + _val285.read(iprot); + this.queries.put(_key284, _val285); } iprot.readMapEnd(); } @@ -832,9 +832,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(CONFIGS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.configs.size())); - for (Map.Entry _iter288 : this.configs.entrySet()) { - oprot.writeBinary(_iter288.getKey()); - _iter288.getValue().write(oprot); + for (Map.Entry _iter286 : this.configs.entrySet()) { + oprot.writeBinary(_iter286.getKey()); + _iter286.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -844,9 +844,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(QUERIES_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, this.queries.size())); - for (Map.Entry _iter289 : this.queries.entrySet()) { - oprot.writeI64(_iter289.getKey()); - _iter289.getValue().write(oprot); + for (Map.Entry _iter287 : this.queries.entrySet()) { + oprot.writeI64(_iter287.getKey()); + _iter287.getValue().write(oprot); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/SignInFTServiceReq.java b/client/src/main/generated/com/vesoft/nebula/meta/SignInFTServiceReq.java index d89b5b6b2..23d2be1f7 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/SignInFTServiceReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/SignInFTServiceReq.java @@ -279,16 +279,16 @@ public void read(TProtocol iprot) throws TException { case CLIENTS: if (__field.type == TType.LIST) { { - TList _list263 = iprot.readListBegin(); - this.clients = new ArrayList(Math.max(0, _list263.size)); - for (int _i264 = 0; - (_list263.size < 0) ? iprot.peekList() : (_i264 < _list263.size); - ++_i264) + TList _list261 = iprot.readListBegin(); + this.clients = new ArrayList(Math.max(0, _list261.size)); + for (int _i262 = 0; + (_list261.size < 0) ? iprot.peekList() : (_i262 < _list261.size); + ++_i262) { - FTClient _elem265; - _elem265 = new FTClient(); - _elem265.read(iprot); - this.clients.add(_elem265); + FTClient _elem263; + _elem263 = new FTClient(); + _elem263.read(iprot); + this.clients.add(_elem263); } iprot.readListEnd(); } @@ -322,8 +322,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(CLIENTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.clients.size())); - for (FTClient _iter266 : this.clients) { - _iter266.write(oprot); + for (FTClient _iter264 : this.clients) { + _iter264.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java index 7e1fc86ca..c266908c5 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java @@ -268,16 +268,16 @@ public void read(TProtocol iprot) throws TException { case INFO: if (__field.type == TType.LIST) { { - TList _list238 = iprot.readListBegin(); - this.info = new ArrayList(Math.max(0, _list238.size)); - for (int _i239 = 0; - (_list238.size < 0) ? iprot.peekList() : (_i239 < _list238.size); - ++_i239) + TList _list236 = iprot.readListBegin(); + this.info = new ArrayList(Math.max(0, _list236.size)); + for (int _i237 = 0; + (_list236.size < 0) ? iprot.peekList() : (_i237 < _list236.size); + ++_i237) { - BackupInfo _elem240; - _elem240 = new BackupInfo(); - _elem240.read(iprot); - this.info.add(_elem240); + BackupInfo _elem238; + _elem238 = new BackupInfo(); + _elem238.read(iprot); + this.info.add(_elem238); } iprot.readListEnd(); } @@ -311,8 +311,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(INFO_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.info.size())); - for (BackupInfo _iter241 : this.info) { - _iter241.write(oprot); + for (BackupInfo _iter239 : this.info) { + _iter239.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsReq.java b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsReq.java index b2f3a558e..c49ea50de 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsReq.java @@ -175,16 +175,16 @@ public void read(TProtocol iprot) throws TException { case SESSIONS: if (__field.type == TType.LIST) { { - TList _list290 = iprot.readListBegin(); - this.sessions = new ArrayList(Math.max(0, _list290.size)); - for (int _i291 = 0; - (_list290.size < 0) ? iprot.peekList() : (_i291 < _list290.size); - ++_i291) + TList _list288 = iprot.readListBegin(); + this.sessions = new ArrayList(Math.max(0, _list288.size)); + for (int _i289 = 0; + (_list288.size < 0) ? iprot.peekList() : (_i289 < _list288.size); + ++_i289) { - Session _elem292; - _elem292 = new Session(); - _elem292.read(iprot); - this.sessions.add(_elem292); + Session _elem290; + _elem290 = new Session(); + _elem290.read(iprot); + this.sessions.add(_elem290); } iprot.readListEnd(); } @@ -213,8 +213,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SESSIONS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.sessions.size())); - for (Session _iter293 : this.sessions) { - _iter293.write(oprot); + for (Session _iter291 : this.sessions) { + _iter291.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsResp.java index 66a1389af..b752bfc5a 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsResp.java @@ -352,32 +352,32 @@ public void read(TProtocol iprot) throws TException { case KILLED_QUERIES: if (__field.type == TType.MAP) { { - TMap _map294 = iprot.readMapBegin(); - this.killed_queries = new HashMap>(Math.max(0, 2*_map294.size)); - for (int _i295 = 0; - (_map294.size < 0) ? iprot.peekMap() : (_i295 < _map294.size); - ++_i295) + TMap _map292 = iprot.readMapBegin(); + this.killed_queries = new HashMap>(Math.max(0, 2*_map292.size)); + for (int _i293 = 0; + (_map292.size < 0) ? iprot.peekMap() : (_i293 < _map292.size); + ++_i293) { - long _key296; - Map _val297; - _key296 = iprot.readI64(); + long _key294; + Map _val295; + _key294 = iprot.readI64(); { - TMap _map298 = iprot.readMapBegin(); - _val297 = new HashMap(Math.max(0, 2*_map298.size)); - for (int _i299 = 0; - (_map298.size < 0) ? iprot.peekMap() : (_i299 < _map298.size); - ++_i299) + TMap _map296 = iprot.readMapBegin(); + _val295 = new HashMap(Math.max(0, 2*_map296.size)); + for (int _i297 = 0; + (_map296.size < 0) ? iprot.peekMap() : (_i297 < _map296.size); + ++_i297) { - long _key300; - QueryDesc _val301; - _key300 = iprot.readI64(); - _val301 = new QueryDesc(); - _val301.read(iprot); - _val297.put(_key300, _val301); + long _key298; + QueryDesc _val299; + _key298 = iprot.readI64(); + _val299 = new QueryDesc(); + _val299.read(iprot); + _val295.put(_key298, _val299); } iprot.readMapEnd(); } - this.killed_queries.put(_key296, _val297); + this.killed_queries.put(_key294, _val295); } iprot.readMapEnd(); } @@ -416,13 +416,13 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(KILLED_QUERIES_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I64, TType.MAP, this.killed_queries.size())); - for (Map.Entry> _iter302 : this.killed_queries.entrySet()) { - oprot.writeI64(_iter302.getKey()); + for (Map.Entry> _iter300 : this.killed_queries.entrySet()) { + oprot.writeI64(_iter300.getKey()); { - oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, _iter302.getValue().size())); - for (Map.Entry _iter303 : _iter302.getValue().entrySet()) { - oprot.writeI64(_iter303.getKey()); - _iter303.getValue().write(oprot); + oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, _iter300.getValue().size())); + for (Map.Entry _iter301 : _iter300.getValue().entrySet()) { + oprot.writeI64(_iter301.getKey()); + _iter301.getValue().write(oprot); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/VerifyClientVersionReq.java b/client/src/main/generated/com/vesoft/nebula/meta/VerifyClientVersionReq.java index 384c0e95c..1251c12d4 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/VerifyClientVersionReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/VerifyClientVersionReq.java @@ -27,9 +27,12 @@ public class VerifyClientVersionReq implements TBase, java.io.Serializable, Cloneable, Comparable { private static final TStruct STRUCT_DESC = new TStruct("VerifyClientVersionReq"); private static final TField VERSION_FIELD_DESC = new TField("version", TType.STRING, (short)1); + private static final TField HOST_FIELD_DESC = new TField("host", TType.STRUCT, (short)2); public byte[] version; + public com.vesoft.nebula.HostAddr host; public static final int VERSION = 1; + public static final int HOST = 2; // isset id assignments @@ -39,6 +42,8 @@ public class VerifyClientVersionReq implements TBase, java.io.Serializable, Clon Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(VERSION, new FieldMetaData("version", TFieldRequirementType.REQUIRED, new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(HOST, new FieldMetaData("host", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -57,8 +62,17 @@ public VerifyClientVersionReq( this.version = version; } + public VerifyClientVersionReq( + byte[] version, + com.vesoft.nebula.HostAddr host) { + this(); + this.version = version; + this.host = host; + } + public static class Builder { private byte[] version; + private com.vesoft.nebula.HostAddr host; public Builder() { } @@ -68,9 +82,15 @@ public Builder setVersion(final byte[] version) { return this; } + public Builder setHost(final com.vesoft.nebula.HostAddr host) { + this.host = host; + return this; + } + public VerifyClientVersionReq build() { VerifyClientVersionReq result = new VerifyClientVersionReq(); result.setVersion(this.version); + result.setHost(this.host); return result; } } @@ -86,6 +106,9 @@ public VerifyClientVersionReq(VerifyClientVersionReq other) { if (other.isSetVersion()) { this.version = TBaseHelper.deepCopy(other.version); } + if (other.isSetHost()) { + this.host = TBaseHelper.deepCopy(other.host); + } } public VerifyClientVersionReq deepCopy() { @@ -116,6 +139,30 @@ public void setVersionIsSet(boolean __value) { } } + public com.vesoft.nebula.HostAddr getHost() { + return this.host; + } + + public VerifyClientVersionReq setHost(com.vesoft.nebula.HostAddr host) { + this.host = host; + return this; + } + + public void unsetHost() { + this.host = null; + } + + // Returns true if field host is set (has been assigned a value) and false otherwise + public boolean isSetHost() { + return this.host != null; + } + + public void setHostIsSet(boolean __value) { + if (!__value) { + this.host = null; + } + } + public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { case VERSION: @@ -126,6 +173,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case HOST: + if (__value == null) { + unsetHost(); + } else { + setHost((com.vesoft.nebula.HostAddr)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -136,6 +191,9 @@ public Object getFieldValue(int fieldID) { case VERSION: return getVersion(); + case HOST: + return getHost(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -153,12 +211,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetVersion(), that.isSetVersion(), this.version, that.version)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetHost(), that.isSetHost(), this.host, that.host)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {version}); + return Arrays.deepHashCode(new Object[] {version, host}); } @Override @@ -181,6 +241,14 @@ public int compareTo(VerifyClientVersionReq other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetHost()).compareTo(other.isSetHost()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(host, other.host); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -202,6 +270,14 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case HOST: + if (__field.type == TType.STRUCT) { + this.host = new com.vesoft.nebula.HostAddr(); + this.host.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -224,6 +300,11 @@ public void write(TProtocol oprot) throws TException { oprot.writeBinary(this.version); oprot.writeFieldEnd(); } + if (this.host != null) { + oprot.writeFieldBegin(HOST_FIELD_DESC); + this.host.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -259,6 +340,17 @@ public String toString(int indent, boolean prettyPrint) { if (this.getVersion().length > 128) sb.append(" ..."); } first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("host"); + sb.append(space); + sb.append(":").append(space); + if (this.getHost() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getHost(), indent + 1, prettyPrint)); + } + first = false; sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); sb.append(")"); return sb.toString(); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/Zone.java b/client/src/main/generated/com/vesoft/nebula/meta/Zone.java index aed2648fa..1b25c1fb2 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/Zone.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/Zone.java @@ -267,16 +267,16 @@ public void read(TProtocol iprot) throws TException { case NODES: if (__field.type == TType.LIST) { { - TList _list202 = iprot.readListBegin(); - this.nodes = new ArrayList(Math.max(0, _list202.size)); - for (int _i203 = 0; - (_list202.size < 0) ? iprot.peekList() : (_i203 < _list202.size); - ++_i203) + TList _list216 = iprot.readListBegin(); + this.nodes = new ArrayList(Math.max(0, _list216.size)); + for (int _i217 = 0; + (_list216.size < 0) ? iprot.peekList() : (_i217 < _list216.size); + ++_i217) { - com.vesoft.nebula.HostAddr _elem204; - _elem204 = new com.vesoft.nebula.HostAddr(); - _elem204.read(iprot); - this.nodes.add(_elem204); + com.vesoft.nebula.HostAddr _elem218; + _elem218 = new com.vesoft.nebula.HostAddr(); + _elem218.read(iprot); + this.nodes.add(_elem218); } iprot.readListEnd(); } @@ -310,8 +310,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(NODES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.nodes.size())); - for (com.vesoft.nebula.HostAddr _iter205 : this.nodes) { - _iter205.write(oprot); + for (com.vesoft.nebula.HostAddr _iter219 : this.nodes) { + _iter219.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/AddPartReq.java b/client/src/main/generated/com/vesoft/nebula/storage/AddPartReq.java index 55a0410fe..2720fc58c 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/AddPartReq.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/AddPartReq.java @@ -419,16 +419,16 @@ public void read(TProtocol iprot) throws TException { case PEERS: if (__field.type == TType.LIST) { { - TList _list221 = iprot.readListBegin(); - this.peers = new ArrayList(Math.max(0, _list221.size)); - for (int _i222 = 0; - (_list221.size < 0) ? iprot.peekList() : (_i222 < _list221.size); - ++_i222) + TList _list252 = iprot.readListBegin(); + this.peers = new ArrayList(Math.max(0, _list252.size)); + for (int _i253 = 0; + (_list252.size < 0) ? iprot.peekList() : (_i253 < _list252.size); + ++_i253) { - com.vesoft.nebula.HostAddr _elem223; - _elem223 = new com.vesoft.nebula.HostAddr(); - _elem223.read(iprot); - this.peers.add(_elem223); + com.vesoft.nebula.HostAddr _elem254; + _elem254 = new com.vesoft.nebula.HostAddr(); + _elem254.read(iprot); + this.peers.add(_elem254); } iprot.readListEnd(); } @@ -466,8 +466,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PEERS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.peers.size())); - for (com.vesoft.nebula.HostAddr _iter224 : this.peers) { - _iter224.write(oprot); + for (com.vesoft.nebula.HostAddr _iter255 : this.peers) { + _iter255.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/ChainAddEdgesRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/ChainAddEdgesRequest.java index 24ef64348..35d79c774 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/ChainAddEdgesRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/ChainAddEdgesRequest.java @@ -486,30 +486,30 @@ public void read(TProtocol iprot) throws TException { case PARTS: if (__field.type == TType.MAP) { { - TMap _map292 = iprot.readMapBegin(); - this.parts = new HashMap>(Math.max(0, 2*_map292.size)); - for (int _i293 = 0; - (_map292.size < 0) ? iprot.peekMap() : (_i293 < _map292.size); - ++_i293) + TMap _map291 = iprot.readMapBegin(); + this.parts = new HashMap>(Math.max(0, 2*_map291.size)); + for (int _i292 = 0; + (_map291.size < 0) ? iprot.peekMap() : (_i292 < _map291.size); + ++_i292) { - int _key294; - List _val295; - _key294 = iprot.readI32(); + int _key293; + List _val294; + _key293 = iprot.readI32(); { - TList _list296 = iprot.readListBegin(); - _val295 = new ArrayList(Math.max(0, _list296.size)); - for (int _i297 = 0; - (_list296.size < 0) ? iprot.peekList() : (_i297 < _list296.size); - ++_i297) + TList _list295 = iprot.readListBegin(); + _val294 = new ArrayList(Math.max(0, _list295.size)); + for (int _i296 = 0; + (_list295.size < 0) ? iprot.peekList() : (_i296 < _list295.size); + ++_i296) { - NewEdge _elem298; - _elem298 = new NewEdge(); - _elem298.read(iprot); - _val295.add(_elem298); + NewEdge _elem297; + _elem297 = new NewEdge(); + _elem297.read(iprot); + _val294.add(_elem297); } iprot.readListEnd(); } - this.parts.put(_key294, _val295); + this.parts.put(_key293, _val294); } iprot.readMapEnd(); } @@ -520,15 +520,15 @@ public void read(TProtocol iprot) throws TException { case PROP_NAMES: if (__field.type == TType.LIST) { { - TList _list299 = iprot.readListBegin(); - this.prop_names = new ArrayList(Math.max(0, _list299.size)); - for (int _i300 = 0; - (_list299.size < 0) ? iprot.peekList() : (_i300 < _list299.size); - ++_i300) + TList _list298 = iprot.readListBegin(); + this.prop_names = new ArrayList(Math.max(0, _list298.size)); + for (int _i299 = 0; + (_list298.size < 0) ? iprot.peekList() : (_i299 < _list298.size); + ++_i299) { - byte[] _elem301; - _elem301 = iprot.readBinary(); - this.prop_names.add(_elem301); + byte[] _elem300; + _elem300 = iprot.readBinary(); + this.prop_names.add(_elem300); } iprot.readListEnd(); } @@ -584,12 +584,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.parts.size())); - for (Map.Entry> _iter302 : this.parts.entrySet()) { - oprot.writeI32(_iter302.getKey()); + for (Map.Entry> _iter301 : this.parts.entrySet()) { + oprot.writeI32(_iter301.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter302.getValue().size())); - for (NewEdge _iter303 : _iter302.getValue()) { - _iter303.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, _iter301.getValue().size())); + for (NewEdge _iter302 : _iter301.getValue()) { + _iter302.write(oprot); } oprot.writeListEnd(); } @@ -602,8 +602,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PROP_NAMES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.prop_names.size())); - for (byte[] _iter304 : this.prop_names) { - oprot.writeBinary(_iter304); + for (byte[] _iter303 : this.prop_names) { + oprot.writeBinary(_iter303); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/ChainUpdateEdgeRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/ChainUpdateEdgeRequest.java index a59c6066e..b02f2c92b 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/ChainUpdateEdgeRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/ChainUpdateEdgeRequest.java @@ -454,15 +454,15 @@ public void read(TProtocol iprot) throws TException { case PARTS: if (__field.type == TType.LIST) { { - TList _list305 = iprot.readListBegin(); - this.parts = new ArrayList(Math.max(0, _list305.size)); - for (int _i306 = 0; - (_list305.size < 0) ? iprot.peekList() : (_i306 < _list305.size); - ++_i306) + TList _list304 = iprot.readListBegin(); + this.parts = new ArrayList(Math.max(0, _list304.size)); + for (int _i305 = 0; + (_list304.size < 0) ? iprot.peekList() : (_i305 < _list304.size); + ++_i305) { - int _elem307; - _elem307 = iprot.readI32(); - this.parts.add(_elem307); + int _elem306; + _elem306 = iprot.readI32(); + this.parts.add(_elem306); } iprot.readListEnd(); } @@ -507,8 +507,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.I32, this.parts.size())); - for (int _iter308 : this.parts) { - oprot.writeI32(_iter308); + for (int _iter307 : this.parts) { + oprot.writeI32(_iter307); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/CheckPeersReq.java b/client/src/main/generated/com/vesoft/nebula/storage/CheckPeersReq.java index 6f79c0c30..9cb193b9b 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/CheckPeersReq.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/CheckPeersReq.java @@ -347,16 +347,16 @@ public void read(TProtocol iprot) throws TException { case PEERS: if (__field.type == TType.LIST) { { - TList _list234 = iprot.readListBegin(); - this.peers = new ArrayList(Math.max(0, _list234.size)); - for (int _i235 = 0; - (_list234.size < 0) ? iprot.peekList() : (_i235 < _list234.size); - ++_i235) + TList _list265 = iprot.readListBegin(); + this.peers = new ArrayList(Math.max(0, _list265.size)); + for (int _i266 = 0; + (_list265.size < 0) ? iprot.peekList() : (_i266 < _list265.size); + ++_i266) { - com.vesoft.nebula.HostAddr _elem236; - _elem236 = new com.vesoft.nebula.HostAddr(); - _elem236.read(iprot); - this.peers.add(_elem236); + com.vesoft.nebula.HostAddr _elem267; + _elem267 = new com.vesoft.nebula.HostAddr(); + _elem267.read(iprot); + this.peers.add(_elem267); } iprot.readListEnd(); } @@ -391,8 +391,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PEERS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.peers.size())); - for (com.vesoft.nebula.HostAddr _iter237 : this.peers) { - _iter237.write(oprot); + for (com.vesoft.nebula.HostAddr _iter268 : this.peers) { + _iter268.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/CreateCPResp.java b/client/src/main/generated/com/vesoft/nebula/storage/CreateCPResp.java index 0a945b9b1..e26defcb8 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/CreateCPResp.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/CreateCPResp.java @@ -274,16 +274,16 @@ public void read(TProtocol iprot) throws TException { case INFO: if (__field.type == TType.LIST) { { - TList _list242 = iprot.readListBegin(); - this.info = new ArrayList(Math.max(0, _list242.size)); - for (int _i243 = 0; - (_list242.size < 0) ? iprot.peekList() : (_i243 < _list242.size); - ++_i243) + TList _list273 = iprot.readListBegin(); + this.info = new ArrayList(Math.max(0, _list273.size)); + for (int _i274 = 0; + (_list273.size < 0) ? iprot.peekList() : (_i274 < _list273.size); + ++_i274) { - com.vesoft.nebula.CheckpointInfo _elem244; - _elem244 = new com.vesoft.nebula.CheckpointInfo(); - _elem244.read(iprot); - this.info.add(_elem244); + com.vesoft.nebula.CheckpointInfo _elem275; + _elem275 = new com.vesoft.nebula.CheckpointInfo(); + _elem275.read(iprot); + this.info.add(_elem275); } iprot.readListEnd(); } @@ -317,8 +317,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(INFO_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.info.size())); - for (com.vesoft.nebula.CheckpointInfo _iter245 : this.info) { - _iter245.write(oprot); + for (com.vesoft.nebula.CheckpointInfo _iter276 : this.info) { + _iter276.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/GetLeaderPartsResp.java b/client/src/main/generated/com/vesoft/nebula/storage/GetLeaderPartsResp.java index 6b4bfaecd..28e298ee6 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/GetLeaderPartsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/GetLeaderPartsResp.java @@ -276,29 +276,29 @@ public void read(TProtocol iprot) throws TException { case LEADER_PARTS: if (__field.type == TType.MAP) { { - TMap _map225 = iprot.readMapBegin(); - this.leader_parts = new HashMap>(Math.max(0, 2*_map225.size)); - for (int _i226 = 0; - (_map225.size < 0) ? iprot.peekMap() : (_i226 < _map225.size); - ++_i226) + TMap _map256 = iprot.readMapBegin(); + this.leader_parts = new HashMap>(Math.max(0, 2*_map256.size)); + for (int _i257 = 0; + (_map256.size < 0) ? iprot.peekMap() : (_i257 < _map256.size); + ++_i257) { - int _key227; - List _val228; - _key227 = iprot.readI32(); + int _key258; + List _val259; + _key258 = iprot.readI32(); { - TList _list229 = iprot.readListBegin(); - _val228 = new ArrayList(Math.max(0, _list229.size)); - for (int _i230 = 0; - (_list229.size < 0) ? iprot.peekList() : (_i230 < _list229.size); - ++_i230) + TList _list260 = iprot.readListBegin(); + _val259 = new ArrayList(Math.max(0, _list260.size)); + for (int _i261 = 0; + (_list260.size < 0) ? iprot.peekList() : (_i261 < _list260.size); + ++_i261) { - int _elem231; - _elem231 = iprot.readI32(); - _val228.add(_elem231); + int _elem262; + _elem262 = iprot.readI32(); + _val259.add(_elem262); } iprot.readListEnd(); } - this.leader_parts.put(_key227, _val228); + this.leader_parts.put(_key258, _val259); } iprot.readMapEnd(); } @@ -332,12 +332,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(LEADER_PARTS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.leader_parts.size())); - for (Map.Entry> _iter232 : this.leader_parts.entrySet()) { - oprot.writeI32(_iter232.getKey()); + for (Map.Entry> _iter263 : this.leader_parts.entrySet()) { + oprot.writeI32(_iter263.getKey()); { - oprot.writeListBegin(new TList(TType.I32, _iter232.getValue().size())); - for (int _iter233 : _iter232.getValue()) { - oprot.writeI32(_iter233); + oprot.writeListBegin(new TList(TType.I32, _iter263.getValue().size())); + for (int _iter264 : _iter263.getValue()) { + oprot.writeI32(_iter264); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/GraphStorageService.java b/client/src/main/generated/com/vesoft/nebula/storage/GraphStorageService.java index c5be51355..3cfcc78f6 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/GraphStorageService.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/GraphStorageService.java @@ -49,9 +49,9 @@ public interface Iface { public UpdateResponse updateEdge(UpdateEdgeRequest req) throws TException; - public ScanVertexResponse scanVertex(ScanVertexRequest req) throws TException; + public ScanResponse scanVertex(ScanVertexRequest req) throws TException; - public ScanEdgeResponse scanEdge(ScanEdgeRequest req) throws TException; + public ScanResponse scanEdge(ScanEdgeRequest req) throws TException; public GetUUIDResp getUUID(GetUUIDReq req) throws TException; @@ -63,6 +63,12 @@ public interface Iface { public ExecResponse chainAddEdges(AddEdgesRequest req) throws TException; + public KVGetResponse get(KVGetRequest req) throws TException; + + public ExecResponse put(KVPutRequest req) throws TException; + + public ExecResponse remove(KVRemoveRequest req) throws TException; + } public interface AsyncIface { @@ -99,6 +105,12 @@ public interface AsyncIface { public void chainAddEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler) throws TException; + public void get(KVGetRequest req, AsyncMethodCallback resultHandler) throws TException; + + public void put(KVPutRequest req, AsyncMethodCallback resultHandler) throws TException; + + public void remove(KVRemoveRequest req, AsyncMethodCallback resultHandler) throws TException; + } public static class Client extends EventHandlerBase implements Iface, TClientIf { @@ -535,7 +547,7 @@ public UpdateResponse recv_updateEdge() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateEdge failed: unknown result"); } - public ScanVertexResponse scanVertex(ScanVertexRequest req) throws TException + public ScanResponse scanVertex(ScanVertexRequest req) throws TException { ContextStack ctx = getContextStack("GraphStorageService.scanVertex", null); this.setContextStack(ctx); @@ -557,7 +569,7 @@ public void send_scanVertex(ScanVertexRequest req) throws TException return; } - public ScanVertexResponse recv_scanVertex() throws TException + public ScanResponse recv_scanVertex() throws TException { ContextStack ctx = super.getContextStack(); long bytes; @@ -580,7 +592,7 @@ public ScanVertexResponse recv_scanVertex() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "scanVertex failed: unknown result"); } - public ScanEdgeResponse scanEdge(ScanEdgeRequest req) throws TException + public ScanResponse scanEdge(ScanEdgeRequest req) throws TException { ContextStack ctx = getContextStack("GraphStorageService.scanEdge", null); this.setContextStack(ctx); @@ -602,7 +614,7 @@ public void send_scanEdge(ScanEdgeRequest req) throws TException return; } - public ScanEdgeResponse recv_scanEdge() throws TException + public ScanResponse recv_scanEdge() throws TException { ContextStack ctx = super.getContextStack(); long bytes; @@ -850,6 +862,141 @@ public ExecResponse recv_chainAddEdges() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "chainAddEdges failed: unknown result"); } + public KVGetResponse get(KVGetRequest req) throws TException + { + ContextStack ctx = getContextStack("GraphStorageService.get", null); + this.setContextStack(ctx); + send_get(req); + return recv_get(); + } + + public void send_get(KVGetRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "GraphStorageService.get", null); + oprot_.writeMessageBegin(new TMessage("get", TMessageType.CALL, seqid_)); + get_args args = new get_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "GraphStorageService.get", args); + return; + } + + public KVGetResponse recv_get() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "GraphStorageService.get"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + get_result result = new get_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "GraphStorageService.get", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result"); + } + + public ExecResponse put(KVPutRequest req) throws TException + { + ContextStack ctx = getContextStack("GraphStorageService.put", null); + this.setContextStack(ctx); + send_put(req); + return recv_put(); + } + + public void send_put(KVPutRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "GraphStorageService.put", null); + oprot_.writeMessageBegin(new TMessage("put", TMessageType.CALL, seqid_)); + put_args args = new put_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "GraphStorageService.put", args); + return; + } + + public ExecResponse recv_put() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "GraphStorageService.put"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + put_result result = new put_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "GraphStorageService.put", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "put failed: unknown result"); + } + + public ExecResponse remove(KVRemoveRequest req) throws TException + { + ContextStack ctx = getContextStack("GraphStorageService.remove", null); + this.setContextStack(ctx); + send_remove(req); + return recv_remove(); + } + + public void send_remove(KVRemoveRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "GraphStorageService.remove", null); + oprot_.writeMessageBegin(new TMessage("remove", TMessageType.CALL, seqid_)); + remove_args args = new remove_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "GraphStorageService.remove", args); + return; + } + + public ExecResponse recv_remove() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "GraphStorageService.remove"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + remove_result result = new remove_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "GraphStorageService.remove", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "remove failed: unknown result"); + } + } public static class AsyncClient extends TAsyncClient implements AsyncIface { public static class Factory implements TAsyncClientFactory { @@ -868,17 +1015,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void getNeighbors(GetNeighborsRequest req, AsyncMethodCallback resultHandler328) throws TException { + public void getNeighbors(GetNeighborsRequest req, AsyncMethodCallback resultHandler330) throws TException { checkReady(); - getNeighbors_call method_call = new getNeighbors_call(req, resultHandler328, this, ___protocolFactory, ___transport); + getNeighbors_call method_call = new getNeighbors_call(req, resultHandler330, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getNeighbors_call extends TAsyncMethodCall { private GetNeighborsRequest req; - public getNeighbors_call(GetNeighborsRequest req, AsyncMethodCallback resultHandler329, TAsyncClient client325, TProtocolFactory protocolFactory326, TNonblockingTransport transport327) throws TException { - super(client325, protocolFactory326, transport327, resultHandler329, false); + public getNeighbors_call(GetNeighborsRequest req, AsyncMethodCallback resultHandler331, TAsyncClient client327, TProtocolFactory protocolFactory328, TNonblockingTransport transport329) throws TException { + super(client327, protocolFactory328, transport329, resultHandler331, false); this.req = req; } @@ -900,17 +1047,17 @@ public GetNeighborsResponse getResult() throws TException { } } - public void getProps(GetPropRequest req, AsyncMethodCallback resultHandler333) throws TException { + public void getProps(GetPropRequest req, AsyncMethodCallback resultHandler335) throws TException { checkReady(); - getProps_call method_call = new getProps_call(req, resultHandler333, this, ___protocolFactory, ___transport); + getProps_call method_call = new getProps_call(req, resultHandler335, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getProps_call extends TAsyncMethodCall { private GetPropRequest req; - public getProps_call(GetPropRequest req, AsyncMethodCallback resultHandler334, TAsyncClient client330, TProtocolFactory protocolFactory331, TNonblockingTransport transport332) throws TException { - super(client330, protocolFactory331, transport332, resultHandler334, false); + public getProps_call(GetPropRequest req, AsyncMethodCallback resultHandler336, TAsyncClient client332, TProtocolFactory protocolFactory333, TNonblockingTransport transport334) throws TException { + super(client332, protocolFactory333, transport334, resultHandler336, false); this.req = req; } @@ -932,17 +1079,17 @@ public GetPropResponse getResult() throws TException { } } - public void addVertices(AddVerticesRequest req, AsyncMethodCallback resultHandler338) throws TException { + public void addVertices(AddVerticesRequest req, AsyncMethodCallback resultHandler340) throws TException { checkReady(); - addVertices_call method_call = new addVertices_call(req, resultHandler338, this, ___protocolFactory, ___transport); + addVertices_call method_call = new addVertices_call(req, resultHandler340, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addVertices_call extends TAsyncMethodCall { private AddVerticesRequest req; - public addVertices_call(AddVerticesRequest req, AsyncMethodCallback resultHandler339, TAsyncClient client335, TProtocolFactory protocolFactory336, TNonblockingTransport transport337) throws TException { - super(client335, protocolFactory336, transport337, resultHandler339, false); + public addVertices_call(AddVerticesRequest req, AsyncMethodCallback resultHandler341, TAsyncClient client337, TProtocolFactory protocolFactory338, TNonblockingTransport transport339) throws TException { + super(client337, protocolFactory338, transport339, resultHandler341, false); this.req = req; } @@ -964,17 +1111,17 @@ public ExecResponse getResult() throws TException { } } - public void addEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler343) throws TException { + public void addEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler345) throws TException { checkReady(); - addEdges_call method_call = new addEdges_call(req, resultHandler343, this, ___protocolFactory, ___transport); + addEdges_call method_call = new addEdges_call(req, resultHandler345, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addEdges_call extends TAsyncMethodCall { private AddEdgesRequest req; - public addEdges_call(AddEdgesRequest req, AsyncMethodCallback resultHandler344, TAsyncClient client340, TProtocolFactory protocolFactory341, TNonblockingTransport transport342) throws TException { - super(client340, protocolFactory341, transport342, resultHandler344, false); + public addEdges_call(AddEdgesRequest req, AsyncMethodCallback resultHandler346, TAsyncClient client342, TProtocolFactory protocolFactory343, TNonblockingTransport transport344) throws TException { + super(client342, protocolFactory343, transport344, resultHandler346, false); this.req = req; } @@ -996,17 +1143,17 @@ public ExecResponse getResult() throws TException { } } - public void deleteEdges(DeleteEdgesRequest req, AsyncMethodCallback resultHandler348) throws TException { + public void deleteEdges(DeleteEdgesRequest req, AsyncMethodCallback resultHandler350) throws TException { checkReady(); - deleteEdges_call method_call = new deleteEdges_call(req, resultHandler348, this, ___protocolFactory, ___transport); + deleteEdges_call method_call = new deleteEdges_call(req, resultHandler350, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class deleteEdges_call extends TAsyncMethodCall { private DeleteEdgesRequest req; - public deleteEdges_call(DeleteEdgesRequest req, AsyncMethodCallback resultHandler349, TAsyncClient client345, TProtocolFactory protocolFactory346, TNonblockingTransport transport347) throws TException { - super(client345, protocolFactory346, transport347, resultHandler349, false); + public deleteEdges_call(DeleteEdgesRequest req, AsyncMethodCallback resultHandler351, TAsyncClient client347, TProtocolFactory protocolFactory348, TNonblockingTransport transport349) throws TException { + super(client347, protocolFactory348, transport349, resultHandler351, false); this.req = req; } @@ -1028,17 +1175,17 @@ public ExecResponse getResult() throws TException { } } - public void deleteVertices(DeleteVerticesRequest req, AsyncMethodCallback resultHandler353) throws TException { + public void deleteVertices(DeleteVerticesRequest req, AsyncMethodCallback resultHandler355) throws TException { checkReady(); - deleteVertices_call method_call = new deleteVertices_call(req, resultHandler353, this, ___protocolFactory, ___transport); + deleteVertices_call method_call = new deleteVertices_call(req, resultHandler355, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class deleteVertices_call extends TAsyncMethodCall { private DeleteVerticesRequest req; - public deleteVertices_call(DeleteVerticesRequest req, AsyncMethodCallback resultHandler354, TAsyncClient client350, TProtocolFactory protocolFactory351, TNonblockingTransport transport352) throws TException { - super(client350, protocolFactory351, transport352, resultHandler354, false); + public deleteVertices_call(DeleteVerticesRequest req, AsyncMethodCallback resultHandler356, TAsyncClient client352, TProtocolFactory protocolFactory353, TNonblockingTransport transport354) throws TException { + super(client352, protocolFactory353, transport354, resultHandler356, false); this.req = req; } @@ -1060,17 +1207,17 @@ public ExecResponse getResult() throws TException { } } - public void deleteTags(DeleteTagsRequest req, AsyncMethodCallback resultHandler358) throws TException { + public void deleteTags(DeleteTagsRequest req, AsyncMethodCallback resultHandler360) throws TException { checkReady(); - deleteTags_call method_call = new deleteTags_call(req, resultHandler358, this, ___protocolFactory, ___transport); + deleteTags_call method_call = new deleteTags_call(req, resultHandler360, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class deleteTags_call extends TAsyncMethodCall { private DeleteTagsRequest req; - public deleteTags_call(DeleteTagsRequest req, AsyncMethodCallback resultHandler359, TAsyncClient client355, TProtocolFactory protocolFactory356, TNonblockingTransport transport357) throws TException { - super(client355, protocolFactory356, transport357, resultHandler359, false); + public deleteTags_call(DeleteTagsRequest req, AsyncMethodCallback resultHandler361, TAsyncClient client357, TProtocolFactory protocolFactory358, TNonblockingTransport transport359) throws TException { + super(client357, protocolFactory358, transport359, resultHandler361, false); this.req = req; } @@ -1092,17 +1239,17 @@ public ExecResponse getResult() throws TException { } } - public void updateVertex(UpdateVertexRequest req, AsyncMethodCallback resultHandler363) throws TException { + public void updateVertex(UpdateVertexRequest req, AsyncMethodCallback resultHandler365) throws TException { checkReady(); - updateVertex_call method_call = new updateVertex_call(req, resultHandler363, this, ___protocolFactory, ___transport); + updateVertex_call method_call = new updateVertex_call(req, resultHandler365, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class updateVertex_call extends TAsyncMethodCall { private UpdateVertexRequest req; - public updateVertex_call(UpdateVertexRequest req, AsyncMethodCallback resultHandler364, TAsyncClient client360, TProtocolFactory protocolFactory361, TNonblockingTransport transport362) throws TException { - super(client360, protocolFactory361, transport362, resultHandler364, false); + public updateVertex_call(UpdateVertexRequest req, AsyncMethodCallback resultHandler366, TAsyncClient client362, TProtocolFactory protocolFactory363, TNonblockingTransport transport364) throws TException { + super(client362, protocolFactory363, transport364, resultHandler366, false); this.req = req; } @@ -1124,17 +1271,17 @@ public UpdateResponse getResult() throws TException { } } - public void updateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler368) throws TException { + public void updateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler370) throws TException { checkReady(); - updateEdge_call method_call = new updateEdge_call(req, resultHandler368, this, ___protocolFactory, ___transport); + updateEdge_call method_call = new updateEdge_call(req, resultHandler370, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class updateEdge_call extends TAsyncMethodCall { private UpdateEdgeRequest req; - public updateEdge_call(UpdateEdgeRequest req, AsyncMethodCallback resultHandler369, TAsyncClient client365, TProtocolFactory protocolFactory366, TNonblockingTransport transport367) throws TException { - super(client365, protocolFactory366, transport367, resultHandler369, false); + public updateEdge_call(UpdateEdgeRequest req, AsyncMethodCallback resultHandler371, TAsyncClient client367, TProtocolFactory protocolFactory368, TNonblockingTransport transport369) throws TException { + super(client367, protocolFactory368, transport369, resultHandler371, false); this.req = req; } @@ -1156,17 +1303,17 @@ public UpdateResponse getResult() throws TException { } } - public void scanVertex(ScanVertexRequest req, AsyncMethodCallback resultHandler373) throws TException { + public void scanVertex(ScanVertexRequest req, AsyncMethodCallback resultHandler375) throws TException { checkReady(); - scanVertex_call method_call = new scanVertex_call(req, resultHandler373, this, ___protocolFactory, ___transport); + scanVertex_call method_call = new scanVertex_call(req, resultHandler375, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class scanVertex_call extends TAsyncMethodCall { private ScanVertexRequest req; - public scanVertex_call(ScanVertexRequest req, AsyncMethodCallback resultHandler374, TAsyncClient client370, TProtocolFactory protocolFactory371, TNonblockingTransport transport372) throws TException { - super(client370, protocolFactory371, transport372, resultHandler374, false); + public scanVertex_call(ScanVertexRequest req, AsyncMethodCallback resultHandler376, TAsyncClient client372, TProtocolFactory protocolFactory373, TNonblockingTransport transport374) throws TException { + super(client372, protocolFactory373, transport374, resultHandler376, false); this.req = req; } @@ -1178,7 +1325,7 @@ public void write_args(TProtocol prot) throws TException { prot.writeMessageEnd(); } - public ScanVertexResponse getResult() throws TException { + public ScanResponse getResult() throws TException { if (getState() != State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1188,17 +1335,17 @@ public ScanVertexResponse getResult() throws TException { } } - public void scanEdge(ScanEdgeRequest req, AsyncMethodCallback resultHandler378) throws TException { + public void scanEdge(ScanEdgeRequest req, AsyncMethodCallback resultHandler380) throws TException { checkReady(); - scanEdge_call method_call = new scanEdge_call(req, resultHandler378, this, ___protocolFactory, ___transport); + scanEdge_call method_call = new scanEdge_call(req, resultHandler380, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class scanEdge_call extends TAsyncMethodCall { private ScanEdgeRequest req; - public scanEdge_call(ScanEdgeRequest req, AsyncMethodCallback resultHandler379, TAsyncClient client375, TProtocolFactory protocolFactory376, TNonblockingTransport transport377) throws TException { - super(client375, protocolFactory376, transport377, resultHandler379, false); + public scanEdge_call(ScanEdgeRequest req, AsyncMethodCallback resultHandler381, TAsyncClient client377, TProtocolFactory protocolFactory378, TNonblockingTransport transport379) throws TException { + super(client377, protocolFactory378, transport379, resultHandler381, false); this.req = req; } @@ -1210,7 +1357,7 @@ public void write_args(TProtocol prot) throws TException { prot.writeMessageEnd(); } - public ScanEdgeResponse getResult() throws TException { + public ScanResponse getResult() throws TException { if (getState() != State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1220,17 +1367,17 @@ public ScanEdgeResponse getResult() throws TException { } } - public void getUUID(GetUUIDReq req, AsyncMethodCallback resultHandler383) throws TException { + public void getUUID(GetUUIDReq req, AsyncMethodCallback resultHandler385) throws TException { checkReady(); - getUUID_call method_call = new getUUID_call(req, resultHandler383, this, ___protocolFactory, ___transport); + getUUID_call method_call = new getUUID_call(req, resultHandler385, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getUUID_call extends TAsyncMethodCall { private GetUUIDReq req; - public getUUID_call(GetUUIDReq req, AsyncMethodCallback resultHandler384, TAsyncClient client380, TProtocolFactory protocolFactory381, TNonblockingTransport transport382) throws TException { - super(client380, protocolFactory381, transport382, resultHandler384, false); + public getUUID_call(GetUUIDReq req, AsyncMethodCallback resultHandler386, TAsyncClient client382, TProtocolFactory protocolFactory383, TNonblockingTransport transport384) throws TException { + super(client382, protocolFactory383, transport384, resultHandler386, false); this.req = req; } @@ -1252,17 +1399,17 @@ public GetUUIDResp getResult() throws TException { } } - public void lookupIndex(LookupIndexRequest req, AsyncMethodCallback resultHandler388) throws TException { + public void lookupIndex(LookupIndexRequest req, AsyncMethodCallback resultHandler390) throws TException { checkReady(); - lookupIndex_call method_call = new lookupIndex_call(req, resultHandler388, this, ___protocolFactory, ___transport); + lookupIndex_call method_call = new lookupIndex_call(req, resultHandler390, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class lookupIndex_call extends TAsyncMethodCall { private LookupIndexRequest req; - public lookupIndex_call(LookupIndexRequest req, AsyncMethodCallback resultHandler389, TAsyncClient client385, TProtocolFactory protocolFactory386, TNonblockingTransport transport387) throws TException { - super(client385, protocolFactory386, transport387, resultHandler389, false); + public lookupIndex_call(LookupIndexRequest req, AsyncMethodCallback resultHandler391, TAsyncClient client387, TProtocolFactory protocolFactory388, TNonblockingTransport transport389) throws TException { + super(client387, protocolFactory388, transport389, resultHandler391, false); this.req = req; } @@ -1284,17 +1431,17 @@ public LookupIndexResp getResult() throws TException { } } - public void lookupAndTraverse(LookupAndTraverseRequest req, AsyncMethodCallback resultHandler393) throws TException { + public void lookupAndTraverse(LookupAndTraverseRequest req, AsyncMethodCallback resultHandler395) throws TException { checkReady(); - lookupAndTraverse_call method_call = new lookupAndTraverse_call(req, resultHandler393, this, ___protocolFactory, ___transport); + lookupAndTraverse_call method_call = new lookupAndTraverse_call(req, resultHandler395, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class lookupAndTraverse_call extends TAsyncMethodCall { private LookupAndTraverseRequest req; - public lookupAndTraverse_call(LookupAndTraverseRequest req, AsyncMethodCallback resultHandler394, TAsyncClient client390, TProtocolFactory protocolFactory391, TNonblockingTransport transport392) throws TException { - super(client390, protocolFactory391, transport392, resultHandler394, false); + public lookupAndTraverse_call(LookupAndTraverseRequest req, AsyncMethodCallback resultHandler396, TAsyncClient client392, TProtocolFactory protocolFactory393, TNonblockingTransport transport394) throws TException { + super(client392, protocolFactory393, transport394, resultHandler396, false); this.req = req; } @@ -1316,17 +1463,17 @@ public GetNeighborsResponse getResult() throws TException { } } - public void chainUpdateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler398) throws TException { + public void chainUpdateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler400) throws TException { checkReady(); - chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler398, this, ___protocolFactory, ___transport); + chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler400, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chainUpdateEdge_call extends TAsyncMethodCall { private UpdateEdgeRequest req; - public chainUpdateEdge_call(UpdateEdgeRequest req, AsyncMethodCallback resultHandler399, TAsyncClient client395, TProtocolFactory protocolFactory396, TNonblockingTransport transport397) throws TException { - super(client395, protocolFactory396, transport397, resultHandler399, false); + public chainUpdateEdge_call(UpdateEdgeRequest req, AsyncMethodCallback resultHandler401, TAsyncClient client397, TProtocolFactory protocolFactory398, TNonblockingTransport transport399) throws TException { + super(client397, protocolFactory398, transport399, resultHandler401, false); this.req = req; } @@ -1348,17 +1495,17 @@ public UpdateResponse getResult() throws TException { } } - public void chainAddEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler403) throws TException { + public void chainAddEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler405) throws TException { checkReady(); - chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler403, this, ___protocolFactory, ___transport); + chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler405, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chainAddEdges_call extends TAsyncMethodCall { private AddEdgesRequest req; - public chainAddEdges_call(AddEdgesRequest req, AsyncMethodCallback resultHandler404, TAsyncClient client400, TProtocolFactory protocolFactory401, TNonblockingTransport transport402) throws TException { - super(client400, protocolFactory401, transport402, resultHandler404, false); + public chainAddEdges_call(AddEdgesRequest req, AsyncMethodCallback resultHandler406, TAsyncClient client402, TProtocolFactory protocolFactory403, TNonblockingTransport transport404) throws TException { + super(client402, protocolFactory403, transport404, resultHandler406, false); this.req = req; } @@ -1380,6 +1527,102 @@ public ExecResponse getResult() throws TException { } } + public void get(KVGetRequest req, AsyncMethodCallback resultHandler410) throws TException { + checkReady(); + get_call method_call = new get_call(req, resultHandler410, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_call extends TAsyncMethodCall { + private KVGetRequest req; + public get_call(KVGetRequest req, AsyncMethodCallback resultHandler411, TAsyncClient client407, TProtocolFactory protocolFactory408, TNonblockingTransport transport409) throws TException { + super(client407, protocolFactory408, transport409, resultHandler411, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("get", TMessageType.CALL, 0)); + get_args args = new get_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public KVGetResponse getResult() throws TException { + if (getState() != State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); + TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get(); + } + } + + public void put(KVPutRequest req, AsyncMethodCallback resultHandler415) throws TException { + checkReady(); + put_call method_call = new put_call(req, resultHandler415, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class put_call extends TAsyncMethodCall { + private KVPutRequest req; + public put_call(KVPutRequest req, AsyncMethodCallback resultHandler416, TAsyncClient client412, TProtocolFactory protocolFactory413, TNonblockingTransport transport414) throws TException { + super(client412, protocolFactory413, transport414, resultHandler416, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("put", TMessageType.CALL, 0)); + put_args args = new put_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ExecResponse getResult() throws TException { + if (getState() != State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); + TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_put(); + } + } + + public void remove(KVRemoveRequest req, AsyncMethodCallback resultHandler420) throws TException { + checkReady(); + remove_call method_call = new remove_call(req, resultHandler420, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class remove_call extends TAsyncMethodCall { + private KVRemoveRequest req; + public remove_call(KVRemoveRequest req, AsyncMethodCallback resultHandler421, TAsyncClient client417, TProtocolFactory protocolFactory418, TNonblockingTransport transport419) throws TException { + super(client417, protocolFactory418, transport419, resultHandler421, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("remove", TMessageType.CALL, 0)); + remove_args args = new remove_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ExecResponse getResult() throws TException { + if (getState() != State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); + TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_remove(); + } + } + } public static class Processor implements TProcessor { @@ -1404,6 +1647,9 @@ public Processor(Iface iface) processMap_.put("lookupAndTraverse", new lookupAndTraverse()); processMap_.put("chainUpdateEdge", new chainUpdateEdge()); processMap_.put("chainAddEdges", new chainAddEdges()); + processMap_.put("get", new get()); + processMap_.put("put", new put()); + processMap_.put("remove", new remove()); } protected static interface ProcessFunction { @@ -1772,6 +2018,69 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class get implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("GraphStorageService.get", server_ctx); + get_args args = new get_args(); + event_handler_.preRead(handler_ctx, "GraphStorageService.get"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "GraphStorageService.get", args); + get_result result = new get_result(); + result.success = iface_.get(args.req); + event_handler_.preWrite(handler_ctx, "GraphStorageService.get", result); + oprot.writeMessageBegin(new TMessage("get", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "GraphStorageService.get", result); + } + + } + + private class put implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("GraphStorageService.put", server_ctx); + put_args args = new put_args(); + event_handler_.preRead(handler_ctx, "GraphStorageService.put"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "GraphStorageService.put", args); + put_result result = new put_result(); + result.success = iface_.put(args.req); + event_handler_.preWrite(handler_ctx, "GraphStorageService.put", result); + oprot.writeMessageBegin(new TMessage("put", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "GraphStorageService.put", result); + } + + } + + private class remove implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("GraphStorageService.remove", server_ctx); + remove_args args = new remove_args(); + event_handler_.preRead(handler_ctx, "GraphStorageService.remove"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "GraphStorageService.remove", args); + remove_result result = new remove_result(); + result.success = iface_.remove(args.req); + event_handler_.preWrite(handler_ctx, "GraphStorageService.remove", result); + oprot.writeMessageBegin(new TMessage("remove", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "GraphStorageService.remove", result); + } + + } + } public static class getNeighbors_args implements TBase, java.io.Serializable, Cloneable { @@ -5612,7 +5921,7 @@ public static class scanVertex_result implements TBase, java.io.Serializable, Cl private static final TStruct STRUCT_DESC = new TStruct("scanVertex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ScanVertexResponse success; + public ScanResponse success; public static final int SUCCESS = 0; // isset id assignments @@ -5622,7 +5931,7 @@ public static class scanVertex_result implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ScanVertexResponse.class))); + new StructMetaData(TType.STRUCT, ScanResponse.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -5634,7 +5943,7 @@ public scanVertex_result() { } public scanVertex_result( - ScanVertexResponse success) { + ScanResponse success) { this(); this.success = success; } @@ -5652,11 +5961,11 @@ public scanVertex_result deepCopy() { return new scanVertex_result(this); } - public ScanVertexResponse getSuccess() { + public ScanResponse getSuccess() { return this.success; } - public scanVertex_result setSuccess(ScanVertexResponse success) { + public scanVertex_result setSuccess(ScanResponse success) { this.success = success; return this; } @@ -5682,7 +5991,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ScanVertexResponse)__value); + setSuccess((ScanResponse)__value); } break; @@ -5734,7 +6043,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ScanVertexResponse(); + this.success = new ScanResponse(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -6024,7 +6333,7 @@ public static class scanEdge_result implements TBase, java.io.Serializable, Clon private static final TStruct STRUCT_DESC = new TStruct("scanEdge_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ScanEdgeResponse success; + public ScanResponse success; public static final int SUCCESS = 0; // isset id assignments @@ -6034,7 +6343,7 @@ public static class scanEdge_result implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ScanEdgeResponse.class))); + new StructMetaData(TType.STRUCT, ScanResponse.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -6046,7 +6355,7 @@ public scanEdge_result() { } public scanEdge_result( - ScanEdgeResponse success) { + ScanResponse success) { this(); this.success = success; } @@ -6064,11 +6373,11 @@ public scanEdge_result deepCopy() { return new scanEdge_result(this); } - public ScanEdgeResponse getSuccess() { + public ScanResponse getSuccess() { return this.success; } - public scanEdge_result setSuccess(ScanEdgeResponse success) { + public scanEdge_result setSuccess(ScanResponse success) { this.success = success; return this; } @@ -6094,7 +6403,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ScanEdgeResponse)__value); + setSuccess((ScanResponse)__value); } break; @@ -6146,7 +6455,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ScanEdgeResponse(); + this.success = new ScanResponse(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -8205,4 +8514,1309 @@ public void validate() throws TException { } + public static class get_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("get_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public KVGetRequest req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, KVGetRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); + } + + public get_args() { + } + + public get_args( + KVGetRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public get_args(get_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public get_args deepCopy() { + return new get_args(this); + } + + public KVGetRequest getReq() { + return this.req; + } + + public get_args setReq(KVGetRequest req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((KVGetRequest)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof get_args)) + return false; + get_args that = (get_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + @Override + public int compareTo(get_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new KVGetRequest(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("get_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class get_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("get_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public KVGetResponse success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, KVGetResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); + } + + public get_result() { + } + + public get_result( + KVGetResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public get_result(get_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public get_result deepCopy() { + return new get_result(this); + } + + public KVGetResponse getSuccess() { + return this.success; + } + + public get_result setSuccess(KVGetResponse success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((KVGetResponse)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof get_result)) + return false; + get_result that = (get_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(get_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new KVGetResponse(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("get_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class put_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("put_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public KVPutRequest req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, KVPutRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(put_args.class, metaDataMap); + } + + public put_args() { + } + + public put_args( + KVPutRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public put_args(put_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public put_args deepCopy() { + return new put_args(this); + } + + public KVPutRequest getReq() { + return this.req; + } + + public put_args setReq(KVPutRequest req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((KVPutRequest)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof put_args)) + return false; + put_args that = (put_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + @Override + public int compareTo(put_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new KVPutRequest(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("put_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class put_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("put_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public ExecResponse success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ExecResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(put_result.class, metaDataMap); + } + + public put_result() { + } + + public put_result( + ExecResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public put_result(put_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public put_result deepCopy() { + return new put_result(this); + } + + public ExecResponse getSuccess() { + return this.success; + } + + public put_result setSuccess(ExecResponse success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((ExecResponse)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof put_result)) + return false; + put_result that = (put_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(put_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new ExecResponse(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("put_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class remove_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("remove_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public KVRemoveRequest req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, KVRemoveRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(remove_args.class, metaDataMap); + } + + public remove_args() { + } + + public remove_args( + KVRemoveRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public remove_args(remove_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public remove_args deepCopy() { + return new remove_args(this); + } + + public KVRemoveRequest getReq() { + return this.req; + } + + public remove_args setReq(KVRemoveRequest req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((KVRemoveRequest)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof remove_args)) + return false; + remove_args that = (remove_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + @Override + public int compareTo(remove_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new KVRemoveRequest(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("remove_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class remove_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("remove_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public ExecResponse success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ExecResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(remove_result.class, metaDataMap); + } + + public remove_result() { + } + + public remove_result( + ExecResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public remove_result(remove_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public remove_result deepCopy() { + return new remove_result(this); + } + + public ExecResponse getSuccess() { + return this.success; + } + + public remove_result setSuccess(ExecResponse success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((ExecResponse)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof remove_result)) + return false; + remove_result that = (remove_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(remove_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new ExecResponse(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("remove_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java b/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java new file mode 100644 index 000000000..f687d603f --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java @@ -0,0 +1,1136 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.storage; + +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import java.util.Collections; +import java.util.BitSet; +import java.util.Arrays; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.facebook.thrift.*; +import com.facebook.thrift.annotations.*; +import com.facebook.thrift.async.*; +import com.facebook.thrift.meta_data.*; +import com.facebook.thrift.server.*; +import com.facebook.thrift.transport.*; +import com.facebook.thrift.protocol.*; + +@SuppressWarnings({ "unused", "serial" }) +public class InternalStorageService { + + public interface Iface { + + public ExecResponse chainAddEdges(ChainAddEdgesRequest req) throws TException; + + public UpdateResponse chainUpdateEdge(ChainUpdateEdgeRequest req) throws TException; + + } + + public interface AsyncIface { + + public void chainAddEdges(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler) throws TException; + + public void chainUpdateEdge(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler) throws TException; + + } + + public static class Client extends EventHandlerBase implements Iface, TClientIf { + public Client(TProtocol prot) + { + this(prot, prot); + } + + public Client(TProtocol iprot, TProtocol oprot) + { + iprot_ = iprot; + oprot_ = oprot; + } + + protected TProtocol iprot_; + protected TProtocol oprot_; + + protected int seqid_; + + @Override + public TProtocol getInputProtocol() + { + return this.iprot_; + } + + @Override + public TProtocol getOutputProtocol() + { + return this.oprot_; + } + + public ExecResponse chainAddEdges(ChainAddEdgesRequest req) throws TException + { + ContextStack ctx = getContextStack("InternalStorageService.chainAddEdges", null); + this.setContextStack(ctx); + send_chainAddEdges(req); + return recv_chainAddEdges(); + } + + public void send_chainAddEdges(ChainAddEdgesRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "InternalStorageService.chainAddEdges", null); + oprot_.writeMessageBegin(new TMessage("chainAddEdges", TMessageType.CALL, seqid_)); + chainAddEdges_args args = new chainAddEdges_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "InternalStorageService.chainAddEdges", args); + return; + } + + public ExecResponse recv_chainAddEdges() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "InternalStorageService.chainAddEdges"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + chainAddEdges_result result = new chainAddEdges_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "InternalStorageService.chainAddEdges", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "chainAddEdges failed: unknown result"); + } + + public UpdateResponse chainUpdateEdge(ChainUpdateEdgeRequest req) throws TException + { + ContextStack ctx = getContextStack("InternalStorageService.chainUpdateEdge", null); + this.setContextStack(ctx); + send_chainUpdateEdge(req); + return recv_chainUpdateEdge(); + } + + public void send_chainUpdateEdge(ChainUpdateEdgeRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "InternalStorageService.chainUpdateEdge", null); + oprot_.writeMessageBegin(new TMessage("chainUpdateEdge", TMessageType.CALL, seqid_)); + chainUpdateEdge_args args = new chainUpdateEdge_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "InternalStorageService.chainUpdateEdge", args); + return; + } + + public UpdateResponse recv_chainUpdateEdge() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "InternalStorageService.chainUpdateEdge"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + chainUpdateEdge_result result = new chainUpdateEdge_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "InternalStorageService.chainUpdateEdge", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "chainUpdateEdge failed: unknown result"); + } + + } + public static class AsyncClient extends TAsyncClient implements AsyncIface { + public static class Factory implements TAsyncClientFactory { + private TAsyncClientManager clientManager; + private TProtocolFactory protocolFactory; + public Factory(TAsyncClientManager clientManager, TProtocolFactory protocolFactory) { + this.clientManager = clientManager; + this.protocolFactory = protocolFactory; + } + public AsyncClient getAsyncClient(TNonblockingTransport transport) { + return new AsyncClient(protocolFactory, clientManager, transport); + } + } + + public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientManager, TNonblockingTransport transport) { + super(protocolFactory, clientManager, transport); + } + + public void chainAddEdges(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler523) throws TException { + checkReady(); + chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler523, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class chainAddEdges_call extends TAsyncMethodCall { + private ChainAddEdgesRequest req; + public chainAddEdges_call(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler524, TAsyncClient client520, TProtocolFactory protocolFactory521, TNonblockingTransport transport522) throws TException { + super(client520, protocolFactory521, transport522, resultHandler524, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("chainAddEdges", TMessageType.CALL, 0)); + chainAddEdges_args args = new chainAddEdges_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ExecResponse getResult() throws TException { + if (getState() != State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); + TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_chainAddEdges(); + } + } + + public void chainUpdateEdge(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler528) throws TException { + checkReady(); + chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler528, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class chainUpdateEdge_call extends TAsyncMethodCall { + private ChainUpdateEdgeRequest req; + public chainUpdateEdge_call(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler529, TAsyncClient client525, TProtocolFactory protocolFactory526, TNonblockingTransport transport527) throws TException { + super(client525, protocolFactory526, transport527, resultHandler529, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("chainUpdateEdge", TMessageType.CALL, 0)); + chainUpdateEdge_args args = new chainUpdateEdge_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public UpdateResponse getResult() throws TException { + if (getState() != State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); + TProtocol prot = super.client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_chainUpdateEdge(); + } + } + + } + + public static class Processor implements TProcessor { + private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); + public Processor(Iface iface) + { + iface_ = iface; + event_handler_ = new TProcessorEventHandler(); // Empty handler + processMap_.put("chainAddEdges", new chainAddEdges()); + processMap_.put("chainUpdateEdge", new chainUpdateEdge()); + } + + protected static interface ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException; + } + + public void setEventHandler(TProcessorEventHandler handler) { + this.event_handler_ = handler; + } + + private Iface iface_; + protected TProcessorEventHandler event_handler_; + protected final HashMap processMap_ = new HashMap(); + + public boolean process(TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + TMessage msg = iprot.readMessageBegin(); + ProcessFunction fn = processMap_.get(msg.name); + if (fn == null) { + TProtocolUtil.skip(iprot, TType.STRUCT); + iprot.readMessageEnd(); + TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'"); + oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid)); + x.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + return true; + } + fn.process(msg.seqid, iprot, oprot, server_ctx); + return true; + } + + private class chainAddEdges implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("InternalStorageService.chainAddEdges", server_ctx); + chainAddEdges_args args = new chainAddEdges_args(); + event_handler_.preRead(handler_ctx, "InternalStorageService.chainAddEdges"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "InternalStorageService.chainAddEdges", args); + chainAddEdges_result result = new chainAddEdges_result(); + result.success = iface_.chainAddEdges(args.req); + event_handler_.preWrite(handler_ctx, "InternalStorageService.chainAddEdges", result); + oprot.writeMessageBegin(new TMessage("chainAddEdges", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "InternalStorageService.chainAddEdges", result); + } + + } + + private class chainUpdateEdge implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("InternalStorageService.chainUpdateEdge", server_ctx); + chainUpdateEdge_args args = new chainUpdateEdge_args(); + event_handler_.preRead(handler_ctx, "InternalStorageService.chainUpdateEdge"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "InternalStorageService.chainUpdateEdge", args); + chainUpdateEdge_result result = new chainUpdateEdge_result(); + result.success = iface_.chainUpdateEdge(args.req); + event_handler_.preWrite(handler_ctx, "InternalStorageService.chainUpdateEdge", result); + oprot.writeMessageBegin(new TMessage("chainUpdateEdge", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "InternalStorageService.chainUpdateEdge", result); + } + + } + + } + + public static class chainAddEdges_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("chainAddEdges_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public ChainAddEdgesRequest req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ChainAddEdgesRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(chainAddEdges_args.class, metaDataMap); + } + + public chainAddEdges_args() { + } + + public chainAddEdges_args( + ChainAddEdgesRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public chainAddEdges_args(chainAddEdges_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public chainAddEdges_args deepCopy() { + return new chainAddEdges_args(this); + } + + public ChainAddEdgesRequest getReq() { + return this.req; + } + + public chainAddEdges_args setReq(ChainAddEdgesRequest req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((ChainAddEdgesRequest)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof chainAddEdges_args)) + return false; + chainAddEdges_args that = (chainAddEdges_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new ChainAddEdgesRequest(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("chainAddEdges_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class chainAddEdges_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("chainAddEdges_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public ExecResponse success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ExecResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(chainAddEdges_result.class, metaDataMap); + } + + public chainAddEdges_result() { + } + + public chainAddEdges_result( + ExecResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public chainAddEdges_result(chainAddEdges_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public chainAddEdges_result deepCopy() { + return new chainAddEdges_result(this); + } + + public ExecResponse getSuccess() { + return this.success; + } + + public chainAddEdges_result setSuccess(ExecResponse success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((ExecResponse)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof chainAddEdges_result)) + return false; + chainAddEdges_result that = (chainAddEdges_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(chainAddEdges_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new ExecResponse(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("chainAddEdges_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class chainUpdateEdge_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("chainUpdateEdge_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public ChainUpdateEdgeRequest req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ChainUpdateEdgeRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(chainUpdateEdge_args.class, metaDataMap); + } + + public chainUpdateEdge_args() { + } + + public chainUpdateEdge_args( + ChainUpdateEdgeRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public chainUpdateEdge_args(chainUpdateEdge_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public chainUpdateEdge_args deepCopy() { + return new chainUpdateEdge_args(this); + } + + public ChainUpdateEdgeRequest getReq() { + return this.req; + } + + public chainUpdateEdge_args setReq(ChainUpdateEdgeRequest req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((ChainUpdateEdgeRequest)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof chainUpdateEdge_args)) + return false; + chainUpdateEdge_args that = (chainUpdateEdge_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new ChainUpdateEdgeRequest(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("chainUpdateEdge_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class chainUpdateEdge_result implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("chainUpdateEdge_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public UpdateResponse success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, UpdateResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(chainUpdateEdge_result.class, metaDataMap); + } + + public chainUpdateEdge_result() { + } + + public chainUpdateEdge_result( + UpdateResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public chainUpdateEdge_result(chainUpdateEdge_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public chainUpdateEdge_result deepCopy() { + return new chainUpdateEdge_result(this); + } + + public UpdateResponse getSuccess() { + return this.success; + } + + public chainUpdateEdge_result setSuccess(UpdateResponse success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((UpdateResponse)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof chainUpdateEdge_result)) + return false; + chainUpdateEdge_result that = (chainUpdateEdge_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new UpdateResponse(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("chainUpdateEdge_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + +} diff --git a/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java new file mode 100644 index 000000000..a54234d85 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java @@ -0,0 +1,644 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.storage; + +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import java.util.Collections; +import java.util.BitSet; +import java.util.Arrays; +import com.facebook.thrift.*; +import com.facebook.thrift.annotations.*; +import com.facebook.thrift.async.*; +import com.facebook.thrift.meta_data.*; +import com.facebook.thrift.server.*; +import com.facebook.thrift.transport.*; +import com.facebook.thrift.protocol.*; + +@SuppressWarnings({ "unused", "serial" }) +public class InternalTxnRequest implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("InternalTxnRequest"); + private static final TField TXN_ID_FIELD_DESC = new TField("txn_id", TType.I64, (short)1); + private static final TField TERM_OF_PARTS_FIELD_DESC = new TField("term_of_parts", TType.MAP, (short)2); + private static final TField ADD_EDGE_REQ_FIELD_DESC = new TField("add_edge_req", TType.STRUCT, (short)3); + private static final TField UPD_EDGE_REQ_FIELD_DESC = new TField("upd_edge_req", TType.STRUCT, (short)4); + private static final TField EDGE_VER_FIELD_DESC = new TField("edge_ver", TType.MAP, (short)5); + + public long txn_id; + public Map term_of_parts; + public AddEdgesRequest add_edge_req; + public UpdateEdgeRequest upd_edge_req; + public Map> edge_ver; + public static final int TXN_ID = 1; + public static final int TERM_OF_PARTS = 2; + public static final int ADD_EDGE_REQ = 3; + public static final int UPD_EDGE_REQ = 4; + public static final int EDGE_VER = 5; + + // isset id assignments + private static final int __TXN_ID_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(TXN_ID, new FieldMetaData("txn_id", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(TERM_OF_PARTS, new FieldMetaData("term_of_parts", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new FieldValueMetaData(TType.I64)))); + tmpMetaDataMap.put(ADD_EDGE_REQ, new FieldMetaData("add_edge_req", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, AddEdgesRequest.class))); + tmpMetaDataMap.put(UPD_EDGE_REQ, new FieldMetaData("upd_edge_req", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, UpdateEdgeRequest.class))); + tmpMetaDataMap.put(EDGE_VER, new FieldMetaData("edge_ver", TFieldRequirementType.OPTIONAL, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new ListMetaData(TType.LIST, + new FieldValueMetaData(TType.I64))))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(InternalTxnRequest.class, metaDataMap); + } + + public InternalTxnRequest() { + } + + public InternalTxnRequest( + long txn_id, + Map term_of_parts) { + this(); + this.txn_id = txn_id; + setTxn_idIsSet(true); + this.term_of_parts = term_of_parts; + } + + public InternalTxnRequest( + long txn_id, + Map term_of_parts, + AddEdgesRequest add_edge_req, + UpdateEdgeRequest upd_edge_req, + Map> edge_ver) { + this(); + this.txn_id = txn_id; + setTxn_idIsSet(true); + this.term_of_parts = term_of_parts; + this.add_edge_req = add_edge_req; + this.upd_edge_req = upd_edge_req; + this.edge_ver = edge_ver; + } + + public static class Builder { + private long txn_id; + private Map term_of_parts; + private AddEdgesRequest add_edge_req; + private UpdateEdgeRequest upd_edge_req; + private Map> edge_ver; + + BitSet __optional_isset = new BitSet(1); + + public Builder() { + } + + public Builder setTxn_id(final long txn_id) { + this.txn_id = txn_id; + __optional_isset.set(__TXN_ID_ISSET_ID, true); + return this; + } + + public Builder setTerm_of_parts(final Map term_of_parts) { + this.term_of_parts = term_of_parts; + return this; + } + + public Builder setAdd_edge_req(final AddEdgesRequest add_edge_req) { + this.add_edge_req = add_edge_req; + return this; + } + + public Builder setUpd_edge_req(final UpdateEdgeRequest upd_edge_req) { + this.upd_edge_req = upd_edge_req; + return this; + } + + public Builder setEdge_ver(final Map> edge_ver) { + this.edge_ver = edge_ver; + return this; + } + + public InternalTxnRequest build() { + InternalTxnRequest result = new InternalTxnRequest(); + if (__optional_isset.get(__TXN_ID_ISSET_ID)) { + result.setTxn_id(this.txn_id); + } + result.setTerm_of_parts(this.term_of_parts); + result.setAdd_edge_req(this.add_edge_req); + result.setUpd_edge_req(this.upd_edge_req); + result.setEdge_ver(this.edge_ver); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public InternalTxnRequest(InternalTxnRequest other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.txn_id = TBaseHelper.deepCopy(other.txn_id); + if (other.isSetTerm_of_parts()) { + this.term_of_parts = TBaseHelper.deepCopy(other.term_of_parts); + } + if (other.isSetAdd_edge_req()) { + this.add_edge_req = TBaseHelper.deepCopy(other.add_edge_req); + } + if (other.isSetUpd_edge_req()) { + this.upd_edge_req = TBaseHelper.deepCopy(other.upd_edge_req); + } + if (other.isSetEdge_ver()) { + this.edge_ver = TBaseHelper.deepCopy(other.edge_ver); + } + } + + public InternalTxnRequest deepCopy() { + return new InternalTxnRequest(this); + } + + public long getTxn_id() { + return this.txn_id; + } + + public InternalTxnRequest setTxn_id(long txn_id) { + this.txn_id = txn_id; + setTxn_idIsSet(true); + return this; + } + + public void unsetTxn_id() { + __isset_bit_vector.clear(__TXN_ID_ISSET_ID); + } + + // Returns true if field txn_id is set (has been assigned a value) and false otherwise + public boolean isSetTxn_id() { + return __isset_bit_vector.get(__TXN_ID_ISSET_ID); + } + + public void setTxn_idIsSet(boolean __value) { + __isset_bit_vector.set(__TXN_ID_ISSET_ID, __value); + } + + public Map getTerm_of_parts() { + return this.term_of_parts; + } + + public InternalTxnRequest setTerm_of_parts(Map term_of_parts) { + this.term_of_parts = term_of_parts; + return this; + } + + public void unsetTerm_of_parts() { + this.term_of_parts = null; + } + + // Returns true if field term_of_parts is set (has been assigned a value) and false otherwise + public boolean isSetTerm_of_parts() { + return this.term_of_parts != null; + } + + public void setTerm_of_partsIsSet(boolean __value) { + if (!__value) { + this.term_of_parts = null; + } + } + + public AddEdgesRequest getAdd_edge_req() { + return this.add_edge_req; + } + + public InternalTxnRequest setAdd_edge_req(AddEdgesRequest add_edge_req) { + this.add_edge_req = add_edge_req; + return this; + } + + public void unsetAdd_edge_req() { + this.add_edge_req = null; + } + + // Returns true if field add_edge_req is set (has been assigned a value) and false otherwise + public boolean isSetAdd_edge_req() { + return this.add_edge_req != null; + } + + public void setAdd_edge_reqIsSet(boolean __value) { + if (!__value) { + this.add_edge_req = null; + } + } + + public UpdateEdgeRequest getUpd_edge_req() { + return this.upd_edge_req; + } + + public InternalTxnRequest setUpd_edge_req(UpdateEdgeRequest upd_edge_req) { + this.upd_edge_req = upd_edge_req; + return this; + } + + public void unsetUpd_edge_req() { + this.upd_edge_req = null; + } + + // Returns true if field upd_edge_req is set (has been assigned a value) and false otherwise + public boolean isSetUpd_edge_req() { + return this.upd_edge_req != null; + } + + public void setUpd_edge_reqIsSet(boolean __value) { + if (!__value) { + this.upd_edge_req = null; + } + } + + public Map> getEdge_ver() { + return this.edge_ver; + } + + public InternalTxnRequest setEdge_ver(Map> edge_ver) { + this.edge_ver = edge_ver; + return this; + } + + public void unsetEdge_ver() { + this.edge_ver = null; + } + + // Returns true if field edge_ver is set (has been assigned a value) and false otherwise + public boolean isSetEdge_ver() { + return this.edge_ver != null; + } + + public void setEdge_verIsSet(boolean __value) { + if (!__value) { + this.edge_ver = null; + } + } + + @SuppressWarnings("unchecked") + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case TXN_ID: + if (__value == null) { + unsetTxn_id(); + } else { + setTxn_id((Long)__value); + } + break; + + case TERM_OF_PARTS: + if (__value == null) { + unsetTerm_of_parts(); + } else { + setTerm_of_parts((Map)__value); + } + break; + + case ADD_EDGE_REQ: + if (__value == null) { + unsetAdd_edge_req(); + } else { + setAdd_edge_req((AddEdgesRequest)__value); + } + break; + + case UPD_EDGE_REQ: + if (__value == null) { + unsetUpd_edge_req(); + } else { + setUpd_edge_req((UpdateEdgeRequest)__value); + } + break; + + case EDGE_VER: + if (__value == null) { + unsetEdge_ver(); + } else { + setEdge_ver((Map>)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case TXN_ID: + return new Long(getTxn_id()); + + case TERM_OF_PARTS: + return getTerm_of_parts(); + + case ADD_EDGE_REQ: + return getAdd_edge_req(); + + case UPD_EDGE_REQ: + return getUpd_edge_req(); + + case EDGE_VER: + return getEdge_ver(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof InternalTxnRequest)) + return false; + InternalTxnRequest that = (InternalTxnRequest)_that; + + if (!TBaseHelper.equalsNobinary(this.txn_id, that.txn_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetTerm_of_parts(), that.isSetTerm_of_parts(), this.term_of_parts, that.term_of_parts)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetAdd_edge_req(), that.isSetAdd_edge_req(), this.add_edge_req, that.add_edge_req)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetUpd_edge_req(), that.isSetUpd_edge_req(), this.upd_edge_req, that.upd_edge_req)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetEdge_ver(), that.isSetEdge_ver(), this.edge_ver, that.edge_ver)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {txn_id, term_of_parts, add_edge_req, upd_edge_req, edge_ver}); + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case TXN_ID: + if (__field.type == TType.I64) { + this.txn_id = iprot.readI64(); + setTxn_idIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case TERM_OF_PARTS: + if (__field.type == TType.MAP) { + { + TMap _map277 = iprot.readMapBegin(); + this.term_of_parts = new HashMap(Math.max(0, 2*_map277.size)); + for (int _i278 = 0; + (_map277.size < 0) ? iprot.peekMap() : (_i278 < _map277.size); + ++_i278) + { + int _key279; + long _val280; + _key279 = iprot.readI32(); + _val280 = iprot.readI64(); + this.term_of_parts.put(_key279, _val280); + } + iprot.readMapEnd(); + } + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case ADD_EDGE_REQ: + if (__field.type == TType.STRUCT) { + this.add_edge_req = new AddEdgesRequest(); + this.add_edge_req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case UPD_EDGE_REQ: + if (__field.type == TType.STRUCT) { + this.upd_edge_req = new UpdateEdgeRequest(); + this.upd_edge_req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case EDGE_VER: + if (__field.type == TType.MAP) { + { + TMap _map281 = iprot.readMapBegin(); + this.edge_ver = new HashMap>(Math.max(0, 2*_map281.size)); + for (int _i282 = 0; + (_map281.size < 0) ? iprot.peekMap() : (_i282 < _map281.size); + ++_i282) + { + int _key283; + List _val284; + _key283 = iprot.readI32(); + { + TList _list285 = iprot.readListBegin(); + _val284 = new ArrayList(Math.max(0, _list285.size)); + for (int _i286 = 0; + (_list285.size < 0) ? iprot.peekList() : (_i286 < _list285.size); + ++_i286) + { + long _elem287; + _elem287 = iprot.readI64(); + _val284.add(_elem287); + } + iprot.readListEnd(); + } + this.edge_ver.put(_key283, _val284); + } + iprot.readMapEnd(); + } + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(TXN_ID_FIELD_DESC); + oprot.writeI64(this.txn_id); + oprot.writeFieldEnd(); + if (this.term_of_parts != null) { + oprot.writeFieldBegin(TERM_OF_PARTS_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.I64, this.term_of_parts.size())); + for (Map.Entry _iter288 : this.term_of_parts.entrySet()) { + oprot.writeI32(_iter288.getKey()); + oprot.writeI64(_iter288.getValue()); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + if (this.add_edge_req != null) { + if (isSetAdd_edge_req()) { + oprot.writeFieldBegin(ADD_EDGE_REQ_FIELD_DESC); + this.add_edge_req.write(oprot); + oprot.writeFieldEnd(); + } + } + if (this.upd_edge_req != null) { + if (isSetUpd_edge_req()) { + oprot.writeFieldBegin(UPD_EDGE_REQ_FIELD_DESC); + this.upd_edge_req.write(oprot); + oprot.writeFieldEnd(); + } + } + if (this.edge_ver != null) { + if (isSetEdge_ver()) { + oprot.writeFieldBegin(EDGE_VER_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.edge_ver.size())); + for (Map.Entry> _iter289 : this.edge_ver.entrySet()) { + oprot.writeI32(_iter289.getKey()); + { + oprot.writeListBegin(new TList(TType.I64, _iter289.getValue().size())); + for (long _iter290 : _iter289.getValue()) { + oprot.writeI64(_iter290); + } + oprot.writeListEnd(); + } + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("InternalTxnRequest"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("txn_id"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getTxn_id(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("term_of_parts"); + sb.append(space); + sb.append(":").append(space); + if (this.getTerm_of_parts() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getTerm_of_parts(), indent + 1, prettyPrint)); + } + first = false; + if (isSetAdd_edge_req()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("add_edge_req"); + sb.append(space); + sb.append(":").append(space); + if (this.getAdd_edge_req() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getAdd_edge_req(), indent + 1, prettyPrint)); + } + first = false; + } + if (isSetUpd_edge_req()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("upd_edge_req"); + sb.append(space); + sb.append(":").append(space); + if (this.getUpd_edge_req() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getUpd_edge_req(), indent + 1, prettyPrint)); + } + first = false; + } + if (isSetEdge_ver()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("edge_ver"); + sb.append(space); + sb.append(":").append(space); + if (this.getEdge_ver() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getEdge_ver(), indent + 1, prettyPrint)); + } + first = false; + } + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + +} + diff --git a/client/src/main/generated/com/vesoft/nebula/storage/KVGetRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/KVGetRequest.java index 641b74622..b8bb8ba85 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/KVGetRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/KVGetRequest.java @@ -341,29 +341,29 @@ public void read(TProtocol iprot) throws TException { case PARTS: if (__field.type == TType.MAP) { { - TMap _map246 = iprot.readMapBegin(); - this.parts = new HashMap>(Math.max(0, 2*_map246.size)); - for (int _i247 = 0; - (_map246.size < 0) ? iprot.peekMap() : (_i247 < _map246.size); - ++_i247) + TMap _map220 = iprot.readMapBegin(); + this.parts = new HashMap>(Math.max(0, 2*_map220.size)); + for (int _i221 = 0; + (_map220.size < 0) ? iprot.peekMap() : (_i221 < _map220.size); + ++_i221) { - int _key248; - List _val249; - _key248 = iprot.readI32(); + int _key222; + List _val223; + _key222 = iprot.readI32(); { - TList _list250 = iprot.readListBegin(); - _val249 = new ArrayList(Math.max(0, _list250.size)); - for (int _i251 = 0; - (_list250.size < 0) ? iprot.peekList() : (_i251 < _list250.size); - ++_i251) + TList _list224 = iprot.readListBegin(); + _val223 = new ArrayList(Math.max(0, _list224.size)); + for (int _i225 = 0; + (_list224.size < 0) ? iprot.peekList() : (_i225 < _list224.size); + ++_i225) { - byte[] _elem252; - _elem252 = iprot.readBinary(); - _val249.add(_elem252); + byte[] _elem226; + _elem226 = iprot.readBinary(); + _val223.add(_elem226); } iprot.readListEnd(); } - this.parts.put(_key248, _val249); + this.parts.put(_key222, _val223); } iprot.readMapEnd(); } @@ -403,12 +403,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.parts.size())); - for (Map.Entry> _iter253 : this.parts.entrySet()) { - oprot.writeI32(_iter253.getKey()); + for (Map.Entry> _iter227 : this.parts.entrySet()) { + oprot.writeI32(_iter227.getKey()); { - oprot.writeListBegin(new TList(TType.STRING, _iter253.getValue().size())); - for (byte[] _iter254 : _iter253.getValue()) { - oprot.writeBinary(_iter254); + oprot.writeListBegin(new TList(TType.STRING, _iter227.getValue().size())); + for (byte[] _iter228 : _iter227.getValue()) { + oprot.writeBinary(_iter228); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/KVGetResponse.java b/client/src/main/generated/com/vesoft/nebula/storage/KVGetResponse.java index 34849519a..50fa415e9 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/KVGetResponse.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/KVGetResponse.java @@ -275,17 +275,17 @@ public void read(TProtocol iprot) throws TException { case KEY_VALUES: if (__field.type == TType.MAP) { { - TMap _map255 = iprot.readMapBegin(); - this.key_values = new HashMap(Math.max(0, 2*_map255.size)); - for (int _i256 = 0; - (_map255.size < 0) ? iprot.peekMap() : (_i256 < _map255.size); - ++_i256) + TMap _map229 = iprot.readMapBegin(); + this.key_values = new HashMap(Math.max(0, 2*_map229.size)); + for (int _i230 = 0; + (_map229.size < 0) ? iprot.peekMap() : (_i230 < _map229.size); + ++_i230) { - byte[] _key257; - byte[] _val258; - _key257 = iprot.readBinary(); - _val258 = iprot.readBinary(); - this.key_values.put(_key257, _val258); + byte[] _key231; + byte[] _val232; + _key231 = iprot.readBinary(); + _val232 = iprot.readBinary(); + this.key_values.put(_key231, _val232); } iprot.readMapEnd(); } @@ -319,9 +319,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(KEY_VALUES_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.key_values.size())); - for (Map.Entry _iter259 : this.key_values.entrySet()) { - oprot.writeBinary(_iter259.getKey()); - oprot.writeBinary(_iter259.getValue()); + for (Map.Entry _iter233 : this.key_values.entrySet()) { + oprot.writeBinary(_iter233.getKey()); + oprot.writeBinary(_iter233.getValue()); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/KVPutRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/KVPutRequest.java index 17ebf8c94..38d9b57fd 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/KVPutRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/KVPutRequest.java @@ -277,30 +277,30 @@ public void read(TProtocol iprot) throws TException { case PARTS: if (__field.type == TType.MAP) { { - TMap _map260 = iprot.readMapBegin(); - this.parts = new HashMap>(Math.max(0, 2*_map260.size)); - for (int _i261 = 0; - (_map260.size < 0) ? iprot.peekMap() : (_i261 < _map260.size); - ++_i261) + TMap _map234 = iprot.readMapBegin(); + this.parts = new HashMap>(Math.max(0, 2*_map234.size)); + for (int _i235 = 0; + (_map234.size < 0) ? iprot.peekMap() : (_i235 < _map234.size); + ++_i235) { - int _key262; - List _val263; - _key262 = iprot.readI32(); + int _key236; + List _val237; + _key236 = iprot.readI32(); { - TList _list264 = iprot.readListBegin(); - _val263 = new ArrayList(Math.max(0, _list264.size)); - for (int _i265 = 0; - (_list264.size < 0) ? iprot.peekList() : (_i265 < _list264.size); - ++_i265) + TList _list238 = iprot.readListBegin(); + _val237 = new ArrayList(Math.max(0, _list238.size)); + for (int _i239 = 0; + (_list238.size < 0) ? iprot.peekList() : (_i239 < _list238.size); + ++_i239) { - com.vesoft.nebula.KeyValue _elem266; - _elem266 = new com.vesoft.nebula.KeyValue(); - _elem266.read(iprot); - _val263.add(_elem266); + com.vesoft.nebula.KeyValue _elem240; + _elem240 = new com.vesoft.nebula.KeyValue(); + _elem240.read(iprot); + _val237.add(_elem240); } iprot.readListEnd(); } - this.parts.put(_key262, _val263); + this.parts.put(_key236, _val237); } iprot.readMapEnd(); } @@ -332,12 +332,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.parts.size())); - for (Map.Entry> _iter267 : this.parts.entrySet()) { - oprot.writeI32(_iter267.getKey()); + for (Map.Entry> _iter241 : this.parts.entrySet()) { + oprot.writeI32(_iter241.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter267.getValue().size())); - for (com.vesoft.nebula.KeyValue _iter268 : _iter267.getValue()) { - _iter268.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, _iter241.getValue().size())); + for (com.vesoft.nebula.KeyValue _iter242 : _iter241.getValue()) { + _iter242.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/KVRemoveRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/KVRemoveRequest.java index 3fb9d63f8..8846831ca 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/KVRemoveRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/KVRemoveRequest.java @@ -277,29 +277,29 @@ public void read(TProtocol iprot) throws TException { case PARTS: if (__field.type == TType.MAP) { { - TMap _map269 = iprot.readMapBegin(); - this.parts = new HashMap>(Math.max(0, 2*_map269.size)); - for (int _i270 = 0; - (_map269.size < 0) ? iprot.peekMap() : (_i270 < _map269.size); - ++_i270) + TMap _map243 = iprot.readMapBegin(); + this.parts = new HashMap>(Math.max(0, 2*_map243.size)); + for (int _i244 = 0; + (_map243.size < 0) ? iprot.peekMap() : (_i244 < _map243.size); + ++_i244) { - int _key271; - List _val272; - _key271 = iprot.readI32(); + int _key245; + List _val246; + _key245 = iprot.readI32(); { - TList _list273 = iprot.readListBegin(); - _val272 = new ArrayList(Math.max(0, _list273.size)); - for (int _i274 = 0; - (_list273.size < 0) ? iprot.peekList() : (_i274 < _list273.size); - ++_i274) + TList _list247 = iprot.readListBegin(); + _val246 = new ArrayList(Math.max(0, _list247.size)); + for (int _i248 = 0; + (_list247.size < 0) ? iprot.peekList() : (_i248 < _list247.size); + ++_i248) { - byte[] _elem275; - _elem275 = iprot.readBinary(); - _val272.add(_elem275); + byte[] _elem249; + _elem249 = iprot.readBinary(); + _val246.add(_elem249); } iprot.readListEnd(); } - this.parts.put(_key271, _val272); + this.parts.put(_key245, _val246); } iprot.readMapEnd(); } @@ -331,12 +331,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.parts.size())); - for (Map.Entry> _iter276 : this.parts.entrySet()) { - oprot.writeI32(_iter276.getKey()); + for (Map.Entry> _iter250 : this.parts.entrySet()) { + oprot.writeI32(_iter250.getKey()); { - oprot.writeListBegin(new TList(TType.STRING, _iter276.getValue().size())); - for (byte[] _iter277 : _iter276.getValue()) { - oprot.writeBinary(_iter277); + oprot.writeListBegin(new TList(TType.STRING, _iter250.getValue().size())); + for (byte[] _iter251 : _iter250.getValue()) { + oprot.writeBinary(_iter251); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/RebuildIndexRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/RebuildIndexRequest.java index f715bcaa8..c3947fc5e 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/RebuildIndexRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/RebuildIndexRequest.java @@ -339,15 +339,15 @@ public void read(TProtocol iprot) throws TException { case PARTS: if (__field.type == TType.LIST) { { - TList _list238 = iprot.readListBegin(); - this.parts = new ArrayList(Math.max(0, _list238.size)); - for (int _i239 = 0; - (_list238.size < 0) ? iprot.peekList() : (_i239 < _list238.size); - ++_i239) + TList _list269 = iprot.readListBegin(); + this.parts = new ArrayList(Math.max(0, _list269.size)); + for (int _i270 = 0; + (_list269.size < 0) ? iprot.peekList() : (_i270 < _list269.size); + ++_i270) { - int _elem240; - _elem240 = iprot.readI32(); - this.parts.add(_elem240); + int _elem271; + _elem271 = iprot.readI32(); + this.parts.add(_elem271); } iprot.readListEnd(); } @@ -387,8 +387,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.I32, this.parts.size())); - for (int _iter241 : this.parts) { - oprot.writeI32(_iter241); + for (int _iter272 : this.parts) { + oprot.writeI32(_iter272); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/ResponseCommon.java b/client/src/main/generated/com/vesoft/nebula/storage/ResponseCommon.java index 45f84e544..0a2e14d92 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/ResponseCommon.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/ResponseCommon.java @@ -27,11 +27,11 @@ public class ResponseCommon implements TBase, java.io.Serializable, Cloneable, Comparable { private static final TStruct STRUCT_DESC = new TStruct("ResponseCommon"); private static final TField FAILED_PARTS_FIELD_DESC = new TField("failed_parts", TType.LIST, (short)1); - private static final TField LATENCY_IN_US_FIELD_DESC = new TField("latency_in_us", TType.I32, (short)2); + private static final TField LATENCY_IN_US_FIELD_DESC = new TField("latency_in_us", TType.I64, (short)2); private static final TField LATENCY_DETAIL_US_FIELD_DESC = new TField("latency_detail_us", TType.MAP, (short)3); public List failed_parts; - public int latency_in_us; + public long latency_in_us; public Map latency_detail_us; public static final int FAILED_PARTS = 1; public static final int LATENCY_IN_US = 2; @@ -49,7 +49,7 @@ public class ResponseCommon implements TBase, java.io.Serializable, Cloneable, C new ListMetaData(TType.LIST, new StructMetaData(TType.STRUCT, PartitionResult.class)))); tmpMetaDataMap.put(LATENCY_IN_US, new FieldMetaData("latency_in_us", TFieldRequirementType.REQUIRED, - new FieldValueMetaData(TType.I32))); + new FieldValueMetaData(TType.I64))); tmpMetaDataMap.put(LATENCY_DETAIL_US, new FieldMetaData("latency_detail_us", TFieldRequirementType.OPTIONAL, new MapMetaData(TType.MAP, new FieldValueMetaData(TType.STRING), @@ -66,7 +66,7 @@ public ResponseCommon() { public ResponseCommon( List failed_parts, - int latency_in_us) { + long latency_in_us) { this(); this.failed_parts = failed_parts; this.latency_in_us = latency_in_us; @@ -75,7 +75,7 @@ public ResponseCommon( public ResponseCommon( List failed_parts, - int latency_in_us, + long latency_in_us, Map latency_detail_us) { this(); this.failed_parts = failed_parts; @@ -86,7 +86,7 @@ public ResponseCommon( public static class Builder { private List failed_parts; - private int latency_in_us; + private long latency_in_us; private Map latency_detail_us; BitSet __optional_isset = new BitSet(1); @@ -99,7 +99,7 @@ public Builder setFailed_parts(final List failed_parts) { return this; } - public Builder setLatency_in_us(final int latency_in_us) { + public Builder setLatency_in_us(final long latency_in_us) { this.latency_in_us = latency_in_us; __optional_isset.set(__LATENCY_IN_US_ISSET_ID, true); return this; @@ -168,11 +168,11 @@ public void setFailed_partsIsSet(boolean __value) { } } - public int getLatency_in_us() { + public long getLatency_in_us() { return this.latency_in_us; } - public ResponseCommon setLatency_in_us(int latency_in_us) { + public ResponseCommon setLatency_in_us(long latency_in_us) { this.latency_in_us = latency_in_us; setLatency_in_usIsSet(true); return this; @@ -230,7 +230,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetLatency_in_us(); } else { - setLatency_in_us((Integer)__value); + setLatency_in_us((Long)__value); } break; @@ -253,7 +253,7 @@ public Object getFieldValue(int fieldID) { return getFailed_parts(); case LATENCY_IN_US: - return new Integer(getLatency_in_us()); + return new Long(getLatency_in_us()); case LATENCY_DETAIL_US: return getLatency_detail_us(); @@ -358,8 +358,8 @@ public void read(TProtocol iprot) throws TException { } break; case LATENCY_IN_US: - if (__field.type == TType.I32) { - this.latency_in_us = iprot.readI32(); + if (__field.type == TType.I64) { + this.latency_in_us = iprot.readI64(); setLatency_in_usIsSet(true); } else { TProtocolUtil.skip(iprot, __field.type); @@ -418,7 +418,7 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } oprot.writeFieldBegin(LATENCY_IN_US_FIELD_DESC); - oprot.writeI32(this.latency_in_us); + oprot.writeI64(this.latency_in_us); oprot.writeFieldEnd(); if (this.latency_detail_us != null) { if (isSetLatency_detail_us()) { diff --git a/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeRequest.java index 163c33195..0f3c4fd3a 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeRequest.java @@ -28,7 +28,7 @@ public class ScanEdgeRequest implements TBase, java.io.Serializable, Cloneable, private static final TStruct STRUCT_DESC = new TStruct("ScanEdgeRequest"); private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); private static final TField PARTS_FIELD_DESC = new TField("parts", TType.MAP, (short)2); - private static final TField RETURN_COLUMNS_FIELD_DESC = new TField("return_columns", TType.STRUCT, (short)3); + private static final TField RETURN_COLUMNS_FIELD_DESC = new TField("return_columns", TType.LIST, (short)3); private static final TField LIMIT_FIELD_DESC = new TField("limit", TType.I64, (short)4); private static final TField START_TIME_FIELD_DESC = new TField("start_time", TType.I64, (short)5); private static final TField END_TIME_FIELD_DESC = new TField("end_time", TType.I64, (short)6); @@ -39,7 +39,7 @@ public class ScanEdgeRequest implements TBase, java.io.Serializable, Cloneable, public int space_id; public Map parts; - public EdgeProp return_columns; + public List return_columns; public long limit; public long start_time; public long end_time; @@ -78,7 +78,8 @@ public class ScanEdgeRequest implements TBase, java.io.Serializable, Cloneable, new FieldValueMetaData(TType.I32), new StructMetaData(TType.STRUCT, ScanCursor.class)))); tmpMetaDataMap.put(RETURN_COLUMNS, new FieldMetaData("return_columns", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, EdgeProp.class))); + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, EdgeProp.class)))); tmpMetaDataMap.put(LIMIT, new FieldMetaData("limit", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I64))); tmpMetaDataMap.put(START_TIME, new FieldMetaData("start_time", TFieldRequirementType.OPTIONAL, @@ -110,7 +111,7 @@ public ScanEdgeRequest() { public ScanEdgeRequest( int space_id, Map parts, - EdgeProp return_columns, + List return_columns, long limit, boolean only_latest_version, boolean enable_read_from_follower) { @@ -130,7 +131,7 @@ public ScanEdgeRequest( public ScanEdgeRequest( int space_id, Map parts, - EdgeProp return_columns, + List return_columns, long limit, long start_time, long end_time, @@ -160,7 +161,7 @@ public ScanEdgeRequest( public static class Builder { private int space_id; private Map parts; - private EdgeProp return_columns; + private List return_columns; private long limit; private long start_time; private long end_time; @@ -185,7 +186,7 @@ public Builder setParts(final Map parts) { return this; } - public Builder setReturn_columns(final EdgeProp return_columns) { + public Builder setReturn_columns(final List return_columns) { this.return_columns = return_columns; return this; } @@ -339,11 +340,11 @@ public void setPartsIsSet(boolean __value) { } } - public EdgeProp getReturn_columns() { + public List getReturn_columns() { return this.return_columns; } - public ScanEdgeRequest setReturn_columns(EdgeProp return_columns) { + public ScanEdgeRequest setReturn_columns(List return_columns) { this.return_columns = return_columns; return this; } @@ -549,7 +550,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReturn_columns(); } else { - setReturn_columns((EdgeProp)__value); + setReturn_columns((List)__value); } break; @@ -806,18 +807,18 @@ public void read(TProtocol iprot) throws TException { case PARTS: if (__field.type == TType.MAP) { { - TMap _map203 = iprot.readMapBegin(); - this.parts = new HashMap(Math.max(0, 2*_map203.size)); - for (int _i204 = 0; - (_map203.size < 0) ? iprot.peekMap() : (_i204 < _map203.size); - ++_i204) + TMap _map198 = iprot.readMapBegin(); + this.parts = new HashMap(Math.max(0, 2*_map198.size)); + for (int _i199 = 0; + (_map198.size < 0) ? iprot.peekMap() : (_i199 < _map198.size); + ++_i199) { - int _key205; - ScanCursor _val206; - _key205 = iprot.readI32(); - _val206 = new ScanCursor(); - _val206.read(iprot); - this.parts.put(_key205, _val206); + int _key200; + ScanCursor _val201; + _key200 = iprot.readI32(); + _val201 = new ScanCursor(); + _val201.read(iprot); + this.parts.put(_key200, _val201); } iprot.readMapEnd(); } @@ -826,9 +827,21 @@ public void read(TProtocol iprot) throws TException { } break; case RETURN_COLUMNS: - if (__field.type == TType.STRUCT) { - this.return_columns = new EdgeProp(); - this.return_columns.read(iprot); + if (__field.type == TType.LIST) { + { + TList _list202 = iprot.readListBegin(); + this.return_columns = new ArrayList(Math.max(0, _list202.size)); + for (int _i203 = 0; + (_list202.size < 0) ? iprot.peekList() : (_i203 < _list202.size); + ++_i203) + { + EdgeProp _elem204; + _elem204 = new EdgeProp(); + _elem204.read(iprot); + this.return_columns.add(_elem204); + } + iprot.readListEnd(); + } } else { TProtocolUtil.skip(iprot, __field.type); } @@ -912,9 +925,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.parts.size())); - for (Map.Entry _iter207 : this.parts.entrySet()) { - oprot.writeI32(_iter207.getKey()); - _iter207.getValue().write(oprot); + for (Map.Entry _iter205 : this.parts.entrySet()) { + oprot.writeI32(_iter205.getKey()); + _iter205.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -922,7 +935,13 @@ public void write(TProtocol oprot) throws TException { } if (this.return_columns != null) { oprot.writeFieldBegin(RETURN_COLUMNS_FIELD_DESC); - this.return_columns.write(oprot); + { + oprot.writeListBegin(new TList(TType.STRUCT, this.return_columns.size())); + for (EdgeProp _iter206 : this.return_columns) { + _iter206.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldBegin(LIMIT_FIELD_DESC); diff --git a/client/src/main/generated/com/vesoft/nebula/storage/ScanResponse.java b/client/src/main/generated/com/vesoft/nebula/storage/ScanResponse.java new file mode 100644 index 000000000..9f3d1e93f --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/storage/ScanResponse.java @@ -0,0 +1,445 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.storage; + +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import java.util.Collections; +import java.util.BitSet; +import java.util.Arrays; +import com.facebook.thrift.*; +import com.facebook.thrift.annotations.*; +import com.facebook.thrift.async.*; +import com.facebook.thrift.meta_data.*; +import com.facebook.thrift.server.*; +import com.facebook.thrift.transport.*; +import com.facebook.thrift.protocol.*; + +@SuppressWarnings({ "unused", "serial" }) +public class ScanResponse implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("ScanResponse"); + private static final TField RESULT_FIELD_DESC = new TField("result", TType.STRUCT, (short)1); + private static final TField PROPS_FIELD_DESC = new TField("props", TType.STRUCT, (short)2); + private static final TField CURSORS_FIELD_DESC = new TField("cursors", TType.MAP, (short)3); + + public ResponseCommon result; + public com.vesoft.nebula.DataSet props; + public Map cursors; + public static final int RESULT = 1; + public static final int PROPS = 2; + public static final int CURSORS = 3; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(RESULT, new FieldMetaData("result", TFieldRequirementType.REQUIRED, + new StructMetaData(TType.STRUCT, ResponseCommon.class))); + tmpMetaDataMap.put(PROPS, new FieldMetaData("props", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.DataSet.class))); + tmpMetaDataMap.put(CURSORS, new FieldMetaData("cursors", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new StructMetaData(TType.STRUCT, ScanCursor.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ScanResponse.class, metaDataMap); + } + + public ScanResponse() { + } + + public ScanResponse( + ResponseCommon result) { + this(); + this.result = result; + } + + public ScanResponse( + ResponseCommon result, + Map cursors) { + this(); + this.result = result; + this.cursors = cursors; + } + + public ScanResponse( + ResponseCommon result, + com.vesoft.nebula.DataSet props, + Map cursors) { + this(); + this.result = result; + this.props = props; + this.cursors = cursors; + } + + public static class Builder { + private ResponseCommon result; + private com.vesoft.nebula.DataSet props; + private Map cursors; + + public Builder() { + } + + public Builder setResult(final ResponseCommon result) { + this.result = result; + return this; + } + + public Builder setProps(final com.vesoft.nebula.DataSet props) { + this.props = props; + return this; + } + + public Builder setCursors(final Map cursors) { + this.cursors = cursors; + return this; + } + + public ScanResponse build() { + ScanResponse result = new ScanResponse(); + result.setResult(this.result); + result.setProps(this.props); + result.setCursors(this.cursors); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ScanResponse(ScanResponse other) { + if (other.isSetResult()) { + this.result = TBaseHelper.deepCopy(other.result); + } + if (other.isSetProps()) { + this.props = TBaseHelper.deepCopy(other.props); + } + if (other.isSetCursors()) { + this.cursors = TBaseHelper.deepCopy(other.cursors); + } + } + + public ScanResponse deepCopy() { + return new ScanResponse(this); + } + + public ResponseCommon getResult() { + return this.result; + } + + public ScanResponse setResult(ResponseCommon result) { + this.result = result; + return this; + } + + public void unsetResult() { + this.result = null; + } + + // Returns true if field result is set (has been assigned a value) and false otherwise + public boolean isSetResult() { + return this.result != null; + } + + public void setResultIsSet(boolean __value) { + if (!__value) { + this.result = null; + } + } + + public com.vesoft.nebula.DataSet getProps() { + return this.props; + } + + public ScanResponse setProps(com.vesoft.nebula.DataSet props) { + this.props = props; + return this; + } + + public void unsetProps() { + this.props = null; + } + + // Returns true if field props is set (has been assigned a value) and false otherwise + public boolean isSetProps() { + return this.props != null; + } + + public void setPropsIsSet(boolean __value) { + if (!__value) { + this.props = null; + } + } + + public Map getCursors() { + return this.cursors; + } + + public ScanResponse setCursors(Map cursors) { + this.cursors = cursors; + return this; + } + + public void unsetCursors() { + this.cursors = null; + } + + // Returns true if field cursors is set (has been assigned a value) and false otherwise + public boolean isSetCursors() { + return this.cursors != null; + } + + public void setCursorsIsSet(boolean __value) { + if (!__value) { + this.cursors = null; + } + } + + @SuppressWarnings("unchecked") + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case RESULT: + if (__value == null) { + unsetResult(); + } else { + setResult((ResponseCommon)__value); + } + break; + + case PROPS: + if (__value == null) { + unsetProps(); + } else { + setProps((com.vesoft.nebula.DataSet)__value); + } + break; + + case CURSORS: + if (__value == null) { + unsetCursors(); + } else { + setCursors((Map)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case RESULT: + return getResult(); + + case PROPS: + return getProps(); + + case CURSORS: + return getCursors(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof ScanResponse)) + return false; + ScanResponse that = (ScanResponse)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetResult(), that.isSetResult(), this.result, that.result)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetProps(), that.isSetProps(), this.props, that.props)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetCursors(), that.isSetCursors(), this.cursors, that.cursors)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {result, props, cursors}); + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case RESULT: + if (__field.type == TType.STRUCT) { + this.result = new ResponseCommon(); + this.result.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PROPS: + if (__field.type == TType.STRUCT) { + this.props = new com.vesoft.nebula.DataSet(); + this.props.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case CURSORS: + if (__field.type == TType.MAP) { + { + TMap _map207 = iprot.readMapBegin(); + this.cursors = new HashMap(Math.max(0, 2*_map207.size)); + for (int _i208 = 0; + (_map207.size < 0) ? iprot.peekMap() : (_i208 < _map207.size); + ++_i208) + { + int _key209; + ScanCursor _val210; + _key209 = iprot.readI32(); + _val210 = new ScanCursor(); + _val210.read(iprot); + this.cursors.put(_key209, _val210); + } + iprot.readMapEnd(); + } + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.result != null) { + oprot.writeFieldBegin(RESULT_FIELD_DESC); + this.result.write(oprot); + oprot.writeFieldEnd(); + } + if (this.props != null) { + if (isSetProps()) { + oprot.writeFieldBegin(PROPS_FIELD_DESC); + this.props.write(oprot); + oprot.writeFieldEnd(); + } + } + if (this.cursors != null) { + oprot.writeFieldBegin(CURSORS_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.cursors.size())); + for (Map.Entry _iter211 : this.cursors.entrySet()) { + oprot.writeI32(_iter211.getKey()); + _iter211.getValue().write(oprot); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("ScanResponse"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("result"); + sb.append(space); + sb.append(":").append(space); + if (this.getResult() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getResult(), indent + 1, prettyPrint)); + } + first = false; + if (isSetProps()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("props"); + sb.append(space); + sb.append(":").append(space); + if (this.getProps() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getProps(), indent + 1, prettyPrint)); + } + first = false; + } + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("cursors"); + sb.append(space); + sb.append(":").append(space); + if (this.getCursors() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getCursors(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + if (result == null) { + throw new TProtocolException(TProtocolException.MISSING_REQUIRED_FIELD, "Required field 'result' was not present! Struct: " + toString()); + } + } + +} + diff --git a/client/src/main/generated/com/vesoft/nebula/storage/StorageAdminService.java b/client/src/main/generated/com/vesoft/nebula/storage/StorageAdminService.java index 026a16de0..4374a8cd4 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/StorageAdminService.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/StorageAdminService.java @@ -868,17 +868,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void transLeader(TransLeaderReq req, AsyncMethodCallback resultHandler424) throws TException { + public void transLeader(TransLeaderReq req, AsyncMethodCallback resultHandler441) throws TException { checkReady(); - transLeader_call method_call = new transLeader_call(req, resultHandler424, this, ___protocolFactory, ___transport); + transLeader_call method_call = new transLeader_call(req, resultHandler441, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class transLeader_call extends TAsyncMethodCall { private TransLeaderReq req; - public transLeader_call(TransLeaderReq req, AsyncMethodCallback resultHandler425, TAsyncClient client421, TProtocolFactory protocolFactory422, TNonblockingTransport transport423) throws TException { - super(client421, protocolFactory422, transport423, resultHandler425, false); + public transLeader_call(TransLeaderReq req, AsyncMethodCallback resultHandler442, TAsyncClient client438, TProtocolFactory protocolFactory439, TNonblockingTransport transport440) throws TException { + super(client438, protocolFactory439, transport440, resultHandler442, false); this.req = req; } @@ -900,17 +900,17 @@ public AdminExecResp getResult() throws TException { } } - public void addPart(AddPartReq req, AsyncMethodCallback resultHandler429) throws TException { + public void addPart(AddPartReq req, AsyncMethodCallback resultHandler446) throws TException { checkReady(); - addPart_call method_call = new addPart_call(req, resultHandler429, this, ___protocolFactory, ___transport); + addPart_call method_call = new addPart_call(req, resultHandler446, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addPart_call extends TAsyncMethodCall { private AddPartReq req; - public addPart_call(AddPartReq req, AsyncMethodCallback resultHandler430, TAsyncClient client426, TProtocolFactory protocolFactory427, TNonblockingTransport transport428) throws TException { - super(client426, protocolFactory427, transport428, resultHandler430, false); + public addPart_call(AddPartReq req, AsyncMethodCallback resultHandler447, TAsyncClient client443, TProtocolFactory protocolFactory444, TNonblockingTransport transport445) throws TException { + super(client443, protocolFactory444, transport445, resultHandler447, false); this.req = req; } @@ -932,17 +932,17 @@ public AdminExecResp getResult() throws TException { } } - public void addLearner(AddLearnerReq req, AsyncMethodCallback resultHandler434) throws TException { + public void addLearner(AddLearnerReq req, AsyncMethodCallback resultHandler451) throws TException { checkReady(); - addLearner_call method_call = new addLearner_call(req, resultHandler434, this, ___protocolFactory, ___transport); + addLearner_call method_call = new addLearner_call(req, resultHandler451, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addLearner_call extends TAsyncMethodCall { private AddLearnerReq req; - public addLearner_call(AddLearnerReq req, AsyncMethodCallback resultHandler435, TAsyncClient client431, TProtocolFactory protocolFactory432, TNonblockingTransport transport433) throws TException { - super(client431, protocolFactory432, transport433, resultHandler435, false); + public addLearner_call(AddLearnerReq req, AsyncMethodCallback resultHandler452, TAsyncClient client448, TProtocolFactory protocolFactory449, TNonblockingTransport transport450) throws TException { + super(client448, protocolFactory449, transport450, resultHandler452, false); this.req = req; } @@ -964,17 +964,17 @@ public AdminExecResp getResult() throws TException { } } - public void removePart(RemovePartReq req, AsyncMethodCallback resultHandler439) throws TException { + public void removePart(RemovePartReq req, AsyncMethodCallback resultHandler456) throws TException { checkReady(); - removePart_call method_call = new removePart_call(req, resultHandler439, this, ___protocolFactory, ___transport); + removePart_call method_call = new removePart_call(req, resultHandler456, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removePart_call extends TAsyncMethodCall { private RemovePartReq req; - public removePart_call(RemovePartReq req, AsyncMethodCallback resultHandler440, TAsyncClient client436, TProtocolFactory protocolFactory437, TNonblockingTransport transport438) throws TException { - super(client436, protocolFactory437, transport438, resultHandler440, false); + public removePart_call(RemovePartReq req, AsyncMethodCallback resultHandler457, TAsyncClient client453, TProtocolFactory protocolFactory454, TNonblockingTransport transport455) throws TException { + super(client453, protocolFactory454, transport455, resultHandler457, false); this.req = req; } @@ -996,17 +996,17 @@ public AdminExecResp getResult() throws TException { } } - public void memberChange(MemberChangeReq req, AsyncMethodCallback resultHandler444) throws TException { + public void memberChange(MemberChangeReq req, AsyncMethodCallback resultHandler461) throws TException { checkReady(); - memberChange_call method_call = new memberChange_call(req, resultHandler444, this, ___protocolFactory, ___transport); + memberChange_call method_call = new memberChange_call(req, resultHandler461, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class memberChange_call extends TAsyncMethodCall { private MemberChangeReq req; - public memberChange_call(MemberChangeReq req, AsyncMethodCallback resultHandler445, TAsyncClient client441, TProtocolFactory protocolFactory442, TNonblockingTransport transport443) throws TException { - super(client441, protocolFactory442, transport443, resultHandler445, false); + public memberChange_call(MemberChangeReq req, AsyncMethodCallback resultHandler462, TAsyncClient client458, TProtocolFactory protocolFactory459, TNonblockingTransport transport460) throws TException { + super(client458, protocolFactory459, transport460, resultHandler462, false); this.req = req; } @@ -1028,17 +1028,17 @@ public AdminExecResp getResult() throws TException { } } - public void waitingForCatchUpData(CatchUpDataReq req, AsyncMethodCallback resultHandler449) throws TException { + public void waitingForCatchUpData(CatchUpDataReq req, AsyncMethodCallback resultHandler466) throws TException { checkReady(); - waitingForCatchUpData_call method_call = new waitingForCatchUpData_call(req, resultHandler449, this, ___protocolFactory, ___transport); + waitingForCatchUpData_call method_call = new waitingForCatchUpData_call(req, resultHandler466, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class waitingForCatchUpData_call extends TAsyncMethodCall { private CatchUpDataReq req; - public waitingForCatchUpData_call(CatchUpDataReq req, AsyncMethodCallback resultHandler450, TAsyncClient client446, TProtocolFactory protocolFactory447, TNonblockingTransport transport448) throws TException { - super(client446, protocolFactory447, transport448, resultHandler450, false); + public waitingForCatchUpData_call(CatchUpDataReq req, AsyncMethodCallback resultHandler467, TAsyncClient client463, TProtocolFactory protocolFactory464, TNonblockingTransport transport465) throws TException { + super(client463, protocolFactory464, transport465, resultHandler467, false); this.req = req; } @@ -1060,17 +1060,17 @@ public AdminExecResp getResult() throws TException { } } - public void createCheckpoint(CreateCPRequest req, AsyncMethodCallback resultHandler454) throws TException { + public void createCheckpoint(CreateCPRequest req, AsyncMethodCallback resultHandler471) throws TException { checkReady(); - createCheckpoint_call method_call = new createCheckpoint_call(req, resultHandler454, this, ___protocolFactory, ___transport); + createCheckpoint_call method_call = new createCheckpoint_call(req, resultHandler471, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createCheckpoint_call extends TAsyncMethodCall { private CreateCPRequest req; - public createCheckpoint_call(CreateCPRequest req, AsyncMethodCallback resultHandler455, TAsyncClient client451, TProtocolFactory protocolFactory452, TNonblockingTransport transport453) throws TException { - super(client451, protocolFactory452, transport453, resultHandler455, false); + public createCheckpoint_call(CreateCPRequest req, AsyncMethodCallback resultHandler472, TAsyncClient client468, TProtocolFactory protocolFactory469, TNonblockingTransport transport470) throws TException { + super(client468, protocolFactory469, transport470, resultHandler472, false); this.req = req; } @@ -1092,17 +1092,17 @@ public CreateCPResp getResult() throws TException { } } - public void dropCheckpoint(DropCPRequest req, AsyncMethodCallback resultHandler459) throws TException { + public void dropCheckpoint(DropCPRequest req, AsyncMethodCallback resultHandler476) throws TException { checkReady(); - dropCheckpoint_call method_call = new dropCheckpoint_call(req, resultHandler459, this, ___protocolFactory, ___transport); + dropCheckpoint_call method_call = new dropCheckpoint_call(req, resultHandler476, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropCheckpoint_call extends TAsyncMethodCall { private DropCPRequest req; - public dropCheckpoint_call(DropCPRequest req, AsyncMethodCallback resultHandler460, TAsyncClient client456, TProtocolFactory protocolFactory457, TNonblockingTransport transport458) throws TException { - super(client456, protocolFactory457, transport458, resultHandler460, false); + public dropCheckpoint_call(DropCPRequest req, AsyncMethodCallback resultHandler477, TAsyncClient client473, TProtocolFactory protocolFactory474, TNonblockingTransport transport475) throws TException { + super(client473, protocolFactory474, transport475, resultHandler477, false); this.req = req; } @@ -1124,17 +1124,17 @@ public AdminExecResp getResult() throws TException { } } - public void blockingWrites(BlockingSignRequest req, AsyncMethodCallback resultHandler464) throws TException { + public void blockingWrites(BlockingSignRequest req, AsyncMethodCallback resultHandler481) throws TException { checkReady(); - blockingWrites_call method_call = new blockingWrites_call(req, resultHandler464, this, ___protocolFactory, ___transport); + blockingWrites_call method_call = new blockingWrites_call(req, resultHandler481, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class blockingWrites_call extends TAsyncMethodCall { private BlockingSignRequest req; - public blockingWrites_call(BlockingSignRequest req, AsyncMethodCallback resultHandler465, TAsyncClient client461, TProtocolFactory protocolFactory462, TNonblockingTransport transport463) throws TException { - super(client461, protocolFactory462, transport463, resultHandler465, false); + public blockingWrites_call(BlockingSignRequest req, AsyncMethodCallback resultHandler482, TAsyncClient client478, TProtocolFactory protocolFactory479, TNonblockingTransport transport480) throws TException { + super(client478, protocolFactory479, transport480, resultHandler482, false); this.req = req; } @@ -1156,17 +1156,17 @@ public AdminExecResp getResult() throws TException { } } - public void rebuildTagIndex(RebuildIndexRequest req, AsyncMethodCallback resultHandler469) throws TException { + public void rebuildTagIndex(RebuildIndexRequest req, AsyncMethodCallback resultHandler486) throws TException { checkReady(); - rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler469, this, ___protocolFactory, ___transport); + rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler486, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class rebuildTagIndex_call extends TAsyncMethodCall { private RebuildIndexRequest req; - public rebuildTagIndex_call(RebuildIndexRequest req, AsyncMethodCallback resultHandler470, TAsyncClient client466, TProtocolFactory protocolFactory467, TNonblockingTransport transport468) throws TException { - super(client466, protocolFactory467, transport468, resultHandler470, false); + public rebuildTagIndex_call(RebuildIndexRequest req, AsyncMethodCallback resultHandler487, TAsyncClient client483, TProtocolFactory protocolFactory484, TNonblockingTransport transport485) throws TException { + super(client483, protocolFactory484, transport485, resultHandler487, false); this.req = req; } @@ -1188,17 +1188,17 @@ public AdminExecResp getResult() throws TException { } } - public void rebuildEdgeIndex(RebuildIndexRequest req, AsyncMethodCallback resultHandler474) throws TException { + public void rebuildEdgeIndex(RebuildIndexRequest req, AsyncMethodCallback resultHandler491) throws TException { checkReady(); - rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler474, this, ___protocolFactory, ___transport); + rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler491, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class rebuildEdgeIndex_call extends TAsyncMethodCall { private RebuildIndexRequest req; - public rebuildEdgeIndex_call(RebuildIndexRequest req, AsyncMethodCallback resultHandler475, TAsyncClient client471, TProtocolFactory protocolFactory472, TNonblockingTransport transport473) throws TException { - super(client471, protocolFactory472, transport473, resultHandler475, false); + public rebuildEdgeIndex_call(RebuildIndexRequest req, AsyncMethodCallback resultHandler492, TAsyncClient client488, TProtocolFactory protocolFactory489, TNonblockingTransport transport490) throws TException { + super(client488, protocolFactory489, transport490, resultHandler492, false); this.req = req; } @@ -1220,17 +1220,17 @@ public AdminExecResp getResult() throws TException { } } - public void getLeaderParts(GetLeaderReq req, AsyncMethodCallback resultHandler479) throws TException { + public void getLeaderParts(GetLeaderReq req, AsyncMethodCallback resultHandler496) throws TException { checkReady(); - getLeaderParts_call method_call = new getLeaderParts_call(req, resultHandler479, this, ___protocolFactory, ___transport); + getLeaderParts_call method_call = new getLeaderParts_call(req, resultHandler496, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getLeaderParts_call extends TAsyncMethodCall { private GetLeaderReq req; - public getLeaderParts_call(GetLeaderReq req, AsyncMethodCallback resultHandler480, TAsyncClient client476, TProtocolFactory protocolFactory477, TNonblockingTransport transport478) throws TException { - super(client476, protocolFactory477, transport478, resultHandler480, false); + public getLeaderParts_call(GetLeaderReq req, AsyncMethodCallback resultHandler497, TAsyncClient client493, TProtocolFactory protocolFactory494, TNonblockingTransport transport495) throws TException { + super(client493, protocolFactory494, transport495, resultHandler497, false); this.req = req; } @@ -1252,17 +1252,17 @@ public GetLeaderPartsResp getResult() throws TException { } } - public void checkPeers(CheckPeersReq req, AsyncMethodCallback resultHandler484) throws TException { + public void checkPeers(CheckPeersReq req, AsyncMethodCallback resultHandler501) throws TException { checkReady(); - checkPeers_call method_call = new checkPeers_call(req, resultHandler484, this, ___protocolFactory, ___transport); + checkPeers_call method_call = new checkPeers_call(req, resultHandler501, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class checkPeers_call extends TAsyncMethodCall { private CheckPeersReq req; - public checkPeers_call(CheckPeersReq req, AsyncMethodCallback resultHandler485, TAsyncClient client481, TProtocolFactory protocolFactory482, TNonblockingTransport transport483) throws TException { - super(client481, protocolFactory482, transport483, resultHandler485, false); + public checkPeers_call(CheckPeersReq req, AsyncMethodCallback resultHandler502, TAsyncClient client498, TProtocolFactory protocolFactory499, TNonblockingTransport transport500) throws TException { + super(client498, protocolFactory499, transport500, resultHandler502, false); this.req = req; } @@ -1284,17 +1284,17 @@ public AdminExecResp getResult() throws TException { } } - public void addAdminTask(AddAdminTaskRequest req, AsyncMethodCallback resultHandler489) throws TException { + public void addAdminTask(AddAdminTaskRequest req, AsyncMethodCallback resultHandler506) throws TException { checkReady(); - addAdminTask_call method_call = new addAdminTask_call(req, resultHandler489, this, ___protocolFactory, ___transport); + addAdminTask_call method_call = new addAdminTask_call(req, resultHandler506, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addAdminTask_call extends TAsyncMethodCall { private AddAdminTaskRequest req; - public addAdminTask_call(AddAdminTaskRequest req, AsyncMethodCallback resultHandler490, TAsyncClient client486, TProtocolFactory protocolFactory487, TNonblockingTransport transport488) throws TException { - super(client486, protocolFactory487, transport488, resultHandler490, false); + public addAdminTask_call(AddAdminTaskRequest req, AsyncMethodCallback resultHandler507, TAsyncClient client503, TProtocolFactory protocolFactory504, TNonblockingTransport transport505) throws TException { + super(client503, protocolFactory504, transport505, resultHandler507, false); this.req = req; } @@ -1316,17 +1316,17 @@ public AdminExecResp getResult() throws TException { } } - public void stopAdminTask(StopAdminTaskRequest req, AsyncMethodCallback resultHandler494) throws TException { + public void stopAdminTask(StopAdminTaskRequest req, AsyncMethodCallback resultHandler511) throws TException { checkReady(); - stopAdminTask_call method_call = new stopAdminTask_call(req, resultHandler494, this, ___protocolFactory, ___transport); + stopAdminTask_call method_call = new stopAdminTask_call(req, resultHandler511, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class stopAdminTask_call extends TAsyncMethodCall { private StopAdminTaskRequest req; - public stopAdminTask_call(StopAdminTaskRequest req, AsyncMethodCallback resultHandler495, TAsyncClient client491, TProtocolFactory protocolFactory492, TNonblockingTransport transport493) throws TException { - super(client491, protocolFactory492, transport493, resultHandler495, false); + public stopAdminTask_call(StopAdminTaskRequest req, AsyncMethodCallback resultHandler512, TAsyncClient client508, TProtocolFactory protocolFactory509, TNonblockingTransport transport510) throws TException { + super(client508, protocolFactory509, transport510, resultHandler512, false); this.req = req; } @@ -1348,17 +1348,17 @@ public AdminExecResp getResult() throws TException { } } - public void listClusterInfo(ListClusterInfoReq req, AsyncMethodCallback resultHandler499) throws TException { + public void listClusterInfo(ListClusterInfoReq req, AsyncMethodCallback resultHandler516) throws TException { checkReady(); - listClusterInfo_call method_call = new listClusterInfo_call(req, resultHandler499, this, ___protocolFactory, ___transport); + listClusterInfo_call method_call = new listClusterInfo_call(req, resultHandler516, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listClusterInfo_call extends TAsyncMethodCall { private ListClusterInfoReq req; - public listClusterInfo_call(ListClusterInfoReq req, AsyncMethodCallback resultHandler500, TAsyncClient client496, TProtocolFactory protocolFactory497, TNonblockingTransport transport498) throws TException { - super(client496, protocolFactory497, transport498, resultHandler500, false); + public listClusterInfo_call(ListClusterInfoReq req, AsyncMethodCallback resultHandler517, TAsyncClient client513, TProtocolFactory protocolFactory514, TNonblockingTransport transport515) throws TException { + super(client513, protocolFactory514, transport515, resultHandler517, false); this.req = req; } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/TaskPara.java b/client/src/main/generated/com/vesoft/nebula/storage/TaskPara.java index 43734ec37..e7997f34c 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/TaskPara.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/TaskPara.java @@ -345,15 +345,15 @@ public void read(TProtocol iprot) throws TException { case PARTS: if (__field.type == TType.LIST) { { - TList _list213 = iprot.readListBegin(); - this.parts = new ArrayList(Math.max(0, _list213.size)); - for (int _i214 = 0; - (_list213.size < 0) ? iprot.peekList() : (_i214 < _list213.size); - ++_i214) + TList _list212 = iprot.readListBegin(); + this.parts = new ArrayList(Math.max(0, _list212.size)); + for (int _i213 = 0; + (_list212.size < 0) ? iprot.peekList() : (_i213 < _list212.size); + ++_i213) { - int _elem215; - _elem215 = iprot.readI32(); - this.parts.add(_elem215); + int _elem214; + _elem214 = iprot.readI32(); + this.parts.add(_elem214); } iprot.readListEnd(); } @@ -364,15 +364,15 @@ public void read(TProtocol iprot) throws TException { case TASK_SPECIFIC_PARAS: if (__field.type == TType.LIST) { { - TList _list216 = iprot.readListBegin(); - this.task_specific_paras = new ArrayList(Math.max(0, _list216.size)); - for (int _i217 = 0; - (_list216.size < 0) ? iprot.peekList() : (_i217 < _list216.size); - ++_i217) + TList _list215 = iprot.readListBegin(); + this.task_specific_paras = new ArrayList(Math.max(0, _list215.size)); + for (int _i216 = 0; + (_list215.size < 0) ? iprot.peekList() : (_i216 < _list215.size); + ++_i216) { - byte[] _elem218; - _elem218 = iprot.readBinary(); - this.task_specific_paras.add(_elem218); + byte[] _elem217; + _elem217 = iprot.readBinary(); + this.task_specific_paras.add(_elem217); } iprot.readListEnd(); } @@ -405,8 +405,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.I32, this.parts.size())); - for (int _iter219 : this.parts) { - oprot.writeI32(_iter219); + for (int _iter218 : this.parts) { + oprot.writeI32(_iter218); } oprot.writeListEnd(); } @@ -418,8 +418,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(TASK_SPECIFIC_PARAS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.task_specific_paras.size())); - for (byte[] _iter220 : this.task_specific_paras) { - oprot.writeBinary(_iter220); + for (byte[] _iter219 : this.task_specific_paras) { + oprot.writeBinary(_iter219); } oprot.writeListEnd(); } From bbe8fb2e3891b8f01211a4f1770df8034225f32a Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Thu, 9 Dec 2021 19:47:01 +0800 Subject: [PATCH 05/10] sync scan with server --- .../storage/GraphStorageConnection.java | 5 +-- .../nebula/client/storage/StorageClient.java | 3 +- .../storage/scan/ScanEdgeResultIterator.java | 35 ++----------------- .../storage/scan/ScanResultIterator.java | 33 +++++++++++++++++ .../scan/ScanVertexResultIterator.java | 33 ++--------------- 5 files changed, 44 insertions(+), 65 deletions(-) diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/GraphStorageConnection.java b/client/src/main/java/com/vesoft/nebula/client/storage/GraphStorageConnection.java index a3884cea5..6794818b5 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/GraphStorageConnection.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/GraphStorageConnection.java @@ -19,6 +19,7 @@ import com.vesoft.nebula.storage.GraphStorageService; import com.vesoft.nebula.storage.ScanEdgeRequest; import com.vesoft.nebula.storage.ScanEdgeResponse; +import com.vesoft.nebula.storage.ScanResponse; import com.vesoft.nebula.storage.ScanVertexRequest; import com.vesoft.nebula.storage.ScanVertexResponse; import com.vesoft.nebula.util.SslUtil; @@ -73,11 +74,11 @@ protected GraphStorageConnection open(HostAddress address, int timeout, boolean } - public ScanVertexResponse scanVertex(ScanVertexRequest request) throws TException { + public ScanResponse scanVertex(ScanVertexRequest request) throws TException { return client.scanVertex(request); } - public ScanEdgeResponse scanEdge(ScanEdgeRequest request) throws TException { + public ScanResponse scanEdge(ScanEdgeRequest request) throws TException { return client.scanEdge(request); } diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/StorageClient.java b/client/src/main/java/com/vesoft/nebula/client/storage/StorageClient.java index d4444f6f1..0f8be86c6 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/StorageClient.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/StorageClient.java @@ -1035,11 +1035,12 @@ private ScanEdgeResultIterator scanEdge(String spaceName, long edgeId = getEdgeId(spaceName, edgeName); EdgeProp edgeCols = new EdgeProp((int) edgeId, props); + List edgeProps = Arrays.asList(edgeCols); ScanEdgeRequest request = new ScanEdgeRequest(); request .setSpace_id(getSpaceId(spaceName)) - .setReturn_columns(edgeCols) + .setReturn_columns(edgeProps) .setLimit(limit) .setStart_time(startTime) .setEnd_time(endTime) diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanEdgeResultIterator.java b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanEdgeResultIterator.java index 7c6d5c935..b221ef9f8 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanEdgeResultIterator.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanEdgeResultIterator.java @@ -17,6 +17,7 @@ import com.vesoft.nebula.storage.ScanCursor; import com.vesoft.nebula.storage.ScanEdgeRequest; import com.vesoft.nebula.storage.ScanEdgeResponse; +import com.vesoft.nebula.storage.ScanResponse; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -73,7 +74,7 @@ public ScanEdgeResult next() throws Exception { threadPool = Executors.newFixedThreadPool(addresses.size()); for (HostAddress addr : addresses) { threadPool.submit(() -> { - ScanEdgeResponse response; + ScanResponse response; PartScanInfo partInfo = partScanQueue.getPart(addr); // no part need to scan if (partInfo == null) { @@ -115,7 +116,7 @@ public ScanEdgeResult next() throws Exception { if (isSuccessful(response)) { handleSucceedResult(existSuccess, response, partInfo); - results.add(response.getEdge_data()); + results.add(response.getProps()); } if (response.getResult() != null) { @@ -159,36 +160,6 @@ public ScanEdgeResult next() throws Exception { } - private boolean isSuccessful(ScanEdgeResponse response) { - return response.result.failed_parts.size() == 0; - } - - private void handleSucceedResult(AtomicInteger existSuccess, ScanEdgeResponse response, - PartScanInfo partInfo) { - existSuccess.addAndGet(1); - if (!response.getCursors().get(partInfo.getPart()).has_next) { - partScanQueue.dropPart(partInfo); - } else { - partInfo.setCursor(response.getCursors().get(partInfo.getPart())); - } - } - - private void handleFailedResult(ScanEdgeResponse response, PartScanInfo partInfo, - List exceptions) { - for (PartitionResult partResult : response.getResult().getFailed_parts()) { - if (partResult.code == ErrorCode.E_LEADER_CHANGED) { - freshLeader(spaceName, partInfo.getPart(), partResult.getLeader()); - partInfo.setLeader(getLeader(partResult.getLeader())); - } else { - int code = partResult.getCode().getValue(); - LOGGER.error(String.format("part scan failed, error code=%d", code)); - partScanQueue.dropPart(partInfo); - exceptions.add(new Exception(String.format("part scan, error code=%d", code))); - } - } - } - - /** * builder to build {@link ScanEdgeResultIterator} */ diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanResultIterator.java b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanResultIterator.java index 01327d38a..efd8e9612 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanResultIterator.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanResultIterator.java @@ -5,16 +5,20 @@ package com.vesoft.nebula.client.storage.scan; +import com.vesoft.nebula.ErrorCode; import com.vesoft.nebula.HostAddr; import com.vesoft.nebula.client.graph.data.HostAddress; import com.vesoft.nebula.client.meta.MetaManager; import com.vesoft.nebula.client.meta.exception.ExecuteFailedException; import com.vesoft.nebula.client.storage.StorageConnPool; +import com.vesoft.nebula.storage.PartitionResult; +import com.vesoft.nebula.storage.ScanResponse; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; +import java.util.concurrent.atomic.AtomicInteger; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -94,4 +98,33 @@ protected void throwExceptions(List exceptions) throws ExecuteFailedE } throw new ExecuteFailedException("no parts succeed, error message: " + errorMsg.toString()); } + + protected boolean isSuccessful(ScanResponse response) { + return response != null && response.result.failed_parts.size() <= 0; + } + + protected void handleSucceedResult(AtomicInteger existSuccess, ScanResponse response, + PartScanInfo partInfo) { + existSuccess.addAndGet(1); + if (!response.getCursors().get(partInfo.getPart()).has_next) { + partScanQueue.dropPart(partInfo); + } else { + partInfo.setCursor(response.getCursors().get(partInfo.getPart())); + } + } + + protected void handleFailedResult(ScanResponse response, PartScanInfo partInfo, + List exceptions) { + for (PartitionResult partResult : response.getResult().getFailed_parts()) { + if (partResult.code == ErrorCode.E_LEADER_CHANGED) { + freshLeader(spaceName, partInfo.getPart(), partResult.getLeader()); + partInfo.setLeader(getLeader(partResult.getLeader())); + } else { + int code = partResult.getCode().getValue(); + LOGGER.error(String.format("part scan failed, error code=%d", code)); + partScanQueue.dropPart(partInfo); + exceptions.add(new Exception(String.format("part scan, error code=%d", code))); + } + } + } } diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanVertexResultIterator.java b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanVertexResultIterator.java index 1444b1785..10fa498c4 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanVertexResultIterator.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanVertexResultIterator.java @@ -15,8 +15,8 @@ import com.vesoft.nebula.client.storage.data.ScanStatus; import com.vesoft.nebula.storage.PartitionResult; import com.vesoft.nebula.storage.ScanCursor; +import com.vesoft.nebula.storage.ScanResponse; import com.vesoft.nebula.storage.ScanVertexRequest; -import com.vesoft.nebula.storage.ScanVertexResponse; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -76,7 +76,7 @@ public ScanVertexResult next() throws Exception { for (HostAddress addr : addresses) { threadPool.submit(() -> { - ScanVertexResponse response; + ScanResponse response; PartScanInfo partInfo = partScanQueue.getPart(addr); // no part need to scan if (partInfo == null) { @@ -117,7 +117,7 @@ public ScanVertexResult next() throws Exception { if (isSuccessful(response)) { handleSucceedResult(existSuccess, response, partInfo); - results.add(response.getVertex_data()); + results.add(response.getProps()); } if (response.getResult() != null) { @@ -160,34 +160,7 @@ public ScanVertexResult next() throws Exception { } - private boolean isSuccessful(ScanVertexResponse response) { - return response != null && response.result.failed_parts.size() <= 0; - } - - private void handleSucceedResult(AtomicInteger existSuccess, ScanVertexResponse response, - PartScanInfo partInfo) { - existSuccess.addAndGet(1); - if (!response.getCursors().get(partInfo.getPart()).has_next) { - partScanQueue.dropPart(partInfo); - } else { - partInfo.setCursor(response.getCursors().get(partInfo.getPart())); - } - } - private void handleFailedResult(ScanVertexResponse response, PartScanInfo partInfo, - List exceptions) { - for (PartitionResult partResult : response.getResult().getFailed_parts()) { - if (partResult.code == ErrorCode.E_LEADER_CHANGED) { - freshLeader(spaceName, partInfo.getPart(), partResult.getLeader()); - partInfo.setLeader(getLeader(partResult.getLeader())); - } else { - int code = partResult.getCode().getValue(); - LOGGER.error(String.format("part scan failed, error code=%d", code)); - partScanQueue.dropPart(partInfo); - exceptions.add(new Exception(String.format("part scan, error code=%d", code))); - } - } - } /** From 2f49be8a4212514ad038db3eab215e14683dab43 Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Fri, 10 Dec 2021 10:45:46 +0800 Subject: [PATCH 06/10] large sleep time makesure graph get the latest schema --- .../vesoft/nebula/client/graph/data/TestDataFromServer.java | 4 ++-- .../com/vesoft/nebula/client/storage/MockStorageData.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java b/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java index 03bdb5615..7a948a73c 100644 --- a/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java +++ b/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java @@ -60,7 +60,7 @@ public void setUp() throws Exception { + "CREATE TAG INDEX IF NOT EXISTS person_name_index ON person(name(8));" + "CREATE TAG IF NOT EXISTS any_shape(geo geography);"); Assert.assertTrue(resp.getErrorMessage(), resp.isSucceeded()); - TimeUnit.SECONDS.sleep(6); + TimeUnit.SECONDS.sleep(10); String insertVertexes = "INSERT VERTEX person(name, age, grade,friends, book_num, " + "birthday, start_school, morning, property," + "is_girl, child_name, expend, first_out_city) VALUES " @@ -445,7 +445,7 @@ public void tesDataset() { "CREATE TAG IF NOT EXISTS player(name string, age int);" + "CREATE EDGE IF NOT EXISTS like(likeness int);"); Assert.assertTrue(result.getErrorMessage(), result.isSucceeded()); - TimeUnit.SECONDS.sleep(6); + TimeUnit.SECONDS.sleep(10); result = session.execute( "INSERT VERTEX player(name, age) values \"a\":(\"a\", 1); " + "INSERT VERTEX player(name, age) values \"b\":(\"b\", 2); " diff --git a/client/src/test/java/com/vesoft/nebula/client/storage/MockStorageData.java b/client/src/test/java/com/vesoft/nebula/client/storage/MockStorageData.java index f75d5860e..9319036a2 100644 --- a/client/src/test/java/com/vesoft/nebula/client/storage/MockStorageData.java +++ b/client/src/test/java/com/vesoft/nebula/client/storage/MockStorageData.java @@ -39,7 +39,7 @@ public static void initGraph() { ResultSet resp = session.execute(createSpace()); try { - Thread.sleep(5000); + Thread.sleep(10000); } catch (InterruptedException e) { e.printStackTrace(); } @@ -119,7 +119,7 @@ public static void mockCASslData() { ResultSet resp = session.execute(createSpaceCa()); try { - Thread.sleep(6000); + Thread.sleep(10000); } catch (InterruptedException e) { e.printStackTrace(); } @@ -160,7 +160,7 @@ public static void mockSelfSslData() { ResultSet resp = session.execute(createSpaceSelf()); try { - Thread.sleep(5000); + Thread.sleep(10000); } catch (InterruptedException e) { e.printStackTrace(); } From 57e1bafefc46320c68ae1600b491b5097aa1555a Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Fri, 10 Dec 2021 17:34:33 +0800 Subject: [PATCH 07/10] update result process for scan --- .../storage/processor/EdgeProcessor.java | 24 ++++++++++++++----- .../storage/processor/VertexProcessor.java | 19 +++++++++++---- .../client/storage/scan/ScanEdgeResult.java | 7 ++++-- .../client/storage/scan/ScanVertexResult.java | 7 ++++-- .../client/graph/data/TestDataFromServer.java | 5 ++-- .../storage/scan/PartScanQueueTest.java | 2 +- 6 files changed, 46 insertions(+), 18 deletions(-) diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/processor/EdgeProcessor.java b/client/src/main/java/com/vesoft/nebula/client/storage/processor/EdgeProcessor.java index 3fdade027..5b058c700 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/processor/EdgeProcessor.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/processor/EdgeProcessor.java @@ -31,13 +31,25 @@ public static List constructEdgeRow(List dataSets, String deco if (values.size() < 3) { LOGGER.error("values size error for row: " + row.toString()); } else { - Value srcId = values.get(0); - Value dstId = values.get(1); - Value rank = values.get(2); + Value srcId = null; + Value dstId = null; + Value rank = null; Map props = Maps.newHashMap(); - for (int i = 3; i < values.size(); i++) { - String colName = new String(colNames.get(i)).split("\\.")[1]; - props.put(colName, new ValueWrapper(values.get(i), decodeType)); + for (int i = 0; i < values.size(); i++) { + String colName = new String(colNames.get(i)); + if (!colName.contains(".")) { + continue; + } + if ("_src".equals(colName.split("\\.")[1])) { + srcId = values.get(i); + } else if ("_dst".equals(colName.split("\\.")[1])) { + dstId = values.get(i); + } else if ("_rank".equals(colName.split("\\.")[1])) { + rank = values.get(i); + } else { + props.put(colName.split("\\.")[1], + new ValueWrapper(values.get(i), decodeType)); + } } EdgeRow edgeRow = new EdgeRow(new ValueWrapper(srcId, decodeType), new ValueWrapper(dstId, decodeType), rank.getIVal(), props); diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/processor/VertexProcessor.java b/client/src/main/java/com/vesoft/nebula/client/storage/processor/VertexProcessor.java index 7dbc63018..5415c243c 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/processor/VertexProcessor.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/processor/VertexProcessor.java @@ -32,11 +32,19 @@ public static Map constructVertexRow(List data if (values.size() < 1) { LOGGER.error("values size error for row: " + row.toString()); } else { - Value vid = values.get(0); + Value vid = null; Map props = Maps.newHashMap(); - for (int i = 1; i < values.size(); i++) { - String colName = new String(colNames.get(i)).split("\\.")[1]; - props.put(colName, new ValueWrapper(values.get(i), decodeType)); + for (int i = 0; i < values.size(); i++) { + String colName = new String(colNames.get(i)); + if (!colName.contains(".")) { + continue; + } + if ("_vid".equals(colName.split("\\.")[1])) { + vid = values.get(i); + } else { + props.put(colName.split("\\.")[1], + new ValueWrapper(values.get(i), decodeType)); + } } VertexRow vertexRow = new VertexRow(new ValueWrapper(vid, decodeType), props); vidVertices.put(new ValueWrapper(vid, decodeType), vertexRow); @@ -54,7 +62,8 @@ public static List constructVertexTableRow(List dataSet for (Row row : rows) { List values = row.getValues(); List props = new ArrayList<>(); - for (int i = 0; i < values.size(); i++) { + // the first prop returned by server is vid, which is also contained in other cols. + for (int i = 1; i < values.size(); i++) { props.add(new ValueWrapper(values.get(i), decodeType)); } vertexRows.add(new VertexTableRow(props)); diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanEdgeResult.java b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanEdgeResult.java index e2a98d461..eec686bf7 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanEdgeResult.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanEdgeResult.java @@ -157,8 +157,11 @@ private void constructPropNames() { if (propNames.isEmpty()) { List colNames = dataSets.get(0).getColumn_names(); for (byte[] colName : colNames) { - String name = new String(colName).split("\\.")[1]; - propNames.add(name); + String propName = new String(colName); + if (!propName.contains(".")) { + continue; + } + propNames.add(propName.split("\\.")[1]); } } } diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanVertexResult.java b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanVertexResult.java index 2bb72faf9..8b15218ef 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanVertexResult.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanVertexResult.java @@ -193,8 +193,11 @@ private void constructPropNames() { if (propNames.isEmpty()) { List colNames = dataSets.get(0).getColumn_names(); for (byte[] colName : colNames) { - String name = new String(colName).split("\\.")[1]; - propNames.add(name); + String propName = new String(colName); + if (!propName.contains(".")) { + continue; + } + propNames.add(propName.split("\\.")[1]); } } } diff --git a/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java b/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java index 7a948a73c..326b18e78 100644 --- a/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java +++ b/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java @@ -463,10 +463,11 @@ public void tesDataset() { + "INSERT EDGE like(likeness) values \"g\" -> \"c\":(10);"); Assert.assertTrue(result.getErrorMessage(), result.isSucceeded()); result = session.execute( - "FIND NOLOOP PATH FROM \"a\" TO \"c\" OVER like BIDIRECT UPTO 5 STEPS"); + "FIND NOLOOP PATH FROM \"a\" TO \"c\" OVER like BIDIRECT UPTO 5 STEPS " + + "YIELD path as p"); Assert.assertTrue(result.getErrorMessage(), result.isSucceeded()); Assert.assertEquals(4, result.rowsSize()); - String expectString = "ColumnName: [path], " + String expectString = "ColumnName: [p], " + "Rows: [(\"a\" )-[:like@0{}]->(\"g\" )-[:like@0{}]->(\"c\" ), " + "(\"a\" )<-[:like@0{}]-(\"d\" )-[:like@0{}]->(\"c\" ), " + "(\"a\" )<-[:like@0{}]-(\"b\" )<-[:like@0{}]-(\"c\" ), " diff --git a/client/src/test/java/com/vesoft/nebula/client/storage/scan/PartScanQueueTest.java b/client/src/test/java/com/vesoft/nebula/client/storage/scan/PartScanQueueTest.java index c96faa6d2..ce5ee366a 100644 --- a/client/src/test/java/com/vesoft/nebula/client/storage/scan/PartScanQueueTest.java +++ b/client/src/test/java/com/vesoft/nebula/client/storage/scan/PartScanQueueTest.java @@ -31,7 +31,7 @@ public void testGetPart() { // test validate leader HostAddress rightAddr = new HostAddress("127.0.0.1", 1); assert (queue.getPart(rightAddr).getLeader().getPort() == 1); - assert (queue.getPart(rightAddr).getCursor() == null); + assert ("".equals(new String(queue.getPart(rightAddr).getCursor().next_cursor))); // test cursor HostAddress addr = new HostAddress("127.0.0.1", 3); From 93eccabab7b037354c427784778153b50f3c4602 Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Fri, 10 Dec 2021 17:34:42 +0800 Subject: [PATCH 08/10] update example --- .../nebula/examples/GraphClientExample.java | 45 +++++++++---------- .../nebula/examples/StorageClientExample.java | 31 +++++-------- 2 files changed, 32 insertions(+), 44 deletions(-) diff --git a/examples/src/main/java/com/vesoft/nebula/examples/GraphClientExample.java b/examples/src/main/java/com/vesoft/nebula/examples/GraphClientExample.java index 3204d461c..0d10704d3 100644 --- a/examples/src/main/java/com/vesoft/nebula/examples/GraphClientExample.java +++ b/examples/src/main/java/com/vesoft/nebula/examples/GraphClientExample.java @@ -85,19 +85,18 @@ public static void main(String[] args) { try { NebulaPoolConfig nebulaPoolConfig = new NebulaPoolConfig(); nebulaPoolConfig.setMaxConnSize(100); - List addresses = Arrays.asList(new HostAddress("127.0.0.1", 9669), - new HostAddress("127.0.0.1", 9670)); + List addresses = Arrays.asList(new HostAddress("127.0.0.1", 9669)); pool.init(addresses, nebulaPoolConfig); session = pool.getSession("root", "nebula", false); { - String createSchema = "CREATE SPACE IF NOT EXISTS test; " - + "USE test;" - + "CREATE TAG IF NOT EXISTS person(name string, age int);" - + "CREATE EDGE IF NOT EXISTS like(likeness double)"; + String createSchema = "CREATE SPACE IF NOT EXISTS test(vid_type=fixed_string(20)); " + + "USE test;" + + "CREATE TAG IF NOT EXISTS person(name string, age int);" + + "CREATE EDGE IF NOT EXISTS like(likeness double)"; ResultSet resp = session.execute(createSchema); if (!resp.isSucceeded()) { log.error(String.format("Execute: `%s', failed: %s", - createSchema, resp.getErrorMessage())); + createSchema, resp.getErrorMessage())); System.exit(1); } } @@ -105,41 +104,41 @@ public static void main(String[] args) { TimeUnit.SECONDS.sleep(5); { String insertVertexes = "INSERT VERTEX person(name, age) VALUES " - + "'Bob':('Bob', 10), " - + "'Lily':('Lily', 9), " - + "'Tom':('Tom', 10), " - + "'Jerry':('Jerry', 13), " - + "'John':('John', 11);"; + + "'Bob':('Bob', 10), " + + "'Lily':('Lily', 9), " + + "'Tom':('Tom', 10), " + + "'Jerry':('Jerry', 13), " + + "'John':('John', 11);"; ResultSet resp = session.execute(insertVertexes); if (!resp.isSucceeded()) { log.error(String.format("Execute: `%s', failed: %s", - insertVertexes, resp.getErrorMessage())); + insertVertexes, resp.getErrorMessage())); System.exit(1); } } { String insertEdges = "INSERT EDGE like(likeness) VALUES " - + "'Bob'->'Lily':(80.0), " - + "'Bob'->'Tom':(70.0), " - + "'Lily'->'Jerry':(84.0), " - + "'Tom'->'Jerry':(68.3), " - + "'Bob'->'John':(97.2);"; + + "'Bob'->'Lily':(80.0), " + + "'Bob'->'Tom':(70.0), " + + "'Lily'->'Jerry':(84.0), " + + "'Tom'->'Jerry':(68.3), " + + "'Bob'->'John':(97.2);"; ResultSet resp = session.execute(insertEdges); if (!resp.isSucceeded()) { log.error(String.format("Execute: `%s', failed: %s", - insertEdges, resp.getErrorMessage())); + insertEdges, resp.getErrorMessage())); System.exit(1); } } { String query = "GO FROM \"Bob\" OVER like " - + "YIELD $^.person.name, $^.person.age, like.likeness"; + + "YIELD $^.person.name, $^.person.age, like.likeness"; ResultSet resp = session.execute(query); if (!resp.isSucceeded()) { log.error(String.format("Execute: `%s', failed: %s", - query, resp.getErrorMessage())); + query, resp.getErrorMessage())); System.exit(1); } printResult(resp); @@ -166,7 +165,7 @@ public static void main(String[] args) { "examples/src/main/resources/ssl/casigned.crt", "examples/src/main/resources/ssl/casigned.key")); NebulaPool sslPool = new NebulaPool(); - sslPool.init(Arrays.asList(new HostAddress("192.168.8.123", 9669)), + sslPool.init(Arrays.asList(new HostAddress("127.0.0.1", 9669)), nebulaSslPoolConfig); String queryForJson = "YIELD 1"; Session sslSession = sslPool.getSession("root", "nebula", false); @@ -189,7 +188,7 @@ public static void main(String[] args) { "examples/src/main/resources/ssl/selfsigned.key", "vesoft")); NebulaPool sslPool = new NebulaPool(); - sslPool.init(Arrays.asList(new HostAddress("192.168.8.123", 9669)), + sslPool.init(Arrays.asList(new HostAddress("127.0.0.1", 9669)), nebulaSslPoolConfig); String queryForJson = "YIELD 1"; Session sslSession = sslPool.getSession("root", "nebula", false); diff --git a/examples/src/main/java/com/vesoft/nebula/examples/StorageClientExample.java b/examples/src/main/java/com/vesoft/nebula/examples/StorageClientExample.java index bd0608878..26e98c9f5 100644 --- a/examples/src/main/java/com/vesoft/nebula/examples/StorageClientExample.java +++ b/examples/src/main/java/com/vesoft/nebula/examples/StorageClientExample.java @@ -61,27 +61,21 @@ public static void scanVertex(StorageClient client) { if (result.isEmpty()) { continue; } - System.out.println(result.getPropNames()); + List vertexRows = result.getVertices(); for (VertexRow row : vertexRows) { if (result.getVertex(row.getVid()) != null) { - System.out.println("vid : " + result.getVertex(row.getVid())); + System.out.println(result.getVertex(row.getVid())); } } - System.out.println(result.getVidVertices()); - - System.out.println("result vertex table view:"); + System.out.println("\nresult vertex table view:"); + System.out.println(result.getPropNames()); List vertexTableRows = result.getVertexTableRows(); for (VertexTableRow vertex : vertexTableRows) { - try { - System.out.println("_vid: " + vertex.getVid().asString()); - System.out.println(vertex.getValues()); - } catch (UnsupportedEncodingException e) { - LOGGER.error("decode String error, ", e); - } + System.out.println(vertex.getValues()); } - System.out.println(result.getVertices()); + System.out.println("\n"); } } @@ -108,21 +102,16 @@ public static void scanEdge(StorageClient client) { if (result.isEmpty()) { continue; } - System.out.println(result.getPropNames()); + System.out.println(result.getEdges()); - System.out.println("result edge table view:"); + System.out.println("\nresult edge table view:"); + System.out.println(result.getPropNames()); List edgeTableRows = result.getEdgeTableRows(); for (EdgeTableRow edge : edgeTableRows) { - try { - System.out.println("_src:" + edge.getSrcId().asString()); - System.out.println("_dst:" + edge.getDstId().asString()); - } catch (UnsupportedEncodingException e) { - LOGGER.error("decode String error, ", e); - } - System.out.println("_rank:" + edge.getRank()); System.out.println(edge.getValues()); } + System.out.println("\n"); } } } From 70abb0e92abac17d3f764fe8eae2d662a8cbed94 Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Mon, 13 Dec 2021 16:19:06 +0800 Subject: [PATCH 09/10] update sleep time --- .github/workflows/deploy_release.yaml | 2 +- .github/workflows/deploy_snapshot.yaml | 2 +- .github/workflows/maven.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_release.yaml b/.github/workflows/deploy_release.yaml index 7a1c3a147..b382f05c8 100644 --- a/.github/workflows/deploy_release.yaml +++ b/.github/workflows/deploy_release.yaml @@ -25,7 +25,7 @@ jobs: pushd nebula-docker-compose/ cp ../../client/src/test/resources/docker-compose.yaml . docker-compose up -d - sleep 10 + sleep 30 docker-compose ps popd popd diff --git a/.github/workflows/deploy_snapshot.yaml b/.github/workflows/deploy_snapshot.yaml index b854b97cc..7887cd161 100644 --- a/.github/workflows/deploy_snapshot.yaml +++ b/.github/workflows/deploy_snapshot.yaml @@ -26,7 +26,7 @@ jobs: pushd nebula-docker-compose/ cp ../../client/src/test/resources/docker-compose.yaml . docker-compose up -d - sleep 10 + sleep 30 docker-compose ps popd popd diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2bee408d1..6eb6c565b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -40,7 +40,7 @@ jobs: pushd nebula-docker-compose/ cp ../../client/src/test/resources/docker-compose.yaml . docker-compose up -d - sleep 180 + sleep 30 docker-compose ps popd popd From 9fe6115c84c8852b93d1e551bb962fe833893af4 Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Mon, 13 Dec 2021 16:19:15 +0800 Subject: [PATCH 10/10] update ut --- .../client/storage/MockStorageData.java | 2 +- .../nebula/client/storage/MockUtil.java | 4 +++- .../client/storage/StorageClientTest.java | 19 +------------------ 3 files changed, 5 insertions(+), 20 deletions(-) diff --git a/client/src/test/java/com/vesoft/nebula/client/storage/MockStorageData.java b/client/src/test/java/com/vesoft/nebula/client/storage/MockStorageData.java index 9319036a2..a6fd52658 100644 --- a/client/src/test/java/com/vesoft/nebula/client/storage/MockStorageData.java +++ b/client/src/test/java/com/vesoft/nebula/client/storage/MockStorageData.java @@ -29,7 +29,7 @@ public static void initGraph() { NebulaPoolConfig nebulaPoolConfig = new NebulaPoolConfig(); nebulaPoolConfig.setMaxConnSize(100); - List addresses = Arrays.asList(new HostAddress("127.0.0.1", 9671)); + List addresses = Arrays.asList(new HostAddress("127.0.0.1", 9669)); NebulaPool pool = new NebulaPool(); Session session = null; try { diff --git a/client/src/test/java/com/vesoft/nebula/client/storage/MockUtil.java b/client/src/test/java/com/vesoft/nebula/client/storage/MockUtil.java index 284a36201..17e95e8e8 100644 --- a/client/src/test/java/com/vesoft/nebula/client/storage/MockUtil.java +++ b/client/src/test/java/com/vesoft/nebula/client/storage/MockUtil.java @@ -23,6 +23,7 @@ public class MockUtil { public static List mockVertexDataSets() { List columnNames = new ArrayList<>(); + columnNames.add("_vid".getBytes()); columnNames.add("person._vid".getBytes()); columnNames.add("person.boolean_col1".getBytes()); columnNames.add("person.long_col2".getBytes()); @@ -35,6 +36,7 @@ public static List mockVertexDataSets() { // row 1 List values1 = new ArrayList<>(); values1.add(Value.sVal("Tom".getBytes())); + values1.add(Value.sVal("Tom".getBytes())); values1.add(Value.bVal(true)); values1.add(Value.iVal(12)); values1.add(Value.fVal(1.0)); @@ -43,7 +45,7 @@ public static List mockVertexDataSets() { values1.add(Value.dtVal(new DateTime((short) 2020, (byte) 1, (byte) 1, (byte) 12, (byte) 10, (byte) 30, 100))); values1.add(Value.ggVal(new Geography(Geography.PTVAL, - new Point(new Coordinate(1.0,1.5))))); + new Point(new Coordinate(1.0, 1.5))))); List rows = new ArrayList<>(); rows.add(new Row(values1)); diff --git a/client/src/test/java/com/vesoft/nebula/client/storage/StorageClientTest.java b/client/src/test/java/com/vesoft/nebula/client/storage/StorageClientTest.java index a527daa82..fa7d84370 100644 --- a/client/src/test/java/com/vesoft/nebula/client/storage/StorageClientTest.java +++ b/client/src/test/java/com/vesoft/nebula/client/storage/StorageClientTest.java @@ -64,7 +64,6 @@ public void testScanVertexWithNoCol() { ScanVertexResultIterator resultIterator = client.scanVertex( "testStorage", "person"); - int count = 0; while (resultIterator.hasNext()) { ScanVertexResult result = null; try { @@ -76,7 +75,6 @@ public void testScanVertexWithNoCol() { if (result.isEmpty()) { continue; } - count += result.getVertices().size(); Assert.assertEquals(1, result.getPropNames().size()); assert (result.getPropNames().get(0).equals("_vid")); assert (result.isAllSuccess()); @@ -106,7 +104,6 @@ public void testScanVertexWithNoCol() { } } } - assert (count == 5); } @Test @@ -121,7 +118,6 @@ public void testScanVertexWithCols() { "testStorage", "person", Arrays.asList("name", "age")); - int count = 0; while (resultIterator.hasNext()) { ScanVertexResult result = null; try { @@ -133,7 +129,6 @@ public void testScanVertexWithCols() { if (result.isEmpty()) { continue; } - count += result.getVertices().size(); Assert.assertEquals(3, result.getPropNames().size()); assert (result.getPropNames().get(0).equals("_vid")); assert (result.getPropNames().get(1).equals("name")); @@ -172,7 +167,6 @@ public void testScanVertexWithCols() { assert (Arrays.asList(18L, 20L, 23L, 15L, 25L).contains(tableRow.getLong(2))); } } - assert (count == 5); } @Test @@ -187,7 +181,6 @@ public void testScanVertexWithAllCol() { "testStorage", "person", Arrays.asList()); - int count = 0; while (resultIterator.hasNext()) { ScanVertexResult result = null; try { @@ -199,14 +192,12 @@ public void testScanVertexWithAllCol() { if (result.isEmpty()) { continue; } - count += result.getVertices().size(); Assert.assertEquals(3, result.getPropNames().size()); assert (result.getPropNames().get(0).equals("_vid")); assert (Arrays.asList("name", "age").contains(result.getPropNames().get(1))); assert (Arrays.asList("name", "age").contains(result.getPropNames().get(2))); assert (result.isAllSuccess()); } - assert (count == 5); } @Test @@ -220,7 +211,6 @@ public void testScanEdgeWithoutCol() { ScanEdgeResultIterator resultIterator = client.scanEdge( "testStorage", "friend"); - int count = 0; while (resultIterator.hasNext()) { ScanEdgeResult result = null; try { @@ -232,7 +222,6 @@ public void testScanEdgeWithoutCol() { if (result.isEmpty()) { continue; } - count += result.getEdges().size(); Assert.assertEquals(3, result.getPropNames().size()); assert (result.getPropNames().get(0).equals("_src")); assert (result.getPropNames().get(1).equals("_dst")); @@ -270,7 +259,6 @@ public void testScanEdgeWithoutCol() { } } } - assert (count == 5); } @Test @@ -285,7 +273,6 @@ public void testScanEdgeWithCols() { "testStorage", "friend", Arrays.asList("likeness")); - int count = 0; while (resultIterator.hasNext()) { ScanEdgeResult result = null; try { @@ -297,7 +284,6 @@ public void testScanEdgeWithCols() { if (result.isEmpty()) { continue; } - count += result.getEdges().size(); Assert.assertEquals(4, result.getPropNames().size()); assert (result.getPropNames().get(0).equals("_src")); assert (result.getPropNames().get(1).equals("_dst")); @@ -341,7 +327,6 @@ public void testScanEdgeWithCols() { assert (Arrays.asList(1.0, 2.1, 3.2, 4.5, 5.9).contains(tableRow.getDouble(3))); } } - assert (count == 5); } @Test @@ -356,7 +341,6 @@ public void testScanEdgeWithAllCols() { "testStorage", "friend", Arrays.asList()); - int count = 0; while (resultIterator.hasNext()) { ScanEdgeResult result = null; try { @@ -368,7 +352,6 @@ public void testScanEdgeWithAllCols() { if (result.isEmpty()) { continue; } - count += result.getEdges().size(); Assert.assertEquals(4, result.getPropNames().size()); assert (Arrays.asList("_src", "_dst", "_rank", "likeness") .contains(result.getPropNames().get(0))); @@ -380,7 +363,6 @@ public void testScanEdgeWithAllCols() { .contains(result.getPropNames().get(3))); assert (result.isAllSuccess()); } - assert (count == 5); } @Test @@ -501,6 +483,7 @@ private void assertIterator(ScanVertexResultIterator resultIterator) { } } } + System.out.println("count:" + count); assert (count == 5); } }