diff --git a/client/src/main/generated/LogEntry.java b/client/src/main/generated/LogEntry.java deleted file mode 100644 index 0262d916b..000000000 --- a/client/src/main/generated/LogEntry.java +++ /dev/null @@ -1,355 +0,0 @@ -/** - * 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 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/CheckpointInfo.java b/client/src/main/generated/com/vesoft/nebula/CheckpointInfo.java index 18bc5ee03..ace305e36 100644 --- a/client/src/main/generated/com/vesoft/nebula/CheckpointInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/CheckpointInfo.java @@ -26,22 +26,31 @@ @SuppressWarnings({ "unused", "serial" }) public class CheckpointInfo implements TBase, java.io.Serializable, Cloneable, Comparable { private static final TStruct STRUCT_DESC = new TStruct("CheckpointInfo"); - private static final TField PARTITION_INFO_FIELD_DESC = new TField("partition_info", TType.STRUCT, (short)1); - private static final TField PATH_FIELD_DESC = new TField("path", TType.STRING, (short)2); + 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 PATH_FIELD_DESC = new TField("path", TType.STRING, (short)3); - public PartitionBackupInfo partition_info; + public int space_id; + public Map parts; public byte[] path; - public static final int PARTITION_INFO = 1; - public static final int PATH = 2; + public static final int SPACE_ID = 1; + public static final int PARTS = 2; + public static final int PATH = 3; // isset id assignments + private static final int __SPACE_ID_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); public static final Map metaDataMap; static { Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(PARTITION_INFO, new FieldMetaData("partition_info", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, PartitionBackupInfo.class))); + tmpMetaDataMap.put(SPACE_ID, new FieldMetaData("space_id", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(PARTS, new FieldMetaData("parts", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new StructMetaData(TType.STRUCT, LogInfo.class)))); tmpMetaDataMap.put(PATH, new FieldMetaData("path", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); @@ -55,22 +64,34 @@ public CheckpointInfo() { } public CheckpointInfo( - PartitionBackupInfo partition_info, + int space_id, + Map parts, byte[] path) { this(); - this.partition_info = partition_info; + this.space_id = space_id; + setSpace_idIsSet(true); + this.parts = parts; this.path = path; } public static class Builder { - private PartitionBackupInfo partition_info; + private int space_id; + private Map parts; private byte[] path; + BitSet __optional_isset = new BitSet(1); + public Builder() { } - public Builder setPartition_info(final PartitionBackupInfo partition_info) { - this.partition_info = partition_info; + public Builder setSpace_id(final int space_id) { + this.space_id = space_id; + __optional_isset.set(__SPACE_ID_ISSET_ID, true); + return this; + } + + public Builder setParts(final Map parts) { + this.parts = parts; return this; } @@ -81,7 +102,10 @@ public Builder setPath(final byte[] path) { public CheckpointInfo build() { CheckpointInfo result = new CheckpointInfo(); - result.setPartition_info(this.partition_info); + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setParts(this.parts); result.setPath(this.path); return result; } @@ -95,8 +119,11 @@ public static Builder builder() { * Performs a deep copy on other. */ public CheckpointInfo(CheckpointInfo other) { - if (other.isSetPartition_info()) { - this.partition_info = TBaseHelper.deepCopy(other.partition_info); + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetParts()) { + this.parts = TBaseHelper.deepCopy(other.parts); } if (other.isSetPath()) { this.path = TBaseHelper.deepCopy(other.path); @@ -107,27 +134,50 @@ public CheckpointInfo deepCopy() { return new CheckpointInfo(this); } - public PartitionBackupInfo getPartition_info() { - return this.partition_info; + public int getSpace_id() { + return this.space_id; } - public CheckpointInfo setPartition_info(PartitionBackupInfo partition_info) { - this.partition_info = partition_info; + public CheckpointInfo setSpace_id(int space_id) { + this.space_id = space_id; + setSpace_idIsSet(true); return this; } - public void unsetPartition_info() { - this.partition_info = null; + public void unsetSpace_id() { + __isset_bit_vector.clear(__SPACE_ID_ISSET_ID); } - // Returns true if field partition_info is set (has been assigned a value) and false otherwise - public boolean isSetPartition_info() { - return this.partition_info != null; + // Returns true if field space_id is set (has been assigned a value) and false otherwise + public boolean isSetSpace_id() { + return __isset_bit_vector.get(__SPACE_ID_ISSET_ID); } - public void setPartition_infoIsSet(boolean __value) { + public void setSpace_idIsSet(boolean __value) { + __isset_bit_vector.set(__SPACE_ID_ISSET_ID, __value); + } + + public Map getParts() { + return this.parts; + } + + public CheckpointInfo setParts(Map parts) { + this.parts = parts; + return this; + } + + public void unsetParts() { + this.parts = null; + } + + // Returns true if field parts is set (has been assigned a value) and false otherwise + public boolean isSetParts() { + return this.parts != null; + } + + public void setPartsIsSet(boolean __value) { if (!__value) { - this.partition_info = null; + this.parts = null; } } @@ -155,13 +205,22 @@ public void setPathIsSet(boolean __value) { } } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { - case PARTITION_INFO: + case SPACE_ID: + if (__value == null) { + unsetSpace_id(); + } else { + setSpace_id((Integer)__value); + } + break; + + case PARTS: if (__value == null) { - unsetPartition_info(); + unsetParts(); } else { - setPartition_info((PartitionBackupInfo)__value); + setParts((Map)__value); } break; @@ -180,8 +239,11 @@ public void setFieldValue(int fieldID, Object __value) { public Object getFieldValue(int fieldID) { switch (fieldID) { - case PARTITION_INFO: - return getPartition_info(); + case SPACE_ID: + return new Integer(getSpace_id()); + + case PARTS: + return getParts(); case PATH: return getPath(); @@ -201,7 +263,9 @@ public boolean equals(Object _that) { return false; CheckpointInfo that = (CheckpointInfo)_that; - if (!TBaseHelper.equalsNobinary(this.isSetPartition_info(), that.isSetPartition_info(), this.partition_info, that.partition_info)) { return false; } + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetParts(), that.isSetParts(), this.parts, that.parts)) { return false; } if (!TBaseHelper.equalsSlow(this.isSetPath(), that.isSetPath(), this.path, that.path)) { return false; } @@ -210,7 +274,7 @@ public boolean equals(Object _that) { @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {partition_info, path}); + return Arrays.deepHashCode(new Object[] {space_id, parts, path}); } @Override @@ -225,11 +289,19 @@ public int compareTo(CheckpointInfo other) { } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetPartition_info()).compareTo(other.isSetPartition_info()); + lastComparison = Boolean.valueOf(isSetSpace_id()).compareTo(other.isSetSpace_id()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(space_id, other.space_id); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetParts()).compareTo(other.isSetParts()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(partition_info, other.partition_info); + lastComparison = TBaseHelper.compareTo(parts, other.parts); if (lastComparison != 0) { return lastComparison; } @@ -255,10 +327,32 @@ public void read(TProtocol iprot) throws TException { } switch (__field.id) { - case PARTITION_INFO: - if (__field.type == TType.STRUCT) { - this.partition_info = new PartitionBackupInfo(); - this.partition_info.read(iprot); + case SPACE_ID: + if (__field.type == TType.I32) { + this.space_id = iprot.readI32(); + setSpace_idIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PARTS: + if (__field.type == TType.MAP) { + { + TMap _map64 = iprot.readMapBegin(); + this.parts = new HashMap(Math.max(0, 2*_map64.size)); + for (int _i65 = 0; + (_map64.size < 0) ? iprot.peekMap() : (_i65 < _map64.size); + ++_i65) + { + int _key66; + LogInfo _val67; + _key66 = iprot.readI32(); + _val67 = new LogInfo(); + _val67.read(iprot); + this.parts.put(_key66, _val67); + } + iprot.readMapEnd(); + } } else { TProtocolUtil.skip(iprot, __field.type); } @@ -287,9 +381,19 @@ public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); - if (this.partition_info != null) { - oprot.writeFieldBegin(PARTITION_INFO_FIELD_DESC); - this.partition_info.write(oprot); + oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); + oprot.writeI32(this.space_id); + oprot.writeFieldEnd(); + if (this.parts != null) { + oprot.writeFieldBegin(PARTS_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.parts.size())); + for (Map.Entry _iter68 : this.parts.entrySet()) { + oprot.writeI32(_iter68.getKey()); + _iter68.getValue().write(oprot); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } if (this.path != null) { @@ -318,13 +422,20 @@ public String toString(int indent, boolean prettyPrint) { boolean first = true; sb.append(indentStr); - sb.append("partition_info"); + sb.append("space_id"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getSpace_id(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("parts"); sb.append(space); sb.append(":").append(space); - if (this.getPartition_info() == null) { + if (this.getParts() == null) { sb.append("null"); } else { - sb.append(TBaseHelper.toString(this.getPartition_info(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.getParts(), indent + 1, prettyPrint)); } first = false; if (!first) sb.append("," + newLine); diff --git a/client/src/main/generated/com/vesoft/nebula/ErrorCode.java b/client/src/main/generated/com/vesoft/nebula/ErrorCode.java index aeb236d81..8a5d54653 100644 --- a/client/src/main/generated/com/vesoft/nebula/ErrorCode.java +++ b/client/src/main/generated/com/vesoft/nebula/ErrorCode.java @@ -94,6 +94,7 @@ public enum ErrorCode implements com.facebook.thrift.TEnum { E_LIST_CLUSTER_GET_ABS_PATH_FAILURE(-2071), E_GET_META_DIR_FAILURE(-2072), E_QUERY_NOT_FOUND(-2073), + E_AGENT_HB_FAILUE(-2074), E_CONSENSUS_ERROR(-3001), E_KEY_HAS_EXISTS(-3002), E_DATA_TYPE_MISMATCH(-3003), diff --git a/client/src/main/generated/com/vesoft/nebula/PartitionBackupInfo.java b/client/src/main/generated/com/vesoft/nebula/PartitionBackupInfo.java deleted file mode 100644 index 917e3d168..000000000 --- a/client/src/main/generated/com/vesoft/nebula/PartitionBackupInfo.java +++ /dev/null @@ -1,290 +0,0 @@ -/** - * 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 PartitionBackupInfo implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("PartitionBackupInfo"); - private static final TField INFO_FIELD_DESC = new TField("info", TType.MAP, (short)1); - - public Map info; - public static final int INFO = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(INFO, new FieldMetaData("info", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.I32), - new StructMetaData(TType.STRUCT, LogInfo.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(PartitionBackupInfo.class, metaDataMap); - } - - public PartitionBackupInfo() { - } - - public PartitionBackupInfo( - Map info) { - this(); - this.info = info; - } - - public static class Builder { - private Map info; - - public Builder() { - } - - public Builder setInfo(final Map info) { - this.info = info; - return this; - } - - public PartitionBackupInfo build() { - PartitionBackupInfo result = new PartitionBackupInfo(); - result.setInfo(this.info); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public PartitionBackupInfo(PartitionBackupInfo other) { - if (other.isSetInfo()) { - this.info = TBaseHelper.deepCopy(other.info); - } - } - - public PartitionBackupInfo deepCopy() { - return new PartitionBackupInfo(this); - } - - public Map getInfo() { - return this.info; - } - - public PartitionBackupInfo setInfo(Map info) { - this.info = info; - return this; - } - - public void unsetInfo() { - this.info = null; - } - - // Returns true if field info is set (has been assigned a value) and false otherwise - public boolean isSetInfo() { - return this.info != null; - } - - public void setInfoIsSet(boolean __value) { - if (!__value) { - this.info = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case INFO: - if (__value == null) { - unsetInfo(); - } else { - setInfo((Map)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case INFO: - return getInfo(); - - 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 PartitionBackupInfo)) - return false; - PartitionBackupInfo that = (PartitionBackupInfo)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetInfo(), that.isSetInfo(), this.info, that.info)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {info}); - } - - @Override - public int compareTo(PartitionBackupInfo other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetInfo()).compareTo(other.isSetInfo()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(info, other.info); - 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 INFO: - if (__field.type == TType.MAP) { - { - TMap _map64 = iprot.readMapBegin(); - this.info = new HashMap(Math.max(0, 2*_map64.size)); - for (int _i65 = 0; - (_map64.size < 0) ? iprot.peekMap() : (_i65 < _map64.size); - ++_i65) - { - int _key66; - LogInfo _val67; - _key66 = iprot.readI32(); - _val67 = new LogInfo(); - _val67.read(iprot); - this.info.put(_key66, _val67); - } - 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.info != null) { - oprot.writeFieldBegin(INFO_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.info.size())); - for (Map.Entry _iter68 : this.info.entrySet()) { - oprot.writeI32(_iter68.getKey()); - _iter68.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("PartitionBackupInfo"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("info"); - sb.append(space); - sb.append(":").append(space); - if (this.getInfo() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getInfo(), 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/Value.java b/client/src/main/generated/com/vesoft/nebula/Value.java index 628946385..6d442e31f 100644 --- a/client/src/main/generated/com/vesoft/nebula/Value.java +++ b/client/src/main/generated/com/vesoft/nebula/Value.java @@ -42,6 +42,7 @@ public class Value extends TUnion { private static final TField U_VAL_FIELD_DESC = new TField("uVal", TType.STRUCT, (short)14); private static final TField G_VAL_FIELD_DESC = new TField("gVal", TType.STRUCT, (short)15); private static final TField GG_VAL_FIELD_DESC = new TField("ggVal", TType.STRUCT, (short)16); + private static final TField DU_VAL_FIELD_DESC = new TField("duVal", TType.STRUCT, (short)17); public static final int NVAL = 1; public static final int BVAL = 2; @@ -59,6 +60,7 @@ public class Value extends TUnion { public static final int UVAL = 14; public static final int GVAL = 15; public static final int GGVAL = 16; + public static final int DUVAL = 17; public static final Map metaDataMap; @@ -96,6 +98,8 @@ public class Value extends TUnion { new StructMetaData(TType.STRUCT, DataSet.class))); tmpMetaDataMap.put(GGVAL, new FieldMetaData("ggVal", TFieldRequirementType.DEFAULT, new StructMetaData(TType.STRUCT, Geography.class))); + tmpMetaDataMap.put(DUVAL, new FieldMetaData("duVal", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, Duration.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -211,6 +215,12 @@ public static Value ggVal(Geography __value) { return x; } + public static Value duVal(Duration __value) { + Value x = new Value(); + x.setDuVal(__value); + return x; + } + @Override protected void checkType(short setField, Object __value) throws ClassCastException { @@ -295,6 +305,11 @@ protected void checkType(short setField, Object __value) throws ClassCastExcepti break; } throw new ClassCastException("Was expecting value of type Geography for field 'ggVal', but got " + __value.getClass().getSimpleName()); + case DUVAL: + if (__value instanceof Duration) { + break; + } + throw new ClassCastException("Was expecting value of type Duration for field 'duVal', but got " + __value.getClass().getSimpleName()); default: throw new IllegalArgumentException("Unknown field id " + setField); } @@ -392,6 +407,11 @@ public void read(TProtocol iprot) throws TException { setField_ = __field.id; } break; + case DUVAL: + if (__field.type == DU_VAL_FIELD_DESC.type) { + setField_ = __field.id; + } + break; } } iprot.readFieldEnd(); @@ -529,6 +549,14 @@ protected Object readValue(TProtocol iprot, TField __field) throws TException { return ggVal; } break; + case DUVAL: + if (__field.type == DU_VAL_FIELD_DESC.type) { + Duration duVal; + duVal = new Duration(); + duVal.read(iprot); + return duVal; + } + break; } TProtocolUtil.skip(iprot, __field.type); return null; @@ -601,6 +629,10 @@ protected void writeValue(TProtocol oprot, short setField, Object __value) throw Geography ggVal = (Geography)getFieldValue(); ggVal.write(oprot); return; + case DUVAL: + Duration duVal = (Duration)getFieldValue(); + duVal.write(oprot); + return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField); } @@ -641,6 +673,8 @@ protected TField getFieldDesc(int setField) { return G_VAL_FIELD_DESC; case GGVAL: return GG_VAL_FIELD_DESC; + case DUVAL: + return DU_VAL_FIELD_DESC; default: throw new IllegalArgumentException("Unknown field id " + setField); } @@ -807,6 +841,14 @@ public void setGgVal(Geography __value) { __setValue(GGVAL, __value); } + public Duration getDuVal() { + return (Duration) __getValue(DUVAL); + } + + public void setDuVal(Duration __value) { + __setValue(DUVAL, __value); + } + public boolean equals(Object other) { if (other instanceof Value) { return equals((Value)other); diff --git a/client/src/main/generated/com/vesoft/nebula/graph/GraphAdminService.java b/client/src/main/generated/com/vesoft/nebula/graph/GraphAdminService.java deleted file mode 100644 index b39ac4039..000000000 --- a/client/src/main/generated/com/vesoft/nebula/graph/GraphAdminService.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.graph; - -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 GraphAdminService { - - public interface Iface { - - public ListAllSessionsResp listAllSessions(ListAllSessionsReq req) throws TException; - - } - - public interface AsyncIface { - - public void listAllSessions(ListAllSessionsReq 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 ListAllSessionsResp listAllSessions(ListAllSessionsReq req) throws TException - { - ContextStack ctx = getContextStack("GraphAdminService.listAllSessions", null); - this.setContextStack(ctx); - send_listAllSessions(req); - return recv_listAllSessions(); - } - - public void send_listAllSessions(ListAllSessionsReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "GraphAdminService.listAllSessions", null); - oprot_.writeMessageBegin(new TMessage("listAllSessions", TMessageType.CALL, seqid_)); - listAllSessions_args args = new listAllSessions_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "GraphAdminService.listAllSessions", args); - return; - } - - public ListAllSessionsResp recv_listAllSessions() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "GraphAdminService.listAllSessions"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - listAllSessions_result result = new listAllSessions_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "GraphAdminService.listAllSessions", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "listAllSessions 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 listAllSessions(ListAllSessionsReq req, AsyncMethodCallback resultHandler74) throws TException { - checkReady(); - listAllSessions_call method_call = new listAllSessions_call(req, resultHandler74, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class listAllSessions_call extends TAsyncMethodCall { - private ListAllSessionsReq req; - public listAllSessions_call(ListAllSessionsReq req, AsyncMethodCallback resultHandler75, TAsyncClient client71, TProtocolFactory protocolFactory72, TNonblockingTransport transport73) throws TException { - super(client71, protocolFactory72, transport73, resultHandler75, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("listAllSessions", TMessageType.CALL, 0)); - listAllSessions_args args = new listAllSessions_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public ListAllSessionsResp 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_listAllSessions(); - } - } - - } - - 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("listAllSessions", new listAllSessions()); - } - - 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 listAllSessions implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("GraphAdminService.listAllSessions", server_ctx); - listAllSessions_args args = new listAllSessions_args(); - event_handler_.preRead(handler_ctx, "GraphAdminService.listAllSessions"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "GraphAdminService.listAllSessions", args); - listAllSessions_result result = new listAllSessions_result(); - result.success = iface_.listAllSessions(args.req); - event_handler_.preWrite(handler_ctx, "GraphAdminService.listAllSessions", result); - oprot.writeMessageBegin(new TMessage("listAllSessions", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "GraphAdminService.listAllSessions", result); - } - - } - - } - - public static class listAllSessions_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listAllSessions_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public ListAllSessionsReq 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, ListAllSessionsReq.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(listAllSessions_args.class, metaDataMap); - } - - public listAllSessions_args() { - } - - public listAllSessions_args( - ListAllSessionsReq req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public listAllSessions_args(listAllSessions_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public listAllSessions_args deepCopy() { - return new listAllSessions_args(this); - } - - public ListAllSessionsReq getReq() { - return this.req; - } - - public listAllSessions_args setReq(ListAllSessionsReq 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((ListAllSessionsReq)__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 listAllSessions_args)) - return false; - listAllSessions_args that = (listAllSessions_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(listAllSessions_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 ListAllSessionsReq(); - 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("listAllSessions_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 listAllSessions_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("listAllSessions_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public ListAllSessionsResp 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, ListAllSessionsResp.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(listAllSessions_result.class, metaDataMap); - } - - public listAllSessions_result() { - } - - public listAllSessions_result( - ListAllSessionsResp success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public listAllSessions_result(listAllSessions_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public listAllSessions_result deepCopy() { - return new listAllSessions_result(this); - } - - public ListAllSessionsResp getSuccess() { - return this.success; - } - - public listAllSessions_result setSuccess(ListAllSessionsResp 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((ListAllSessionsResp)__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 listAllSessions_result)) - return false; - listAllSessions_result that = (listAllSessions_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 ListAllSessionsResp(); - 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("listAllSessions_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/graph/ListAllSessionsReq.java b/client/src/main/generated/com/vesoft/nebula/graph/ListAllSessionsReq.java deleted file mode 100644 index d442be0d0..000000000 --- a/client/src/main/generated/com/vesoft/nebula/graph/ListAllSessionsReq.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package com.vesoft.nebula.graph; - -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 ListAllSessionsReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("ListAllSessionsReq"); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(ListAllSessionsReq.class, metaDataMap); - } - - public ListAllSessionsReq() { - } - - public static class Builder { - - public Builder() { - } - - public ListAllSessionsReq build() { - ListAllSessionsReq result = new ListAllSessionsReq(); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public ListAllSessionsReq(ListAllSessionsReq other) { - } - - public ListAllSessionsReq deepCopy() { - return new ListAllSessionsReq(this); - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - 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 ListAllSessionsReq)) - return false; - ListAllSessionsReq that = (ListAllSessionsReq)_that; - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {}); - } - - @Override - public int compareTo(ListAllSessionsReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - 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) - { - 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.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("ListAllSessionsReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - 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/ListAllSessionsResp.java b/client/src/main/generated/com/vesoft/nebula/graph/ListAllSessionsResp.java deleted file mode 100644 index 70e5d311d..000000000 --- a/client/src/main/generated/com/vesoft/nebula/graph/ListAllSessionsResp.java +++ /dev/null @@ -1,360 +0,0 @@ -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package com.vesoft.nebula.graph; - -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 ListAllSessionsResp implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("ListAllSessionsResp"); - private static final TField CODE_FIELD_DESC = new TField("code", TType.I32, (short)1); - private static final TField SESSIONS_FIELD_DESC = new TField("sessions", TType.LIST, (short)2); - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode code; - public List sessions; - public static final int CODE = 1; - public static final int SESSIONS = 2; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(CODE, new FieldMetaData("code", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(SESSIONS, new FieldMetaData("sessions", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Session.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(ListAllSessionsResp.class, metaDataMap); - } - - public ListAllSessionsResp() { - } - - public ListAllSessionsResp( - com.vesoft.nebula.ErrorCode code, - List sessions) { - this(); - this.code = code; - this.sessions = sessions; - } - - public static class Builder { - private com.vesoft.nebula.ErrorCode code; - private List sessions; - - public Builder() { - } - - public Builder setCode(final com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public Builder setSessions(final List sessions) { - this.sessions = sessions; - return this; - } - - public ListAllSessionsResp build() { - ListAllSessionsResp result = new ListAllSessionsResp(); - result.setCode(this.code); - result.setSessions(this.sessions); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public ListAllSessionsResp(ListAllSessionsResp other) { - if (other.isSetCode()) { - this.code = TBaseHelper.deepCopy(other.code); - } - if (other.isSetSessions()) { - this.sessions = TBaseHelper.deepCopy(other.sessions); - } - } - - public ListAllSessionsResp deepCopy() { - return new ListAllSessionsResp(this); - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode getCode() { - return this.code; - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public ListAllSessionsResp setCode(com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public void unsetCode() { - this.code = null; - } - - // Returns true if field code is set (has been assigned a value) and false otherwise - public boolean isSetCode() { - return this.code != null; - } - - public void setCodeIsSet(boolean __value) { - if (!__value) { - this.code = null; - } - } - - public List getSessions() { - return this.sessions; - } - - public ListAllSessionsResp setSessions(List sessions) { - this.sessions = sessions; - return this; - } - - public void unsetSessions() { - this.sessions = null; - } - - // Returns true if field sessions is set (has been assigned a value) and false otherwise - public boolean isSetSessions() { - return this.sessions != null; - } - - public void setSessionsIsSet(boolean __value) { - if (!__value) { - this.sessions = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case CODE: - if (__value == null) { - unsetCode(); - } else { - setCode((com.vesoft.nebula.ErrorCode)__value); - } - break; - - case SESSIONS: - if (__value == null) { - unsetSessions(); - } else { - setSessions((List)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case CODE: - return getCode(); - - case SESSIONS: - return getSessions(); - - 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 ListAllSessionsResp)) - return false; - ListAllSessionsResp that = (ListAllSessionsResp)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetCode(), that.isSetCode(), this.code, that.code)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetSessions(), that.isSetSessions(), this.sessions, that.sessions)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {code, sessions}); - } - - 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 CODE: - if (__field.type == TType.I32) { - this.code = com.vesoft.nebula.ErrorCode.findByValue(iprot.readI32()); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case SESSIONS: - if (__field.type == TType.LIST) { - { - TList _list36 = iprot.readListBegin(); - this.sessions = new ArrayList(Math.max(0, _list36.size)); - for (int _i37 = 0; - (_list36.size < 0) ? iprot.peekList() : (_i37 < _list36.size); - ++_i37) - { - Session _elem38; - _elem38 = new Session(); - _elem38.read(iprot); - this.sessions.add(_elem38); - } - 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.code != null) { - oprot.writeFieldBegin(CODE_FIELD_DESC); - oprot.writeI32(this.code == null ? 0 : this.code.getValue()); - oprot.writeFieldEnd(); - } - if (this.sessions != null) { - oprot.writeFieldBegin(SESSIONS_FIELD_DESC); - { - oprot.writeListBegin(new TList(TType.STRUCT, this.sessions.size())); - for (Session _iter39 : this.sessions) { - _iter39.write(oprot); - } - 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("ListAllSessionsResp"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("code"); - sb.append(space); - sb.append(":").append(space); - if (this.getCode() == null) { - sb.append("null"); - } else { - String code_name = this.getCode() == null ? "null" : this.getCode().name(); - if (code_name != null) { - sb.append(code_name); - sb.append(" ("); - } - sb.append(this.getCode()); - if (code_name != null) { - sb.append(")"); - } - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("sessions"); - sb.append(space); - sb.append(":").append(space); - if (this.getSessions() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSessions(), 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/graph/ListSessionsReq.java b/client/src/main/generated/com/vesoft/nebula/graph/ListSessionsReq.java deleted file mode 100644 index 14c048679..000000000 --- a/client/src/main/generated/com/vesoft/nebula/graph/ListSessionsReq.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package com.vesoft.nebula.graph; - -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 ListSessionsReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("ListSessionsReq"); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(ListSessionsReq.class, metaDataMap); - } - - public ListSessionsReq() { - } - - public static class Builder { - - public Builder() { - } - - public ListSessionsReq build() { - ListSessionsReq result = new ListSessionsReq(); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public ListSessionsReq(ListSessionsReq other) { - } - - public ListSessionsReq deepCopy() { - return new ListSessionsReq(this); - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - 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 ListSessionsReq)) - return false; - ListSessionsReq that = (ListSessionsReq)_that; - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {}); - } - - @Override - public int compareTo(ListSessionsReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - 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) - { - 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.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("ListSessionsReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - 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/ListSessionsResp.java b/client/src/main/generated/com/vesoft/nebula/graph/ListSessionsResp.java deleted file mode 100644 index f85103789..000000000 --- a/client/src/main/generated/com/vesoft/nebula/graph/ListSessionsResp.java +++ /dev/null @@ -1,438 +0,0 @@ -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package com.vesoft.nebula.graph; - -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 ListSessionsResp implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("ListSessionsResp"); - private static final TField CODE_FIELD_DESC = new TField("code", TType.I32, (short)1); - private static final TField LEADER_FIELD_DESC = new TField("leader", TType.STRUCT, (short)2); - private static final TField SESSIONS_FIELD_DESC = new TField("sessions", TType.LIST, (short)3); - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode code; - public com.vesoft.nebula.HostAddr leader; - public List sessions; - public static final int CODE = 1; - public static final int LEADER = 2; - public static final int SESSIONS = 3; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(CODE, new FieldMetaData("code", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(LEADER, new FieldMetaData("leader", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(SESSIONS, new FieldMetaData("sessions", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Session.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(ListSessionsResp.class, metaDataMap); - } - - public ListSessionsResp() { - } - - public ListSessionsResp( - com.vesoft.nebula.ErrorCode code, - com.vesoft.nebula.HostAddr leader, - List sessions) { - this(); - this.code = code; - this.leader = leader; - this.sessions = sessions; - } - - public static class Builder { - private com.vesoft.nebula.ErrorCode code; - private com.vesoft.nebula.HostAddr leader; - private List sessions; - - public Builder() { - } - - public Builder setCode(final com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public Builder setLeader(final com.vesoft.nebula.HostAddr leader) { - this.leader = leader; - return this; - } - - public Builder setSessions(final List sessions) { - this.sessions = sessions; - return this; - } - - public ListSessionsResp build() { - ListSessionsResp result = new ListSessionsResp(); - result.setCode(this.code); - result.setLeader(this.leader); - result.setSessions(this.sessions); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public ListSessionsResp(ListSessionsResp other) { - if (other.isSetCode()) { - this.code = TBaseHelper.deepCopy(other.code); - } - if (other.isSetLeader()) { - this.leader = TBaseHelper.deepCopy(other.leader); - } - if (other.isSetSessions()) { - this.sessions = TBaseHelper.deepCopy(other.sessions); - } - } - - public ListSessionsResp deepCopy() { - return new ListSessionsResp(this); - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode getCode() { - return this.code; - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public ListSessionsResp setCode(com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public void unsetCode() { - this.code = null; - } - - // Returns true if field code is set (has been assigned a value) and false otherwise - public boolean isSetCode() { - return this.code != null; - } - - public void setCodeIsSet(boolean __value) { - if (!__value) { - this.code = null; - } - } - - public com.vesoft.nebula.HostAddr getLeader() { - return this.leader; - } - - public ListSessionsResp setLeader(com.vesoft.nebula.HostAddr leader) { - this.leader = leader; - return this; - } - - public void unsetLeader() { - this.leader = null; - } - - // Returns true if field leader is set (has been assigned a value) and false otherwise - public boolean isSetLeader() { - return this.leader != null; - } - - public void setLeaderIsSet(boolean __value) { - if (!__value) { - this.leader = null; - } - } - - public List getSessions() { - return this.sessions; - } - - public ListSessionsResp setSessions(List sessions) { - this.sessions = sessions; - return this; - } - - public void unsetSessions() { - this.sessions = null; - } - - // Returns true if field sessions is set (has been assigned a value) and false otherwise - public boolean isSetSessions() { - return this.sessions != null; - } - - public void setSessionsIsSet(boolean __value) { - if (!__value) { - this.sessions = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case CODE: - if (__value == null) { - unsetCode(); - } else { - setCode((com.vesoft.nebula.ErrorCode)__value); - } - break; - - case LEADER: - if (__value == null) { - unsetLeader(); - } else { - setLeader((com.vesoft.nebula.HostAddr)__value); - } - break; - - case SESSIONS: - if (__value == null) { - unsetSessions(); - } else { - setSessions((List)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case CODE: - return getCode(); - - case LEADER: - return getLeader(); - - case SESSIONS: - return getSessions(); - - 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 ListSessionsResp)) - return false; - ListSessionsResp that = (ListSessionsResp)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetCode(), that.isSetCode(), this.code, that.code)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetLeader(), that.isSetLeader(), this.leader, that.leader)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetSessions(), that.isSetSessions(), this.sessions, that.sessions)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {code, leader, sessions}); - } - - 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 CODE: - if (__field.type == TType.I32) { - this.code = com.vesoft.nebula.ErrorCode.findByValue(iprot.readI32()); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case LEADER: - if (__field.type == TType.STRUCT) { - this.leader = new com.vesoft.nebula.HostAddr(); - this.leader.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case SESSIONS: - if (__field.type == TType.LIST) { - { - TList _list36 = iprot.readListBegin(); - this.sessions = new ArrayList(Math.max(0, _list36.size)); - for (int _i37 = 0; - (_list36.size < 0) ? iprot.peekList() : (_i37 < _list36.size); - ++_i37) - { - Session _elem38; - _elem38 = new Session(); - _elem38.read(iprot); - this.sessions.add(_elem38); - } - 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.code != null) { - oprot.writeFieldBegin(CODE_FIELD_DESC); - oprot.writeI32(this.code == null ? 0 : this.code.getValue()); - oprot.writeFieldEnd(); - } - if (this.leader != null) { - oprot.writeFieldBegin(LEADER_FIELD_DESC); - this.leader.write(oprot); - oprot.writeFieldEnd(); - } - if (this.sessions != null) { - oprot.writeFieldBegin(SESSIONS_FIELD_DESC); - { - oprot.writeListBegin(new TList(TType.STRUCT, this.sessions.size())); - for (Session _iter39 : this.sessions) { - _iter39.write(oprot); - } - 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("ListSessionsResp"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("code"); - sb.append(space); - sb.append(":").append(space); - if (this.getCode() == null) { - sb.append("null"); - } else { - String code_name = this.getCode() == null ? "null" : this.getCode().name(); - if (code_name != null) { - sb.append(code_name); - sb.append(" ("); - } - sb.append(this.getCode()); - if (code_name != null) { - sb.append(")"); - } - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("leader"); - sb.append(space); - sb.append(":").append(space); - if (this.getLeader() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getLeader(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("sessions"); - sb.append(space); - sb.append(":").append(space); - if (this.getSessions() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSessions(), 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/graph/QueryDesc.java b/client/src/main/generated/com/vesoft/nebula/graph/QueryDesc.java deleted file mode 100644 index 25f9ea56a..000000000 --- a/client/src/main/generated/com/vesoft/nebula/graph/QueryDesc.java +++ /dev/null @@ -1,630 +0,0 @@ -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package com.vesoft.nebula.graph; - -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 QueryDesc implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("QueryDesc"); - private static final TField START_TIME_FIELD_DESC = new TField("start_time", TType.I64, (short)1); - private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2); - private static final TField DURATION_FIELD_DESC = new TField("duration", TType.I64, (short)3); - private static final TField QUERY_FIELD_DESC = new TField("query", TType.STRING, (short)4); - private static final TField GRAPH_ADDR_FIELD_DESC = new TField("graph_addr", TType.STRUCT, (short)5); - - public long start_time; - /** - * - * @see QueryStatus - */ - public QueryStatus status; - public long duration; - public byte[] query; - public com.vesoft.nebula.HostAddr graph_addr; - public static final int START_TIME = 1; - public static final int STATUS = 2; - public static final int DURATION = 3; - public static final int QUERY = 4; - public static final int GRAPH_ADDR = 5; - - // isset id assignments - private static final int __START_TIME_ISSET_ID = 0; - private static final int __DURATION_ISSET_ID = 1; - private BitSet __isset_bit_vector = new BitSet(2); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(START_TIME, new FieldMetaData("start_time", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(DURATION, new FieldMetaData("duration", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(QUERY, new FieldMetaData("query", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(GRAPH_ADDR, new FieldMetaData("graph_addr", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(QueryDesc.class, metaDataMap); - } - - public QueryDesc() { - } - - public QueryDesc( - long start_time, - QueryStatus status, - long duration, - byte[] query, - com.vesoft.nebula.HostAddr graph_addr) { - this(); - this.start_time = start_time; - setStart_timeIsSet(true); - this.status = status; - this.duration = duration; - setDurationIsSet(true); - this.query = query; - this.graph_addr = graph_addr; - } - - public static class Builder { - private long start_time; - private QueryStatus status; - private long duration; - private byte[] query; - private com.vesoft.nebula.HostAddr graph_addr; - - BitSet __optional_isset = new BitSet(2); - - public Builder() { - } - - 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 setStatus(final QueryStatus status) { - this.status = status; - return this; - } - - public Builder setDuration(final long duration) { - this.duration = duration; - __optional_isset.set(__DURATION_ISSET_ID, true); - return this; - } - - public Builder setQuery(final byte[] query) { - this.query = query; - return this; - } - - public Builder setGraph_addr(final com.vesoft.nebula.HostAddr graph_addr) { - this.graph_addr = graph_addr; - return this; - } - - public QueryDesc build() { - QueryDesc result = new QueryDesc(); - if (__optional_isset.get(__START_TIME_ISSET_ID)) { - result.setStart_time(this.start_time); - } - result.setStatus(this.status); - if (__optional_isset.get(__DURATION_ISSET_ID)) { - result.setDuration(this.duration); - } - result.setQuery(this.query); - result.setGraph_addr(this.graph_addr); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public QueryDesc(QueryDesc other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.start_time = TBaseHelper.deepCopy(other.start_time); - if (other.isSetStatus()) { - this.status = TBaseHelper.deepCopy(other.status); - } - this.duration = TBaseHelper.deepCopy(other.duration); - if (other.isSetQuery()) { - this.query = TBaseHelper.deepCopy(other.query); - } - if (other.isSetGraph_addr()) { - this.graph_addr = TBaseHelper.deepCopy(other.graph_addr); - } - } - - public QueryDesc deepCopy() { - return new QueryDesc(this); - } - - public long getStart_time() { - return this.start_time; - } - - public QueryDesc 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); - } - - /** - * - * @see QueryStatus - */ - public QueryStatus getStatus() { - return this.status; - } - - /** - * - * @see QueryStatus - */ - public QueryDesc setStatus(QueryStatus 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 long getDuration() { - return this.duration; - } - - public QueryDesc setDuration(long duration) { - this.duration = duration; - setDurationIsSet(true); - return this; - } - - public void unsetDuration() { - __isset_bit_vector.clear(__DURATION_ISSET_ID); - } - - // Returns true if field duration is set (has been assigned a value) and false otherwise - public boolean isSetDuration() { - return __isset_bit_vector.get(__DURATION_ISSET_ID); - } - - public void setDurationIsSet(boolean __value) { - __isset_bit_vector.set(__DURATION_ISSET_ID, __value); - } - - public byte[] getQuery() { - return this.query; - } - - public QueryDesc setQuery(byte[] query) { - this.query = query; - return this; - } - - public void unsetQuery() { - this.query = null; - } - - // Returns true if field query is set (has been assigned a value) and false otherwise - public boolean isSetQuery() { - return this.query != null; - } - - public void setQueryIsSet(boolean __value) { - if (!__value) { - this.query = null; - } - } - - public com.vesoft.nebula.HostAddr getGraph_addr() { - return this.graph_addr; - } - - public QueryDesc setGraph_addr(com.vesoft.nebula.HostAddr graph_addr) { - this.graph_addr = graph_addr; - return this; - } - - public void unsetGraph_addr() { - this.graph_addr = null; - } - - // Returns true if field graph_addr is set (has been assigned a value) and false otherwise - public boolean isSetGraph_addr() { - return this.graph_addr != null; - } - - public void setGraph_addrIsSet(boolean __value) { - if (!__value) { - this.graph_addr = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case START_TIME: - if (__value == null) { - unsetStart_time(); - } else { - setStart_time((Long)__value); - } - break; - - case STATUS: - if (__value == null) { - unsetStatus(); - } else { - setStatus((QueryStatus)__value); - } - break; - - case DURATION: - if (__value == null) { - unsetDuration(); - } else { - setDuration((Long)__value); - } - break; - - case QUERY: - if (__value == null) { - unsetQuery(); - } else { - setQuery((byte[])__value); - } - break; - - case GRAPH_ADDR: - if (__value == null) { - unsetGraph_addr(); - } else { - setGraph_addr((com.vesoft.nebula.HostAddr)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case START_TIME: - return new Long(getStart_time()); - - case STATUS: - return getStatus(); - - case DURATION: - return new Long(getDuration()); - - case QUERY: - return getQuery(); - - case GRAPH_ADDR: - return getGraph_addr(); - - 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 QueryDesc)) - return false; - QueryDesc that = (QueryDesc)_that; - - if (!TBaseHelper.equalsNobinary(this.start_time, that.start_time)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetStatus(), that.isSetStatus(), this.status, that.status)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.duration, that.duration)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetQuery(), that.isSetQuery(), this.query, that.query)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetGraph_addr(), that.isSetGraph_addr(), this.graph_addr, that.graph_addr)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {start_time, status, duration, query, graph_addr}); - } - - @Override - public int compareTo(QueryDesc other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - 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(isSetStatus()).compareTo(other.isSetStatus()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(status, other.status); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetDuration()).compareTo(other.isSetDuration()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(duration, other.duration); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(query, other.query); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetGraph_addr()).compareTo(other.isSetGraph_addr()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(graph_addr, other.graph_addr); - 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 START_TIME: - if (__field.type == TType.I64) { - this.start_time = iprot.readI64(); - setStart_timeIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case STATUS: - if (__field.type == TType.I32) { - this.status = QueryStatus.findByValue(iprot.readI32()); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case DURATION: - if (__field.type == TType.I64) { - this.duration = iprot.readI64(); - setDurationIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case QUERY: - if (__field.type == TType.STRING) { - this.query = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case GRAPH_ADDR: - if (__field.type == TType.STRUCT) { - this.graph_addr = new com.vesoft.nebula.HostAddr(); - this.graph_addr.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); - oprot.writeFieldBegin(START_TIME_FIELD_DESC); - oprot.writeI64(this.start_time); - oprot.writeFieldEnd(); - if (this.status != null) { - oprot.writeFieldBegin(STATUS_FIELD_DESC); - oprot.writeI32(this.status == null ? 0 : this.status.getValue()); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(DURATION_FIELD_DESC); - oprot.writeI64(this.duration); - oprot.writeFieldEnd(); - if (this.query != null) { - oprot.writeFieldBegin(QUERY_FIELD_DESC); - oprot.writeBinary(this.query); - oprot.writeFieldEnd(); - } - if (this.graph_addr != null) { - oprot.writeFieldBegin(GRAPH_ADDR_FIELD_DESC); - this.graph_addr.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("QueryDesc"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - 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("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; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("duration"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getDuration(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("query"); - sb.append(space); - sb.append(":").append(space); - if (this.getQuery() == null) { - sb.append("null"); - } else { - int __query_size = Math.min(this.getQuery().length, 128); - for (int i = 0; i < __query_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getQuery()[i]).length() > 1 ? Integer.toHexString(this.getQuery()[i]).substring(Integer.toHexString(this.getQuery()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getQuery()[i]).toUpperCase()); - } - if (this.getQuery().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("graph_addr"); - sb.append(space); - sb.append(":").append(space); - if (this.getGraph_addr() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getGraph_addr(), 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/graph/QueryStatus.java b/client/src/main/generated/com/vesoft/nebula/graph/QueryStatus.java deleted file mode 100644 index 62ee710a7..000000000 --- a/client/src/main/generated/com/vesoft/nebula/graph/QueryStatus.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package com.vesoft.nebula.graph; - - -import com.facebook.thrift.IntRangeSet; -import java.util.Map; -import java.util.HashMap; - -@SuppressWarnings({ "unused" }) -public enum QueryStatus implements com.facebook.thrift.TEnum { - RUNNING(1), - KILLING(2); - - private final int value; - - private QueryStatus(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 QueryStatus findByValue(int value) { - switch (value) { - case 1: - return RUNNING; - case 2: - return KILLING; - default: - return null; - } - } -} diff --git a/client/src/main/generated/com/vesoft/nebula/graph/Session.java b/client/src/main/generated/com/vesoft/nebula/graph/Session.java deleted file mode 100644 index d8afef2ed..000000000 --- a/client/src/main/generated/com/vesoft/nebula/graph/Session.java +++ /dev/null @@ -1,993 +0,0 @@ -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package com.vesoft.nebula.graph; - -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 Session implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Session"); - private static final TField SESSION_ID_FIELD_DESC = new TField("session_id", TType.I64, (short)1); - private static final TField CREATE_TIME_FIELD_DESC = new TField("create_time", TType.I64, (short)2); - private static final TField UPDATE_TIME_FIELD_DESC = new TField("update_time", TType.I64, (short)3); - private static final TField USER_NAME_FIELD_DESC = new TField("user_name", TType.STRING, (short)4); - private static final TField SPACE_NAME_FIELD_DESC = new TField("space_name", TType.STRING, (short)5); - private static final TField GRAPH_ADDR_FIELD_DESC = new TField("graph_addr", TType.STRUCT, (short)6); - private static final TField TIMEZONE_FIELD_DESC = new TField("timezone", TType.I32, (short)7); - private static final TField CLIENT_IP_FIELD_DESC = new TField("client_ip", TType.STRING, (short)8); - private static final TField CONFIGS_FIELD_DESC = new TField("configs", TType.MAP, (short)9); - private static final TField QUERIES_FIELD_DESC = new TField("queries", TType.MAP, (short)10); - - public long session_id; - public long create_time; - public long update_time; - public byte[] user_name; - public byte[] space_name; - public com.vesoft.nebula.HostAddr graph_addr; - public int timezone; - public byte[] client_ip; - public Map configs; - public Map queries; - public static final int SESSION_ID = 1; - public static final int CREATE_TIME = 2; - public static final int UPDATE_TIME = 3; - public static final int USER_NAME = 4; - public static final int SPACE_NAME = 5; - public static final int GRAPH_ADDR = 6; - public static final int TIMEZONE = 7; - public static final int CLIENT_IP = 8; - public static final int CONFIGS = 9; - public static final int QUERIES = 10; - - // isset id assignments - private static final int __SESSION_ID_ISSET_ID = 0; - private static final int __CREATE_TIME_ISSET_ID = 1; - private static final int __UPDATE_TIME_ISSET_ID = 2; - private static final int __TIMEZONE_ISSET_ID = 3; - private BitSet __isset_bit_vector = new BitSet(4); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SESSION_ID, new FieldMetaData("session_id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(CREATE_TIME, new FieldMetaData("create_time", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(UPDATE_TIME, new FieldMetaData("update_time", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(USER_NAME, new FieldMetaData("user_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(SPACE_NAME, new FieldMetaData("space_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(GRAPH_ADDR, new FieldMetaData("graph_addr", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(TIMEZONE, new FieldMetaData("timezone", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(CLIENT_IP, new FieldMetaData("client_ip", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(CONFIGS, new FieldMetaData("configs", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new StructMetaData(TType.STRUCT, com.vesoft.nebula.Value.class)))); - tmpMetaDataMap.put(QUERIES, new FieldMetaData("queries", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.I64), - new StructMetaData(TType.STRUCT, QueryDesc.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(Session.class, metaDataMap); - } - - public Session() { - } - - public Session( - long session_id, - long create_time, - long update_time, - byte[] user_name, - byte[] space_name, - com.vesoft.nebula.HostAddr graph_addr, - int timezone, - byte[] client_ip, - Map configs, - Map queries) { - this(); - this.session_id = session_id; - setSession_idIsSet(true); - this.create_time = create_time; - setCreate_timeIsSet(true); - this.update_time = update_time; - setUpdate_timeIsSet(true); - this.user_name = user_name; - this.space_name = space_name; - this.graph_addr = graph_addr; - this.timezone = timezone; - setTimezoneIsSet(true); - this.client_ip = client_ip; - this.configs = configs; - this.queries = queries; - } - - public static class Builder { - private long session_id; - private long create_time; - private long update_time; - private byte[] user_name; - private byte[] space_name; - private com.vesoft.nebula.HostAddr graph_addr; - private int timezone; - private byte[] client_ip; - private Map configs; - private Map queries; - - BitSet __optional_isset = new BitSet(4); - - public Builder() { - } - - public Builder setSession_id(final long session_id) { - this.session_id = session_id; - __optional_isset.set(__SESSION_ID_ISSET_ID, true); - return this; - } - - public Builder setCreate_time(final long create_time) { - this.create_time = create_time; - __optional_isset.set(__CREATE_TIME_ISSET_ID, true); - return this; - } - - public Builder setUpdate_time(final long update_time) { - this.update_time = update_time; - __optional_isset.set(__UPDATE_TIME_ISSET_ID, true); - return this; - } - - public Builder setUser_name(final byte[] user_name) { - this.user_name = user_name; - return this; - } - - public Builder setSpace_name(final byte[] space_name) { - this.space_name = space_name; - return this; - } - - public Builder setGraph_addr(final com.vesoft.nebula.HostAddr graph_addr) { - this.graph_addr = graph_addr; - return this; - } - - public Builder setTimezone(final int timezone) { - this.timezone = timezone; - __optional_isset.set(__TIMEZONE_ISSET_ID, true); - return this; - } - - public Builder setClient_ip(final byte[] client_ip) { - this.client_ip = client_ip; - return this; - } - - public Builder setConfigs(final Map configs) { - this.configs = configs; - return this; - } - - public Builder setQueries(final Map queries) { - this.queries = queries; - return this; - } - - public Session build() { - Session result = new Session(); - if (__optional_isset.get(__SESSION_ID_ISSET_ID)) { - result.setSession_id(this.session_id); - } - if (__optional_isset.get(__CREATE_TIME_ISSET_ID)) { - result.setCreate_time(this.create_time); - } - if (__optional_isset.get(__UPDATE_TIME_ISSET_ID)) { - result.setUpdate_time(this.update_time); - } - result.setUser_name(this.user_name); - result.setSpace_name(this.space_name); - result.setGraph_addr(this.graph_addr); - if (__optional_isset.get(__TIMEZONE_ISSET_ID)) { - result.setTimezone(this.timezone); - } - result.setClient_ip(this.client_ip); - result.setConfigs(this.configs); - result.setQueries(this.queries); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public Session(Session other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.session_id = TBaseHelper.deepCopy(other.session_id); - this.create_time = TBaseHelper.deepCopy(other.create_time); - this.update_time = TBaseHelper.deepCopy(other.update_time); - if (other.isSetUser_name()) { - this.user_name = TBaseHelper.deepCopy(other.user_name); - } - if (other.isSetSpace_name()) { - this.space_name = TBaseHelper.deepCopy(other.space_name); - } - if (other.isSetGraph_addr()) { - this.graph_addr = TBaseHelper.deepCopy(other.graph_addr); - } - this.timezone = TBaseHelper.deepCopy(other.timezone); - if (other.isSetClient_ip()) { - this.client_ip = TBaseHelper.deepCopy(other.client_ip); - } - if (other.isSetConfigs()) { - this.configs = TBaseHelper.deepCopy(other.configs); - } - if (other.isSetQueries()) { - this.queries = TBaseHelper.deepCopy(other.queries); - } - } - - public Session deepCopy() { - return new Session(this); - } - - public long getSession_id() { - return this.session_id; - } - - public Session setSession_id(long session_id) { - this.session_id = session_id; - setSession_idIsSet(true); - return this; - } - - public void unsetSession_id() { - __isset_bit_vector.clear(__SESSION_ID_ISSET_ID); - } - - // Returns true if field session_id is set (has been assigned a value) and false otherwise - public boolean isSetSession_id() { - return __isset_bit_vector.get(__SESSION_ID_ISSET_ID); - } - - public void setSession_idIsSet(boolean __value) { - __isset_bit_vector.set(__SESSION_ID_ISSET_ID, __value); - } - - public long getCreate_time() { - return this.create_time; - } - - public Session setCreate_time(long create_time) { - this.create_time = create_time; - setCreate_timeIsSet(true); - return this; - } - - public void unsetCreate_time() { - __isset_bit_vector.clear(__CREATE_TIME_ISSET_ID); - } - - // Returns true if field create_time is set (has been assigned a value) and false otherwise - public boolean isSetCreate_time() { - return __isset_bit_vector.get(__CREATE_TIME_ISSET_ID); - } - - public void setCreate_timeIsSet(boolean __value) { - __isset_bit_vector.set(__CREATE_TIME_ISSET_ID, __value); - } - - public long getUpdate_time() { - return this.update_time; - } - - public Session setUpdate_time(long update_time) { - this.update_time = update_time; - setUpdate_timeIsSet(true); - return this; - } - - public void unsetUpdate_time() { - __isset_bit_vector.clear(__UPDATE_TIME_ISSET_ID); - } - - // Returns true if field update_time is set (has been assigned a value) and false otherwise - public boolean isSetUpdate_time() { - return __isset_bit_vector.get(__UPDATE_TIME_ISSET_ID); - } - - public void setUpdate_timeIsSet(boolean __value) { - __isset_bit_vector.set(__UPDATE_TIME_ISSET_ID, __value); - } - - public byte[] getUser_name() { - return this.user_name; - } - - public Session setUser_name(byte[] user_name) { - this.user_name = user_name; - return this; - } - - public void unsetUser_name() { - this.user_name = null; - } - - // Returns true if field user_name is set (has been assigned a value) and false otherwise - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean __value) { - if (!__value) { - this.user_name = null; - } - } - - public byte[] getSpace_name() { - return this.space_name; - } - - public Session setSpace_name(byte[] space_name) { - this.space_name = space_name; - return this; - } - - public void unsetSpace_name() { - this.space_name = null; - } - - // Returns true if field space_name is set (has been assigned a value) and false otherwise - public boolean isSetSpace_name() { - return this.space_name != null; - } - - public void setSpace_nameIsSet(boolean __value) { - if (!__value) { - this.space_name = null; - } - } - - public com.vesoft.nebula.HostAddr getGraph_addr() { - return this.graph_addr; - } - - public Session setGraph_addr(com.vesoft.nebula.HostAddr graph_addr) { - this.graph_addr = graph_addr; - return this; - } - - public void unsetGraph_addr() { - this.graph_addr = null; - } - - // Returns true if field graph_addr is set (has been assigned a value) and false otherwise - public boolean isSetGraph_addr() { - return this.graph_addr != null; - } - - public void setGraph_addrIsSet(boolean __value) { - if (!__value) { - this.graph_addr = null; - } - } - - public int getTimezone() { - return this.timezone; - } - - public Session setTimezone(int timezone) { - this.timezone = timezone; - setTimezoneIsSet(true); - return this; - } - - public void unsetTimezone() { - __isset_bit_vector.clear(__TIMEZONE_ISSET_ID); - } - - // Returns true if field timezone is set (has been assigned a value) and false otherwise - public boolean isSetTimezone() { - return __isset_bit_vector.get(__TIMEZONE_ISSET_ID); - } - - public void setTimezoneIsSet(boolean __value) { - __isset_bit_vector.set(__TIMEZONE_ISSET_ID, __value); - } - - public byte[] getClient_ip() { - return this.client_ip; - } - - public Session setClient_ip(byte[] client_ip) { - this.client_ip = client_ip; - return this; - } - - public void unsetClient_ip() { - this.client_ip = null; - } - - // Returns true if field client_ip is set (has been assigned a value) and false otherwise - public boolean isSetClient_ip() { - return this.client_ip != null; - } - - public void setClient_ipIsSet(boolean __value) { - if (!__value) { - this.client_ip = null; - } - } - - public Map getConfigs() { - return this.configs; - } - - public Session setConfigs(Map configs) { - this.configs = configs; - return this; - } - - public void unsetConfigs() { - this.configs = null; - } - - // Returns true if field configs is set (has been assigned a value) and false otherwise - public boolean isSetConfigs() { - return this.configs != null; - } - - public void setConfigsIsSet(boolean __value) { - if (!__value) { - this.configs = null; - } - } - - public Map getQueries() { - return this.queries; - } - - public Session setQueries(Map queries) { - this.queries = queries; - return this; - } - - public void unsetQueries() { - this.queries = null; - } - - // Returns true if field queries is set (has been assigned a value) and false otherwise - public boolean isSetQueries() { - return this.queries != null; - } - - public void setQueriesIsSet(boolean __value) { - if (!__value) { - this.queries = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SESSION_ID: - if (__value == null) { - unsetSession_id(); - } else { - setSession_id((Long)__value); - } - break; - - case CREATE_TIME: - if (__value == null) { - unsetCreate_time(); - } else { - setCreate_time((Long)__value); - } - break; - - case UPDATE_TIME: - if (__value == null) { - unsetUpdate_time(); - } else { - setUpdate_time((Long)__value); - } - break; - - case USER_NAME: - if (__value == null) { - unsetUser_name(); - } else { - setUser_name((byte[])__value); - } - break; - - case SPACE_NAME: - if (__value == null) { - unsetSpace_name(); - } else { - setSpace_name((byte[])__value); - } - break; - - case GRAPH_ADDR: - if (__value == null) { - unsetGraph_addr(); - } else { - setGraph_addr((com.vesoft.nebula.HostAddr)__value); - } - break; - - case TIMEZONE: - if (__value == null) { - unsetTimezone(); - } else { - setTimezone((Integer)__value); - } - break; - - case CLIENT_IP: - if (__value == null) { - unsetClient_ip(); - } else { - setClient_ip((byte[])__value); - } - break; - - case CONFIGS: - if (__value == null) { - unsetConfigs(); - } else { - setConfigs((Map)__value); - } - break; - - case QUERIES: - if (__value == null) { - unsetQueries(); - } else { - setQueries((Map)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SESSION_ID: - return new Long(getSession_id()); - - case CREATE_TIME: - return new Long(getCreate_time()); - - case UPDATE_TIME: - return new Long(getUpdate_time()); - - case USER_NAME: - return getUser_name(); - - case SPACE_NAME: - return getSpace_name(); - - case GRAPH_ADDR: - return getGraph_addr(); - - case TIMEZONE: - return new Integer(getTimezone()); - - case CLIENT_IP: - return getClient_ip(); - - case CONFIGS: - return getConfigs(); - - case QUERIES: - return getQueries(); - - 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 Session)) - return false; - Session that = (Session)_that; - - if (!TBaseHelper.equalsNobinary(this.session_id, that.session_id)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.create_time, that.create_time)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.update_time, that.update_time)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetUser_name(), that.isSetUser_name(), this.user_name, that.user_name)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetSpace_name(), that.isSetSpace_name(), this.space_name, that.space_name)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetGraph_addr(), that.isSetGraph_addr(), this.graph_addr, that.graph_addr)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.timezone, that.timezone)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetClient_ip(), that.isSetClient_ip(), this.client_ip, that.client_ip)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetConfigs(), that.isSetConfigs(), this.configs, that.configs)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetQueries(), that.isSetQueries(), this.queries, that.queries)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {session_id, create_time, update_time, user_name, space_name, graph_addr, timezone, client_ip, configs, queries}); - } - - 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 SESSION_ID: - if (__field.type == TType.I64) { - this.session_id = iprot.readI64(); - setSession_idIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case CREATE_TIME: - if (__field.type == TType.I64) { - this.create_time = iprot.readI64(); - setCreate_timeIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case UPDATE_TIME: - if (__field.type == TType.I64) { - this.update_time = iprot.readI64(); - setUpdate_timeIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case USER_NAME: - if (__field.type == TType.STRING) { - this.user_name = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case SPACE_NAME: - if (__field.type == TType.STRING) { - this.space_name = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case GRAPH_ADDR: - if (__field.type == TType.STRUCT) { - this.graph_addr = new com.vesoft.nebula.HostAddr(); - this.graph_addr.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case TIMEZONE: - if (__field.type == TType.I32) { - this.timezone = iprot.readI32(); - setTimezoneIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case CLIENT_IP: - if (__field.type == TType.STRING) { - this.client_ip = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case CONFIGS: - if (__field.type == TType.MAP) { - { - TMap _map26 = iprot.readMapBegin(); - this.configs = new HashMap(Math.max(0, 2*_map26.size)); - for (int _i27 = 0; - (_map26.size < 0) ? iprot.peekMap() : (_i27 < _map26.size); - ++_i27) - { - byte[] _key28; - com.vesoft.nebula.Value _val29; - _key28 = iprot.readBinary(); - _val29 = new com.vesoft.nebula.Value(); - _val29.read(iprot); - this.configs.put(_key28, _val29); - } - iprot.readMapEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case QUERIES: - if (__field.type == TType.MAP) { - { - TMap _map30 = iprot.readMapBegin(); - this.queries = new HashMap(Math.max(0, 2*_map30.size)); - for (int _i31 = 0; - (_map30.size < 0) ? iprot.peekMap() : (_i31 < _map30.size); - ++_i31) - { - long _key32; - QueryDesc _val33; - _key32 = iprot.readI64(); - _val33 = new QueryDesc(); - _val33.read(iprot); - this.queries.put(_key32, _val33); - } - 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(SESSION_ID_FIELD_DESC); - oprot.writeI64(this.session_id); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(CREATE_TIME_FIELD_DESC); - oprot.writeI64(this.create_time); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(UPDATE_TIME_FIELD_DESC); - oprot.writeI64(this.update_time); - oprot.writeFieldEnd(); - if (this.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeBinary(this.user_name); - oprot.writeFieldEnd(); - } - if (this.space_name != null) { - oprot.writeFieldBegin(SPACE_NAME_FIELD_DESC); - oprot.writeBinary(this.space_name); - oprot.writeFieldEnd(); - } - if (this.graph_addr != null) { - oprot.writeFieldBegin(GRAPH_ADDR_FIELD_DESC); - this.graph_addr.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(TIMEZONE_FIELD_DESC); - oprot.writeI32(this.timezone); - oprot.writeFieldEnd(); - if (this.client_ip != null) { - oprot.writeFieldBegin(CLIENT_IP_FIELD_DESC); - oprot.writeBinary(this.client_ip); - oprot.writeFieldEnd(); - } - if (this.configs != null) { - oprot.writeFieldBegin(CONFIGS_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.configs.size())); - for (Map.Entry _iter34 : this.configs.entrySet()) { - oprot.writeBinary(_iter34.getKey()); - _iter34.getValue().write(oprot); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - if (this.queries != null) { - oprot.writeFieldBegin(QUERIES_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, this.queries.size())); - for (Map.Entry _iter35 : this.queries.entrySet()) { - oprot.writeI64(_iter35.getKey()); - _iter35.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("Session"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("session_id"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getSession_id(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("create_time"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getCreate_time(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("update_time"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getUpdate_time(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("user_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getUser_name() == null) { - sb.append("null"); - } else { - int __user_name_size = Math.min(this.getUser_name().length, 128); - for (int i = 0; i < __user_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getUser_name()[i]).length() > 1 ? Integer.toHexString(this.getUser_name()[i]).substring(Integer.toHexString(this.getUser_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getUser_name()[i]).toUpperCase()); - } - if (this.getUser_name().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("space_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getSpace_name() == null) { - sb.append("null"); - } else { - int __space_name_size = Math.min(this.getSpace_name().length, 128); - for (int i = 0; i < __space_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getSpace_name()[i]).length() > 1 ? Integer.toHexString(this.getSpace_name()[i]).substring(Integer.toHexString(this.getSpace_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getSpace_name()[i]).toUpperCase()); - } - if (this.getSpace_name().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("graph_addr"); - sb.append(space); - sb.append(":").append(space); - if (this.getGraph_addr() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getGraph_addr(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("timezone"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getTimezone(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("client_ip"); - sb.append(space); - sb.append(":").append(space); - if (this.getClient_ip() == null) { - sb.append("null"); - } else { - int __client_ip_size = Math.min(this.getClient_ip().length, 128); - for (int i = 0; i < __client_ip_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getClient_ip()[i]).length() > 1 ? Integer.toHexString(this.getClient_ip()[i]).substring(Integer.toHexString(this.getClient_ip()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getClient_ip()[i]).toUpperCase()); - } - if (this.getClient_ip().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("configs"); - sb.append(space); - sb.append(":").append(space); - if (this.getConfigs() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getConfigs(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("queries"); - sb.append(space); - sb.append(":").append(space); - if (this.getQueries() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getQueries(), 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/AddGroupReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddGroupReq.java deleted file mode 100644 index 8f33f1678..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddGroupReq.java +++ /dev/null @@ -1,375 +0,0 @@ -/** - * 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 AddGroupReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("AddGroupReq"); - private static final TField GROUP_NAME_FIELD_DESC = new TField("group_name", TType.STRING, (short)1); - private static final TField ZONE_NAMES_FIELD_DESC = new TField("zone_names", TType.LIST, (short)2); - - public byte[] group_name; - public List zone_names; - public static final int GROUP_NAME = 1; - public static final int ZONE_NAMES = 2; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(GROUP_NAME, new FieldMetaData("group_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(ZONE_NAMES, new FieldMetaData("zone_names", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(AddGroupReq.class, metaDataMap); - } - - public AddGroupReq() { - } - - public AddGroupReq( - byte[] group_name, - List zone_names) { - this(); - this.group_name = group_name; - this.zone_names = zone_names; - } - - public static class Builder { - private byte[] group_name; - private List zone_names; - - public Builder() { - } - - public Builder setGroup_name(final byte[] group_name) { - this.group_name = group_name; - return this; - } - - public Builder setZone_names(final List zone_names) { - this.zone_names = zone_names; - return this; - } - - public AddGroupReq build() { - AddGroupReq result = new AddGroupReq(); - result.setGroup_name(this.group_name); - result.setZone_names(this.zone_names); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public AddGroupReq(AddGroupReq other) { - if (other.isSetGroup_name()) { - this.group_name = TBaseHelper.deepCopy(other.group_name); - } - if (other.isSetZone_names()) { - this.zone_names = TBaseHelper.deepCopy(other.zone_names); - } - } - - public AddGroupReq deepCopy() { - return new AddGroupReq(this); - } - - public byte[] getGroup_name() { - return this.group_name; - } - - public AddGroupReq setGroup_name(byte[] group_name) { - this.group_name = group_name; - return this; - } - - public void unsetGroup_name() { - this.group_name = null; - } - - // Returns true if field group_name is set (has been assigned a value) and false otherwise - public boolean isSetGroup_name() { - return this.group_name != null; - } - - public void setGroup_nameIsSet(boolean __value) { - if (!__value) { - this.group_name = null; - } - } - - public List getZone_names() { - return this.zone_names; - } - - public AddGroupReq setZone_names(List zone_names) { - this.zone_names = zone_names; - return this; - } - - public void unsetZone_names() { - this.zone_names = null; - } - - // Returns true if field zone_names is set (has been assigned a value) and false otherwise - public boolean isSetZone_names() { - return this.zone_names != null; - } - - public void setZone_namesIsSet(boolean __value) { - if (!__value) { - this.zone_names = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case GROUP_NAME: - if (__value == null) { - unsetGroup_name(); - } else { - setGroup_name((byte[])__value); - } - break; - - case ZONE_NAMES: - if (__value == null) { - unsetZone_names(); - } else { - setZone_names((List)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case GROUP_NAME: - return getGroup_name(); - - case ZONE_NAMES: - return getZone_names(); - - 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 AddGroupReq)) - return false; - AddGroupReq that = (AddGroupReq)_that; - - if (!TBaseHelper.equalsSlow(this.isSetGroup_name(), that.isSetGroup_name(), this.group_name, that.group_name)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetZone_names(), that.isSetZone_names(), this.zone_names, that.zone_names)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {group_name, zone_names}); - } - - @Override - public int compareTo(AddGroupReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetGroup_name()).compareTo(other.isSetGroup_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(group_name, other.group_name); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetZone_names()).compareTo(other.isSetZone_names()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(zone_names, other.zone_names); - 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 GROUP_NAME: - if (__field.type == TType.STRING) { - this.group_name = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case ZONE_NAMES: - if (__field.type == TType.LIST) { - { - 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[] _elem212; - _elem212 = iprot.readBinary(); - this.zone_names.add(_elem212); - } - 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.group_name != null) { - oprot.writeFieldBegin(GROUP_NAME_FIELD_DESC); - oprot.writeBinary(this.group_name); - oprot.writeFieldEnd(); - } - if (this.zone_names != null) { - oprot.writeFieldBegin(ZONE_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new TList(TType.STRING, this.zone_names.size())); - for (byte[] _iter213 : this.zone_names) { - oprot.writeBinary(_iter213); - } - 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("AddGroupReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("group_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getGroup_name() == null) { - sb.append("null"); - } else { - int __group_name_size = Math.min(this.getGroup_name().length, 128); - for (int i = 0; i < __group_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getGroup_name()[i]).length() > 1 ? Integer.toHexString(this.getGroup_name()[i]).substring(Integer.toHexString(this.getGroup_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getGroup_name()[i]).toUpperCase()); - } - if (this.getGroup_name().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("zone_names"); - sb.append(space); - sb.append(":").append(space); - if (this.getZone_names() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getZone_names(), 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/AddHostIntoZoneReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddHostIntoZoneReq.java deleted file mode 100644 index 85783430d..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddHostIntoZoneReq.java +++ /dev/null @@ -1,356 +0,0 @@ -/** - * 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 AddHostIntoZoneReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("AddHostIntoZoneReq"); - private static final TField NODE_FIELD_DESC = new TField("node", TType.STRUCT, (short)1); - private static final TField ZONE_NAME_FIELD_DESC = new TField("zone_name", TType.STRING, (short)2); - - public com.vesoft.nebula.HostAddr node; - public byte[] zone_name; - public static final int NODE = 1; - public static final int ZONE_NAME = 2; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(NODE, new FieldMetaData("node", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(ZONE_NAME, new FieldMetaData("zone_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(AddHostIntoZoneReq.class, metaDataMap); - } - - public AddHostIntoZoneReq() { - } - - public AddHostIntoZoneReq( - com.vesoft.nebula.HostAddr node, - byte[] zone_name) { - this(); - this.node = node; - this.zone_name = zone_name; - } - - public static class Builder { - private com.vesoft.nebula.HostAddr node; - private byte[] zone_name; - - public Builder() { - } - - public Builder setNode(final com.vesoft.nebula.HostAddr node) { - this.node = node; - return this; - } - - public Builder setZone_name(final byte[] zone_name) { - this.zone_name = zone_name; - return this; - } - - public AddHostIntoZoneReq build() { - AddHostIntoZoneReq result = new AddHostIntoZoneReq(); - result.setNode(this.node); - result.setZone_name(this.zone_name); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public AddHostIntoZoneReq(AddHostIntoZoneReq other) { - if (other.isSetNode()) { - this.node = TBaseHelper.deepCopy(other.node); - } - if (other.isSetZone_name()) { - this.zone_name = TBaseHelper.deepCopy(other.zone_name); - } - } - - public AddHostIntoZoneReq deepCopy() { - return new AddHostIntoZoneReq(this); - } - - public com.vesoft.nebula.HostAddr getNode() { - return this.node; - } - - public AddHostIntoZoneReq setNode(com.vesoft.nebula.HostAddr node) { - this.node = node; - return this; - } - - public void unsetNode() { - this.node = null; - } - - // Returns true if field node is set (has been assigned a value) and false otherwise - public boolean isSetNode() { - return this.node != null; - } - - public void setNodeIsSet(boolean __value) { - if (!__value) { - this.node = null; - } - } - - public byte[] getZone_name() { - return this.zone_name; - } - - public AddHostIntoZoneReq setZone_name(byte[] zone_name) { - this.zone_name = zone_name; - return this; - } - - public void unsetZone_name() { - this.zone_name = null; - } - - // Returns true if field zone_name is set (has been assigned a value) and false otherwise - public boolean isSetZone_name() { - return this.zone_name != null; - } - - public void setZone_nameIsSet(boolean __value) { - if (!__value) { - this.zone_name = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case NODE: - if (__value == null) { - unsetNode(); - } else { - setNode((com.vesoft.nebula.HostAddr)__value); - } - break; - - case ZONE_NAME: - if (__value == null) { - unsetZone_name(); - } else { - setZone_name((byte[])__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case NODE: - return getNode(); - - case ZONE_NAME: - return getZone_name(); - - 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 AddHostIntoZoneReq)) - return false; - AddHostIntoZoneReq that = (AddHostIntoZoneReq)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetNode(), that.isSetNode(), this.node, that.node)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetZone_name(), that.isSetZone_name(), this.zone_name, that.zone_name)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {node, zone_name}); - } - - @Override - public int compareTo(AddHostIntoZoneReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetNode()).compareTo(other.isSetNode()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(node, other.node); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetZone_name()).compareTo(other.isSetZone_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(zone_name, other.zone_name); - 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 NODE: - if (__field.type == TType.STRUCT) { - this.node = new com.vesoft.nebula.HostAddr(); - this.node.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case ZONE_NAME: - if (__field.type == TType.STRING) { - this.zone_name = 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); - if (this.node != null) { - oprot.writeFieldBegin(NODE_FIELD_DESC); - this.node.write(oprot); - oprot.writeFieldEnd(); - } - if (this.zone_name != null) { - oprot.writeFieldBegin(ZONE_NAME_FIELD_DESC); - oprot.writeBinary(this.zone_name); - 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("AddHostIntoZoneReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("node"); - sb.append(space); - sb.append(":").append(space); - if (this.getNode() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getNode(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("zone_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getZone_name() == null) { - sb.append("null"); - } else { - int __zone_name_size = Math.min(this.getZone_name().length, 128); - for (int i = 0; i < __zone_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getZone_name()[i]).length() > 1 ? Integer.toHexString(this.getZone_name()[i]).substring(Integer.toHexString(this.getZone_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getZone_name()[i]).toUpperCase()); - } - if (this.getZone_name().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/meta/AddHostsIntoZoneReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddHostsIntoZoneReq.java index ac8fdfb53..8b648b877 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddHostsIntoZoneReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AddHostsIntoZoneReq.java @@ -329,16 +329,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - 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) + TList _list228 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list228.size)); + for (int _i229 = 0; + (_list228.size < 0) ? iprot.peekList() : (_i229 < _list228.size); + ++_i229) { - com.vesoft.nebula.HostAddr _elem226; - _elem226 = new com.vesoft.nebula.HostAddr(); - _elem226.read(iprot); - this.hosts.add(_elem226); + com.vesoft.nebula.HostAddr _elem230; + _elem230 = new com.vesoft.nebula.HostAddr(); + _elem230.read(iprot); + this.hosts.add(_elem230); } iprot.readListEnd(); } @@ -382,8 +382,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 _iter227 : this.hosts) { - _iter227.write(oprot); + for (com.vesoft.nebula.HostAddr _iter231 : this.hosts) { + _iter231.write(oprot); } 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 4ed5f7422..387723ac1 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 _list240 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list240.size)); - for (int _i241 = 0; - (_list240.size < 0) ? iprot.peekList() : (_i241 < _list240.size); - ++_i241) + TList _list244 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list244.size)); + for (int _i245 = 0; + (_list244.size < 0) ? iprot.peekList() : (_i245 < _list244.size); + ++_i245) { - com.vesoft.nebula.HostAddr _elem242; - _elem242 = new com.vesoft.nebula.HostAddr(); - _elem242.read(iprot); - this.hosts.add(_elem242); + com.vesoft.nebula.HostAddr _elem246; + _elem246 = new com.vesoft.nebula.HostAddr(); + _elem246.read(iprot); + this.hosts.add(_elem246); } 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 _iter243 : this.hosts) { - _iter243.write(oprot); + for (com.vesoft.nebula.HostAddr _iter247 : this.hosts) { + _iter247.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/AddZoneIntoGroupReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddZoneIntoGroupReq.java deleted file mode 100644 index b3eec6577..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddZoneIntoGroupReq.java +++ /dev/null @@ -1,360 +0,0 @@ -/** - * 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 AddZoneIntoGroupReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("AddZoneIntoGroupReq"); - private static final TField ZONE_NAME_FIELD_DESC = new TField("zone_name", TType.STRING, (short)1); - private static final TField GROUP_NAME_FIELD_DESC = new TField("group_name", TType.STRING, (short)2); - - public byte[] zone_name; - public byte[] group_name; - public static final int ZONE_NAME = 1; - public static final int GROUP_NAME = 2; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(ZONE_NAME, new FieldMetaData("zone_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(GROUP_NAME, new FieldMetaData("group_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(AddZoneIntoGroupReq.class, metaDataMap); - } - - public AddZoneIntoGroupReq() { - } - - public AddZoneIntoGroupReq( - byte[] zone_name, - byte[] group_name) { - this(); - this.zone_name = zone_name; - this.group_name = group_name; - } - - public static class Builder { - private byte[] zone_name; - private byte[] group_name; - - public Builder() { - } - - public Builder setZone_name(final byte[] zone_name) { - this.zone_name = zone_name; - return this; - } - - public Builder setGroup_name(final byte[] group_name) { - this.group_name = group_name; - return this; - } - - public AddZoneIntoGroupReq build() { - AddZoneIntoGroupReq result = new AddZoneIntoGroupReq(); - result.setZone_name(this.zone_name); - result.setGroup_name(this.group_name); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public AddZoneIntoGroupReq(AddZoneIntoGroupReq other) { - if (other.isSetZone_name()) { - this.zone_name = TBaseHelper.deepCopy(other.zone_name); - } - if (other.isSetGroup_name()) { - this.group_name = TBaseHelper.deepCopy(other.group_name); - } - } - - public AddZoneIntoGroupReq deepCopy() { - return new AddZoneIntoGroupReq(this); - } - - public byte[] getZone_name() { - return this.zone_name; - } - - public AddZoneIntoGroupReq setZone_name(byte[] zone_name) { - this.zone_name = zone_name; - return this; - } - - public void unsetZone_name() { - this.zone_name = null; - } - - // Returns true if field zone_name is set (has been assigned a value) and false otherwise - public boolean isSetZone_name() { - return this.zone_name != null; - } - - public void setZone_nameIsSet(boolean __value) { - if (!__value) { - this.zone_name = null; - } - } - - public byte[] getGroup_name() { - return this.group_name; - } - - public AddZoneIntoGroupReq setGroup_name(byte[] group_name) { - this.group_name = group_name; - return this; - } - - public void unsetGroup_name() { - this.group_name = null; - } - - // Returns true if field group_name is set (has been assigned a value) and false otherwise - public boolean isSetGroup_name() { - return this.group_name != null; - } - - public void setGroup_nameIsSet(boolean __value) { - if (!__value) { - this.group_name = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case ZONE_NAME: - if (__value == null) { - unsetZone_name(); - } else { - setZone_name((byte[])__value); - } - break; - - case GROUP_NAME: - if (__value == null) { - unsetGroup_name(); - } else { - setGroup_name((byte[])__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case ZONE_NAME: - return getZone_name(); - - case GROUP_NAME: - return getGroup_name(); - - 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 AddZoneIntoGroupReq)) - return false; - AddZoneIntoGroupReq that = (AddZoneIntoGroupReq)_that; - - if (!TBaseHelper.equalsSlow(this.isSetZone_name(), that.isSetZone_name(), this.zone_name, that.zone_name)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetGroup_name(), that.isSetGroup_name(), this.group_name, that.group_name)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {zone_name, group_name}); - } - - @Override - public int compareTo(AddZoneIntoGroupReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetZone_name()).compareTo(other.isSetZone_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(zone_name, other.zone_name); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetGroup_name()).compareTo(other.isSetGroup_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(group_name, other.group_name); - 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 ZONE_NAME: - if (__field.type == TType.STRING) { - this.zone_name = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case GROUP_NAME: - if (__field.type == TType.STRING) { - this.group_name = 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); - if (this.zone_name != null) { - oprot.writeFieldBegin(ZONE_NAME_FIELD_DESC); - oprot.writeBinary(this.zone_name); - oprot.writeFieldEnd(); - } - if (this.group_name != null) { - oprot.writeFieldBegin(GROUP_NAME_FIELD_DESC); - oprot.writeBinary(this.group_name); - 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("AddZoneIntoGroupReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("zone_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getZone_name() == null) { - sb.append("null"); - } else { - int __zone_name_size = Math.min(this.getZone_name().length, 128); - for (int i = 0; i < __zone_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getZone_name()[i]).length() > 1 ? Integer.toHexString(this.getZone_name()[i]).substring(Integer.toHexString(this.getZone_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getZone_name()[i]).toUpperCase()); - } - if (this.getZone_name().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("group_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getGroup_name() == null) { - sb.append("null"); - } else { - int __group_name_size = Math.min(this.getGroup_name().length, 128); - for (int i = 0; i < __group_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getGroup_name()[i]).length() > 1 ? Integer.toHexString(this.getGroup_name()[i]).substring(Integer.toHexString(this.getGroup_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getGroup_name()[i]).toUpperCase()); - } - if (this.getGroup_name().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/meta/AddZoneReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddZoneReq.java deleted file mode 100644 index ad8c74265..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddZoneReq.java +++ /dev/null @@ -1,376 +0,0 @@ -/** - * 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 AddZoneReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("AddZoneReq"); - private static final TField ZONE_NAME_FIELD_DESC = new TField("zone_name", TType.STRING, (short)1); - private static final TField NODES_FIELD_DESC = new TField("nodes", TType.LIST, (short)2); - - public byte[] zone_name; - public List nodes; - public static final int ZONE_NAME = 1; - public static final int NODES = 2; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(ZONE_NAME, new FieldMetaData("zone_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(NODES, new FieldMetaData("nodes", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(AddZoneReq.class, metaDataMap); - } - - public AddZoneReq() { - } - - public AddZoneReq( - byte[] zone_name, - List nodes) { - this(); - this.zone_name = zone_name; - this.nodes = nodes; - } - - public static class Builder { - private byte[] zone_name; - private List nodes; - - public Builder() { - } - - public Builder setZone_name(final byte[] zone_name) { - this.zone_name = zone_name; - return this; - } - - public Builder setNodes(final List nodes) { - this.nodes = nodes; - return this; - } - - public AddZoneReq build() { - AddZoneReq result = new AddZoneReq(); - result.setZone_name(this.zone_name); - result.setNodes(this.nodes); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public AddZoneReq(AddZoneReq other) { - if (other.isSetZone_name()) { - this.zone_name = TBaseHelper.deepCopy(other.zone_name); - } - if (other.isSetNodes()) { - this.nodes = TBaseHelper.deepCopy(other.nodes); - } - } - - public AddZoneReq deepCopy() { - return new AddZoneReq(this); - } - - public byte[] getZone_name() { - return this.zone_name; - } - - public AddZoneReq setZone_name(byte[] zone_name) { - this.zone_name = zone_name; - return this; - } - - public void unsetZone_name() { - this.zone_name = null; - } - - // Returns true if field zone_name is set (has been assigned a value) and false otherwise - public boolean isSetZone_name() { - return this.zone_name != null; - } - - public void setZone_nameIsSet(boolean __value) { - if (!__value) { - this.zone_name = null; - } - } - - public List getNodes() { - return this.nodes; - } - - public AddZoneReq setNodes(List nodes) { - this.nodes = nodes; - return this; - } - - public void unsetNodes() { - this.nodes = null; - } - - // Returns true if field nodes is set (has been assigned a value) and false otherwise - public boolean isSetNodes() { - return this.nodes != null; - } - - public void setNodesIsSet(boolean __value) { - if (!__value) { - this.nodes = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case ZONE_NAME: - if (__value == null) { - unsetZone_name(); - } else { - setZone_name((byte[])__value); - } - break; - - case NODES: - if (__value == null) { - unsetNodes(); - } else { - setNodes((List)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case ZONE_NAME: - return getZone_name(); - - case NODES: - return getNodes(); - - 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 AddZoneReq)) - return false; - AddZoneReq that = (AddZoneReq)_that; - - if (!TBaseHelper.equalsSlow(this.isSetZone_name(), that.isSetZone_name(), this.zone_name, that.zone_name)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetNodes(), that.isSetNodes(), this.nodes, that.nodes)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {zone_name, nodes}); - } - - @Override - public int compareTo(AddZoneReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetZone_name()).compareTo(other.isSetZone_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(zone_name, other.zone_name); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetNodes()).compareTo(other.isSetNodes()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(nodes, other.nodes); - 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 ZONE_NAME: - if (__field.type == TType.STRING) { - this.zone_name = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case NODES: - if (__field.type == TType.LIST) { - { - 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 _elem210; - _elem210 = new com.vesoft.nebula.HostAddr(); - _elem210.read(iprot); - this.nodes.add(_elem210); - } - 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.zone_name != null) { - oprot.writeFieldBegin(ZONE_NAME_FIELD_DESC); - oprot.writeBinary(this.zone_name); - oprot.writeFieldEnd(); - } - if (this.nodes != null) { - oprot.writeFieldBegin(NODES_FIELD_DESC); - { - oprot.writeListBegin(new TList(TType.STRUCT, this.nodes.size())); - for (com.vesoft.nebula.HostAddr _iter211 : this.nodes) { - _iter211.write(oprot); - } - 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("AddZoneReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("zone_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getZone_name() == null) { - sb.append("null"); - } else { - int __zone_name_size = Math.min(this.getZone_name().length, 128); - for (int i = 0; i < __zone_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getZone_name()[i]).length() > 1 ? Integer.toHexString(this.getZone_name()[i]).substring(Integer.toHexString(this.getZone_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getZone_name()[i]).toUpperCase()); - } - if (this.getZone_name().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("nodes"); - sb.append(space); - sb.append(":").append(space); - if (this.getNodes() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getNodes(), 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/AgentHBReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AgentHBReq.java new file mode 100644 index 000000000..2fb303732 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/AgentHBReq.java @@ -0,0 +1,459 @@ +/** + * 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 AgentHBReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("AgentHBReq"); + private static final TField HOST_FIELD_DESC = new TField("host", TType.STRUCT, (short)1); + private static final TField GIT_INFO_SHA_FIELD_DESC = new TField("git_info_sha", TType.STRING, (short)2); + private static final TField VERSION_FIELD_DESC = new TField("version", TType.STRING, (short)3); + + public com.vesoft.nebula.HostAddr host; + public byte[] git_info_sha; + public byte[] version; + public static final int HOST = 1; + public static final int GIT_INFO_SHA = 2; + public static final int VERSION = 3; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(HOST, new FieldMetaData("host", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.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))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(AgentHBReq.class, metaDataMap); + } + + public AgentHBReq() { + } + + public AgentHBReq( + com.vesoft.nebula.HostAddr host, + byte[] git_info_sha) { + this(); + this.host = host; + this.git_info_sha = git_info_sha; + } + + public AgentHBReq( + com.vesoft.nebula.HostAddr host, + byte[] git_info_sha, + byte[] version) { + this(); + this.host = host; + this.git_info_sha = git_info_sha; + this.version = version; + } + + public static class Builder { + private com.vesoft.nebula.HostAddr host; + private byte[] git_info_sha; + private byte[] version; + + public Builder() { + } + + public Builder setHost(final com.vesoft.nebula.HostAddr host) { + this.host = host; + return this; + } + + public Builder setGit_info_sha(final byte[] git_info_sha) { + this.git_info_sha = git_info_sha; + return this; + } + + public Builder setVersion(final byte[] version) { + this.version = version; + return this; + } + + public AgentHBReq build() { + AgentHBReq result = new AgentHBReq(); + result.setHost(this.host); + result.setGit_info_sha(this.git_info_sha); + result.setVersion(this.version); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public AgentHBReq(AgentHBReq other) { + if (other.isSetHost()) { + this.host = TBaseHelper.deepCopy(other.host); + } + if (other.isSetGit_info_sha()) { + this.git_info_sha = TBaseHelper.deepCopy(other.git_info_sha); + } + if (other.isSetVersion()) { + this.version = TBaseHelper.deepCopy(other.version); + } + } + + public AgentHBReq deepCopy() { + return new AgentHBReq(this); + } + + public com.vesoft.nebula.HostAddr getHost() { + return this.host; + } + + public AgentHBReq 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 byte[] getGit_info_sha() { + return this.git_info_sha; + } + + public AgentHBReq setGit_info_sha(byte[] git_info_sha) { + this.git_info_sha = git_info_sha; + return this; + } + + public void unsetGit_info_sha() { + this.git_info_sha = null; + } + + // Returns true if field git_info_sha is set (has been assigned a value) and false otherwise + public boolean isSetGit_info_sha() { + return this.git_info_sha != null; + } + + public void setGit_info_shaIsSet(boolean __value) { + if (!__value) { + this.git_info_sha = null; + } + } + + public byte[] getVersion() { + return this.version; + } + + public AgentHBReq setVersion(byte[] version) { + this.version = version; + return this; + } + + public void unsetVersion() { + this.version = null; + } + + // Returns true if field version is set (has been assigned a value) and false otherwise + public boolean isSetVersion() { + return this.version != null; + } + + public void setVersionIsSet(boolean __value) { + if (!__value) { + this.version = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case HOST: + if (__value == null) { + unsetHost(); + } else { + setHost((com.vesoft.nebula.HostAddr)__value); + } + break; + + case GIT_INFO_SHA: + if (__value == null) { + unsetGit_info_sha(); + } else { + setGit_info_sha((byte[])__value); + } + break; + + case VERSION: + if (__value == null) { + unsetVersion(); + } else { + setVersion((byte[])__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case HOST: + return getHost(); + + case GIT_INFO_SHA: + return getGit_info_sha(); + + case VERSION: + return getVersion(); + + 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 AgentHBReq)) + return false; + AgentHBReq that = (AgentHBReq)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetHost(), that.isSetHost(), this.host, that.host)) { return false; } + + 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; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {host, git_info_sha, version}); + } + + @Override + public int compareTo(AgentHBReq other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetHost()).compareTo(other.isSetHost()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(host, other.host); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetGit_info_sha()).compareTo(other.isSetGit_info_sha()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(git_info_sha, other.git_info_sha); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(version, other.version); + 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 HOST: + if (__field.type == TType.STRUCT) { + this.host = new com.vesoft.nebula.HostAddr(); + this.host.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case GIT_INFO_SHA: + if (__field.type == TType.STRING) { + this.git_info_sha = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case VERSION: + if (__field.type == TType.STRING) { + this.version = 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); + if (this.host != null) { + oprot.writeFieldBegin(HOST_FIELD_DESC); + this.host.write(oprot); + oprot.writeFieldEnd(); + } + if (this.git_info_sha != null) { + oprot.writeFieldBegin(GIT_INFO_SHA_FIELD_DESC); + oprot.writeBinary(this.git_info_sha); + oprot.writeFieldEnd(); + } + if (this.version != null) { + if (isSetVersion()) { + oprot.writeFieldBegin(VERSION_FIELD_DESC); + oprot.writeBinary(this.version); + 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("AgentHBReq"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + 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; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("git_info_sha"); + sb.append(space); + sb.append(":").append(space); + if (this.getGit_info_sha() == null) { + sb.append("null"); + } else { + int __git_info_sha_size = Math.min(this.getGit_info_sha().length, 128); + for (int i = 0; i < __git_info_sha_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getGit_info_sha()[i]).length() > 1 ? Integer.toHexString(this.getGit_info_sha()[i]).substring(Integer.toHexString(this.getGit_info_sha()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getGit_info_sha()[i]).toUpperCase()); + } + if (this.getGit_info_sha().length > 128) sb.append(" ..."); + } + first = false; + if (isSetVersion()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("version"); + sb.append(space); + sb.append(":").append(space); + if (this.getVersion() == 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(" ..."); + } + 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/ListGroupsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/AgentHBResp.java similarity index 72% rename from client/src/main/generated/com/vesoft/nebula/meta/ListGroupsResp.java rename to client/src/main/generated/com/vesoft/nebula/meta/AgentHBResp.java index c7ddca52f..f85d0c649 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListGroupsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AgentHBResp.java @@ -24,11 +24,11 @@ import com.facebook.thrift.protocol.*; @SuppressWarnings({ "unused", "serial" }) -public class ListGroupsResp implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("ListGroupsResp"); +public class AgentHBResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("AgentHBResp"); private static final TField CODE_FIELD_DESC = new TField("code", TType.I32, (short)1); private static final TField LEADER_FIELD_DESC = new TField("leader", TType.STRUCT, (short)2); - private static final TField GROUPS_FIELD_DESC = new TField("groups", TType.LIST, (short)3); + private static final TField SERVICE_LIST_FIELD_DESC = new TField("service_list", TType.LIST, (short)3); /** * @@ -36,10 +36,10 @@ public class ListGroupsResp implements TBase, java.io.Serializable, Cloneable, C */ public com.vesoft.nebula.ErrorCode code; public com.vesoft.nebula.HostAddr leader; - public List groups; + public List service_list; public static final int CODE = 1; public static final int LEADER = 2; - public static final int GROUPS = 3; + public static final int SERVICE_LIST = 3; // isset id assignments @@ -51,33 +51,33 @@ public class ListGroupsResp implements TBase, java.io.Serializable, Cloneable, C new FieldValueMetaData(TType.I32))); tmpMetaDataMap.put(LEADER, new FieldMetaData("leader", TFieldRequirementType.DEFAULT, new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(GROUPS, new FieldMetaData("groups", TFieldRequirementType.DEFAULT, + tmpMetaDataMap.put(SERVICE_LIST, new FieldMetaData("service_list", TFieldRequirementType.DEFAULT, new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Group.class)))); + new StructMetaData(TType.STRUCT, ServiceInfo.class)))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(ListGroupsResp.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(AgentHBResp.class, metaDataMap); } - public ListGroupsResp() { + public AgentHBResp() { } - public ListGroupsResp( + public AgentHBResp( com.vesoft.nebula.ErrorCode code, com.vesoft.nebula.HostAddr leader, - List groups) { + List service_list) { this(); this.code = code; this.leader = leader; - this.groups = groups; + this.service_list = service_list; } public static class Builder { private com.vesoft.nebula.ErrorCode code; private com.vesoft.nebula.HostAddr leader; - private List groups; + private List service_list; public Builder() { } @@ -92,16 +92,16 @@ public Builder setLeader(final com.vesoft.nebula.HostAddr leader) { return this; } - public Builder setGroups(final List groups) { - this.groups = groups; + public Builder setService_list(final List service_list) { + this.service_list = service_list; return this; } - public ListGroupsResp build() { - ListGroupsResp result = new ListGroupsResp(); + public AgentHBResp build() { + AgentHBResp result = new AgentHBResp(); result.setCode(this.code); result.setLeader(this.leader); - result.setGroups(this.groups); + result.setService_list(this.service_list); return result; } } @@ -113,20 +113,20 @@ public static Builder builder() { /** * Performs a deep copy on other. */ - public ListGroupsResp(ListGroupsResp other) { + public AgentHBResp(AgentHBResp other) { if (other.isSetCode()) { this.code = TBaseHelper.deepCopy(other.code); } if (other.isSetLeader()) { this.leader = TBaseHelper.deepCopy(other.leader); } - if (other.isSetGroups()) { - this.groups = TBaseHelper.deepCopy(other.groups); + if (other.isSetService_list()) { + this.service_list = TBaseHelper.deepCopy(other.service_list); } } - public ListGroupsResp deepCopy() { - return new ListGroupsResp(this); + public AgentHBResp deepCopy() { + return new AgentHBResp(this); } /** @@ -141,7 +141,7 @@ public com.vesoft.nebula.ErrorCode getCode() { * * @see com.vesoft.nebula.ErrorCode */ - public ListGroupsResp setCode(com.vesoft.nebula.ErrorCode code) { + public AgentHBResp setCode(com.vesoft.nebula.ErrorCode code) { this.code = code; return this; } @@ -165,7 +165,7 @@ public com.vesoft.nebula.HostAddr getLeader() { return this.leader; } - public ListGroupsResp setLeader(com.vesoft.nebula.HostAddr leader) { + public AgentHBResp setLeader(com.vesoft.nebula.HostAddr leader) { this.leader = leader; return this; } @@ -185,27 +185,27 @@ public void setLeaderIsSet(boolean __value) { } } - public List getGroups() { - return this.groups; + public List getService_list() { + return this.service_list; } - public ListGroupsResp setGroups(List groups) { - this.groups = groups; + public AgentHBResp setService_list(List service_list) { + this.service_list = service_list; return this; } - public void unsetGroups() { - this.groups = null; + public void unsetService_list() { + this.service_list = null; } - // Returns true if field groups is set (has been assigned a value) and false otherwise - public boolean isSetGroups() { - return this.groups != null; + // Returns true if field service_list is set (has been assigned a value) and false otherwise + public boolean isSetService_list() { + return this.service_list != null; } - public void setGroupsIsSet(boolean __value) { + public void setService_listIsSet(boolean __value) { if (!__value) { - this.groups = null; + this.service_list = null; } } @@ -228,11 +228,11 @@ public void setFieldValue(int fieldID, Object __value) { } break; - case GROUPS: + case SERVICE_LIST: if (__value == null) { - unsetGroups(); + unsetService_list(); } else { - setGroups((List)__value); + setService_list((List)__value); } break; @@ -249,8 +249,8 @@ public Object getFieldValue(int fieldID) { case LEADER: return getLeader(); - case GROUPS: - return getGroups(); + case SERVICE_LIST: + return getService_list(); default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); @@ -263,26 +263,26 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof ListGroupsResp)) + if (!(_that instanceof AgentHBResp)) return false; - ListGroupsResp that = (ListGroupsResp)_that; + AgentHBResp that = (AgentHBResp)_that; if (!TBaseHelper.equalsNobinary(this.isSetCode(), that.isSetCode(), this.code, that.code)) { return false; } if (!TBaseHelper.equalsNobinary(this.isSetLeader(), that.isSetLeader(), this.leader, that.leader)) { return false; } - if (!TBaseHelper.equalsNobinary(this.isSetGroups(), that.isSetGroups(), this.groups, that.groups)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetService_list(), that.isSetService_list(), this.service_list, that.service_list)) { return false; } return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {code, leader, groups}); + return Arrays.deepHashCode(new Object[] {code, leader, service_list}); } @Override - public int compareTo(ListGroupsResp other) { + public int compareTo(AgentHBResp other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -309,11 +309,11 @@ public int compareTo(ListGroupsResp other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups()); + lastComparison = Boolean.valueOf(isSetService_list()).compareTo(other.isSetService_list()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(groups, other.groups); + lastComparison = TBaseHelper.compareTo(service_list, other.service_list); if (lastComparison != 0) { return lastComparison; } @@ -346,19 +346,19 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case GROUPS: + case SERVICE_LIST: if (__field.type == TType.LIST) { { - 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) + TList _list175 = iprot.readListBegin(); + this.service_list = new ArrayList(Math.max(0, _list175.size)); + for (int _i176 = 0; + (_list175.size < 0) ? iprot.peekList() : (_i176 < _list175.size); + ++_i176) { - Group _elem224; - _elem224 = new Group(); - _elem224.read(iprot); - this.groups.add(_elem224); + ServiceInfo _elem177; + _elem177 = new ServiceInfo(); + _elem177.read(iprot); + this.service_list.add(_elem177); } iprot.readListEnd(); } @@ -393,12 +393,12 @@ public void write(TProtocol oprot) throws TException { this.leader.write(oprot); oprot.writeFieldEnd(); } - if (this.groups != null) { - oprot.writeFieldBegin(GROUPS_FIELD_DESC); + if (this.service_list != null) { + oprot.writeFieldBegin(SERVICE_LIST_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.groups.size())); - for (Group _iter225 : this.groups) { - _iter225.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, this.service_list.size())); + for (ServiceInfo _iter178 : this.service_list) { + _iter178.write(oprot); } oprot.writeListEnd(); } @@ -418,7 +418,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("ListGroupsResp"); + StringBuilder sb = new StringBuilder("AgentHBResp"); sb.append(space); sb.append("("); sb.append(newLine); @@ -455,13 +455,13 @@ public String toString(int indent, boolean prettyPrint) { first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); - sb.append("groups"); + sb.append("service_list"); sb.append(space); sb.append(":").append(space); - if (this.getGroups() == null) { + if (this.getService_list() == null) { sb.append("null"); } else { - sb.append(TBaseHelper.toString(this.getGroups(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.getService_list(), indent + 1, prettyPrint)); } first = false; sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); 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 0ab43acc0..fd8acb68b 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java @@ -26,29 +26,29 @@ @SuppressWarnings({ "unused", "serial" }) public class BackupMeta implements TBase, java.io.Serializable, Cloneable, Comparable { private static final TStruct STRUCT_DESC = new TStruct("BackupMeta"); - private static final TField BACKUP_INFO_FIELD_DESC = new TField("backup_info", TType.MAP, (short)1); + private static final TField SPACE_BACKUPS_FIELD_DESC = new TField("space_backups", TType.MAP, (short)1); private static final TField META_FILES_FIELD_DESC = new TField("meta_files", TType.LIST, (short)2); private static final TField BACKUP_NAME_FIELD_DESC = new TField("backup_name", TType.STRING, (short)3); private static final TField FULL_FIELD_DESC = new TField("full", TType.BOOL, (short)4); - private static final TField INCLUDE_SYSTEM_SPACE_FIELD_DESC = new TField("include_system_space", TType.BOOL, (short)5); + private static final TField ALL_SPACES_FIELD_DESC = new TField("all_spaces", TType.BOOL, (short)5); private static final TField CREATE_TIME_FIELD_DESC = new TField("create_time", TType.I64, (short)6); - public Map backup_info; + public Map space_backups; public List meta_files; public byte[] backup_name; public boolean full; - public boolean include_system_space; + public boolean all_spaces; public long create_time; - public static final int BACKUP_INFO = 1; + public static final int SPACE_BACKUPS = 1; public static final int META_FILES = 2; public static final int BACKUP_NAME = 3; public static final int FULL = 4; - public static final int INCLUDE_SYSTEM_SPACE = 5; + public static final int ALL_SPACES = 5; public static final int CREATE_TIME = 6; // isset id assignments private static final int __FULL_ISSET_ID = 0; - private static final int __INCLUDE_SYSTEM_SPACE_ISSET_ID = 1; + private static final int __ALL_SPACES_ISSET_ID = 1; private static final int __CREATE_TIME_ISSET_ID = 2; private BitSet __isset_bit_vector = new BitSet(3); @@ -56,7 +56,7 @@ public class BackupMeta implements TBase, java.io.Serializable, Cloneable, Compa static { Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(BACKUP_INFO, new FieldMetaData("backup_info", TFieldRequirementType.DEFAULT, + tmpMetaDataMap.put(SPACE_BACKUPS, new FieldMetaData("space_backups", TFieldRequirementType.DEFAULT, new MapMetaData(TType.MAP, new FieldValueMetaData(TType.I32), new StructMetaData(TType.STRUCT, SpaceBackupInfo.class)))); @@ -67,7 +67,7 @@ public class BackupMeta implements TBase, java.io.Serializable, Cloneable, Compa new FieldValueMetaData(TType.STRING))); tmpMetaDataMap.put(FULL, new FieldMetaData("full", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.BOOL))); - tmpMetaDataMap.put(INCLUDE_SYSTEM_SPACE, new FieldMetaData("include_system_space", TFieldRequirementType.DEFAULT, + tmpMetaDataMap.put(ALL_SPACES, new FieldMetaData("all_spaces", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.BOOL))); tmpMetaDataMap.put(CREATE_TIME, new FieldMetaData("create_time", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I64))); @@ -82,30 +82,30 @@ public BackupMeta() { } public BackupMeta( - Map backup_info, + Map space_backups, List meta_files, byte[] backup_name, boolean full, - boolean include_system_space, + boolean all_spaces, long create_time) { this(); - this.backup_info = backup_info; + this.space_backups = space_backups; this.meta_files = meta_files; this.backup_name = backup_name; this.full = full; setFullIsSet(true); - this.include_system_space = include_system_space; - setInclude_system_spaceIsSet(true); + this.all_spaces = all_spaces; + setAll_spacesIsSet(true); this.create_time = create_time; setCreate_timeIsSet(true); } public static class Builder { - private Map backup_info; + private Map space_backups; private List meta_files; private byte[] backup_name; private boolean full; - private boolean include_system_space; + private boolean all_spaces; private long create_time; BitSet __optional_isset = new BitSet(3); @@ -113,8 +113,8 @@ public static class Builder { public Builder() { } - public Builder setBackup_info(final Map backup_info) { - this.backup_info = backup_info; + public Builder setSpace_backups(final Map space_backups) { + this.space_backups = space_backups; return this; } @@ -134,9 +134,9 @@ public Builder setFull(final boolean full) { return this; } - public Builder setInclude_system_space(final boolean include_system_space) { - this.include_system_space = include_system_space; - __optional_isset.set(__INCLUDE_SYSTEM_SPACE_ISSET_ID, true); + public Builder setAll_spaces(final boolean all_spaces) { + this.all_spaces = all_spaces; + __optional_isset.set(__ALL_SPACES_ISSET_ID, true); return this; } @@ -148,14 +148,14 @@ public Builder setCreate_time(final long create_time) { public BackupMeta build() { BackupMeta result = new BackupMeta(); - result.setBackup_info(this.backup_info); + result.setSpace_backups(this.space_backups); result.setMeta_files(this.meta_files); result.setBackup_name(this.backup_name); if (__optional_isset.get(__FULL_ISSET_ID)) { result.setFull(this.full); } - if (__optional_isset.get(__INCLUDE_SYSTEM_SPACE_ISSET_ID)) { - result.setInclude_system_space(this.include_system_space); + if (__optional_isset.get(__ALL_SPACES_ISSET_ID)) { + result.setAll_spaces(this.all_spaces); } if (__optional_isset.get(__CREATE_TIME_ISSET_ID)) { result.setCreate_time(this.create_time); @@ -174,8 +174,8 @@ public static Builder builder() { public BackupMeta(BackupMeta other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); - if (other.isSetBackup_info()) { - this.backup_info = TBaseHelper.deepCopy(other.backup_info); + if (other.isSetSpace_backups()) { + this.space_backups = TBaseHelper.deepCopy(other.space_backups); } if (other.isSetMeta_files()) { this.meta_files = TBaseHelper.deepCopy(other.meta_files); @@ -184,7 +184,7 @@ public BackupMeta(BackupMeta other) { this.backup_name = TBaseHelper.deepCopy(other.backup_name); } this.full = TBaseHelper.deepCopy(other.full); - this.include_system_space = TBaseHelper.deepCopy(other.include_system_space); + this.all_spaces = TBaseHelper.deepCopy(other.all_spaces); this.create_time = TBaseHelper.deepCopy(other.create_time); } @@ -192,27 +192,27 @@ public BackupMeta deepCopy() { return new BackupMeta(this); } - public Map getBackup_info() { - return this.backup_info; + public Map getSpace_backups() { + return this.space_backups; } - public BackupMeta setBackup_info(Map backup_info) { - this.backup_info = backup_info; + public BackupMeta setSpace_backups(Map space_backups) { + this.space_backups = space_backups; return this; } - public void unsetBackup_info() { - this.backup_info = null; + public void unsetSpace_backups() { + this.space_backups = null; } - // Returns true if field backup_info is set (has been assigned a value) and false otherwise - public boolean isSetBackup_info() { - return this.backup_info != null; + // Returns true if field space_backups is set (has been assigned a value) and false otherwise + public boolean isSetSpace_backups() { + return this.space_backups != null; } - public void setBackup_infoIsSet(boolean __value) { + public void setSpace_backupsIsSet(boolean __value) { if (!__value) { - this.backup_info = null; + this.space_backups = null; } } @@ -287,27 +287,27 @@ public void setFullIsSet(boolean __value) { __isset_bit_vector.set(__FULL_ISSET_ID, __value); } - public boolean isInclude_system_space() { - return this.include_system_space; + public boolean isAll_spaces() { + return this.all_spaces; } - public BackupMeta setInclude_system_space(boolean include_system_space) { - this.include_system_space = include_system_space; - setInclude_system_spaceIsSet(true); + public BackupMeta setAll_spaces(boolean all_spaces) { + this.all_spaces = all_spaces; + setAll_spacesIsSet(true); return this; } - public void unsetInclude_system_space() { - __isset_bit_vector.clear(__INCLUDE_SYSTEM_SPACE_ISSET_ID); + public void unsetAll_spaces() { + __isset_bit_vector.clear(__ALL_SPACES_ISSET_ID); } - // Returns true if field include_system_space is set (has been assigned a value) and false otherwise - public boolean isSetInclude_system_space() { - return __isset_bit_vector.get(__INCLUDE_SYSTEM_SPACE_ISSET_ID); + // Returns true if field all_spaces is set (has been assigned a value) and false otherwise + public boolean isSetAll_spaces() { + return __isset_bit_vector.get(__ALL_SPACES_ISSET_ID); } - public void setInclude_system_spaceIsSet(boolean __value) { - __isset_bit_vector.set(__INCLUDE_SYSTEM_SPACE_ISSET_ID, __value); + public void setAll_spacesIsSet(boolean __value) { + __isset_bit_vector.set(__ALL_SPACES_ISSET_ID, __value); } public long getCreate_time() { @@ -336,11 +336,11 @@ public void setCreate_timeIsSet(boolean __value) { @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { - case BACKUP_INFO: + case SPACE_BACKUPS: if (__value == null) { - unsetBackup_info(); + unsetSpace_backups(); } else { - setBackup_info((Map)__value); + setSpace_backups((Map)__value); } break; @@ -368,11 +368,11 @@ public void setFieldValue(int fieldID, Object __value) { } break; - case INCLUDE_SYSTEM_SPACE: + case ALL_SPACES: if (__value == null) { - unsetInclude_system_space(); + unsetAll_spaces(); } else { - setInclude_system_space((Boolean)__value); + setAll_spaces((Boolean)__value); } break; @@ -391,8 +391,8 @@ public void setFieldValue(int fieldID, Object __value) { public Object getFieldValue(int fieldID) { switch (fieldID) { - case BACKUP_INFO: - return getBackup_info(); + case SPACE_BACKUPS: + return getSpace_backups(); case META_FILES: return getMeta_files(); @@ -403,8 +403,8 @@ public Object getFieldValue(int fieldID) { case FULL: return new Boolean(isFull()); - case INCLUDE_SYSTEM_SPACE: - return new Boolean(isInclude_system_space()); + case ALL_SPACES: + return new Boolean(isAll_spaces()); case CREATE_TIME: return new Long(getCreate_time()); @@ -424,7 +424,7 @@ public boolean equals(Object _that) { return false; BackupMeta that = (BackupMeta)_that; - if (!TBaseHelper.equalsNobinary(this.isSetBackup_info(), that.isSetBackup_info(), this.backup_info, that.backup_info)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetSpace_backups(), that.isSetSpace_backups(), this.space_backups, that.space_backups)) { return false; } if (!TBaseHelper.equalsSlow(this.isSetMeta_files(), that.isSetMeta_files(), this.meta_files, that.meta_files)) { return false; } @@ -432,7 +432,7 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.full, that.full)) { return false; } - if (!TBaseHelper.equalsNobinary(this.include_system_space, that.include_system_space)) { return false; } + if (!TBaseHelper.equalsNobinary(this.all_spaces, that.all_spaces)) { return false; } if (!TBaseHelper.equalsNobinary(this.create_time, that.create_time)) { return false; } @@ -441,7 +441,7 @@ public boolean equals(Object _that) { @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {backup_info, meta_files, backup_name, full, include_system_space, create_time}); + return Arrays.deepHashCode(new Object[] {space_backups, meta_files, backup_name, full, all_spaces, create_time}); } @Override @@ -456,11 +456,11 @@ public int compareTo(BackupMeta other) { } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetBackup_info()).compareTo(other.isSetBackup_info()); + lastComparison = Boolean.valueOf(isSetSpace_backups()).compareTo(other.isSetSpace_backups()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(backup_info, other.backup_info); + lastComparison = TBaseHelper.compareTo(space_backups, other.space_backups); if (lastComparison != 0) { return lastComparison; } @@ -488,11 +488,11 @@ public int compareTo(BackupMeta other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetInclude_system_space()).compareTo(other.isSetInclude_system_space()); + lastComparison = Boolean.valueOf(isSetAll_spaces()).compareTo(other.isSetAll_spaces()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(include_system_space, other.include_system_space); + lastComparison = TBaseHelper.compareTo(all_spaces, other.all_spaces); if (lastComparison != 0) { return lastComparison; } @@ -518,21 +518,21 @@ public void read(TProtocol iprot) throws TException { } switch (__field.id) { - case BACKUP_INFO: + case SPACE_BACKUPS: if (__field.type == TType.MAP) { { - TMap _map256 = iprot.readMapBegin(); - this.backup_info = new HashMap(Math.max(0, 2*_map256.size)); - for (int _i257 = 0; - (_map256.size < 0) ? iprot.peekMap() : (_i257 < _map256.size); - ++_i257) + TMap _map260 = iprot.readMapBegin(); + this.space_backups = new HashMap(Math.max(0, 2*_map260.size)); + for (int _i261 = 0; + (_map260.size < 0) ? iprot.peekMap() : (_i261 < _map260.size); + ++_i261) { - int _key258; - SpaceBackupInfo _val259; - _key258 = iprot.readI32(); - _val259 = new SpaceBackupInfo(); - _val259.read(iprot); - this.backup_info.put(_key258, _val259); + int _key262; + SpaceBackupInfo _val263; + _key262 = iprot.readI32(); + _val263 = new SpaceBackupInfo(); + _val263.read(iprot); + this.space_backups.put(_key262, _val263); } iprot.readMapEnd(); } @@ -543,15 +543,15 @@ public void read(TProtocol iprot) throws TException { case META_FILES: if (__field.type == TType.LIST) { { - TList _list260 = iprot.readListBegin(); - this.meta_files = new ArrayList(Math.max(0, _list260.size)); - for (int _i261 = 0; - (_list260.size < 0) ? iprot.peekList() : (_i261 < _list260.size); - ++_i261) + TList _list264 = iprot.readListBegin(); + this.meta_files = new ArrayList(Math.max(0, _list264.size)); + for (int _i265 = 0; + (_list264.size < 0) ? iprot.peekList() : (_i265 < _list264.size); + ++_i265) { - byte[] _elem262; - _elem262 = iprot.readBinary(); - this.meta_files.add(_elem262); + byte[] _elem266; + _elem266 = iprot.readBinary(); + this.meta_files.add(_elem266); } iprot.readListEnd(); } @@ -574,10 +574,10 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case INCLUDE_SYSTEM_SPACE: + case ALL_SPACES: if (__field.type == TType.BOOL) { - this.include_system_space = iprot.readBool(); - setInclude_system_spaceIsSet(true); + this.all_spaces = iprot.readBool(); + setAll_spacesIsSet(true); } else { TProtocolUtil.skip(iprot, __field.type); } @@ -607,13 +607,13 @@ public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); - if (this.backup_info != null) { - oprot.writeFieldBegin(BACKUP_INFO_FIELD_DESC); + if (this.space_backups != null) { + oprot.writeFieldBegin(SPACE_BACKUPS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.backup_info.size())); - for (Map.Entry _iter263 : this.backup_info.entrySet()) { - oprot.writeI32(_iter263.getKey()); - _iter263.getValue().write(oprot); + oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.space_backups.size())); + for (Map.Entry _iter267 : this.space_backups.entrySet()) { + oprot.writeI32(_iter267.getKey()); + _iter267.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[] _iter264 : this.meta_files) { - oprot.writeBinary(_iter264); + for (byte[] _iter268 : this.meta_files) { + oprot.writeBinary(_iter268); } oprot.writeListEnd(); } @@ -638,8 +638,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(FULL_FIELD_DESC); oprot.writeBool(this.full); oprot.writeFieldEnd(); - oprot.writeFieldBegin(INCLUDE_SYSTEM_SPACE_FIELD_DESC); - oprot.writeBool(this.include_system_space); + oprot.writeFieldBegin(ALL_SPACES_FIELD_DESC); + oprot.writeBool(this.all_spaces); oprot.writeFieldEnd(); oprot.writeFieldBegin(CREATE_TIME_FIELD_DESC); oprot.writeI64(this.create_time); @@ -665,13 +665,13 @@ public String toString(int indent, boolean prettyPrint) { boolean first = true; sb.append(indentStr); - sb.append("backup_info"); + sb.append("space_backups"); sb.append(space); sb.append(":").append(space); - if (this.getBackup_info() == null) { + if (this.getSpace_backups() == null) { sb.append("null"); } else { - sb.append(TBaseHelper.toString(this.getBackup_info(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.getSpace_backups(), indent + 1, prettyPrint)); } first = false; if (!first) sb.append("," + newLine); @@ -710,10 +710,10 @@ public String toString(int indent, boolean prettyPrint) { first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); - sb.append("include_system_space"); + sb.append("all_spaces"); sb.append(space); sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.isInclude_system_space(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.isAll_spaces(), indent + 1, prettyPrint)); first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/BalanceReq.java b/client/src/main/generated/com/vesoft/nebula/meta/BalanceReq.java deleted file mode 100644 index 7ceed11eb..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/BalanceReq.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.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 BalanceReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("BalanceReq"); - private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); - private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)2); - private static final TField HOST_DEL_FIELD_DESC = new TField("host_del", TType.LIST, (short)3); - private static final TField STOP_FIELD_DESC = new TField("stop", TType.BOOL, (short)4); - private static final TField RESET_FIELD_DESC = new TField("reset", TType.BOOL, (short)5); - - public int space_id; - public long id; - public List host_del; - public boolean stop; - public boolean reset; - public static final int SPACE_ID = 1; - public static final int ID = 2; - public static final int HOST_DEL = 3; - public static final int STOP = 4; - public static final int RESET = 5; - - // isset id assignments - private static final int __SPACE_ID_ISSET_ID = 0; - private static final int __ID_ISSET_ID = 1; - private static final int __STOP_ISSET_ID = 2; - private static final int __RESET_ISSET_ID = 3; - private BitSet __isset_bit_vector = new BitSet(4); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SPACE_ID, new FieldMetaData("space_id", TFieldRequirementType.OPTIONAL, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(ID, new FieldMetaData("id", TFieldRequirementType.OPTIONAL, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(HOST_DEL, new FieldMetaData("host_del", TFieldRequirementType.OPTIONAL, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class)))); - tmpMetaDataMap.put(STOP, new FieldMetaData("stop", TFieldRequirementType.OPTIONAL, - new FieldValueMetaData(TType.BOOL))); - tmpMetaDataMap.put(RESET, new FieldMetaData("reset", TFieldRequirementType.OPTIONAL, - new FieldValueMetaData(TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(BalanceReq.class, metaDataMap); - } - - public BalanceReq() { - } - - public BalanceReq( - int space_id, - long id, - List host_del, - boolean stop, - boolean reset) { - this(); - this.space_id = space_id; - setSpace_idIsSet(true); - this.id = id; - setIdIsSet(true); - this.host_del = host_del; - this.stop = stop; - setStopIsSet(true); - this.reset = reset; - setResetIsSet(true); - } - - public static class Builder { - private int space_id; - private long id; - private List host_del; - private boolean stop; - private boolean reset; - - BitSet __optional_isset = new BitSet(4); - - public Builder() { - } - - public Builder setSpace_id(final int space_id) { - this.space_id = space_id; - __optional_isset.set(__SPACE_ID_ISSET_ID, true); - return this; - } - - public Builder setId(final long id) { - this.id = id; - __optional_isset.set(__ID_ISSET_ID, true); - return this; - } - - public Builder setHost_del(final List host_del) { - this.host_del = host_del; - return this; - } - - public Builder setStop(final boolean stop) { - this.stop = stop; - __optional_isset.set(__STOP_ISSET_ID, true); - return this; - } - - public Builder setReset(final boolean reset) { - this.reset = reset; - __optional_isset.set(__RESET_ISSET_ID, true); - return this; - } - - public BalanceReq build() { - BalanceReq result = new BalanceReq(); - if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { - result.setSpace_id(this.space_id); - } - if (__optional_isset.get(__ID_ISSET_ID)) { - result.setId(this.id); - } - result.setHost_del(this.host_del); - if (__optional_isset.get(__STOP_ISSET_ID)) { - result.setStop(this.stop); - } - if (__optional_isset.get(__RESET_ISSET_ID)) { - result.setReset(this.reset); - } - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public BalanceReq(BalanceReq other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.space_id = TBaseHelper.deepCopy(other.space_id); - this.id = TBaseHelper.deepCopy(other.id); - if (other.isSetHost_del()) { - this.host_del = TBaseHelper.deepCopy(other.host_del); - } - this.stop = TBaseHelper.deepCopy(other.stop); - this.reset = TBaseHelper.deepCopy(other.reset); - } - - public BalanceReq deepCopy() { - return new BalanceReq(this); - } - - public int getSpace_id() { - return this.space_id; - } - - public BalanceReq setSpace_id(int space_id) { - this.space_id = space_id; - setSpace_idIsSet(true); - return this; - } - - public void unsetSpace_id() { - __isset_bit_vector.clear(__SPACE_ID_ISSET_ID); - } - - // Returns true if field space_id is set (has been assigned a value) and false otherwise - public boolean isSetSpace_id() { - return __isset_bit_vector.get(__SPACE_ID_ISSET_ID); - } - - public void setSpace_idIsSet(boolean __value) { - __isset_bit_vector.set(__SPACE_ID_ISSET_ID, __value); - } - - public long getId() { - return this.id; - } - - public BalanceReq setId(long id) { - this.id = id; - setIdIsSet(true); - return this; - } - - public void unsetId() { - __isset_bit_vector.clear(__ID_ISSET_ID); - } - - // Returns true if field id is set (has been assigned a value) and false otherwise - public boolean isSetId() { - return __isset_bit_vector.get(__ID_ISSET_ID); - } - - public void setIdIsSet(boolean __value) { - __isset_bit_vector.set(__ID_ISSET_ID, __value); - } - - public List getHost_del() { - return this.host_del; - } - - public BalanceReq setHost_del(List host_del) { - this.host_del = host_del; - return this; - } - - public void unsetHost_del() { - this.host_del = null; - } - - // Returns true if field host_del is set (has been assigned a value) and false otherwise - public boolean isSetHost_del() { - return this.host_del != null; - } - - public void setHost_delIsSet(boolean __value) { - if (!__value) { - this.host_del = null; - } - } - - public boolean isStop() { - return this.stop; - } - - public BalanceReq setStop(boolean stop) { - this.stop = stop; - setStopIsSet(true); - return this; - } - - public void unsetStop() { - __isset_bit_vector.clear(__STOP_ISSET_ID); - } - - // Returns true if field stop is set (has been assigned a value) and false otherwise - public boolean isSetStop() { - return __isset_bit_vector.get(__STOP_ISSET_ID); - } - - public void setStopIsSet(boolean __value) { - __isset_bit_vector.set(__STOP_ISSET_ID, __value); - } - - public boolean isReset() { - return this.reset; - } - - public BalanceReq setReset(boolean reset) { - this.reset = reset; - setResetIsSet(true); - return this; - } - - public void unsetReset() { - __isset_bit_vector.clear(__RESET_ISSET_ID); - } - - // Returns true if field reset is set (has been assigned a value) and false otherwise - public boolean isSetReset() { - return __isset_bit_vector.get(__RESET_ISSET_ID); - } - - public void setResetIsSet(boolean __value) { - __isset_bit_vector.set(__RESET_ISSET_ID, __value); - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SPACE_ID: - if (__value == null) { - unsetSpace_id(); - } else { - setSpace_id((Integer)__value); - } - break; - - case ID: - if (__value == null) { - unsetId(); - } else { - setId((Long)__value); - } - break; - - case HOST_DEL: - if (__value == null) { - unsetHost_del(); - } else { - setHost_del((List)__value); - } - break; - - case STOP: - if (__value == null) { - unsetStop(); - } else { - setStop((Boolean)__value); - } - break; - - case RESET: - if (__value == null) { - unsetReset(); - } else { - setReset((Boolean)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SPACE_ID: - return new Integer(getSpace_id()); - - case ID: - return new Long(getId()); - - case HOST_DEL: - return getHost_del(); - - case STOP: - return new Boolean(isStop()); - - case RESET: - return new Boolean(isReset()); - - 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 BalanceReq)) - return false; - BalanceReq that = (BalanceReq)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetSpace_id(), that.isSetSpace_id(), this.space_id, that.space_id)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetId(), that.isSetId(), this.id, that.id)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetHost_del(), that.isSetHost_del(), this.host_del, that.host_del)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetStop(), that.isSetStop(), this.stop, that.stop)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetReset(), that.isSetReset(), this.reset, that.reset)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, id, host_del, stop, reset}); - } - - @Override - public int compareTo(BalanceReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSpace_id()).compareTo(other.isSetSpace_id()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(space_id, other.space_id); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(id, other.id); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetHost_del()).compareTo(other.isSetHost_del()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(host_del, other.host_del); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetStop()).compareTo(other.isSetStop()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(stop, other.stop); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetReset()).compareTo(other.isSetReset()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(reset, other.reset); - 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_ID: - if (__field.type == TType.I32) { - this.space_id = iprot.readI32(); - setSpace_idIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case ID: - if (__field.type == TType.I64) { - this.id = iprot.readI64(); - setIdIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case HOST_DEL: - if (__field.type == TType.LIST) { - { - TList _list174 = iprot.readListBegin(); - this.host_del = new ArrayList(Math.max(0, _list174.size)); - for (int _i175 = 0; - (_list174.size < 0) ? iprot.peekList() : (_i175 < _list174.size); - ++_i175) - { - com.vesoft.nebula.HostAddr _elem176; - _elem176 = new com.vesoft.nebula.HostAddr(); - _elem176.read(iprot); - this.host_del.add(_elem176); - } - iprot.readListEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case STOP: - if (__field.type == TType.BOOL) { - this.stop = iprot.readBool(); - setStopIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case RESET: - if (__field.type == TType.BOOL) { - this.reset = iprot.readBool(); - setResetIsSet(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 (isSetSpace_id()) { - oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); - oprot.writeI32(this.space_id); - oprot.writeFieldEnd(); - } - if (isSetId()) { - oprot.writeFieldBegin(ID_FIELD_DESC); - oprot.writeI64(this.id); - oprot.writeFieldEnd(); - } - if (this.host_del != null) { - if (isSetHost_del()) { - oprot.writeFieldBegin(HOST_DEL_FIELD_DESC); - { - oprot.writeListBegin(new TList(TType.STRUCT, this.host_del.size())); - for (com.vesoft.nebula.HostAddr _iter177 : this.host_del) { - _iter177.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - } - if (isSetStop()) { - oprot.writeFieldBegin(STOP_FIELD_DESC); - oprot.writeBool(this.stop); - oprot.writeFieldEnd(); - } - if (isSetReset()) { - oprot.writeFieldBegin(RESET_FIELD_DESC); - oprot.writeBool(this.reset); - 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("BalanceReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - if (isSetSpace_id()) - { - sb.append(indentStr); - sb.append("space_id"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getSpace_id(), indent + 1, prettyPrint)); - first = false; - } - if (isSetId()) - { - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("id"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getId(), indent + 1, prettyPrint)); - first = false; - } - if (isSetHost_del()) - { - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("host_del"); - sb.append(space); - sb.append(":").append(space); - if (this.getHost_del() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getHost_del(), indent + 1, prettyPrint)); - } - first = false; - } - if (isSetStop()) - { - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("stop"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.isStop(), indent + 1, prettyPrint)); - first = false; - } - if (isSetReset()) - { - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("reset"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.isReset(), 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/BalanceResp.java b/client/src/main/generated/com/vesoft/nebula/meta/BalanceResp.java deleted file mode 100644 index 18bb9c45b..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/BalanceResp.java +++ /dev/null @@ -1,564 +0,0 @@ -/** - * 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 BalanceResp implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("BalanceResp"); - private static final TField CODE_FIELD_DESC = new TField("code", TType.I32, (short)1); - private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)2); - private static final TField LEADER_FIELD_DESC = new TField("leader", TType.STRUCT, (short)3); - private static final TField TASKS_FIELD_DESC = new TField("tasks", TType.LIST, (short)4); - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode code; - public long id; - public com.vesoft.nebula.HostAddr leader; - public List tasks; - public static final int CODE = 1; - public static final int ID = 2; - public static final int LEADER = 3; - public static final int TASKS = 4; - - // isset id assignments - private static final int __ID_ISSET_ID = 0; - private BitSet __isset_bit_vector = new BitSet(1); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(CODE, new FieldMetaData("code", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(LEADER, new FieldMetaData("leader", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(TASKS, new FieldMetaData("tasks", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, BalanceTask.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(BalanceResp.class, metaDataMap); - } - - public BalanceResp() { - } - - public BalanceResp( - com.vesoft.nebula.ErrorCode code, - long id, - com.vesoft.nebula.HostAddr leader, - List tasks) { - this(); - this.code = code; - this.id = id; - setIdIsSet(true); - this.leader = leader; - this.tasks = tasks; - } - - public static class Builder { - private com.vesoft.nebula.ErrorCode code; - private long id; - private com.vesoft.nebula.HostAddr leader; - private List tasks; - - BitSet __optional_isset = new BitSet(1); - - public Builder() { - } - - public Builder setCode(final com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public Builder setId(final long id) { - this.id = id; - __optional_isset.set(__ID_ISSET_ID, true); - return this; - } - - public Builder setLeader(final com.vesoft.nebula.HostAddr leader) { - this.leader = leader; - return this; - } - - public Builder setTasks(final List tasks) { - this.tasks = tasks; - return this; - } - - public BalanceResp build() { - BalanceResp result = new BalanceResp(); - result.setCode(this.code); - if (__optional_isset.get(__ID_ISSET_ID)) { - result.setId(this.id); - } - result.setLeader(this.leader); - result.setTasks(this.tasks); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public BalanceResp(BalanceResp other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - if (other.isSetCode()) { - this.code = TBaseHelper.deepCopy(other.code); - } - this.id = TBaseHelper.deepCopy(other.id); - if (other.isSetLeader()) { - this.leader = TBaseHelper.deepCopy(other.leader); - } - if (other.isSetTasks()) { - this.tasks = TBaseHelper.deepCopy(other.tasks); - } - } - - public BalanceResp deepCopy() { - return new BalanceResp(this); - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode getCode() { - return this.code; - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public BalanceResp setCode(com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public void unsetCode() { - this.code = null; - } - - // Returns true if field code is set (has been assigned a value) and false otherwise - public boolean isSetCode() { - return this.code != null; - } - - public void setCodeIsSet(boolean __value) { - if (!__value) { - this.code = null; - } - } - - public long getId() { - return this.id; - } - - public BalanceResp setId(long id) { - this.id = id; - setIdIsSet(true); - return this; - } - - public void unsetId() { - __isset_bit_vector.clear(__ID_ISSET_ID); - } - - // Returns true if field id is set (has been assigned a value) and false otherwise - public boolean isSetId() { - return __isset_bit_vector.get(__ID_ISSET_ID); - } - - public void setIdIsSet(boolean __value) { - __isset_bit_vector.set(__ID_ISSET_ID, __value); - } - - public com.vesoft.nebula.HostAddr getLeader() { - return this.leader; - } - - public BalanceResp setLeader(com.vesoft.nebula.HostAddr leader) { - this.leader = leader; - return this; - } - - public void unsetLeader() { - this.leader = null; - } - - // Returns true if field leader is set (has been assigned a value) and false otherwise - public boolean isSetLeader() { - return this.leader != null; - } - - public void setLeaderIsSet(boolean __value) { - if (!__value) { - this.leader = null; - } - } - - public List getTasks() { - return this.tasks; - } - - public BalanceResp setTasks(List tasks) { - this.tasks = tasks; - return this; - } - - public void unsetTasks() { - this.tasks = null; - } - - // Returns true if field tasks is set (has been assigned a value) and false otherwise - public boolean isSetTasks() { - return this.tasks != null; - } - - public void setTasksIsSet(boolean __value) { - if (!__value) { - this.tasks = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case CODE: - if (__value == null) { - unsetCode(); - } else { - setCode((com.vesoft.nebula.ErrorCode)__value); - } - break; - - case ID: - if (__value == null) { - unsetId(); - } else { - setId((Long)__value); - } - break; - - case LEADER: - if (__value == null) { - unsetLeader(); - } else { - setLeader((com.vesoft.nebula.HostAddr)__value); - } - break; - - case TASKS: - if (__value == null) { - unsetTasks(); - } else { - setTasks((List)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case CODE: - return getCode(); - - case ID: - return new Long(getId()); - - case LEADER: - return getLeader(); - - case TASKS: - return getTasks(); - - 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 BalanceResp)) - return false; - BalanceResp that = (BalanceResp)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetCode(), that.isSetCode(), this.code, that.code)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.id, that.id)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetLeader(), that.isSetLeader(), this.leader, that.leader)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetTasks(), that.isSetTasks(), this.tasks, that.tasks)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {code, id, leader, tasks}); - } - - @Override - public int compareTo(BalanceResp other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetCode()).compareTo(other.isSetCode()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(code, other.code); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(id, other.id); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetLeader()).compareTo(other.isSetLeader()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(leader, other.leader); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetTasks()).compareTo(other.isSetTasks()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(tasks, other.tasks); - 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 CODE: - if (__field.type == TType.I32) { - this.code = com.vesoft.nebula.ErrorCode.findByValue(iprot.readI32()); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case ID: - if (__field.type == TType.I64) { - this.id = iprot.readI64(); - setIdIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case LEADER: - if (__field.type == TType.STRUCT) { - this.leader = new com.vesoft.nebula.HostAddr(); - this.leader.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case TASKS: - if (__field.type == TType.LIST) { - { - TList _list178 = iprot.readListBegin(); - this.tasks = new ArrayList(Math.max(0, _list178.size)); - for (int _i179 = 0; - (_list178.size < 0) ? iprot.peekList() : (_i179 < _list178.size); - ++_i179) - { - BalanceTask _elem180; - _elem180 = new BalanceTask(); - _elem180.read(iprot); - this.tasks.add(_elem180); - } - 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.code != null) { - oprot.writeFieldBegin(CODE_FIELD_DESC); - oprot.writeI32(this.code == null ? 0 : this.code.getValue()); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(ID_FIELD_DESC); - oprot.writeI64(this.id); - oprot.writeFieldEnd(); - if (this.leader != null) { - oprot.writeFieldBegin(LEADER_FIELD_DESC); - this.leader.write(oprot); - oprot.writeFieldEnd(); - } - if (this.tasks != null) { - oprot.writeFieldBegin(TASKS_FIELD_DESC); - { - oprot.writeListBegin(new TList(TType.STRUCT, this.tasks.size())); - for (BalanceTask _iter181 : this.tasks) { - _iter181.write(oprot); - } - 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("BalanceResp"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("code"); - sb.append(space); - sb.append(":").append(space); - if (this.getCode() == null) { - sb.append("null"); - } else { - String code_name = this.getCode() == null ? "null" : this.getCode().name(); - if (code_name != null) { - sb.append(code_name); - sb.append(" ("); - } - sb.append(this.getCode()); - if (code_name != null) { - sb.append(")"); - } - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("id"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getId(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("leader"); - sb.append(space); - sb.append(":").append(space); - if (this.getLeader() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getLeader(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("tasks"); - sb.append(space); - sb.append(":").append(space); - if (this.getTasks() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getTasks(), 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/CreateBackupReq.java b/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java index 7df101c4d..668128efc 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 _list265 = iprot.readListBegin(); - this.spaces = new ArrayList(Math.max(0, _list265.size)); - for (int _i266 = 0; - (_list265.size < 0) ? iprot.peekList() : (_i266 < _list265.size); - ++_i266) + TList _list269 = iprot.readListBegin(); + this.spaces = new ArrayList(Math.max(0, _list269.size)); + for (int _i270 = 0; + (_list269.size < 0) ? iprot.peekList() : (_i270 < _list269.size); + ++_i270) { - byte[] _elem267; - _elem267 = iprot.readBinary(); - this.spaces.add(_elem267); + byte[] _elem271; + _elem271 = iprot.readBinary(); + this.spaces.add(_elem271); } 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[] _iter268 : this.spaces) { - oprot.writeBinary(_iter268); + for (byte[] _iter272 : this.spaces) { + oprot.writeBinary(_iter272); } 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 3c72e04db..46711d28c 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/CreateEdgeIndexReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/CreateEdgeIndexReq.java @@ -32,6 +32,7 @@ public class CreateEdgeIndexReq implements TBase, java.io.Serializable, Cloneabl private static final TField FIELDS_FIELD_DESC = new TField("fields", TType.LIST, (short)4); private static final TField IF_NOT_EXISTS_FIELD_DESC = new TField("if_not_exists", TType.BOOL, (short)5); private static final TField COMMENT_FIELD_DESC = new TField("comment", TType.STRING, (short)6); + private static final TField INDEX_PARAMS_FIELD_DESC = new TField("index_params", TType.STRUCT, (short)7); public int space_id; public byte[] index_name; @@ -39,12 +40,14 @@ public class CreateEdgeIndexReq implements TBase, java.io.Serializable, Cloneabl public List fields; public boolean if_not_exists; public byte[] comment; + public IndexParams index_params; public static final int SPACE_ID = 1; public static final int INDEX_NAME = 2; public static final int EDGE_NAME = 3; public static final int FIELDS = 4; public static final int IF_NOT_EXISTS = 5; public static final int COMMENT = 6; + public static final int INDEX_PARAMS = 7; // isset id assignments private static final int __SPACE_ID_ISSET_ID = 0; @@ -68,6 +71,8 @@ public class CreateEdgeIndexReq implements TBase, java.io.Serializable, Cloneabl new FieldValueMetaData(TType.BOOL))); tmpMetaDataMap.put(COMMENT, new FieldMetaData("comment", TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(INDEX_PARAMS, new FieldMetaData("index_params", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, IndexParams.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -100,7 +105,8 @@ public CreateEdgeIndexReq( byte[] edge_name, List fields, boolean if_not_exists, - byte[] comment) { + byte[] comment, + IndexParams index_params) { this(); this.space_id = space_id; setSpace_idIsSet(true); @@ -110,6 +116,7 @@ public CreateEdgeIndexReq( this.if_not_exists = if_not_exists; setIf_not_existsIsSet(true); this.comment = comment; + this.index_params = index_params; } public static class Builder { @@ -119,6 +126,7 @@ public static class Builder { private List fields; private boolean if_not_exists; private byte[] comment; + private IndexParams index_params; BitSet __optional_isset = new BitSet(2); @@ -157,6 +165,11 @@ public Builder setComment(final byte[] comment) { return this; } + public Builder setIndex_params(final IndexParams index_params) { + this.index_params = index_params; + return this; + } + public CreateEdgeIndexReq build() { CreateEdgeIndexReq result = new CreateEdgeIndexReq(); if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { @@ -169,6 +182,7 @@ public CreateEdgeIndexReq build() { result.setIf_not_exists(this.if_not_exists); } result.setComment(this.comment); + result.setIndex_params(this.index_params); return result; } } @@ -197,6 +211,9 @@ public CreateEdgeIndexReq(CreateEdgeIndexReq other) { if (other.isSetComment()) { this.comment = TBaseHelper.deepCopy(other.comment); } + if (other.isSetIndex_params()) { + this.index_params = TBaseHelper.deepCopy(other.index_params); + } } public CreateEdgeIndexReq deepCopy() { @@ -345,6 +362,30 @@ public void setCommentIsSet(boolean __value) { } } + public IndexParams getIndex_params() { + return this.index_params; + } + + public CreateEdgeIndexReq setIndex_params(IndexParams index_params) { + this.index_params = index_params; + return this; + } + + public void unsetIndex_params() { + this.index_params = null; + } + + // Returns true if field index_params is set (has been assigned a value) and false otherwise + public boolean isSetIndex_params() { + return this.index_params != null; + } + + public void setIndex_paramsIsSet(boolean __value) { + if (!__value) { + this.index_params = null; + } + } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -396,6 +437,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case INDEX_PARAMS: + if (__value == null) { + unsetIndex_params(); + } else { + setIndex_params((IndexParams)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -421,6 +470,9 @@ public Object getFieldValue(int fieldID) { case COMMENT: return getComment(); + case INDEX_PARAMS: + return getIndex_params(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -448,12 +500,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetComment(), that.isSetComment(), this.comment, that.comment)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetIndex_params(), that.isSetIndex_params(), this.index_params, that.index_params)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, index_name, edge_name, fields, if_not_exists, comment}); + return Arrays.deepHashCode(new Object[] {space_id, index_name, edge_name, fields, if_not_exists, comment, index_params}); } @Override @@ -516,6 +570,14 @@ public int compareTo(CreateEdgeIndexReq other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetIndex_params()).compareTo(other.isSetIndex_params()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(index_params, other.index_params); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -555,16 +617,16 @@ public void read(TProtocol iprot) throws TException { case FIELDS: if (__field.type == TType.LIST) { { - TList _list183 = iprot.readListBegin(); - this.fields = new ArrayList(Math.max(0, _list183.size)); - for (int _i184 = 0; - (_list183.size < 0) ? iprot.peekList() : (_i184 < _list183.size); - ++_i184) + TList _list187 = iprot.readListBegin(); + this.fields = new ArrayList(Math.max(0, _list187.size)); + for (int _i188 = 0; + (_list187.size < 0) ? iprot.peekList() : (_i188 < _list187.size); + ++_i188) { - IndexFieldDef _elem185; - _elem185 = new IndexFieldDef(); - _elem185.read(iprot); - this.fields.add(_elem185); + IndexFieldDef _elem189; + _elem189 = new IndexFieldDef(); + _elem189.read(iprot); + this.fields.add(_elem189); } iprot.readListEnd(); } @@ -587,6 +649,14 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case INDEX_PARAMS: + if (__field.type == TType.STRUCT) { + this.index_params = new IndexParams(); + this.index_params.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -621,8 +691,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(FIELDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.fields.size())); - for (IndexFieldDef _iter186 : this.fields) { - _iter186.write(oprot); + for (IndexFieldDef _iter190 : this.fields) { + _iter190.write(oprot); } oprot.writeListEnd(); } @@ -638,6 +708,13 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } } + if (this.index_params != null) { + if (isSetIndex_params()) { + oprot.writeFieldBegin(INDEX_PARAMS_FIELD_DESC); + this.index_params.write(oprot); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -733,6 +810,20 @@ public String toString(int indent, boolean prettyPrint) { } first = false; } + if (isSetIndex_params()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("index_params"); + sb.append(space); + sb.append(":").append(space); + if (this.getIndex_params() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getIndex_params(), 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/CreateTagIndexReq.java b/client/src/main/generated/com/vesoft/nebula/meta/CreateTagIndexReq.java index d60dd1465..832458cfe 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/CreateTagIndexReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/CreateTagIndexReq.java @@ -32,6 +32,7 @@ public class CreateTagIndexReq implements TBase, java.io.Serializable, Cloneable private static final TField FIELDS_FIELD_DESC = new TField("fields", TType.LIST, (short)4); private static final TField IF_NOT_EXISTS_FIELD_DESC = new TField("if_not_exists", TType.BOOL, (short)5); private static final TField COMMENT_FIELD_DESC = new TField("comment", TType.STRING, (short)6); + private static final TField INDEX_PARAMS_FIELD_DESC = new TField("index_params", TType.STRUCT, (short)7); public int space_id; public byte[] index_name; @@ -39,12 +40,14 @@ public class CreateTagIndexReq implements TBase, java.io.Serializable, Cloneable public List fields; public boolean if_not_exists; public byte[] comment; + public IndexParams index_params; public static final int SPACE_ID = 1; public static final int INDEX_NAME = 2; public static final int TAG_NAME = 3; public static final int FIELDS = 4; public static final int IF_NOT_EXISTS = 5; public static final int COMMENT = 6; + public static final int INDEX_PARAMS = 7; // isset id assignments private static final int __SPACE_ID_ISSET_ID = 0; @@ -68,6 +71,8 @@ public class CreateTagIndexReq implements TBase, java.io.Serializable, Cloneable new FieldValueMetaData(TType.BOOL))); tmpMetaDataMap.put(COMMENT, new FieldMetaData("comment", TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(INDEX_PARAMS, new FieldMetaData("index_params", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, IndexParams.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -100,7 +105,8 @@ public CreateTagIndexReq( byte[] tag_name, List fields, boolean if_not_exists, - byte[] comment) { + byte[] comment, + IndexParams index_params) { this(); this.space_id = space_id; setSpace_idIsSet(true); @@ -110,6 +116,7 @@ public CreateTagIndexReq( this.if_not_exists = if_not_exists; setIf_not_existsIsSet(true); this.comment = comment; + this.index_params = index_params; } public static class Builder { @@ -119,6 +126,7 @@ public static class Builder { private List fields; private boolean if_not_exists; private byte[] comment; + private IndexParams index_params; BitSet __optional_isset = new BitSet(2); @@ -157,6 +165,11 @@ public Builder setComment(final byte[] comment) { return this; } + public Builder setIndex_params(final IndexParams index_params) { + this.index_params = index_params; + return this; + } + public CreateTagIndexReq build() { CreateTagIndexReq result = new CreateTagIndexReq(); if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { @@ -169,6 +182,7 @@ public CreateTagIndexReq build() { result.setIf_not_exists(this.if_not_exists); } result.setComment(this.comment); + result.setIndex_params(this.index_params); return result; } } @@ -197,6 +211,9 @@ public CreateTagIndexReq(CreateTagIndexReq other) { if (other.isSetComment()) { this.comment = TBaseHelper.deepCopy(other.comment); } + if (other.isSetIndex_params()) { + this.index_params = TBaseHelper.deepCopy(other.index_params); + } } public CreateTagIndexReq deepCopy() { @@ -345,6 +362,30 @@ public void setCommentIsSet(boolean __value) { } } + public IndexParams getIndex_params() { + return this.index_params; + } + + public CreateTagIndexReq setIndex_params(IndexParams index_params) { + this.index_params = index_params; + return this; + } + + public void unsetIndex_params() { + this.index_params = null; + } + + // Returns true if field index_params is set (has been assigned a value) and false otherwise + public boolean isSetIndex_params() { + return this.index_params != null; + } + + public void setIndex_paramsIsSet(boolean __value) { + if (!__value) { + this.index_params = null; + } + } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -396,6 +437,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case INDEX_PARAMS: + if (__value == null) { + unsetIndex_params(); + } else { + setIndex_params((IndexParams)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -421,6 +470,9 @@ public Object getFieldValue(int fieldID) { case COMMENT: return getComment(); + case INDEX_PARAMS: + return getIndex_params(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -448,12 +500,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetComment(), that.isSetComment(), this.comment, that.comment)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetIndex_params(), that.isSetIndex_params(), this.index_params, that.index_params)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, index_name, tag_name, fields, if_not_exists, comment}); + return Arrays.deepHashCode(new Object[] {space_id, index_name, tag_name, fields, if_not_exists, comment, index_params}); } @Override @@ -516,6 +570,14 @@ public int compareTo(CreateTagIndexReq other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetIndex_params()).compareTo(other.isSetIndex_params()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(index_params, other.index_params); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -555,16 +617,16 @@ public void read(TProtocol iprot) throws TException { case FIELDS: if (__field.type == TType.LIST) { { - TList _list175 = iprot.readListBegin(); - this.fields = new ArrayList(Math.max(0, _list175.size)); - for (int _i176 = 0; - (_list175.size < 0) ? iprot.peekList() : (_i176 < _list175.size); - ++_i176) + TList _list179 = iprot.readListBegin(); + this.fields = new ArrayList(Math.max(0, _list179.size)); + for (int _i180 = 0; + (_list179.size < 0) ? iprot.peekList() : (_i180 < _list179.size); + ++_i180) { - IndexFieldDef _elem177; - _elem177 = new IndexFieldDef(); - _elem177.read(iprot); - this.fields.add(_elem177); + IndexFieldDef _elem181; + _elem181 = new IndexFieldDef(); + _elem181.read(iprot); + this.fields.add(_elem181); } iprot.readListEnd(); } @@ -587,6 +649,14 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case INDEX_PARAMS: + if (__field.type == TType.STRUCT) { + this.index_params = new IndexParams(); + this.index_params.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -621,8 +691,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(FIELDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.fields.size())); - for (IndexFieldDef _iter178 : this.fields) { - _iter178.write(oprot); + for (IndexFieldDef _iter182 : this.fields) { + _iter182.write(oprot); } oprot.writeListEnd(); } @@ -638,6 +708,13 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } } + if (this.index_params != null) { + if (isSetIndex_params()) { + oprot.writeFieldBegin(INDEX_PARAMS_FIELD_DESC); + this.index_params.write(oprot); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -733,6 +810,20 @@ public String toString(int indent, boolean prettyPrint) { } first = false; } + if (isSetIndex_params()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("index_params"); + sb.append(space); + sb.append(":").append(space); + if (this.getIndex_params() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getIndex_params(), 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/DropGroupReq.java b/client/src/main/generated/com/vesoft/nebula/meta/DropGroupReq.java deleted file mode 100644 index 19036ccb1..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/DropGroupReq.java +++ /dev/null @@ -1,270 +0,0 @@ -/** - * 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 DropGroupReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("DropGroupReq"); - private static final TField GROUP_NAME_FIELD_DESC = new TField("group_name", TType.STRING, (short)1); - - public byte[] group_name; - public static final int GROUP_NAME = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(GROUP_NAME, new FieldMetaData("group_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(DropGroupReq.class, metaDataMap); - } - - public DropGroupReq() { - } - - public DropGroupReq( - byte[] group_name) { - this(); - this.group_name = group_name; - } - - public static class Builder { - private byte[] group_name; - - public Builder() { - } - - public Builder setGroup_name(final byte[] group_name) { - this.group_name = group_name; - return this; - } - - public DropGroupReq build() { - DropGroupReq result = new DropGroupReq(); - result.setGroup_name(this.group_name); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public DropGroupReq(DropGroupReq other) { - if (other.isSetGroup_name()) { - this.group_name = TBaseHelper.deepCopy(other.group_name); - } - } - - public DropGroupReq deepCopy() { - return new DropGroupReq(this); - } - - public byte[] getGroup_name() { - return this.group_name; - } - - public DropGroupReq setGroup_name(byte[] group_name) { - this.group_name = group_name; - return this; - } - - public void unsetGroup_name() { - this.group_name = null; - } - - // Returns true if field group_name is set (has been assigned a value) and false otherwise - public boolean isSetGroup_name() { - return this.group_name != null; - } - - public void setGroup_nameIsSet(boolean __value) { - if (!__value) { - this.group_name = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case GROUP_NAME: - if (__value == null) { - unsetGroup_name(); - } else { - setGroup_name((byte[])__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case GROUP_NAME: - return getGroup_name(); - - 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 DropGroupReq)) - return false; - DropGroupReq that = (DropGroupReq)_that; - - if (!TBaseHelper.equalsSlow(this.isSetGroup_name(), that.isSetGroup_name(), this.group_name, that.group_name)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {group_name}); - } - - @Override - public int compareTo(DropGroupReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetGroup_name()).compareTo(other.isSetGroup_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(group_name, other.group_name); - 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 GROUP_NAME: - if (__field.type == TType.STRING) { - this.group_name = 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); - if (this.group_name != null) { - oprot.writeFieldBegin(GROUP_NAME_FIELD_DESC); - oprot.writeBinary(this.group_name); - 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("DropGroupReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("group_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getGroup_name() == null) { - sb.append("null"); - } else { - int __group_name_size = Math.min(this.getGroup_name().length, 128); - for (int i = 0; i < __group_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getGroup_name()[i]).length() > 1 ? Integer.toHexString(this.getGroup_name()[i]).substring(Integer.toHexString(this.getGroup_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getGroup_name()[i]).toUpperCase()); - } - if (this.getGroup_name().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/meta/DropHostFromZoneReq.java b/client/src/main/generated/com/vesoft/nebula/meta/DropHostFromZoneReq.java deleted file mode 100644 index 87e390596..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/DropHostFromZoneReq.java +++ /dev/null @@ -1,356 +0,0 @@ -/** - * 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 DropHostFromZoneReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("DropHostFromZoneReq"); - private static final TField NODE_FIELD_DESC = new TField("node", TType.STRUCT, (short)1); - private static final TField ZONE_NAME_FIELD_DESC = new TField("zone_name", TType.STRING, (short)2); - - public com.vesoft.nebula.HostAddr node; - public byte[] zone_name; - public static final int NODE = 1; - public static final int ZONE_NAME = 2; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(NODE, new FieldMetaData("node", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(ZONE_NAME, new FieldMetaData("zone_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(DropHostFromZoneReq.class, metaDataMap); - } - - public DropHostFromZoneReq() { - } - - public DropHostFromZoneReq( - com.vesoft.nebula.HostAddr node, - byte[] zone_name) { - this(); - this.node = node; - this.zone_name = zone_name; - } - - public static class Builder { - private com.vesoft.nebula.HostAddr node; - private byte[] zone_name; - - public Builder() { - } - - public Builder setNode(final com.vesoft.nebula.HostAddr node) { - this.node = node; - return this; - } - - public Builder setZone_name(final byte[] zone_name) { - this.zone_name = zone_name; - return this; - } - - public DropHostFromZoneReq build() { - DropHostFromZoneReq result = new DropHostFromZoneReq(); - result.setNode(this.node); - result.setZone_name(this.zone_name); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public DropHostFromZoneReq(DropHostFromZoneReq other) { - if (other.isSetNode()) { - this.node = TBaseHelper.deepCopy(other.node); - } - if (other.isSetZone_name()) { - this.zone_name = TBaseHelper.deepCopy(other.zone_name); - } - } - - public DropHostFromZoneReq deepCopy() { - return new DropHostFromZoneReq(this); - } - - public com.vesoft.nebula.HostAddr getNode() { - return this.node; - } - - public DropHostFromZoneReq setNode(com.vesoft.nebula.HostAddr node) { - this.node = node; - return this; - } - - public void unsetNode() { - this.node = null; - } - - // Returns true if field node is set (has been assigned a value) and false otherwise - public boolean isSetNode() { - return this.node != null; - } - - public void setNodeIsSet(boolean __value) { - if (!__value) { - this.node = null; - } - } - - public byte[] getZone_name() { - return this.zone_name; - } - - public DropHostFromZoneReq setZone_name(byte[] zone_name) { - this.zone_name = zone_name; - return this; - } - - public void unsetZone_name() { - this.zone_name = null; - } - - // Returns true if field zone_name is set (has been assigned a value) and false otherwise - public boolean isSetZone_name() { - return this.zone_name != null; - } - - public void setZone_nameIsSet(boolean __value) { - if (!__value) { - this.zone_name = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case NODE: - if (__value == null) { - unsetNode(); - } else { - setNode((com.vesoft.nebula.HostAddr)__value); - } - break; - - case ZONE_NAME: - if (__value == null) { - unsetZone_name(); - } else { - setZone_name((byte[])__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case NODE: - return getNode(); - - case ZONE_NAME: - return getZone_name(); - - 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 DropHostFromZoneReq)) - return false; - DropHostFromZoneReq that = (DropHostFromZoneReq)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetNode(), that.isSetNode(), this.node, that.node)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetZone_name(), that.isSetZone_name(), this.zone_name, that.zone_name)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {node, zone_name}); - } - - @Override - public int compareTo(DropHostFromZoneReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetNode()).compareTo(other.isSetNode()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(node, other.node); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetZone_name()).compareTo(other.isSetZone_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(zone_name, other.zone_name); - 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 NODE: - if (__field.type == TType.STRUCT) { - this.node = new com.vesoft.nebula.HostAddr(); - this.node.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case ZONE_NAME: - if (__field.type == TType.STRING) { - this.zone_name = 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); - if (this.node != null) { - oprot.writeFieldBegin(NODE_FIELD_DESC); - this.node.write(oprot); - oprot.writeFieldEnd(); - } - if (this.zone_name != null) { - oprot.writeFieldBegin(ZONE_NAME_FIELD_DESC); - oprot.writeBinary(this.zone_name); - 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("DropHostFromZoneReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("node"); - sb.append(space); - sb.append(":").append(space); - if (this.getNode() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getNode(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("zone_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getZone_name() == null) { - sb.append("null"); - } else { - int __zone_name_size = Math.min(this.getZone_name().length, 128); - for (int i = 0; i < __zone_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getZone_name()[i]).length() > 1 ? Integer.toHexString(this.getZone_name()[i]).substring(Integer.toHexString(this.getZone_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getZone_name()[i]).toUpperCase()); - } - if (this.getZone_name().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/meta/DropZoneFromGroupReq.java b/client/src/main/generated/com/vesoft/nebula/meta/DropZoneFromGroupReq.java deleted file mode 100644 index 0f12c436d..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/DropZoneFromGroupReq.java +++ /dev/null @@ -1,360 +0,0 @@ -/** - * 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 DropZoneFromGroupReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("DropZoneFromGroupReq"); - private static final TField ZONE_NAME_FIELD_DESC = new TField("zone_name", TType.STRING, (short)1); - private static final TField GROUP_NAME_FIELD_DESC = new TField("group_name", TType.STRING, (short)2); - - public byte[] zone_name; - public byte[] group_name; - public static final int ZONE_NAME = 1; - public static final int GROUP_NAME = 2; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(ZONE_NAME, new FieldMetaData("zone_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(GROUP_NAME, new FieldMetaData("group_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(DropZoneFromGroupReq.class, metaDataMap); - } - - public DropZoneFromGroupReq() { - } - - public DropZoneFromGroupReq( - byte[] zone_name, - byte[] group_name) { - this(); - this.zone_name = zone_name; - this.group_name = group_name; - } - - public static class Builder { - private byte[] zone_name; - private byte[] group_name; - - public Builder() { - } - - public Builder setZone_name(final byte[] zone_name) { - this.zone_name = zone_name; - return this; - } - - public Builder setGroup_name(final byte[] group_name) { - this.group_name = group_name; - return this; - } - - public DropZoneFromGroupReq build() { - DropZoneFromGroupReq result = new DropZoneFromGroupReq(); - result.setZone_name(this.zone_name); - result.setGroup_name(this.group_name); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public DropZoneFromGroupReq(DropZoneFromGroupReq other) { - if (other.isSetZone_name()) { - this.zone_name = TBaseHelper.deepCopy(other.zone_name); - } - if (other.isSetGroup_name()) { - this.group_name = TBaseHelper.deepCopy(other.group_name); - } - } - - public DropZoneFromGroupReq deepCopy() { - return new DropZoneFromGroupReq(this); - } - - public byte[] getZone_name() { - return this.zone_name; - } - - public DropZoneFromGroupReq setZone_name(byte[] zone_name) { - this.zone_name = zone_name; - return this; - } - - public void unsetZone_name() { - this.zone_name = null; - } - - // Returns true if field zone_name is set (has been assigned a value) and false otherwise - public boolean isSetZone_name() { - return this.zone_name != null; - } - - public void setZone_nameIsSet(boolean __value) { - if (!__value) { - this.zone_name = null; - } - } - - public byte[] getGroup_name() { - return this.group_name; - } - - public DropZoneFromGroupReq setGroup_name(byte[] group_name) { - this.group_name = group_name; - return this; - } - - public void unsetGroup_name() { - this.group_name = null; - } - - // Returns true if field group_name is set (has been assigned a value) and false otherwise - public boolean isSetGroup_name() { - return this.group_name != null; - } - - public void setGroup_nameIsSet(boolean __value) { - if (!__value) { - this.group_name = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case ZONE_NAME: - if (__value == null) { - unsetZone_name(); - } else { - setZone_name((byte[])__value); - } - break; - - case GROUP_NAME: - if (__value == null) { - unsetGroup_name(); - } else { - setGroup_name((byte[])__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case ZONE_NAME: - return getZone_name(); - - case GROUP_NAME: - return getGroup_name(); - - 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 DropZoneFromGroupReq)) - return false; - DropZoneFromGroupReq that = (DropZoneFromGroupReq)_that; - - if (!TBaseHelper.equalsSlow(this.isSetZone_name(), that.isSetZone_name(), this.zone_name, that.zone_name)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetGroup_name(), that.isSetGroup_name(), this.group_name, that.group_name)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {zone_name, group_name}); - } - - @Override - public int compareTo(DropZoneFromGroupReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetZone_name()).compareTo(other.isSetZone_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(zone_name, other.zone_name); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetGroup_name()).compareTo(other.isSetGroup_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(group_name, other.group_name); - 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 ZONE_NAME: - if (__field.type == TType.STRING) { - this.zone_name = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case GROUP_NAME: - if (__field.type == TType.STRING) { - this.group_name = 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); - if (this.zone_name != null) { - oprot.writeFieldBegin(ZONE_NAME_FIELD_DESC); - oprot.writeBinary(this.zone_name); - oprot.writeFieldEnd(); - } - if (this.group_name != null) { - oprot.writeFieldBegin(GROUP_NAME_FIELD_DESC); - oprot.writeBinary(this.group_name); - 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("DropZoneFromGroupReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("zone_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getZone_name() == null) { - sb.append("null"); - } else { - int __zone_name_size = Math.min(this.getZone_name().length, 128); - for (int i = 0; i < __zone_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getZone_name()[i]).length() > 1 ? Integer.toHexString(this.getZone_name()[i]).substring(Integer.toHexString(this.getZone_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getZone_name()[i]).toUpperCase()); - } - if (this.getZone_name().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("group_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getGroup_name() == null) { - sb.append("null"); - } else { - int __group_name_size = Math.min(this.getGroup_name().length, 128); - for (int i = 0; i < __group_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getGroup_name()[i]).length() > 1 ? Integer.toHexString(this.getGroup_name()[i]).substring(Integer.toHexString(this.getGroup_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getGroup_name()[i]).toUpperCase()); - } - if (this.getGroup_name().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/meta/FTIndex.java b/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java index ebdf0ec4c..813795b67 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 _list285 = iprot.readListBegin(); - this.fields = new ArrayList(Math.max(0, _list285.size)); - for (int _i286 = 0; - (_list285.size < 0) ? iprot.peekList() : (_i286 < _list285.size); - ++_i286) + TList _list289 = iprot.readListBegin(); + this.fields = new ArrayList(Math.max(0, _list289.size)); + for (int _i290 = 0; + (_list289.size < 0) ? iprot.peekList() : (_i290 < _list289.size); + ++_i290) { - byte[] _elem287; - _elem287 = iprot.readBinary(); - this.fields.add(_elem287); + byte[] _elem291; + _elem291 = iprot.readBinary(); + this.fields.add(_elem291); } 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[] _iter288 : this.fields) { - oprot.writeBinary(_iter288); + for (byte[] _iter292 : this.fields) { + oprot.writeBinary(_iter292); } 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 b685c7e55..130547651 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 _list204 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list204.size)); - for (int _i205 = 0; - (_list204.size < 0) ? iprot.peekList() : (_i205 < _list204.size); - ++_i205) + TList _list208 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list208.size)); + for (int _i209 = 0; + (_list208.size < 0) ? iprot.peekList() : (_i209 < _list208.size); + ++_i209) { - ConfigItem _elem206; - _elem206 = new ConfigItem(); - _elem206.read(iprot); - this.items.add(_elem206); + ConfigItem _elem210; + _elem210 = new ConfigItem(); + _elem210.read(iprot); + this.items.add(_elem210); } 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 _iter207 : this.items) { - _iter207.write(oprot); + for (ConfigItem _iter211 : this.items) { + _iter211.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/GetGroupReq.java b/client/src/main/generated/com/vesoft/nebula/meta/GetGroupReq.java deleted file mode 100644 index 557b7838c..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/GetGroupReq.java +++ /dev/null @@ -1,270 +0,0 @@ -/** - * 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 GetGroupReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("GetGroupReq"); - private static final TField GROUP_NAME_FIELD_DESC = new TField("group_name", TType.STRING, (short)1); - - public byte[] group_name; - public static final int GROUP_NAME = 1; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(GROUP_NAME, new FieldMetaData("group_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(GetGroupReq.class, metaDataMap); - } - - public GetGroupReq() { - } - - public GetGroupReq( - byte[] group_name) { - this(); - this.group_name = group_name; - } - - public static class Builder { - private byte[] group_name; - - public Builder() { - } - - public Builder setGroup_name(final byte[] group_name) { - this.group_name = group_name; - return this; - } - - public GetGroupReq build() { - GetGroupReq result = new GetGroupReq(); - result.setGroup_name(this.group_name); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public GetGroupReq(GetGroupReq other) { - if (other.isSetGroup_name()) { - this.group_name = TBaseHelper.deepCopy(other.group_name); - } - } - - public GetGroupReq deepCopy() { - return new GetGroupReq(this); - } - - public byte[] getGroup_name() { - return this.group_name; - } - - public GetGroupReq setGroup_name(byte[] group_name) { - this.group_name = group_name; - return this; - } - - public void unsetGroup_name() { - this.group_name = null; - } - - // Returns true if field group_name is set (has been assigned a value) and false otherwise - public boolean isSetGroup_name() { - return this.group_name != null; - } - - public void setGroup_nameIsSet(boolean __value) { - if (!__value) { - this.group_name = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case GROUP_NAME: - if (__value == null) { - unsetGroup_name(); - } else { - setGroup_name((byte[])__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case GROUP_NAME: - return getGroup_name(); - - 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 GetGroupReq)) - return false; - GetGroupReq that = (GetGroupReq)_that; - - if (!TBaseHelper.equalsSlow(this.isSetGroup_name(), that.isSetGroup_name(), this.group_name, that.group_name)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {group_name}); - } - - @Override - public int compareTo(GetGroupReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetGroup_name()).compareTo(other.isSetGroup_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(group_name, other.group_name); - 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 GROUP_NAME: - if (__field.type == TType.STRING) { - this.group_name = 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); - if (this.group_name != null) { - oprot.writeFieldBegin(GROUP_NAME_FIELD_DESC); - oprot.writeBinary(this.group_name); - 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("GetGroupReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("group_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getGroup_name() == null) { - sb.append("null"); - } else { - int __group_name_size = Math.min(this.getGroup_name().length, 128); - for (int i = 0; i < __group_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getGroup_name()[i]).length() > 1 ? Integer.toHexString(this.getGroup_name()[i]).substring(Integer.toHexString(this.getGroup_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getGroup_name()[i]).toUpperCase()); - } - if (this.getGroup_name().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/meta/GetGroupResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetGroupResp.java deleted file mode 100644 index 83be4c9b1..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/GetGroupResp.java +++ /dev/null @@ -1,476 +0,0 @@ -/** - * 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 GetGroupResp implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("GetGroupResp"); - private static final TField CODE_FIELD_DESC = new TField("code", TType.I32, (short)1); - private static final TField LEADER_FIELD_DESC = new TField("leader", TType.STRUCT, (short)2); - private static final TField ZONE_NAMES_FIELD_DESC = new TField("zone_names", TType.LIST, (short)3); - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode code; - public com.vesoft.nebula.HostAddr leader; - public List zone_names; - public static final int CODE = 1; - public static final int LEADER = 2; - public static final int ZONE_NAMES = 3; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(CODE, new FieldMetaData("code", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(LEADER, new FieldMetaData("leader", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(ZONE_NAMES, new FieldMetaData("zone_names", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(GetGroupResp.class, metaDataMap); - } - - public GetGroupResp() { - } - - public GetGroupResp( - com.vesoft.nebula.ErrorCode code, - com.vesoft.nebula.HostAddr leader, - List zone_names) { - this(); - this.code = code; - this.leader = leader; - this.zone_names = zone_names; - } - - public static class Builder { - private com.vesoft.nebula.ErrorCode code; - private com.vesoft.nebula.HostAddr leader; - private List zone_names; - - public Builder() { - } - - public Builder setCode(final com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public Builder setLeader(final com.vesoft.nebula.HostAddr leader) { - this.leader = leader; - return this; - } - - public Builder setZone_names(final List zone_names) { - this.zone_names = zone_names; - return this; - } - - public GetGroupResp build() { - GetGroupResp result = new GetGroupResp(); - result.setCode(this.code); - result.setLeader(this.leader); - result.setZone_names(this.zone_names); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public GetGroupResp(GetGroupResp other) { - if (other.isSetCode()) { - this.code = TBaseHelper.deepCopy(other.code); - } - if (other.isSetLeader()) { - this.leader = TBaseHelper.deepCopy(other.leader); - } - if (other.isSetZone_names()) { - this.zone_names = TBaseHelper.deepCopy(other.zone_names); - } - } - - public GetGroupResp deepCopy() { - return new GetGroupResp(this); - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode getCode() { - return this.code; - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public GetGroupResp setCode(com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public void unsetCode() { - this.code = null; - } - - // Returns true if field code is set (has been assigned a value) and false otherwise - public boolean isSetCode() { - return this.code != null; - } - - public void setCodeIsSet(boolean __value) { - if (!__value) { - this.code = null; - } - } - - public com.vesoft.nebula.HostAddr getLeader() { - return this.leader; - } - - public GetGroupResp setLeader(com.vesoft.nebula.HostAddr leader) { - this.leader = leader; - return this; - } - - public void unsetLeader() { - this.leader = null; - } - - // Returns true if field leader is set (has been assigned a value) and false otherwise - public boolean isSetLeader() { - return this.leader != null; - } - - public void setLeaderIsSet(boolean __value) { - if (!__value) { - this.leader = null; - } - } - - public List getZone_names() { - return this.zone_names; - } - - public GetGroupResp setZone_names(List zone_names) { - this.zone_names = zone_names; - return this; - } - - public void unsetZone_names() { - this.zone_names = null; - } - - // Returns true if field zone_names is set (has been assigned a value) and false otherwise - public boolean isSetZone_names() { - return this.zone_names != null; - } - - public void setZone_namesIsSet(boolean __value) { - if (!__value) { - this.zone_names = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case CODE: - if (__value == null) { - unsetCode(); - } else { - setCode((com.vesoft.nebula.ErrorCode)__value); - } - break; - - case LEADER: - if (__value == null) { - unsetLeader(); - } else { - setLeader((com.vesoft.nebula.HostAddr)__value); - } - break; - - case ZONE_NAMES: - if (__value == null) { - unsetZone_names(); - } else { - setZone_names((List)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case CODE: - return getCode(); - - case LEADER: - return getLeader(); - - case ZONE_NAMES: - return getZone_names(); - - 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 GetGroupResp)) - return false; - GetGroupResp that = (GetGroupResp)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetCode(), that.isSetCode(), this.code, that.code)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetLeader(), that.isSetLeader(), this.leader, that.leader)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetZone_names(), that.isSetZone_names(), this.zone_names, that.zone_names)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {code, leader, zone_names}); - } - - @Override - public int compareTo(GetGroupResp other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetCode()).compareTo(other.isSetCode()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(code, other.code); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetLeader()).compareTo(other.isSetLeader()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(leader, other.leader); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetZone_names()).compareTo(other.isSetZone_names()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(zone_names, other.zone_names); - 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 CODE: - if (__field.type == TType.I32) { - this.code = com.vesoft.nebula.ErrorCode.findByValue(iprot.readI32()); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case LEADER: - if (__field.type == TType.STRUCT) { - this.leader = new com.vesoft.nebula.HostAddr(); - this.leader.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case ZONE_NAMES: - if (__field.type == TType.LIST) { - { - 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[] _elem216; - _elem216 = iprot.readBinary(); - this.zone_names.add(_elem216); - } - 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.code != null) { - oprot.writeFieldBegin(CODE_FIELD_DESC); - oprot.writeI32(this.code == null ? 0 : this.code.getValue()); - oprot.writeFieldEnd(); - } - if (this.leader != null) { - oprot.writeFieldBegin(LEADER_FIELD_DESC); - this.leader.write(oprot); - oprot.writeFieldEnd(); - } - if (this.zone_names != null) { - oprot.writeFieldBegin(ZONE_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new TList(TType.STRING, this.zone_names.size())); - for (byte[] _iter217 : this.zone_names) { - oprot.writeBinary(_iter217); - } - 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("GetGroupResp"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("code"); - sb.append(space); - sb.append(":").append(space); - if (this.getCode() == null) { - sb.append("null"); - } else { - String code_name = this.getCode() == null ? "null" : this.getCode().name(); - if (code_name != null) { - sb.append(code_name); - sb.append(" ("); - } - sb.append(this.getCode()); - if (code_name != null) { - sb.append(")"); - } - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("leader"); - sb.append(space); - sb.append(":").append(space); - if (this.getLeader() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getLeader(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("zone_names"); - sb.append(space); - sb.append(":").append(space); - if (this.getZone_names() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getZone_names(), 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/GetStatisReq.java b/client/src/main/generated/com/vesoft/nebula/meta/GetStatisReq.java deleted file mode 100644 index 9070aac9b..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/GetStatisReq.java +++ /dev/null @@ -1,267 +0,0 @@ -/** - * 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 GetStatisReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("GetStatisReq"); - private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); - - public int space_id; - public static final int SPACE_ID = 1; - - // isset id assignments - private static final int __SPACE_ID_ISSET_ID = 0; - private BitSet __isset_bit_vector = new BitSet(1); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SPACE_ID, new FieldMetaData("space_id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(GetStatisReq.class, metaDataMap); - } - - public GetStatisReq() { - } - - public GetStatisReq( - int space_id) { - this(); - this.space_id = space_id; - setSpace_idIsSet(true); - } - - public static class Builder { - private int space_id; - - BitSet __optional_isset = new BitSet(1); - - public Builder() { - } - - public Builder setSpace_id(final int space_id) { - this.space_id = space_id; - __optional_isset.set(__SPACE_ID_ISSET_ID, true); - return this; - } - - public GetStatisReq build() { - GetStatisReq result = new GetStatisReq(); - if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { - result.setSpace_id(this.space_id); - } - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public GetStatisReq(GetStatisReq other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.space_id = TBaseHelper.deepCopy(other.space_id); - } - - public GetStatisReq deepCopy() { - return new GetStatisReq(this); - } - - public int getSpace_id() { - return this.space_id; - } - - public GetStatisReq setSpace_id(int space_id) { - this.space_id = space_id; - setSpace_idIsSet(true); - return this; - } - - public void unsetSpace_id() { - __isset_bit_vector.clear(__SPACE_ID_ISSET_ID); - } - - // Returns true if field space_id is set (has been assigned a value) and false otherwise - public boolean isSetSpace_id() { - return __isset_bit_vector.get(__SPACE_ID_ISSET_ID); - } - - public void setSpace_idIsSet(boolean __value) { - __isset_bit_vector.set(__SPACE_ID_ISSET_ID, __value); - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SPACE_ID: - if (__value == null) { - unsetSpace_id(); - } else { - setSpace_id((Integer)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SPACE_ID: - return new Integer(getSpace_id()); - - 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 GetStatisReq)) - return false; - GetStatisReq that = (GetStatisReq)_that; - - if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id}); - } - - @Override - public int compareTo(GetStatisReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSpace_id()).compareTo(other.isSetSpace_id()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(space_id, other.space_id); - 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_ID: - if (__field.type == TType.I32) { - this.space_id = iprot.readI32(); - setSpace_idIsSet(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_ID_FIELD_DESC); - oprot.writeI32(this.space_id); - 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("GetStatisReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("space_id"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getSpace_id(), 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/GetStatisResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetStatisResp.java deleted file mode 100644 index 4a018a286..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/GetStatisResp.java +++ /dev/null @@ -1,457 +0,0 @@ -/** - * 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 GetStatisResp implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("GetStatisResp"); - private static final TField CODE_FIELD_DESC = new TField("code", TType.I32, (short)1); - private static final TField LEADER_FIELD_DESC = new TField("leader", TType.STRUCT, (short)2); - private static final TField STATIS_FIELD_DESC = new TField("statis", TType.STRUCT, (short)3); - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode code; - public com.vesoft.nebula.HostAddr leader; - public StatisItem statis; - public static final int CODE = 1; - public static final int LEADER = 2; - public static final int STATIS = 3; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(CODE, new FieldMetaData("code", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(LEADER, new FieldMetaData("leader", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(STATIS, new FieldMetaData("statis", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, StatisItem.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(GetStatisResp.class, metaDataMap); - } - - public GetStatisResp() { - } - - public GetStatisResp( - com.vesoft.nebula.ErrorCode code, - com.vesoft.nebula.HostAddr leader, - StatisItem statis) { - this(); - this.code = code; - this.leader = leader; - this.statis = statis; - } - - public static class Builder { - private com.vesoft.nebula.ErrorCode code; - private com.vesoft.nebula.HostAddr leader; - private StatisItem statis; - - public Builder() { - } - - public Builder setCode(final com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public Builder setLeader(final com.vesoft.nebula.HostAddr leader) { - this.leader = leader; - return this; - } - - public Builder setStatis(final StatisItem statis) { - this.statis = statis; - return this; - } - - public GetStatisResp build() { - GetStatisResp result = new GetStatisResp(); - result.setCode(this.code); - result.setLeader(this.leader); - result.setStatis(this.statis); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public GetStatisResp(GetStatisResp other) { - if (other.isSetCode()) { - this.code = TBaseHelper.deepCopy(other.code); - } - if (other.isSetLeader()) { - this.leader = TBaseHelper.deepCopy(other.leader); - } - if (other.isSetStatis()) { - this.statis = TBaseHelper.deepCopy(other.statis); - } - } - - public GetStatisResp deepCopy() { - return new GetStatisResp(this); - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode getCode() { - return this.code; - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public GetStatisResp setCode(com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public void unsetCode() { - this.code = null; - } - - // Returns true if field code is set (has been assigned a value) and false otherwise - public boolean isSetCode() { - return this.code != null; - } - - public void setCodeIsSet(boolean __value) { - if (!__value) { - this.code = null; - } - } - - public com.vesoft.nebula.HostAddr getLeader() { - return this.leader; - } - - public GetStatisResp setLeader(com.vesoft.nebula.HostAddr leader) { - this.leader = leader; - return this; - } - - public void unsetLeader() { - this.leader = null; - } - - // Returns true if field leader is set (has been assigned a value) and false otherwise - public boolean isSetLeader() { - return this.leader != null; - } - - public void setLeaderIsSet(boolean __value) { - if (!__value) { - this.leader = null; - } - } - - public StatisItem getStatis() { - return this.statis; - } - - public GetStatisResp setStatis(StatisItem statis) { - this.statis = statis; - return this; - } - - public void unsetStatis() { - this.statis = null; - } - - // Returns true if field statis is set (has been assigned a value) and false otherwise - public boolean isSetStatis() { - return this.statis != null; - } - - public void setStatisIsSet(boolean __value) { - if (!__value) { - this.statis = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case CODE: - if (__value == null) { - unsetCode(); - } else { - setCode((com.vesoft.nebula.ErrorCode)__value); - } - break; - - case LEADER: - if (__value == null) { - unsetLeader(); - } else { - setLeader((com.vesoft.nebula.HostAddr)__value); - } - break; - - case STATIS: - if (__value == null) { - unsetStatis(); - } else { - setStatis((StatisItem)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case CODE: - return getCode(); - - case LEADER: - return getLeader(); - - case STATIS: - return getStatis(); - - 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 GetStatisResp)) - return false; - GetStatisResp that = (GetStatisResp)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetCode(), that.isSetCode(), this.code, that.code)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetLeader(), that.isSetLeader(), this.leader, that.leader)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetStatis(), that.isSetStatis(), this.statis, that.statis)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {code, leader, statis}); - } - - @Override - public int compareTo(GetStatisResp other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetCode()).compareTo(other.isSetCode()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(code, other.code); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetLeader()).compareTo(other.isSetLeader()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(leader, other.leader); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetStatis()).compareTo(other.isSetStatis()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(statis, other.statis); - 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 CODE: - if (__field.type == TType.I32) { - this.code = com.vesoft.nebula.ErrorCode.findByValue(iprot.readI32()); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case LEADER: - if (__field.type == TType.STRUCT) { - this.leader = new com.vesoft.nebula.HostAddr(); - this.leader.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case STATIS: - if (__field.type == TType.STRUCT) { - this.statis = new StatisItem(); - this.statis.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.code != null) { - oprot.writeFieldBegin(CODE_FIELD_DESC); - oprot.writeI32(this.code == null ? 0 : this.code.getValue()); - oprot.writeFieldEnd(); - } - if (this.leader != null) { - oprot.writeFieldBegin(LEADER_FIELD_DESC); - this.leader.write(oprot); - oprot.writeFieldEnd(); - } - if (this.statis != null) { - oprot.writeFieldBegin(STATIS_FIELD_DESC); - this.statis.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("GetStatisResp"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("code"); - sb.append(space); - sb.append(":").append(space); - if (this.getCode() == null) { - sb.append("null"); - } else { - String code_name = this.getCode() == null ? "null" : this.getCode().name(); - if (code_name != null) { - sb.append(code_name); - sb.append(" ("); - } - sb.append(this.getCode()); - if (code_name != null) { - sb.append(")"); - } - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("leader"); - sb.append(space); - sb.append(":").append(space); - if (this.getLeader() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getLeader(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("statis"); - sb.append(space); - sb.append(":").append(space); - if (this.getStatis() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getStatis(), 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/GetZoneResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetZoneResp.java index 3a74cfcd4..c6f6a63d8 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 _list228 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list228.size)); - for (int _i229 = 0; - (_list228.size < 0) ? iprot.peekList() : (_i229 < _list228.size); - ++_i229) + TList _list232 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list232.size)); + for (int _i233 = 0; + (_list232.size < 0) ? iprot.peekList() : (_i233 < _list232.size); + ++_i233) { - com.vesoft.nebula.HostAddr _elem230; - _elem230 = new com.vesoft.nebula.HostAddr(); - _elem230.read(iprot); - this.hosts.add(_elem230); + com.vesoft.nebula.HostAddr _elem234; + _elem234 = new com.vesoft.nebula.HostAddr(); + _elem234.read(iprot); + this.hosts.add(_elem234); } 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 _iter231 : this.hosts) { - _iter231.write(oprot); + for (com.vesoft.nebula.HostAddr _iter235 : this.hosts) { + _iter235.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 deleted file mode 100644 index 4dd7090c1..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/Group.java +++ /dev/null @@ -1,375 +0,0 @@ -/** - * 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 Group implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("Group"); - private static final TField GROUP_NAME_FIELD_DESC = new TField("group_name", TType.STRING, (short)1); - private static final TField ZONE_NAMES_FIELD_DESC = new TField("zone_names", TType.LIST, (short)2); - - public byte[] group_name; - public List zone_names; - public static final int GROUP_NAME = 1; - public static final int ZONE_NAMES = 2; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(GROUP_NAME, new FieldMetaData("group_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(ZONE_NAMES, new FieldMetaData("zone_names", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(Group.class, metaDataMap); - } - - public Group() { - } - - public Group( - byte[] group_name, - List zone_names) { - this(); - this.group_name = group_name; - this.zone_names = zone_names; - } - - public static class Builder { - private byte[] group_name; - private List zone_names; - - public Builder() { - } - - public Builder setGroup_name(final byte[] group_name) { - this.group_name = group_name; - return this; - } - - public Builder setZone_names(final List zone_names) { - this.zone_names = zone_names; - return this; - } - - public Group build() { - Group result = new Group(); - result.setGroup_name(this.group_name); - result.setZone_names(this.zone_names); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public Group(Group other) { - if (other.isSetGroup_name()) { - this.group_name = TBaseHelper.deepCopy(other.group_name); - } - if (other.isSetZone_names()) { - this.zone_names = TBaseHelper.deepCopy(other.zone_names); - } - } - - public Group deepCopy() { - return new Group(this); - } - - public byte[] getGroup_name() { - return this.group_name; - } - - public Group setGroup_name(byte[] group_name) { - this.group_name = group_name; - return this; - } - - public void unsetGroup_name() { - this.group_name = null; - } - - // Returns true if field group_name is set (has been assigned a value) and false otherwise - public boolean isSetGroup_name() { - return this.group_name != null; - } - - public void setGroup_nameIsSet(boolean __value) { - if (!__value) { - this.group_name = null; - } - } - - public List getZone_names() { - return this.zone_names; - } - - public Group setZone_names(List zone_names) { - this.zone_names = zone_names; - return this; - } - - public void unsetZone_names() { - this.zone_names = null; - } - - // Returns true if field zone_names is set (has been assigned a value) and false otherwise - public boolean isSetZone_names() { - return this.zone_names != null; - } - - public void setZone_namesIsSet(boolean __value) { - if (!__value) { - this.zone_names = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case GROUP_NAME: - if (__value == null) { - unsetGroup_name(); - } else { - setGroup_name((byte[])__value); - } - break; - - case ZONE_NAMES: - if (__value == null) { - unsetZone_names(); - } else { - setZone_names((List)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case GROUP_NAME: - return getGroup_name(); - - case ZONE_NAMES: - return getZone_names(); - - 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 Group)) - return false; - Group that = (Group)_that; - - if (!TBaseHelper.equalsSlow(this.isSetGroup_name(), that.isSetGroup_name(), this.group_name, that.group_name)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetZone_names(), that.isSetZone_names(), this.zone_names, that.zone_names)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {group_name, zone_names}); - } - - @Override - public int compareTo(Group other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetGroup_name()).compareTo(other.isSetGroup_name()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(group_name, other.group_name); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetZone_names()).compareTo(other.isSetZone_names()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(zone_names, other.zone_names); - 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 GROUP_NAME: - if (__field.type == TType.STRING) { - this.group_name = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - 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) - { - byte[] _elem220; - _elem220 = iprot.readBinary(); - this.zone_names.add(_elem220); - } - 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.group_name != null) { - oprot.writeFieldBegin(GROUP_NAME_FIELD_DESC); - oprot.writeBinary(this.group_name); - oprot.writeFieldEnd(); - } - if (this.zone_names != null) { - 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); - } - 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("Group"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("group_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getGroup_name() == null) { - sb.append("null"); - } else { - int __group_name_size = Math.min(this.getGroup_name().length, 128); - for (int i = 0; i < __group_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getGroup_name()[i]).length() > 1 ? Integer.toHexString(this.getGroup_name()[i]).substring(Integer.toHexString(this.getGroup_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getGroup_name()[i]).toUpperCase()); - } - if (this.getGroup_name().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("zone_names"); - sb.append(space); - sb.append(":").append(space); - if (this.getZone_names() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getZone_names(), 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/HBReq.java b/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java index ea800cae9..5f482dd6e 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java @@ -32,6 +32,8 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable 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 DISK_PARTS_FIELD_DESC = new TField("disk_parts", TType.MAP, (short)6); + private static final TField DIR_FIELD_DESC = new TField("dir", TType.STRUCT, (short)7); + private static final TField VERSION_FIELD_DESC = new TField("version", TType.STRING, (short)8); /** * @@ -43,12 +45,16 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable public Map> leader_partIds; public byte[] git_info_sha; public Map> disk_parts; + public com.vesoft.nebula.DirInfo dir; + public byte[] version; 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 DISK_PARTS = 6; + public static final int DIR = 7; + public static final int VERSION = 8; // isset id assignments private static final int __CLUSTER_ID_ISSET_ID = 0; @@ -77,6 +83,10 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable new MapMetaData(TType.MAP, new FieldValueMetaData(TType.STRING), new StructMetaData(TType.STRUCT, PartitionList.class))))); + tmpMetaDataMap.put(DIR, new FieldMetaData("dir", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.DirInfo.class))); + tmpMetaDataMap.put(VERSION, new FieldMetaData("version", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -106,7 +116,9 @@ public HBReq( long cluster_id, Map> leader_partIds, byte[] git_info_sha, - Map> disk_parts) { + Map> disk_parts, + com.vesoft.nebula.DirInfo dir, + byte[] version) { this(); this.role = role; this.host = host; @@ -115,6 +127,8 @@ public HBReq( this.leader_partIds = leader_partIds; this.git_info_sha = git_info_sha; this.disk_parts = disk_parts; + this.dir = dir; + this.version = version; } public static class Builder { @@ -124,6 +138,8 @@ public static class Builder { private Map> leader_partIds; private byte[] git_info_sha; private Map> disk_parts; + private com.vesoft.nebula.DirInfo dir; + private byte[] version; BitSet __optional_isset = new BitSet(1); @@ -161,6 +177,16 @@ public Builder setDisk_parts(final Map> disk_p return this; } + public Builder setDir(final com.vesoft.nebula.DirInfo dir) { + this.dir = dir; + return this; + } + + public Builder setVersion(final byte[] version) { + this.version = version; + return this; + } + public HBReq build() { HBReq result = new HBReq(); result.setRole(this.role); @@ -171,6 +197,8 @@ public HBReq build() { result.setLeader_partIds(this.leader_partIds); result.setGit_info_sha(this.git_info_sha); result.setDisk_parts(this.disk_parts); + result.setDir(this.dir); + result.setVersion(this.version); return result; } } @@ -201,6 +229,12 @@ public HBReq(HBReq other) { if (other.isSetDisk_parts()) { this.disk_parts = TBaseHelper.deepCopy(other.disk_parts); } + if (other.isSetDir()) { + this.dir = TBaseHelper.deepCopy(other.dir); + } + if (other.isSetVersion()) { + this.version = TBaseHelper.deepCopy(other.version); + } } public HBReq deepCopy() { @@ -358,6 +392,54 @@ public void setDisk_partsIsSet(boolean __value) { } } + public com.vesoft.nebula.DirInfo getDir() { + return this.dir; + } + + public HBReq setDir(com.vesoft.nebula.DirInfo dir) { + this.dir = dir; + return this; + } + + public void unsetDir() { + this.dir = null; + } + + // Returns true if field dir is set (has been assigned a value) and false otherwise + public boolean isSetDir() { + return this.dir != null; + } + + public void setDirIsSet(boolean __value) { + if (!__value) { + this.dir = null; + } + } + + public byte[] getVersion() { + return this.version; + } + + public HBReq setVersion(byte[] version) { + this.version = version; + return this; + } + + public void unsetVersion() { + this.version = null; + } + + // Returns true if field version is set (has been assigned a value) and false otherwise + public boolean isSetVersion() { + return this.version != null; + } + + public void setVersionIsSet(boolean __value) { + if (!__value) { + this.version = null; + } + } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -409,6 +491,22 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case DIR: + if (__value == null) { + unsetDir(); + } else { + setDir((com.vesoft.nebula.DirInfo)__value); + } + break; + + case VERSION: + if (__value == null) { + unsetVersion(); + } else { + setVersion((byte[])__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -434,6 +532,12 @@ public Object getFieldValue(int fieldID) { case DISK_PARTS: return getDisk_parts(); + case DIR: + return getDir(); + + case VERSION: + return getVersion(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -461,12 +565,16 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetDisk_parts(), that.isSetDisk_parts(), this.disk_parts, that.disk_parts)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetDir(), that.isSetDir(), this.dir, that.dir)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetVersion(), that.isSetVersion(), this.version, that.version)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {role, host, cluster_id, leader_partIds, git_info_sha, disk_parts}); + return Arrays.deepHashCode(new Object[] {role, host, cluster_id, leader_partIds, git_info_sha, disk_parts, dir, version}); } @Override @@ -529,6 +637,22 @@ public int compareTo(HBReq other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetDir()).compareTo(other.isSetDir()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(dir, other.dir); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(version, other.version); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -643,6 +767,21 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case DIR: + if (__field.type == TType.STRUCT) { + this.dir = new com.vesoft.nebula.DirInfo(); + this.dir.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case VERSION: + if (__field.type == TType.STRING) { + this.version = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -719,6 +858,20 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } } + if (this.dir != null) { + if (isSetDir()) { + oprot.writeFieldBegin(DIR_FIELD_DESC); + this.dir.write(oprot); + oprot.writeFieldEnd(); + } + } + if (this.version != null) { + if (isSetVersion()) { + oprot.writeFieldBegin(VERSION_FIELD_DESC); + oprot.writeBinary(this.version); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -819,6 +972,39 @@ public String toString(int indent, boolean prettyPrint) { } first = false; } + if (isSetDir()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("dir"); + sb.append(space); + sb.append(":").append(space); + if (this.getDir() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getDir(), indent + 1, prettyPrint)); + } + first = false; + } + if (isSetVersion()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("version"); + sb.append(space); + sb.append(":").append(space); + if (this.getVersion() == 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(" ..."); + } + first = false; + } sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); sb.append(")"); return sb.toString(); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/HostBackupInfo.java similarity index 64% rename from client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java rename to client/src/main/generated/com/vesoft/nebula/meta/HostBackupInfo.java index f8387b031..87523998f 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/BackupInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/HostBackupInfo.java @@ -24,15 +24,15 @@ import com.facebook.thrift.protocol.*; @SuppressWarnings({ "unused", "serial" }) -public class BackupInfo implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("BackupInfo"); +public class HostBackupInfo implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("HostBackupInfo"); private static final TField HOST_FIELD_DESC = new TField("host", TType.STRUCT, (short)1); - private static final TField INFO_FIELD_DESC = new TField("info", TType.LIST, (short)2); + private static final TField CHECKPOINTS_FIELD_DESC = new TField("checkpoints", TType.LIST, (short)2); public com.vesoft.nebula.HostAddr host; - public List info; + public List checkpoints; public static final int HOST = 1; - public static final int INFO = 2; + public static final int CHECKPOINTS = 2; // isset id assignments @@ -42,30 +42,30 @@ public class BackupInfo implements TBase, java.io.Serializable, Cloneable, Compa Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(HOST, new FieldMetaData("host", TFieldRequirementType.DEFAULT, new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(INFO, new FieldMetaData("info", TFieldRequirementType.DEFAULT, + tmpMetaDataMap.put(CHECKPOINTS, new FieldMetaData("checkpoints", TFieldRequirementType.DEFAULT, new ListMetaData(TType.LIST, new StructMetaData(TType.STRUCT, com.vesoft.nebula.CheckpointInfo.class)))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(BackupInfo.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(HostBackupInfo.class, metaDataMap); } - public BackupInfo() { + public HostBackupInfo() { } - public BackupInfo( + public HostBackupInfo( com.vesoft.nebula.HostAddr host, - List info) { + List checkpoints) { this(); this.host = host; - this.info = info; + this.checkpoints = checkpoints; } public static class Builder { private com.vesoft.nebula.HostAddr host; - private List info; + private List checkpoints; public Builder() { } @@ -75,15 +75,15 @@ public Builder setHost(final com.vesoft.nebula.HostAddr host) { return this; } - public Builder setInfo(final List info) { - this.info = info; + public Builder setCheckpoints(final List checkpoints) { + this.checkpoints = checkpoints; return this; } - public BackupInfo build() { - BackupInfo result = new BackupInfo(); + public HostBackupInfo build() { + HostBackupInfo result = new HostBackupInfo(); result.setHost(this.host); - result.setInfo(this.info); + result.setCheckpoints(this.checkpoints); return result; } } @@ -95,24 +95,24 @@ public static Builder builder() { /** * Performs a deep copy on other. */ - public BackupInfo(BackupInfo other) { + public HostBackupInfo(HostBackupInfo other) { if (other.isSetHost()) { this.host = TBaseHelper.deepCopy(other.host); } - if (other.isSetInfo()) { - this.info = TBaseHelper.deepCopy(other.info); + if (other.isSetCheckpoints()) { + this.checkpoints = TBaseHelper.deepCopy(other.checkpoints); } } - public BackupInfo deepCopy() { - return new BackupInfo(this); + public HostBackupInfo deepCopy() { + return new HostBackupInfo(this); } public com.vesoft.nebula.HostAddr getHost() { return this.host; } - public BackupInfo setHost(com.vesoft.nebula.HostAddr host) { + public HostBackupInfo setHost(com.vesoft.nebula.HostAddr host) { this.host = host; return this; } @@ -132,27 +132,27 @@ public void setHostIsSet(boolean __value) { } } - public List getInfo() { - return this.info; + public List getCheckpoints() { + return this.checkpoints; } - public BackupInfo setInfo(List info) { - this.info = info; + public HostBackupInfo setCheckpoints(List checkpoints) { + this.checkpoints = checkpoints; return this; } - public void unsetInfo() { - this.info = null; + public void unsetCheckpoints() { + this.checkpoints = null; } - // Returns true if field info is set (has been assigned a value) and false otherwise - public boolean isSetInfo() { - return this.info != null; + // Returns true if field checkpoints is set (has been assigned a value) and false otherwise + public boolean isSetCheckpoints() { + return this.checkpoints != null; } - public void setInfoIsSet(boolean __value) { + public void setCheckpointsIsSet(boolean __value) { if (!__value) { - this.info = null; + this.checkpoints = null; } } @@ -167,11 +167,11 @@ public void setFieldValue(int fieldID, Object __value) { } break; - case INFO: + case CHECKPOINTS: if (__value == null) { - unsetInfo(); + unsetCheckpoints(); } else { - setInfo((List)__value); + setCheckpoints((List)__value); } break; @@ -185,8 +185,8 @@ public Object getFieldValue(int fieldID) { case HOST: return getHost(); - case INFO: - return getInfo(); + case CHECKPOINTS: + return getCheckpoints(); default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); @@ -199,24 +199,24 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof BackupInfo)) + if (!(_that instanceof HostBackupInfo)) return false; - BackupInfo that = (BackupInfo)_that; + HostBackupInfo that = (HostBackupInfo)_that; if (!TBaseHelper.equalsNobinary(this.isSetHost(), that.isSetHost(), this.host, that.host)) { return false; } - if (!TBaseHelper.equalsNobinary(this.isSetInfo(), that.isSetInfo(), this.info, that.info)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetCheckpoints(), that.isSetCheckpoints(), this.checkpoints, that.checkpoints)) { return false; } return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {host, info}); + return Arrays.deepHashCode(new Object[] {host, checkpoints}); } @Override - public int compareTo(BackupInfo other) { + public int compareTo(HostBackupInfo other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -235,11 +235,11 @@ public int compareTo(BackupInfo other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetInfo()).compareTo(other.isSetInfo()); + lastComparison = Boolean.valueOf(isSetCheckpoints()).compareTo(other.isSetCheckpoints()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(info, other.info); + lastComparison = TBaseHelper.compareTo(checkpoints, other.checkpoints); if (lastComparison != 0) { return lastComparison; } @@ -265,19 +265,19 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case INFO: + case CHECKPOINTS: if (__field.type == TType.LIST) { { - TList _list248 = iprot.readListBegin(); - this.info = new ArrayList(Math.max(0, _list248.size)); - for (int _i249 = 0; - (_list248.size < 0) ? iprot.peekList() : (_i249 < _list248.size); - ++_i249) + TList _list252 = iprot.readListBegin(); + this.checkpoints = new ArrayList(Math.max(0, _list252.size)); + for (int _i253 = 0; + (_list252.size < 0) ? iprot.peekList() : (_i253 < _list252.size); + ++_i253) { - com.vesoft.nebula.CheckpointInfo _elem250; - _elem250 = new com.vesoft.nebula.CheckpointInfo(); - _elem250.read(iprot); - this.info.add(_elem250); + com.vesoft.nebula.CheckpointInfo _elem254; + _elem254 = new com.vesoft.nebula.CheckpointInfo(); + _elem254.read(iprot); + this.checkpoints.add(_elem254); } iprot.readListEnd(); } @@ -307,12 +307,12 @@ public void write(TProtocol oprot) throws TException { this.host.write(oprot); oprot.writeFieldEnd(); } - if (this.info != null) { - oprot.writeFieldBegin(INFO_FIELD_DESC); + if (this.checkpoints != null) { + oprot.writeFieldBegin(CHECKPOINTS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.info.size())); - for (com.vesoft.nebula.CheckpointInfo _iter251 : this.info) { - _iter251.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, this.checkpoints.size())); + for (com.vesoft.nebula.CheckpointInfo _iter255 : this.checkpoints) { + _iter255.write(oprot); } oprot.writeListEnd(); } @@ -332,7 +332,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("BackupInfo"); + StringBuilder sb = new StringBuilder("HostBackupInfo"); sb.append(space); sb.append("("); sb.append(newLine); @@ -350,13 +350,13 @@ public String toString(int indent, boolean prettyPrint) { first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); - sb.append("info"); + sb.append("checkpoints"); sb.append(space); sb.append(":").append(space); - if (this.getInfo() == null) { + if (this.getCheckpoints() == null) { sb.append("null"); } else { - sb.append(TBaseHelper.toString(this.getInfo(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.getCheckpoints(), indent + 1, prettyPrint)); } first = false; sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/HostRole.java b/client/src/main/generated/com/vesoft/nebula/meta/HostRole.java index 23067c70a..5b3fdf29f 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/HostRole.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/HostRole.java @@ -17,7 +17,8 @@ public enum HostRole implements com.facebook.thrift.TEnum { META(1), STORAGE(2), LISTENER(3), - UNKNOWN(4); + AGENT(4), + UNKNOWN(5); private final int value; @@ -47,6 +48,8 @@ public static HostRole findByValue(int value) { case 3: return LISTENER; case 4: + return AGENT; + case 5: return UNKNOWN; default: return null; diff --git a/client/src/main/generated/com/vesoft/nebula/meta/IndexItem.java b/client/src/main/generated/com/vesoft/nebula/meta/IndexItem.java index 20fabbffe..6df66ef3a 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/IndexItem.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/IndexItem.java @@ -32,6 +32,7 @@ public class IndexItem implements TBase, java.io.Serializable, Cloneable, Compar private static final TField SCHEMA_NAME_FIELD_DESC = new TField("schema_name", TType.STRING, (short)4); private static final TField FIELDS_FIELD_DESC = new TField("fields", TType.LIST, (short)5); private static final TField COMMENT_FIELD_DESC = new TField("comment", TType.STRING, (short)6); + private static final TField INDEX_PARAMS_FIELD_DESC = new TField("index_params", TType.STRUCT, (short)7); public int index_id; public byte[] index_name; @@ -39,12 +40,14 @@ public class IndexItem implements TBase, java.io.Serializable, Cloneable, Compar public byte[] schema_name; public List fields; public byte[] comment; + public IndexParams index_params; public static final int INDEX_ID = 1; public static final int INDEX_NAME = 2; public static final int SCHEMA_ID = 3; public static final int SCHEMA_NAME = 4; public static final int FIELDS = 5; public static final int COMMENT = 6; + public static final int INDEX_PARAMS = 7; // isset id assignments private static final int __INDEX_ID_ISSET_ID = 0; @@ -67,6 +70,8 @@ public class IndexItem implements TBase, java.io.Serializable, Cloneable, Compar new StructMetaData(TType.STRUCT, ColumnDef.class)))); tmpMetaDataMap.put(COMMENT, new FieldMetaData("comment", TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(INDEX_PARAMS, new FieldMetaData("index_params", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, IndexParams.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -98,7 +103,8 @@ public IndexItem( com.vesoft.nebula.SchemaID schema_id, byte[] schema_name, List fields, - byte[] comment) { + byte[] comment, + IndexParams index_params) { this(); this.index_id = index_id; setIndex_idIsSet(true); @@ -107,6 +113,7 @@ public IndexItem( this.schema_name = schema_name; this.fields = fields; this.comment = comment; + this.index_params = index_params; } public static class Builder { @@ -116,6 +123,7 @@ public static class Builder { private byte[] schema_name; private List fields; private byte[] comment; + private IndexParams index_params; BitSet __optional_isset = new BitSet(1); @@ -153,6 +161,11 @@ public Builder setComment(final byte[] comment) { return this; } + public Builder setIndex_params(final IndexParams index_params) { + this.index_params = index_params; + return this; + } + public IndexItem build() { IndexItem result = new IndexItem(); if (__optional_isset.get(__INDEX_ID_ISSET_ID)) { @@ -163,6 +176,7 @@ public IndexItem build() { result.setSchema_name(this.schema_name); result.setFields(this.fields); result.setComment(this.comment); + result.setIndex_params(this.index_params); return result; } } @@ -193,6 +207,9 @@ public IndexItem(IndexItem other) { if (other.isSetComment()) { this.comment = TBaseHelper.deepCopy(other.comment); } + if (other.isSetIndex_params()) { + this.index_params = TBaseHelper.deepCopy(other.index_params); + } } public IndexItem deepCopy() { @@ -342,6 +359,30 @@ public void setCommentIsSet(boolean __value) { } } + public IndexParams getIndex_params() { + return this.index_params; + } + + public IndexItem setIndex_params(IndexParams index_params) { + this.index_params = index_params; + return this; + } + + public void unsetIndex_params() { + this.index_params = null; + } + + // Returns true if field index_params is set (has been assigned a value) and false otherwise + public boolean isSetIndex_params() { + return this.index_params != null; + } + + public void setIndex_paramsIsSet(boolean __value) { + if (!__value) { + this.index_params = null; + } + } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -393,6 +434,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case INDEX_PARAMS: + if (__value == null) { + unsetIndex_params(); + } else { + setIndex_params((IndexParams)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -418,6 +467,9 @@ public Object getFieldValue(int fieldID) { case COMMENT: return getComment(); + case INDEX_PARAMS: + return getIndex_params(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -445,12 +497,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetComment(), that.isSetComment(), this.comment, that.comment)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetIndex_params(), that.isSetIndex_params(), this.index_params, that.index_params)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {index_id, index_name, schema_id, schema_name, fields, comment}); + return Arrays.deepHashCode(new Object[] {index_id, index_name, schema_id, schema_name, fields, comment, index_params}); } @Override @@ -513,6 +567,14 @@ public int compareTo(IndexItem other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetIndex_params()).compareTo(other.isSetIndex_params()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(index_params, other.index_params); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -584,6 +646,14 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case INDEX_PARAMS: + if (__field.type == TType.STRUCT) { + this.index_params = new IndexParams(); + this.index_params.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -637,6 +707,13 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } } + if (this.index_params != null) { + if (isSetIndex_params()) { + oprot.writeFieldBegin(INDEX_PARAMS_FIELD_DESC); + this.index_params.write(oprot); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -736,6 +813,20 @@ public String toString(int indent, boolean prettyPrint) { } first = false; } + if (isSetIndex_params()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("index_params"); + sb.append(space); + sb.append(":").append(space); + if (this.getIndex_params() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getIndex_params(), 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/IndexParams.java b/client/src/main/generated/com/vesoft/nebula/meta/IndexParams.java new file mode 100644 index 000000000..e96d81751 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/IndexParams.java @@ -0,0 +1,359 @@ +/** + * 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 S2_MAX_LEVEL_FIELD_DESC = new TField("s2_max_level", TType.I32, (short)1); + private static final TField S2_MAX_CELLS_FIELD_DESC = new TField("s2_max_cells", TType.I32, (short)2); + + public int s2_max_level; + public int s2_max_cells; + public static final int S2_MAX_LEVEL = 1; + public static final int S2_MAX_CELLS = 2; + + // 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(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( + int s2_max_level, + int s2_max_cells) { + this(); + 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 int s2_max_level; + private int s2_max_cells; + + BitSet __optional_isset = new BitSet(2); + + public Builder() { + } + + 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(); + 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); + 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 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 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 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.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[] {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(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 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 (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 (isSetS2_max_level()) + { + 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 ebdd259a9..b06cb44bc 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 _map322 = iprot.readMapBegin(); - this.kill_queries = new HashMap>(Math.max(0, 2*_map322.size)); - for (int _i323 = 0; - (_map322.size < 0) ? iprot.peekMap() : (_i323 < _map322.size); - ++_i323) + TMap _map326 = iprot.readMapBegin(); + this.kill_queries = new HashMap>(Math.max(0, 2*_map326.size)); + for (int _i327 = 0; + (_map326.size < 0) ? iprot.peekMap() : (_i327 < _map326.size); + ++_i327) { - long _key324; - Set _val325; - _key324 = iprot.readI64(); + long _key328; + Set _val329; + _key328 = iprot.readI64(); { - TSet _set326 = iprot.readSetBegin(); - _val325 = new HashSet(Math.max(0, 2*_set326.size)); - for (int _i327 = 0; - (_set326.size < 0) ? iprot.peekSet() : (_i327 < _set326.size); - ++_i327) + TSet _set330 = iprot.readSetBegin(); + _val329 = new HashSet(Math.max(0, 2*_set330.size)); + for (int _i331 = 0; + (_set330.size < 0) ? iprot.peekSet() : (_i331 < _set330.size); + ++_i331) { - long _elem328; - _elem328 = iprot.readI64(); - _val325.add(_elem328); + long _elem332; + _elem332 = iprot.readI64(); + _val329.add(_elem332); } iprot.readSetEnd(); } - this.kill_queries.put(_key324, _val325); + this.kill_queries.put(_key328, _val329); } 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> _iter329 : this.kill_queries.entrySet()) { - oprot.writeI64(_iter329.getKey()); + for (Map.Entry> _iter333 : this.kill_queries.entrySet()) { + oprot.writeI64(_iter333.getKey()); { - oprot.writeSetBegin(new TSet(TType.I64, _iter329.getValue().size())); - for (long _iter330 : _iter329.getValue()) { - oprot.writeI64(_iter330); + oprot.writeSetBegin(new TSet(TType.I64, _iter333.getValue().size())); + for (long _iter334 : _iter333.getValue()) { + oprot.writeI64(_iter334); } oprot.writeSetEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/LeaderBalanceReq.java b/client/src/main/generated/com/vesoft/nebula/meta/LeaderBalanceReq.java deleted file mode 100644 index c9c4a6bc0..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/LeaderBalanceReq.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * 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 LeaderBalanceReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("LeaderBalanceReq"); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(LeaderBalanceReq.class, metaDataMap); - } - - public LeaderBalanceReq() { - } - - public static class Builder { - - public Builder() { - } - - public LeaderBalanceReq build() { - LeaderBalanceReq result = new LeaderBalanceReq(); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public LeaderBalanceReq(LeaderBalanceReq other) { - } - - public LeaderBalanceReq deepCopy() { - return new LeaderBalanceReq(this); - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - 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 LeaderBalanceReq)) - return false; - LeaderBalanceReq that = (LeaderBalanceReq)_that; - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {}); - } - - @Override - public int compareTo(LeaderBalanceReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - 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) - { - 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.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("LeaderBalanceReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - 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/ListAllSessionsReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListAllSessionsReq.java deleted file mode 100644 index dae1437e8..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListAllSessionsReq.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * 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 ListAllSessionsReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("ListAllSessionsReq"); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(ListAllSessionsReq.class, metaDataMap); - } - - public ListAllSessionsReq() { - } - - public static class Builder { - - public Builder() { - } - - public ListAllSessionsReq build() { - ListAllSessionsReq result = new ListAllSessionsReq(); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public ListAllSessionsReq(ListAllSessionsReq other) { - } - - public ListAllSessionsReq deepCopy() { - return new ListAllSessionsReq(this); - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - 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 ListAllSessionsReq)) - return false; - ListAllSessionsReq that = (ListAllSessionsReq)_that; - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {}); - } - - @Override - public int compareTo(ListAllSessionsReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - 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) - { - 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.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("ListAllSessionsReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - 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/ListAllSessionsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListAllSessionsResp.java deleted file mode 100644 index 53c5a5115..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListAllSessionsResp.java +++ /dev/null @@ -1,438 +0,0 @@ -/** - * 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 ListAllSessionsResp implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("ListAllSessionsResp"); - private static final TField CODE_FIELD_DESC = new TField("code", TType.I32, (short)1); - private static final TField LEADER_FIELD_DESC = new TField("leader", TType.STRUCT, (short)2); - private static final TField SESSIONS_FIELD_DESC = new TField("sessions", TType.LIST, (short)3); - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode code; - public com.vesoft.nebula.HostAddr leader; - public List sessions; - public static final int CODE = 1; - public static final int LEADER = 2; - public static final int SESSIONS = 3; - - // isset id assignments - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(CODE, new FieldMetaData("code", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(LEADER, new FieldMetaData("leader", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(SESSIONS, new FieldMetaData("sessions", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Session.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(ListAllSessionsResp.class, metaDataMap); - } - - public ListAllSessionsResp() { - } - - public ListAllSessionsResp( - com.vesoft.nebula.ErrorCode code, - com.vesoft.nebula.HostAddr leader, - List sessions) { - this(); - this.code = code; - this.leader = leader; - this.sessions = sessions; - } - - public static class Builder { - private com.vesoft.nebula.ErrorCode code; - private com.vesoft.nebula.HostAddr leader; - private List sessions; - - public Builder() { - } - - public Builder setCode(final com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public Builder setLeader(final com.vesoft.nebula.HostAddr leader) { - this.leader = leader; - return this; - } - - public Builder setSessions(final List sessions) { - this.sessions = sessions; - return this; - } - - public ListAllSessionsResp build() { - ListAllSessionsResp result = new ListAllSessionsResp(); - result.setCode(this.code); - result.setLeader(this.leader); - result.setSessions(this.sessions); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public ListAllSessionsResp(ListAllSessionsResp other) { - if (other.isSetCode()) { - this.code = TBaseHelper.deepCopy(other.code); - } - if (other.isSetLeader()) { - this.leader = TBaseHelper.deepCopy(other.leader); - } - if (other.isSetSessions()) { - this.sessions = TBaseHelper.deepCopy(other.sessions); - } - } - - public ListAllSessionsResp deepCopy() { - return new ListAllSessionsResp(this); - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public com.vesoft.nebula.ErrorCode getCode() { - return this.code; - } - - /** - * - * @see com.vesoft.nebula.ErrorCode - */ - public ListAllSessionsResp setCode(com.vesoft.nebula.ErrorCode code) { - this.code = code; - return this; - } - - public void unsetCode() { - this.code = null; - } - - // Returns true if field code is set (has been assigned a value) and false otherwise - public boolean isSetCode() { - return this.code != null; - } - - public void setCodeIsSet(boolean __value) { - if (!__value) { - this.code = null; - } - } - - public com.vesoft.nebula.HostAddr getLeader() { - return this.leader; - } - - public ListAllSessionsResp setLeader(com.vesoft.nebula.HostAddr leader) { - this.leader = leader; - return this; - } - - public void unsetLeader() { - this.leader = null; - } - - // Returns true if field leader is set (has been assigned a value) and false otherwise - public boolean isSetLeader() { - return this.leader != null; - } - - public void setLeaderIsSet(boolean __value) { - if (!__value) { - this.leader = null; - } - } - - public List getSessions() { - return this.sessions; - } - - public ListAllSessionsResp setSessions(List sessions) { - this.sessions = sessions; - return this; - } - - public void unsetSessions() { - this.sessions = null; - } - - // Returns true if field sessions is set (has been assigned a value) and false otherwise - public boolean isSetSessions() { - return this.sessions != null; - } - - public void setSessionsIsSet(boolean __value) { - if (!__value) { - this.sessions = null; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case CODE: - if (__value == null) { - unsetCode(); - } else { - setCode((com.vesoft.nebula.ErrorCode)__value); - } - break; - - case LEADER: - if (__value == null) { - unsetLeader(); - } else { - setLeader((com.vesoft.nebula.HostAddr)__value); - } - break; - - case SESSIONS: - if (__value == null) { - unsetSessions(); - } else { - setSessions((List)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case CODE: - return getCode(); - - case LEADER: - return getLeader(); - - case SESSIONS: - return getSessions(); - - 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 ListAllSessionsResp)) - return false; - ListAllSessionsResp that = (ListAllSessionsResp)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetCode(), that.isSetCode(), this.code, that.code)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetLeader(), that.isSetLeader(), this.leader, that.leader)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetSessions(), that.isSetSessions(), this.sessions, that.sessions)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {code, leader, sessions}); - } - - 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 CODE: - if (__field.type == TType.I32) { - this.code = com.vesoft.nebula.ErrorCode.findByValue(iprot.readI32()); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case LEADER: - if (__field.type == TType.STRUCT) { - this.leader = new com.vesoft.nebula.HostAddr(); - this.leader.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case SESSIONS: - if (__field.type == TType.LIST) { - { - TList _list308 = iprot.readListBegin(); - this.sessions = new ArrayList(Math.max(0, _list308.size)); - for (int _i309 = 0; - (_list308.size < 0) ? iprot.peekList() : (_i309 < _list308.size); - ++_i309) - { - Session _elem310; - _elem310 = new Session(); - _elem310.read(iprot); - this.sessions.add(_elem310); - } - 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.code != null) { - oprot.writeFieldBegin(CODE_FIELD_DESC); - oprot.writeI32(this.code == null ? 0 : this.code.getValue()); - oprot.writeFieldEnd(); - } - if (this.leader != null) { - oprot.writeFieldBegin(LEADER_FIELD_DESC); - this.leader.write(oprot); - oprot.writeFieldEnd(); - } - if (this.sessions != null) { - oprot.writeFieldBegin(SESSIONS_FIELD_DESC); - { - oprot.writeListBegin(new TList(TType.STRUCT, this.sessions.size())); - for (Session _iter311 : this.sessions) { - _iter311.write(oprot); - } - 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("ListAllSessionsResp"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("code"); - sb.append(space); - sb.append(":").append(space); - if (this.getCode() == null) { - sb.append("null"); - } else { - String code_name = this.getCode() == null ? "null" : this.getCode().name(); - if (code_name != null) { - sb.append(code_name); - sb.append(" ("); - } - sb.append(this.getCode()); - if (code_name != null) { - sb.append(")"); - } - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("leader"); - sb.append(space); - sb.append(":").append(space); - if (this.getLeader() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getLeader(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("sessions"); - sb.append(space); - sb.append(":").append(space); - if (this.getSessions() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSessions(), 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/ListClusterInfoResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java index a8c99667b..518ed0c4a 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java @@ -28,8 +28,7 @@ public class ListClusterInfoResp implements TBase, java.io.Serializable, Cloneab private static final TStruct STRUCT_DESC = new TStruct("ListClusterInfoResp"); private static final TField CODE_FIELD_DESC = new TField("code", TType.I32, (short)1); private static final TField LEADER_FIELD_DESC = new TField("leader", TType.STRUCT, (short)2); - private static final TField META_SERVERS_FIELD_DESC = new TField("meta_servers", TType.LIST, (short)3); - private static final TField STORAGE_SERVERS_FIELD_DESC = new TField("storage_servers", TType.LIST, (short)4); + private static final TField HOST_SERVICES_FIELD_DESC = new TField("host_services", TType.MAP, (short)3); /** * @@ -37,12 +36,10 @@ public class ListClusterInfoResp implements TBase, java.io.Serializable, Cloneab */ public com.vesoft.nebula.ErrorCode code; public com.vesoft.nebula.HostAddr leader; - public List meta_servers; - public List storage_servers; + public Map> host_services; public static final int CODE = 1; public static final int LEADER = 2; - public static final int META_SERVERS = 3; - public static final int STORAGE_SERVERS = 4; + public static final int HOST_SERVICES = 3; // isset id assignments @@ -54,12 +51,11 @@ public class ListClusterInfoResp implements TBase, java.io.Serializable, Cloneab new FieldValueMetaData(TType.I32))); tmpMetaDataMap.put(LEADER, new FieldMetaData("leader", TFieldRequirementType.DEFAULT, new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(META_SERVERS, new FieldMetaData("meta_servers", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class)))); - tmpMetaDataMap.put(STORAGE_SERVERS, new FieldMetaData("storage_servers", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.NodeInfo.class)))); + tmpMetaDataMap.put(HOST_SERVICES, new FieldMetaData("host_services", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.STRING), + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, ServiceInfo.class))))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -73,20 +69,17 @@ public ListClusterInfoResp() { public ListClusterInfoResp( com.vesoft.nebula.ErrorCode code, com.vesoft.nebula.HostAddr leader, - List meta_servers, - List storage_servers) { + Map> host_services) { this(); this.code = code; this.leader = leader; - this.meta_servers = meta_servers; - this.storage_servers = storage_servers; + this.host_services = host_services; } public static class Builder { private com.vesoft.nebula.ErrorCode code; private com.vesoft.nebula.HostAddr leader; - private List meta_servers; - private List storage_servers; + private Map> host_services; public Builder() { } @@ -101,13 +94,8 @@ public Builder setLeader(final com.vesoft.nebula.HostAddr leader) { return this; } - public Builder setMeta_servers(final List meta_servers) { - this.meta_servers = meta_servers; - return this; - } - - public Builder setStorage_servers(final List storage_servers) { - this.storage_servers = storage_servers; + public Builder setHost_services(final Map> host_services) { + this.host_services = host_services; return this; } @@ -115,8 +103,7 @@ public ListClusterInfoResp build() { ListClusterInfoResp result = new ListClusterInfoResp(); result.setCode(this.code); result.setLeader(this.leader); - result.setMeta_servers(this.meta_servers); - result.setStorage_servers(this.storage_servers); + result.setHost_services(this.host_services); return result; } } @@ -135,11 +122,8 @@ public ListClusterInfoResp(ListClusterInfoResp other) { if (other.isSetLeader()) { this.leader = TBaseHelper.deepCopy(other.leader); } - if (other.isSetMeta_servers()) { - this.meta_servers = TBaseHelper.deepCopy(other.meta_servers); - } - if (other.isSetStorage_servers()) { - this.storage_servers = TBaseHelper.deepCopy(other.storage_servers); + if (other.isSetHost_services()) { + this.host_services = TBaseHelper.deepCopy(other.host_services); } } @@ -203,51 +187,27 @@ public void setLeaderIsSet(boolean __value) { } } - public List getMeta_servers() { - return this.meta_servers; + public Map> getHost_services() { + return this.host_services; } - public ListClusterInfoResp setMeta_servers(List meta_servers) { - this.meta_servers = meta_servers; + public ListClusterInfoResp setHost_services(Map> host_services) { + this.host_services = host_services; return this; } - public void unsetMeta_servers() { - this.meta_servers = null; + public void unsetHost_services() { + this.host_services = null; } - // Returns true if field meta_servers is set (has been assigned a value) and false otherwise - public boolean isSetMeta_servers() { - return this.meta_servers != null; + // Returns true if field host_services is set (has been assigned a value) and false otherwise + public boolean isSetHost_services() { + return this.host_services != null; } - public void setMeta_serversIsSet(boolean __value) { + public void setHost_servicesIsSet(boolean __value) { if (!__value) { - this.meta_servers = null; - } - } - - public List getStorage_servers() { - return this.storage_servers; - } - - public ListClusterInfoResp setStorage_servers(List storage_servers) { - this.storage_servers = storage_servers; - return this; - } - - public void unsetStorage_servers() { - this.storage_servers = null; - } - - // Returns true if field storage_servers is set (has been assigned a value) and false otherwise - public boolean isSetStorage_servers() { - return this.storage_servers != null; - } - - public void setStorage_serversIsSet(boolean __value) { - if (!__value) { - this.storage_servers = null; + this.host_services = null; } } @@ -270,19 +230,11 @@ public void setFieldValue(int fieldID, Object __value) { } break; - case META_SERVERS: + case HOST_SERVICES: if (__value == null) { - unsetMeta_servers(); + unsetHost_services(); } else { - setMeta_servers((List)__value); - } - break; - - case STORAGE_SERVERS: - if (__value == null) { - unsetStorage_servers(); - } else { - setStorage_servers((List)__value); + setHost_services((Map>)__value); } break; @@ -299,11 +251,8 @@ public Object getFieldValue(int fieldID) { case LEADER: return getLeader(); - case META_SERVERS: - return getMeta_servers(); - - case STORAGE_SERVERS: - return getStorage_servers(); + case HOST_SERVICES: + return getHost_services(); default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); @@ -324,16 +273,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.isSetLeader(), that.isSetLeader(), this.leader, that.leader)) { return false; } - if (!TBaseHelper.equalsNobinary(this.isSetMeta_servers(), that.isSetMeta_servers(), this.meta_servers, that.meta_servers)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetStorage_servers(), that.isSetStorage_servers(), this.storage_servers, that.storage_servers)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetHost_services(), that.isSetHost_services(), this.host_services, that.host_services)) { return false; } return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {code, leader, meta_servers, storage_servers}); + return Arrays.deepHashCode(new Object[] {code, leader, host_services}); } @Override @@ -364,19 +311,11 @@ public int compareTo(ListClusterInfoResp other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetMeta_servers()).compareTo(other.isSetMeta_servers()); + lastComparison = Boolean.valueOf(isSetHost_services()).compareTo(other.isSetHost_services()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(meta_servers, other.meta_servers); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetStorage_servers()).compareTo(other.isSetStorage_servers()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(storage_servers, other.storage_servers); + lastComparison = TBaseHelper.compareTo(host_services, other.host_services); if (lastComparison != 0) { return lastComparison; } @@ -409,41 +348,35 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case META_SERVERS: - if (__field.type == TType.LIST) { + case HOST_SERVICES: + if (__field.type == TType.MAP) { { - TList _list331 = iprot.readListBegin(); - this.meta_servers = new ArrayList(Math.max(0, _list331.size)); - for (int _i332 = 0; - (_list331.size < 0) ? iprot.peekList() : (_i332 < _list331.size); - ++_i332) + TMap _map335 = iprot.readMapBegin(); + this.host_services = new HashMap>(Math.max(0, 2*_map335.size)); + for (int _i336 = 0; + (_map335.size < 0) ? iprot.peekMap() : (_i336 < _map335.size); + ++_i336) { - com.vesoft.nebula.HostAddr _elem333; - _elem333 = new com.vesoft.nebula.HostAddr(); - _elem333.read(iprot); - this.meta_servers.add(_elem333); + String _key337; + List _val338; + _key337 = iprot.readString(); + { + TList _list339 = iprot.readListBegin(); + _val338 = new ArrayList(Math.max(0, _list339.size)); + for (int _i340 = 0; + (_list339.size < 0) ? iprot.peekList() : (_i340 < _list339.size); + ++_i340) + { + ServiceInfo _elem341; + _elem341 = new ServiceInfo(); + _elem341.read(iprot); + _val338.add(_elem341); + } + iprot.readListEnd(); + } + this.host_services.put(_key337, _val338); } - iprot.readListEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case STORAGE_SERVERS: - if (__field.type == TType.LIST) { - { - TList _list334 = iprot.readListBegin(); - this.storage_servers = new ArrayList(Math.max(0, _list334.size)); - for (int _i335 = 0; - (_list334.size < 0) ? iprot.peekList() : (_i335 < _list334.size); - ++_i335) - { - com.vesoft.nebula.NodeInfo _elem336; - _elem336 = new com.vesoft.nebula.NodeInfo(); - _elem336.read(iprot); - this.storage_servers.add(_elem336); - } - iprot.readListEnd(); + iprot.readMapEnd(); } } else { TProtocolUtil.skip(iprot, __field.type); @@ -476,25 +409,21 @@ public void write(TProtocol oprot) throws TException { this.leader.write(oprot); oprot.writeFieldEnd(); } - if (this.meta_servers != null) { - oprot.writeFieldBegin(META_SERVERS_FIELD_DESC); - { - oprot.writeListBegin(new TList(TType.STRUCT, this.meta_servers.size())); - for (com.vesoft.nebula.HostAddr _iter337 : this.meta_servers) { - _iter337.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (this.storage_servers != null) { - oprot.writeFieldBegin(STORAGE_SERVERS_FIELD_DESC); + if (this.host_services != null) { + oprot.writeFieldBegin(HOST_SERVICES_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.storage_servers.size())); - for (com.vesoft.nebula.NodeInfo _iter338 : this.storage_servers) { - _iter338.write(oprot); + oprot.writeMapBegin(new TMap(TType.STRING, TType.LIST, this.host_services.size())); + for (Map.Entry> _iter342 : this.host_services.entrySet()) { + oprot.writeString(_iter342.getKey()); + { + oprot.writeListBegin(new TList(TType.STRUCT, _iter342.getValue().size())); + for (ServiceInfo _iter343 : _iter342.getValue()) { + _iter343.write(oprot); + } + oprot.writeListEnd(); + } } - oprot.writeListEnd(); + oprot.writeMapEnd(); } oprot.writeFieldEnd(); } @@ -549,24 +478,13 @@ public String toString(int indent, boolean prettyPrint) { first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); - sb.append("meta_servers"); - sb.append(space); - sb.append(":").append(space); - if (this.getMeta_servers() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getMeta_servers(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("storage_servers"); + sb.append("host_services"); sb.append(space); sb.append(":").append(space); - if (this.getStorage_servers() == null) { + if (this.getHost_services() == null) { sb.append("null"); } else { - sb.append(TBaseHelper.toString(this.getStorage_servers(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.getHost_services(), indent + 1, prettyPrint)); } first = false; sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); 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 48d8ce763..fd51989fc 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 _list208 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list208.size)); - for (int _i209 = 0; - (_list208.size < 0) ? iprot.peekList() : (_i209 < _list208.size); - ++_i209) + TList _list212 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list212.size)); + for (int _i213 = 0; + (_list212.size < 0) ? iprot.peekList() : (_i213 < _list212.size); + ++_i213) { - ConfigItem _elem210; - _elem210 = new ConfigItem(); - _elem210.read(iprot); - this.items.add(_elem210); + ConfigItem _elem214; + _elem214 = new ConfigItem(); + _elem214.read(iprot); + this.items.add(_elem214); } 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 _iter211 : this.items) { - _iter211.write(oprot); + for (ConfigItem _iter215 : this.items) { + _iter215.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 ce7ed97b4..119b1e11b 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 _list187 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list187.size)); - for (int _i188 = 0; - (_list187.size < 0) ? iprot.peekList() : (_i188 < _list187.size); - ++_i188) + TList _list191 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list191.size)); + for (int _i192 = 0; + (_list191.size < 0) ? iprot.peekList() : (_i192 < _list191.size); + ++_i192) { - IndexItem _elem189; - _elem189 = new IndexItem(); - _elem189.read(iprot); - this.items.add(_elem189); + IndexItem _elem193; + _elem193 = new IndexItem(); + _elem193.read(iprot); + this.items.add(_elem193); } 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 _iter190 : this.items) { - _iter190.write(oprot); + for (IndexItem _iter194 : this.items) { + _iter194.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 292c9609f..3a27008ed 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 _list281 = iprot.readListBegin(); - this.clients = new ArrayList(Math.max(0, _list281.size)); - for (int _i282 = 0; - (_list281.size < 0) ? iprot.peekList() : (_i282 < _list281.size); - ++_i282) + TList _list285 = iprot.readListBegin(); + this.clients = new ArrayList(Math.max(0, _list285.size)); + for (int _i286 = 0; + (_list285.size < 0) ? iprot.peekList() : (_i286 < _list285.size); + ++_i286) { - FTClient _elem283; - _elem283 = new FTClient(); - _elem283.read(iprot); - this.clients.add(_elem283); + FTClient _elem287; + _elem287 = new FTClient(); + _elem287.read(iprot); + this.clients.add(_elem287); } 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 _iter284 : this.clients) { - _iter284.write(oprot); + for (FTClient _iter288 : this.clients) { + _iter288.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 5cc6ec2e7..228521ffb 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 _map289 = iprot.readMapBegin(); - this.indexes = new HashMap(Math.max(0, 2*_map289.size)); - for (int _i290 = 0; - (_map289.size < 0) ? iprot.peekMap() : (_i290 < _map289.size); - ++_i290) + TMap _map293 = iprot.readMapBegin(); + this.indexes = new HashMap(Math.max(0, 2*_map293.size)); + for (int _i294 = 0; + (_map293.size < 0) ? iprot.peekMap() : (_i294 < _map293.size); + ++_i294) { - byte[] _key291; - FTIndex _val292; - _key291 = iprot.readBinary(); - _val292 = new FTIndex(); - _val292.read(iprot); - this.indexes.put(_key291, _val292); + byte[] _key295; + FTIndex _val296; + _key295 = iprot.readBinary(); + _val296 = new FTIndex(); + _val296.read(iprot); + this.indexes.put(_key295, _val296); } 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 _iter293 : this.indexes.entrySet()) { - oprot.writeBinary(_iter293.getKey()); - _iter293.getValue().write(oprot); + for (Map.Entry _iter297 : this.indexes.entrySet()) { + oprot.writeBinary(_iter297.getKey()); + _iter297.getValue().write(oprot); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListGroupsReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListGroupsReq.java deleted file mode 100644 index a90fe8eb1..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListGroupsReq.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * 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 ListGroupsReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("ListGroupsReq"); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(ListGroupsReq.class, metaDataMap); - } - - public ListGroupsReq() { - } - - public static class Builder { - - public Builder() { - } - - public ListGroupsReq build() { - ListGroupsReq result = new ListGroupsReq(); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public ListGroupsReq(ListGroupsReq other) { - } - - public ListGroupsReq deepCopy() { - return new ListGroupsReq(this); - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - 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 ListGroupsReq)) - return false; - ListGroupsReq that = (ListGroupsReq)_that; - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {}); - } - - @Override - public int compareTo(ListGroupsReq other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - 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) - { - 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.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("ListGroupsReq"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - 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/ListIndexStatusResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListIndexStatusResp.java index 200baa313..957a51874 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 _list216 = iprot.readListBegin(); - this.statuses = new ArrayList(Math.max(0, _list216.size)); - for (int _i217 = 0; - (_list216.size < 0) ? iprot.peekList() : (_i217 < _list216.size); - ++_i217) + TList _list220 = iprot.readListBegin(); + this.statuses = new ArrayList(Math.max(0, _list220.size)); + for (int _i221 = 0; + (_list220.size < 0) ? iprot.peekList() : (_i221 < _list220.size); + ++_i221) { - IndexStatus _elem218; - _elem218 = new IndexStatus(); - _elem218.read(iprot); - this.statuses.add(_elem218); + IndexStatus _elem222; + _elem222 = new IndexStatus(); + _elem222.read(iprot); + this.statuses.add(_elem222); } 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 _iter219 : this.statuses) { - _iter219.write(oprot); + for (IndexStatus _iter223 : this.statuses) { + _iter223.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 8aaacf82c..0f6db6966 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 _list244 = iprot.readListBegin(); - this.listeners = new ArrayList(Math.max(0, _list244.size)); - for (int _i245 = 0; - (_list244.size < 0) ? iprot.peekList() : (_i245 < _list244.size); - ++_i245) + TList _list248 = iprot.readListBegin(); + this.listeners = new ArrayList(Math.max(0, _list248.size)); + for (int _i249 = 0; + (_list248.size < 0) ? iprot.peekList() : (_i249 < _list248.size); + ++_i249) { - ListenerInfo _elem246; - _elem246 = new ListenerInfo(); - _elem246.read(iprot); - this.listeners.add(_elem246); + ListenerInfo _elem250; + _elem250 = new ListenerInfo(); + _elem250.read(iprot); + this.listeners.add(_elem250); } 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 _iter247 : this.listeners) { - _iter247.write(oprot); + for (ListenerInfo _iter251 : this.listeners) { + _iter251.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 537b0b495..1c7772b6f 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 _list196 = iprot.readListBegin(); - this.roles = new ArrayList(Math.max(0, _list196.size)); - for (int _i197 = 0; - (_list196.size < 0) ? iprot.peekList() : (_i197 < _list196.size); - ++_i197) + TList _list200 = iprot.readListBegin(); + this.roles = new ArrayList(Math.max(0, _list200.size)); + for (int _i201 = 0; + (_list200.size < 0) ? iprot.peekList() : (_i201 < _list200.size); + ++_i201) { - RoleItem _elem198; - _elem198 = new RoleItem(); - _elem198.read(iprot); - this.roles.add(_elem198); + RoleItem _elem202; + _elem202 = new RoleItem(); + _elem202.read(iprot); + this.roles.add(_elem202); } 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 _iter199 : this.roles) { - _iter199.write(oprot); + for (RoleItem _iter203 : this.roles) { + _iter203.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 28163db3a..b24492dc5 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 _list318 = iprot.readListBegin(); - this.sessions = new ArrayList(Math.max(0, _list318.size)); - for (int _i319 = 0; - (_list318.size < 0) ? iprot.peekList() : (_i319 < _list318.size); - ++_i319) + TList _list322 = iprot.readListBegin(); + this.sessions = new ArrayList(Math.max(0, _list322.size)); + for (int _i323 = 0; + (_list322.size < 0) ? iprot.peekList() : (_i323 < _list322.size); + ++_i323) { - Session _elem320; - _elem320 = new Session(); - _elem320.read(iprot); - this.sessions.add(_elem320); + Session _elem324; + _elem324 = new Session(); + _elem324.read(iprot); + this.sessions.add(_elem324); } 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 _iter321 : this.sessions) { - _iter321.write(oprot); + for (Session _iter325 : this.sessions) { + _iter325.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 c409ba5d3..9e1cf7d93 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 _list212 = iprot.readListBegin(); - this.snapshots = new ArrayList(Math.max(0, _list212.size)); - for (int _i213 = 0; - (_list212.size < 0) ? iprot.peekList() : (_i213 < _list212.size); - ++_i213) + TList _list216 = iprot.readListBegin(); + this.snapshots = new ArrayList(Math.max(0, _list216.size)); + for (int _i217 = 0; + (_list216.size < 0) ? iprot.peekList() : (_i217 < _list216.size); + ++_i217) { - Snapshot _elem214; - _elem214 = new Snapshot(); - _elem214.read(iprot); - this.snapshots.add(_elem214); + Snapshot _elem218; + _elem218 = new Snapshot(); + _elem218.read(iprot); + this.snapshots.add(_elem218); } 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 _iter215 : this.snapshots) { - _iter215.write(oprot); + for (Snapshot _iter219 : this.snapshots) { + _iter219.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 c7ac5a393..2c74d22c2 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 _list179 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list179.size)); - for (int _i180 = 0; - (_list179.size < 0) ? iprot.peekList() : (_i180 < _list179.size); - ++_i180) + TList _list183 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list183.size)); + for (int _i184 = 0; + (_list183.size < 0) ? iprot.peekList() : (_i184 < _list183.size); + ++_i184) { - IndexItem _elem181; - _elem181 = new IndexItem(); - _elem181.read(iprot); - this.items.add(_elem181); + IndexItem _elem185; + _elem185 = new IndexItem(); + _elem185.read(iprot); + this.items.add(_elem185); } 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 _iter182 : this.items) { - _iter182.write(oprot); + for (IndexItem _iter186 : this.items) { + _iter186.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 dbaa37e01..9c211e881 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 _map191 = iprot.readMapBegin(); - this.users = new HashMap(Math.max(0, 2*_map191.size)); - for (int _i192 = 0; - (_map191.size < 0) ? iprot.peekMap() : (_i192 < _map191.size); - ++_i192) + TMap _map195 = iprot.readMapBegin(); + this.users = new HashMap(Math.max(0, 2*_map195.size)); + for (int _i196 = 0; + (_map195.size < 0) ? iprot.peekMap() : (_i196 < _map195.size); + ++_i196) { - byte[] _key193; - byte[] _val194; - _key193 = iprot.readBinary(); - _val194 = iprot.readBinary(); - this.users.put(_key193, _val194); + byte[] _key197; + byte[] _val198; + _key197 = iprot.readBinary(); + _val198 = iprot.readBinary(); + this.users.put(_key197, _val198); } 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 _iter195 : this.users.entrySet()) { - oprot.writeBinary(_iter195.getKey()); - oprot.writeBinary(_iter195.getValue()); + for (Map.Entry _iter199 : this.users.entrySet()) { + oprot.writeBinary(_iter199.getKey()); + oprot.writeBinary(_iter199.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 0fd330bf7..1af4f6da2 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 _list236 = iprot.readListBegin(); - this.zones = new ArrayList(Math.max(0, _list236.size)); - for (int _i237 = 0; - (_list236.size < 0) ? iprot.peekList() : (_i237 < _list236.size); - ++_i237) + TList _list240 = iprot.readListBegin(); + this.zones = new ArrayList(Math.max(0, _list240.size)); + for (int _i241 = 0; + (_list240.size < 0) ? iprot.peekList() : (_i241 < _list240.size); + ++_i241) { - Zone _elem238; - _elem238 = new Zone(); - _elem238.read(iprot); - this.zones.add(_elem238); + Zone _elem242; + _elem242 = new Zone(); + _elem242.read(iprot); + this.zones.add(_elem242); } 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 _iter239 : this.zones) { - _iter239.write(oprot); + for (Zone _iter243 : this.zones) { + _iter243.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/MergeZoneReq.java b/client/src/main/generated/com/vesoft/nebula/meta/MergeZoneReq.java index 8437c68b1..d2db72d0d 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/MergeZoneReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/MergeZoneReq.java @@ -260,15 +260,15 @@ public void read(TProtocol iprot) throws TException { case ZONES: if (__field.type == TType.LIST) { { - 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) + TList _list224 = iprot.readListBegin(); + this.zones = new ArrayList(Math.max(0, _list224.size)); + for (int _i225 = 0; + (_list224.size < 0) ? iprot.peekList() : (_i225 < _list224.size); + ++_i225) { - byte[] _elem222; - _elem222 = iprot.readBinary(); - this.zones.add(_elem222); + byte[] _elem226; + _elem226 = iprot.readBinary(); + this.zones.add(_elem226); } iprot.readListEnd(); } @@ -304,8 +304,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ZONES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.zones.size())); - for (byte[] _iter223 : this.zones) { - oprot.writeBinary(_iter223); + for (byte[] _iter227 : this.zones) { + oprot.writeBinary(_iter227); } 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 4d333aa95..39b7e7b4a 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java @@ -129,6 +129,8 @@ public interface Iface { public HBResp heartBeat(HBReq req) throws TException; + public AgentHBResp agentHeartbeat(AgentHBReq req) throws TException; + public ExecResp regConfig(RegConfigReq req) throws TException; public GetConfigResp getConfig(GetConfigReq req) throws TException; @@ -157,10 +159,6 @@ public interface Iface { public ListZonesResp listZones(ListZonesReq req) throws TException; - public CreateBackupResp createBackup(CreateBackupReq req) throws TException; - - public ExecResp restoreMeta(RestoreMetaReq req) throws TException; - public ExecResp addListener(AddListenerReq req) throws TException; public ExecResp removeListener(RemoveListenerReq req) throws TException; @@ -195,6 +193,10 @@ public interface Iface { public ExecResp reportTaskFinish(ReportTaskReq req) throws TException; + public CreateBackupResp createBackup(CreateBackupReq req) throws TException; + + public ExecResp restoreMeta(RestoreMetaReq req) throws TException; + public ListClusterInfoResp listCluster(ListClusterInfoReq req) throws TException; public GetMetaDirInfoResp getMetaDirInfo(GetMetaDirInfoReq req) throws TException; @@ -303,6 +305,8 @@ public interface AsyncIface { public void heartBeat(HBReq req, AsyncMethodCallback resultHandler) throws TException; + public void agentHeartbeat(AgentHBReq req, AsyncMethodCallback resultHandler) throws TException; + public void regConfig(RegConfigReq req, AsyncMethodCallback resultHandler) throws TException; public void getConfig(GetConfigReq req, AsyncMethodCallback resultHandler) throws TException; @@ -331,10 +335,6 @@ public interface AsyncIface { public void listZones(ListZonesReq req, AsyncMethodCallback resultHandler) throws TException; - public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler) throws TException; - - public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler) throws TException; - public void addListener(AddListenerReq req, AsyncMethodCallback resultHandler) throws TException; public void removeListener(RemoveListenerReq req, AsyncMethodCallback resultHandler) throws TException; @@ -369,6 +369,10 @@ public interface AsyncIface { public void reportTaskFinish(ReportTaskReq req, AsyncMethodCallback resultHandler) throws TException; + public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler) throws TException; + + public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler) throws TException; + public void listCluster(ListClusterInfoReq req, AsyncMethodCallback resultHandler) throws TException; public void getMetaDirInfo(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler) throws TException; @@ -2611,6 +2615,51 @@ public HBResp recv_heartBeat() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "heartBeat failed: unknown result"); } + public AgentHBResp agentHeartbeat(AgentHBReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.agentHeartbeat", null); + this.setContextStack(ctx); + send_agentHeartbeat(req); + return recv_agentHeartbeat(); + } + + public void send_agentHeartbeat(AgentHBReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.agentHeartbeat", null); + oprot_.writeMessageBegin(new TMessage("agentHeartbeat", TMessageType.CALL, seqid_)); + agentHeartbeat_args args = new agentHeartbeat_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.agentHeartbeat", args); + return; + } + + public AgentHBResp recv_agentHeartbeat() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.agentHeartbeat"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + agentHeartbeat_result result = new agentHeartbeat_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.agentHeartbeat", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "agentHeartbeat failed: unknown result"); + } + public ExecResp regConfig(RegConfigReq req) throws TException { ContextStack ctx = getContextStack("MetaService.regConfig", null); @@ -3241,96 +3290,6 @@ public ListZonesResp recv_listZones() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "listZones failed: unknown result"); } - public CreateBackupResp createBackup(CreateBackupReq req) throws TException - { - ContextStack ctx = getContextStack("MetaService.createBackup", null); - this.setContextStack(ctx); - send_createBackup(req); - return recv_createBackup(); - } - - public void send_createBackup(CreateBackupReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.createBackup", null); - oprot_.writeMessageBegin(new TMessage("createBackup", TMessageType.CALL, seqid_)); - createBackup_args args = new createBackup_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.createBackup", args); - return; - } - - public CreateBackupResp recv_createBackup() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "MetaService.createBackup"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - createBackup_result result = new createBackup_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.createBackup", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "createBackup failed: unknown result"); - } - - public ExecResp restoreMeta(RestoreMetaReq req) throws TException - { - ContextStack ctx = getContextStack("MetaService.restoreMeta", null); - this.setContextStack(ctx); - send_restoreMeta(req); - return recv_restoreMeta(); - } - - public void send_restoreMeta(RestoreMetaReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.restoreMeta", null); - oprot_.writeMessageBegin(new TMessage("restoreMeta", TMessageType.CALL, seqid_)); - restoreMeta_args args = new restoreMeta_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.restoreMeta", args); - return; - } - - public ExecResp recv_restoreMeta() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "MetaService.restoreMeta"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - restoreMeta_result result = new restoreMeta_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.restoreMeta", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "restoreMeta failed: unknown result"); - } - public ExecResp addListener(AddListenerReq req) throws TException { ContextStack ctx = getContextStack("MetaService.addListener", null); @@ -4096,6 +4055,96 @@ public ExecResp recv_reportTaskFinish() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "reportTaskFinish failed: unknown result"); } + public CreateBackupResp createBackup(CreateBackupReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.createBackup", null); + this.setContextStack(ctx); + send_createBackup(req); + return recv_createBackup(); + } + + public void send_createBackup(CreateBackupReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.createBackup", null); + oprot_.writeMessageBegin(new TMessage("createBackup", TMessageType.CALL, seqid_)); + createBackup_args args = new createBackup_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.createBackup", args); + return; + } + + public CreateBackupResp recv_createBackup() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.createBackup"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + createBackup_result result = new createBackup_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.createBackup", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "createBackup failed: unknown result"); + } + + public ExecResp restoreMeta(RestoreMetaReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.restoreMeta", null); + this.setContextStack(ctx); + send_restoreMeta(req); + return recv_restoreMeta(); + } + + public void send_restoreMeta(RestoreMetaReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.restoreMeta", null); + oprot_.writeMessageBegin(new TMessage("restoreMeta", TMessageType.CALL, seqid_)); + restoreMeta_args args = new restoreMeta_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.restoreMeta", args); + return; + } + + public ExecResp recv_restoreMeta() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.restoreMeta"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + restoreMeta_result result = new restoreMeta_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.restoreMeta", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "restoreMeta failed: unknown result"); + } + public ListClusterInfoResp listCluster(ListClusterInfoReq req) throws TException { ContextStack ctx = getContextStack("MetaService.listCluster", null); @@ -4249,17 +4298,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void createSpace(CreateSpaceReq req, AsyncMethodCallback resultHandler427) throws TException { + public void createSpace(CreateSpaceReq req, AsyncMethodCallback resultHandler433) throws TException { checkReady(); - createSpace_call method_call = new createSpace_call(req, resultHandler427, this, ___protocolFactory, ___transport); + createSpace_call method_call = new createSpace_call(req, resultHandler433, 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 resultHandler428, TAsyncClient client424, TProtocolFactory protocolFactory425, TNonblockingTransport transport426) throws TException { - super(client424, protocolFactory425, transport426, resultHandler428, false); + public createSpace_call(CreateSpaceReq req, AsyncMethodCallback resultHandler434, TAsyncClient client430, TProtocolFactory protocolFactory431, TNonblockingTransport transport432) throws TException { + super(client430, protocolFactory431, transport432, resultHandler434, false); this.req = req; } @@ -4281,17 +4330,17 @@ public ExecResp getResult() throws TException { } } - public void dropSpace(DropSpaceReq req, AsyncMethodCallback resultHandler432) throws TException { + public void dropSpace(DropSpaceReq req, AsyncMethodCallback resultHandler438) throws TException { checkReady(); - dropSpace_call method_call = new dropSpace_call(req, resultHandler432, this, ___protocolFactory, ___transport); + dropSpace_call method_call = new dropSpace_call(req, resultHandler438, 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 resultHandler433, TAsyncClient client429, TProtocolFactory protocolFactory430, TNonblockingTransport transport431) throws TException { - super(client429, protocolFactory430, transport431, resultHandler433, false); + public dropSpace_call(DropSpaceReq req, AsyncMethodCallback resultHandler439, TAsyncClient client435, TProtocolFactory protocolFactory436, TNonblockingTransport transport437) throws TException { + super(client435, protocolFactory436, transport437, resultHandler439, false); this.req = req; } @@ -4313,17 +4362,17 @@ public ExecResp getResult() throws TException { } } - public void getSpace(GetSpaceReq req, AsyncMethodCallback resultHandler437) throws TException { + public void getSpace(GetSpaceReq req, AsyncMethodCallback resultHandler443) throws TException { checkReady(); - getSpace_call method_call = new getSpace_call(req, resultHandler437, this, ___protocolFactory, ___transport); + getSpace_call method_call = new getSpace_call(req, resultHandler443, 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 resultHandler438, TAsyncClient client434, TProtocolFactory protocolFactory435, TNonblockingTransport transport436) throws TException { - super(client434, protocolFactory435, transport436, resultHandler438, false); + public getSpace_call(GetSpaceReq req, AsyncMethodCallback resultHandler444, TAsyncClient client440, TProtocolFactory protocolFactory441, TNonblockingTransport transport442) throws TException { + super(client440, protocolFactory441, transport442, resultHandler444, false); this.req = req; } @@ -4345,17 +4394,17 @@ public GetSpaceResp getResult() throws TException { } } - public void listSpaces(ListSpacesReq req, AsyncMethodCallback resultHandler442) throws TException { + public void listSpaces(ListSpacesReq req, AsyncMethodCallback resultHandler448) throws TException { checkReady(); - listSpaces_call method_call = new listSpaces_call(req, resultHandler442, this, ___protocolFactory, ___transport); + listSpaces_call method_call = new listSpaces_call(req, resultHandler448, 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 resultHandler443, TAsyncClient client439, TProtocolFactory protocolFactory440, TNonblockingTransport transport441) throws TException { - super(client439, protocolFactory440, transport441, resultHandler443, false); + public listSpaces_call(ListSpacesReq req, AsyncMethodCallback resultHandler449, TAsyncClient client445, TProtocolFactory protocolFactory446, TNonblockingTransport transport447) throws TException { + super(client445, protocolFactory446, transport447, resultHandler449, false); this.req = req; } @@ -4377,17 +4426,17 @@ public ListSpacesResp getResult() throws TException { } } - public void createSpaceAs(CreateSpaceAsReq req, AsyncMethodCallback resultHandler447) throws TException { + public void createSpaceAs(CreateSpaceAsReq req, AsyncMethodCallback resultHandler453) throws TException { checkReady(); - createSpaceAs_call method_call = new createSpaceAs_call(req, resultHandler447, this, ___protocolFactory, ___transport); + createSpaceAs_call method_call = new createSpaceAs_call(req, resultHandler453, 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 resultHandler448, TAsyncClient client444, TProtocolFactory protocolFactory445, TNonblockingTransport transport446) throws TException { - super(client444, protocolFactory445, transport446, resultHandler448, false); + public createSpaceAs_call(CreateSpaceAsReq req, AsyncMethodCallback resultHandler454, TAsyncClient client450, TProtocolFactory protocolFactory451, TNonblockingTransport transport452) throws TException { + super(client450, protocolFactory451, transport452, resultHandler454, false); this.req = req; } @@ -4409,17 +4458,17 @@ public ExecResp getResult() throws TException { } } - public void createTag(CreateTagReq req, AsyncMethodCallback resultHandler452) throws TException { + public void createTag(CreateTagReq req, AsyncMethodCallback resultHandler458) throws TException { checkReady(); - createTag_call method_call = new createTag_call(req, resultHandler452, this, ___protocolFactory, ___transport); + createTag_call method_call = new createTag_call(req, resultHandler458, 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 resultHandler453, TAsyncClient client449, TProtocolFactory protocolFactory450, TNonblockingTransport transport451) throws TException { - super(client449, protocolFactory450, transport451, resultHandler453, false); + public createTag_call(CreateTagReq req, AsyncMethodCallback resultHandler459, TAsyncClient client455, TProtocolFactory protocolFactory456, TNonblockingTransport transport457) throws TException { + super(client455, protocolFactory456, transport457, resultHandler459, false); this.req = req; } @@ -4441,17 +4490,17 @@ public ExecResp getResult() throws TException { } } - public void alterTag(AlterTagReq req, AsyncMethodCallback resultHandler457) throws TException { + public void alterTag(AlterTagReq req, AsyncMethodCallback resultHandler463) throws TException { checkReady(); - alterTag_call method_call = new alterTag_call(req, resultHandler457, this, ___protocolFactory, ___transport); + alterTag_call method_call = new alterTag_call(req, resultHandler463, 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 resultHandler458, TAsyncClient client454, TProtocolFactory protocolFactory455, TNonblockingTransport transport456) throws TException { - super(client454, protocolFactory455, transport456, resultHandler458, false); + public alterTag_call(AlterTagReq req, AsyncMethodCallback resultHandler464, TAsyncClient client460, TProtocolFactory protocolFactory461, TNonblockingTransport transport462) throws TException { + super(client460, protocolFactory461, transport462, resultHandler464, false); this.req = req; } @@ -4473,17 +4522,17 @@ public ExecResp getResult() throws TException { } } - public void dropTag(DropTagReq req, AsyncMethodCallback resultHandler462) throws TException { + public void dropTag(DropTagReq req, AsyncMethodCallback resultHandler468) throws TException { checkReady(); - dropTag_call method_call = new dropTag_call(req, resultHandler462, this, ___protocolFactory, ___transport); + dropTag_call method_call = new dropTag_call(req, resultHandler468, 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 resultHandler463, TAsyncClient client459, TProtocolFactory protocolFactory460, TNonblockingTransport transport461) throws TException { - super(client459, protocolFactory460, transport461, resultHandler463, false); + public dropTag_call(DropTagReq req, AsyncMethodCallback resultHandler469, TAsyncClient client465, TProtocolFactory protocolFactory466, TNonblockingTransport transport467) throws TException { + super(client465, protocolFactory466, transport467, resultHandler469, false); this.req = req; } @@ -4505,17 +4554,17 @@ public ExecResp getResult() throws TException { } } - public void getTag(GetTagReq req, AsyncMethodCallback resultHandler467) throws TException { + public void getTag(GetTagReq req, AsyncMethodCallback resultHandler473) throws TException { checkReady(); - getTag_call method_call = new getTag_call(req, resultHandler467, this, ___protocolFactory, ___transport); + getTag_call method_call = new getTag_call(req, resultHandler473, 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 resultHandler468, TAsyncClient client464, TProtocolFactory protocolFactory465, TNonblockingTransport transport466) throws TException { - super(client464, protocolFactory465, transport466, resultHandler468, false); + public getTag_call(GetTagReq req, AsyncMethodCallback resultHandler474, TAsyncClient client470, TProtocolFactory protocolFactory471, TNonblockingTransport transport472) throws TException { + super(client470, protocolFactory471, transport472, resultHandler474, false); this.req = req; } @@ -4537,17 +4586,17 @@ public GetTagResp getResult() throws TException { } } - public void listTags(ListTagsReq req, AsyncMethodCallback resultHandler472) throws TException { + public void listTags(ListTagsReq req, AsyncMethodCallback resultHandler478) throws TException { checkReady(); - listTags_call method_call = new listTags_call(req, resultHandler472, this, ___protocolFactory, ___transport); + listTags_call method_call = new listTags_call(req, resultHandler478, 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 resultHandler473, TAsyncClient client469, TProtocolFactory protocolFactory470, TNonblockingTransport transport471) throws TException { - super(client469, protocolFactory470, transport471, resultHandler473, false); + public listTags_call(ListTagsReq req, AsyncMethodCallback resultHandler479, TAsyncClient client475, TProtocolFactory protocolFactory476, TNonblockingTransport transport477) throws TException { + super(client475, protocolFactory476, transport477, resultHandler479, false); this.req = req; } @@ -4569,17 +4618,17 @@ public ListTagsResp getResult() throws TException { } } - public void createEdge(CreateEdgeReq req, AsyncMethodCallback resultHandler477) throws TException { + public void createEdge(CreateEdgeReq req, AsyncMethodCallback resultHandler483) throws TException { checkReady(); - createEdge_call method_call = new createEdge_call(req, resultHandler477, this, ___protocolFactory, ___transport); + createEdge_call method_call = new createEdge_call(req, resultHandler483, 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 resultHandler478, TAsyncClient client474, TProtocolFactory protocolFactory475, TNonblockingTransport transport476) throws TException { - super(client474, protocolFactory475, transport476, resultHandler478, false); + public createEdge_call(CreateEdgeReq req, AsyncMethodCallback resultHandler484, TAsyncClient client480, TProtocolFactory protocolFactory481, TNonblockingTransport transport482) throws TException { + super(client480, protocolFactory481, transport482, resultHandler484, false); this.req = req; } @@ -4601,17 +4650,17 @@ public ExecResp getResult() throws TException { } } - public void alterEdge(AlterEdgeReq req, AsyncMethodCallback resultHandler482) throws TException { + public void alterEdge(AlterEdgeReq req, AsyncMethodCallback resultHandler488) throws TException { checkReady(); - alterEdge_call method_call = new alterEdge_call(req, resultHandler482, this, ___protocolFactory, ___transport); + alterEdge_call method_call = new alterEdge_call(req, resultHandler488, 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 resultHandler483, TAsyncClient client479, TProtocolFactory protocolFactory480, TNonblockingTransport transport481) throws TException { - super(client479, protocolFactory480, transport481, resultHandler483, false); + public alterEdge_call(AlterEdgeReq req, AsyncMethodCallback resultHandler489, TAsyncClient client485, TProtocolFactory protocolFactory486, TNonblockingTransport transport487) throws TException { + super(client485, protocolFactory486, transport487, resultHandler489, false); this.req = req; } @@ -4633,17 +4682,17 @@ public ExecResp getResult() throws TException { } } - public void dropEdge(DropEdgeReq req, AsyncMethodCallback resultHandler487) throws TException { + public void dropEdge(DropEdgeReq req, AsyncMethodCallback resultHandler493) throws TException { checkReady(); - dropEdge_call method_call = new dropEdge_call(req, resultHandler487, this, ___protocolFactory, ___transport); + dropEdge_call method_call = new dropEdge_call(req, resultHandler493, 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 resultHandler488, TAsyncClient client484, TProtocolFactory protocolFactory485, TNonblockingTransport transport486) throws TException { - super(client484, protocolFactory485, transport486, resultHandler488, false); + public dropEdge_call(DropEdgeReq req, AsyncMethodCallback resultHandler494, TAsyncClient client490, TProtocolFactory protocolFactory491, TNonblockingTransport transport492) throws TException { + super(client490, protocolFactory491, transport492, resultHandler494, false); this.req = req; } @@ -4665,17 +4714,17 @@ public ExecResp getResult() throws TException { } } - public void getEdge(GetEdgeReq req, AsyncMethodCallback resultHandler492) throws TException { + public void getEdge(GetEdgeReq req, AsyncMethodCallback resultHandler498) throws TException { checkReady(); - getEdge_call method_call = new getEdge_call(req, resultHandler492, this, ___protocolFactory, ___transport); + getEdge_call method_call = new getEdge_call(req, resultHandler498, 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 resultHandler493, TAsyncClient client489, TProtocolFactory protocolFactory490, TNonblockingTransport transport491) throws TException { - super(client489, protocolFactory490, transport491, resultHandler493, false); + public getEdge_call(GetEdgeReq req, AsyncMethodCallback resultHandler499, TAsyncClient client495, TProtocolFactory protocolFactory496, TNonblockingTransport transport497) throws TException { + super(client495, protocolFactory496, transport497, resultHandler499, false); this.req = req; } @@ -4697,17 +4746,17 @@ public GetEdgeResp getResult() throws TException { } } - public void listEdges(ListEdgesReq req, AsyncMethodCallback resultHandler497) throws TException { + public void listEdges(ListEdgesReq req, AsyncMethodCallback resultHandler503) throws TException { checkReady(); - listEdges_call method_call = new listEdges_call(req, resultHandler497, this, ___protocolFactory, ___transport); + listEdges_call method_call = new listEdges_call(req, resultHandler503, 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 resultHandler498, TAsyncClient client494, TProtocolFactory protocolFactory495, TNonblockingTransport transport496) throws TException { - super(client494, protocolFactory495, transport496, resultHandler498, false); + public listEdges_call(ListEdgesReq req, AsyncMethodCallback resultHandler504, TAsyncClient client500, TProtocolFactory protocolFactory501, TNonblockingTransport transport502) throws TException { + super(client500, protocolFactory501, transport502, resultHandler504, false); this.req = req; } @@ -4729,17 +4778,17 @@ public ListEdgesResp getResult() throws TException { } } - public void addHosts(AddHostsReq req, AsyncMethodCallback resultHandler502) throws TException { + public void addHosts(AddHostsReq req, AsyncMethodCallback resultHandler508) throws TException { checkReady(); - addHosts_call method_call = new addHosts_call(req, resultHandler502, this, ___protocolFactory, ___transport); + addHosts_call method_call = new addHosts_call(req, resultHandler508, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addHosts_call extends TAsyncMethodCall { private AddHostsReq req; - public addHosts_call(AddHostsReq req, AsyncMethodCallback resultHandler503, TAsyncClient client499, TProtocolFactory protocolFactory500, TNonblockingTransport transport501) throws TException { - super(client499, protocolFactory500, transport501, resultHandler503, false); + public addHosts_call(AddHostsReq req, AsyncMethodCallback resultHandler509, TAsyncClient client505, TProtocolFactory protocolFactory506, TNonblockingTransport transport507) throws TException { + super(client505, protocolFactory506, transport507, resultHandler509, false); this.req = req; } @@ -4761,17 +4810,17 @@ public ExecResp getResult() throws TException { } } - public void addHostsIntoZone(AddHostsIntoZoneReq req, AsyncMethodCallback resultHandler507) throws TException { + public void addHostsIntoZone(AddHostsIntoZoneReq req, AsyncMethodCallback resultHandler513) throws TException { checkReady(); - addHostsIntoZone_call method_call = new addHostsIntoZone_call(req, resultHandler507, this, ___protocolFactory, ___transport); + addHostsIntoZone_call method_call = new addHostsIntoZone_call(req, resultHandler513, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addHostsIntoZone_call extends TAsyncMethodCall { private AddHostsIntoZoneReq req; - public addHostsIntoZone_call(AddHostsIntoZoneReq req, AsyncMethodCallback resultHandler508, TAsyncClient client504, TProtocolFactory protocolFactory505, TNonblockingTransport transport506) throws TException { - super(client504, protocolFactory505, transport506, resultHandler508, false); + public addHostsIntoZone_call(AddHostsIntoZoneReq req, AsyncMethodCallback resultHandler514, TAsyncClient client510, TProtocolFactory protocolFactory511, TNonblockingTransport transport512) throws TException { + super(client510, protocolFactory511, transport512, resultHandler514, false); this.req = req; } @@ -4793,17 +4842,17 @@ public ExecResp getResult() throws TException { } } - public void dropHosts(DropHostsReq req, AsyncMethodCallback resultHandler512) throws TException { + public void dropHosts(DropHostsReq req, AsyncMethodCallback resultHandler518) throws TException { checkReady(); - dropHosts_call method_call = new dropHosts_call(req, resultHandler512, this, ___protocolFactory, ___transport); + dropHosts_call method_call = new dropHosts_call(req, resultHandler518, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dropHosts_call extends TAsyncMethodCall { private DropHostsReq req; - public dropHosts_call(DropHostsReq req, AsyncMethodCallback resultHandler513, TAsyncClient client509, TProtocolFactory protocolFactory510, TNonblockingTransport transport511) throws TException { - super(client509, protocolFactory510, transport511, resultHandler513, false); + public dropHosts_call(DropHostsReq req, AsyncMethodCallback resultHandler519, TAsyncClient client515, TProtocolFactory protocolFactory516, TNonblockingTransport transport517) throws TException { + super(client515, protocolFactory516, transport517, resultHandler519, false); this.req = req; } @@ -4825,17 +4874,17 @@ public ExecResp getResult() throws TException { } } - public void listHosts(ListHostsReq req, AsyncMethodCallback resultHandler517) throws TException { + public void listHosts(ListHostsReq req, AsyncMethodCallback resultHandler523) throws TException { checkReady(); - listHosts_call method_call = new listHosts_call(req, resultHandler517, this, ___protocolFactory, ___transport); + listHosts_call method_call = new listHosts_call(req, resultHandler523, 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 resultHandler518, TAsyncClient client514, TProtocolFactory protocolFactory515, TNonblockingTransport transport516) throws TException { - super(client514, protocolFactory515, transport516, resultHandler518, false); + public listHosts_call(ListHostsReq req, AsyncMethodCallback resultHandler524, TAsyncClient client520, TProtocolFactory protocolFactory521, TNonblockingTransport transport522) throws TException { + super(client520, protocolFactory521, transport522, resultHandler524, false); this.req = req; } @@ -4857,17 +4906,17 @@ public ListHostsResp getResult() throws TException { } } - public void getPartsAlloc(GetPartsAllocReq req, AsyncMethodCallback resultHandler522) throws TException { + public void getPartsAlloc(GetPartsAllocReq req, AsyncMethodCallback resultHandler528) throws TException { checkReady(); - getPartsAlloc_call method_call = new getPartsAlloc_call(req, resultHandler522, this, ___protocolFactory, ___transport); + getPartsAlloc_call method_call = new getPartsAlloc_call(req, resultHandler528, 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 resultHandler523, TAsyncClient client519, TProtocolFactory protocolFactory520, TNonblockingTransport transport521) throws TException { - super(client519, protocolFactory520, transport521, resultHandler523, false); + public getPartsAlloc_call(GetPartsAllocReq req, AsyncMethodCallback resultHandler529, TAsyncClient client525, TProtocolFactory protocolFactory526, TNonblockingTransport transport527) throws TException { + super(client525, protocolFactory526, transport527, resultHandler529, false); this.req = req; } @@ -4889,17 +4938,17 @@ public GetPartsAllocResp getResult() throws TException { } } - public void listParts(ListPartsReq req, AsyncMethodCallback resultHandler527) throws TException { + public void listParts(ListPartsReq req, AsyncMethodCallback resultHandler533) throws TException { checkReady(); - listParts_call method_call = new listParts_call(req, resultHandler527, this, ___protocolFactory, ___transport); + listParts_call method_call = new listParts_call(req, resultHandler533, 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 resultHandler528, TAsyncClient client524, TProtocolFactory protocolFactory525, TNonblockingTransport transport526) throws TException { - super(client524, protocolFactory525, transport526, resultHandler528, false); + public listParts_call(ListPartsReq req, AsyncMethodCallback resultHandler534, TAsyncClient client530, TProtocolFactory protocolFactory531, TNonblockingTransport transport532) throws TException { + super(client530, protocolFactory531, transport532, resultHandler534, false); this.req = req; } @@ -4921,17 +4970,17 @@ public ListPartsResp getResult() throws TException { } } - public void multiPut(MultiPutReq req, AsyncMethodCallback resultHandler532) throws TException { + public void multiPut(MultiPutReq req, AsyncMethodCallback resultHandler538) throws TException { checkReady(); - multiPut_call method_call = new multiPut_call(req, resultHandler532, this, ___protocolFactory, ___transport); + multiPut_call method_call = new multiPut_call(req, resultHandler538, 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 resultHandler533, TAsyncClient client529, TProtocolFactory protocolFactory530, TNonblockingTransport transport531) throws TException { - super(client529, protocolFactory530, transport531, resultHandler533, false); + public multiPut_call(MultiPutReq req, AsyncMethodCallback resultHandler539, TAsyncClient client535, TProtocolFactory protocolFactory536, TNonblockingTransport transport537) throws TException { + super(client535, protocolFactory536, transport537, resultHandler539, false); this.req = req; } @@ -4953,17 +5002,17 @@ public ExecResp getResult() throws TException { } } - public void get(GetReq req, AsyncMethodCallback resultHandler537) throws TException { + public void get(GetReq req, AsyncMethodCallback resultHandler543) throws TException { checkReady(); - get_call method_call = new get_call(req, resultHandler537, this, ___protocolFactory, ___transport); + get_call method_call = new get_call(req, resultHandler543, 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 resultHandler538, TAsyncClient client534, TProtocolFactory protocolFactory535, TNonblockingTransport transport536) throws TException { - super(client534, protocolFactory535, transport536, resultHandler538, false); + public get_call(GetReq req, AsyncMethodCallback resultHandler544, TAsyncClient client540, TProtocolFactory protocolFactory541, TNonblockingTransport transport542) throws TException { + super(client540, protocolFactory541, transport542, resultHandler544, false); this.req = req; } @@ -4985,17 +5034,17 @@ public GetResp getResult() throws TException { } } - public void multiGet(MultiGetReq req, AsyncMethodCallback resultHandler542) throws TException { + public void multiGet(MultiGetReq req, AsyncMethodCallback resultHandler548) throws TException { checkReady(); - multiGet_call method_call = new multiGet_call(req, resultHandler542, this, ___protocolFactory, ___transport); + multiGet_call method_call = new multiGet_call(req, resultHandler548, 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 resultHandler543, TAsyncClient client539, TProtocolFactory protocolFactory540, TNonblockingTransport transport541) throws TException { - super(client539, protocolFactory540, transport541, resultHandler543, false); + public multiGet_call(MultiGetReq req, AsyncMethodCallback resultHandler549, TAsyncClient client545, TProtocolFactory protocolFactory546, TNonblockingTransport transport547) throws TException { + super(client545, protocolFactory546, transport547, resultHandler549, false); this.req = req; } @@ -5017,17 +5066,17 @@ public MultiGetResp getResult() throws TException { } } - public void remove(RemoveReq req, AsyncMethodCallback resultHandler547) throws TException { + public void remove(RemoveReq req, AsyncMethodCallback resultHandler553) throws TException { checkReady(); - remove_call method_call = new remove_call(req, resultHandler547, this, ___protocolFactory, ___transport); + remove_call method_call = new remove_call(req, resultHandler553, 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 resultHandler548, TAsyncClient client544, TProtocolFactory protocolFactory545, TNonblockingTransport transport546) throws TException { - super(client544, protocolFactory545, transport546, resultHandler548, false); + public remove_call(RemoveReq req, AsyncMethodCallback resultHandler554, TAsyncClient client550, TProtocolFactory protocolFactory551, TNonblockingTransport transport552) throws TException { + super(client550, protocolFactory551, transport552, resultHandler554, false); this.req = req; } @@ -5049,17 +5098,17 @@ public ExecResp getResult() throws TException { } } - public void removeRange(RemoveRangeReq req, AsyncMethodCallback resultHandler552) throws TException { + public void removeRange(RemoveRangeReq req, AsyncMethodCallback resultHandler558) throws TException { checkReady(); - removeRange_call method_call = new removeRange_call(req, resultHandler552, this, ___protocolFactory, ___transport); + removeRange_call method_call = new removeRange_call(req, resultHandler558, 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 resultHandler553, TAsyncClient client549, TProtocolFactory protocolFactory550, TNonblockingTransport transport551) throws TException { - super(client549, protocolFactory550, transport551, resultHandler553, false); + public removeRange_call(RemoveRangeReq req, AsyncMethodCallback resultHandler559, TAsyncClient client555, TProtocolFactory protocolFactory556, TNonblockingTransport transport557) throws TException { + super(client555, protocolFactory556, transport557, resultHandler559, false); this.req = req; } @@ -5081,17 +5130,17 @@ public ExecResp getResult() throws TException { } } - public void scan(ScanReq req, AsyncMethodCallback resultHandler557) throws TException { + public void scan(ScanReq req, AsyncMethodCallback resultHandler563) throws TException { checkReady(); - scan_call method_call = new scan_call(req, resultHandler557, this, ___protocolFactory, ___transport); + scan_call method_call = new scan_call(req, resultHandler563, 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 resultHandler558, TAsyncClient client554, TProtocolFactory protocolFactory555, TNonblockingTransport transport556) throws TException { - super(client554, protocolFactory555, transport556, resultHandler558, false); + public scan_call(ScanReq req, AsyncMethodCallback resultHandler564, TAsyncClient client560, TProtocolFactory protocolFactory561, TNonblockingTransport transport562) throws TException { + super(client560, protocolFactory561, transport562, resultHandler564, false); this.req = req; } @@ -5113,17 +5162,17 @@ public ScanResp getResult() throws TException { } } - public void createTagIndex(CreateTagIndexReq req, AsyncMethodCallback resultHandler562) throws TException { + public void createTagIndex(CreateTagIndexReq req, AsyncMethodCallback resultHandler568) throws TException { checkReady(); - createTagIndex_call method_call = new createTagIndex_call(req, resultHandler562, this, ___protocolFactory, ___transport); + createTagIndex_call method_call = new createTagIndex_call(req, resultHandler568, 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 resultHandler563, TAsyncClient client559, TProtocolFactory protocolFactory560, TNonblockingTransport transport561) throws TException { - super(client559, protocolFactory560, transport561, resultHandler563, false); + public createTagIndex_call(CreateTagIndexReq req, AsyncMethodCallback resultHandler569, TAsyncClient client565, TProtocolFactory protocolFactory566, TNonblockingTransport transport567) throws TException { + super(client565, protocolFactory566, transport567, resultHandler569, false); this.req = req; } @@ -5145,17 +5194,17 @@ public ExecResp getResult() throws TException { } } - public void dropTagIndex(DropTagIndexReq req, AsyncMethodCallback resultHandler567) throws TException { + public void dropTagIndex(DropTagIndexReq req, AsyncMethodCallback resultHandler573) throws TException { checkReady(); - dropTagIndex_call method_call = new dropTagIndex_call(req, resultHandler567, this, ___protocolFactory, ___transport); + dropTagIndex_call method_call = new dropTagIndex_call(req, resultHandler573, 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 resultHandler568, TAsyncClient client564, TProtocolFactory protocolFactory565, TNonblockingTransport transport566) throws TException { - super(client564, protocolFactory565, transport566, resultHandler568, false); + public dropTagIndex_call(DropTagIndexReq req, AsyncMethodCallback resultHandler574, TAsyncClient client570, TProtocolFactory protocolFactory571, TNonblockingTransport transport572) throws TException { + super(client570, protocolFactory571, transport572, resultHandler574, false); this.req = req; } @@ -5177,17 +5226,17 @@ public ExecResp getResult() throws TException { } } - public void getTagIndex(GetTagIndexReq req, AsyncMethodCallback resultHandler572) throws TException { + public void getTagIndex(GetTagIndexReq req, AsyncMethodCallback resultHandler578) throws TException { checkReady(); - getTagIndex_call method_call = new getTagIndex_call(req, resultHandler572, this, ___protocolFactory, ___transport); + getTagIndex_call method_call = new getTagIndex_call(req, resultHandler578, 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 resultHandler573, TAsyncClient client569, TProtocolFactory protocolFactory570, TNonblockingTransport transport571) throws TException { - super(client569, protocolFactory570, transport571, resultHandler573, false); + public getTagIndex_call(GetTagIndexReq req, AsyncMethodCallback resultHandler579, TAsyncClient client575, TProtocolFactory protocolFactory576, TNonblockingTransport transport577) throws TException { + super(client575, protocolFactory576, transport577, resultHandler579, false); this.req = req; } @@ -5209,17 +5258,17 @@ public GetTagIndexResp getResult() throws TException { } } - public void listTagIndexes(ListTagIndexesReq req, AsyncMethodCallback resultHandler577) throws TException { + public void listTagIndexes(ListTagIndexesReq req, AsyncMethodCallback resultHandler583) throws TException { checkReady(); - listTagIndexes_call method_call = new listTagIndexes_call(req, resultHandler577, this, ___protocolFactory, ___transport); + listTagIndexes_call method_call = new listTagIndexes_call(req, resultHandler583, 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 resultHandler578, TAsyncClient client574, TProtocolFactory protocolFactory575, TNonblockingTransport transport576) throws TException { - super(client574, protocolFactory575, transport576, resultHandler578, false); + public listTagIndexes_call(ListTagIndexesReq req, AsyncMethodCallback resultHandler584, TAsyncClient client580, TProtocolFactory protocolFactory581, TNonblockingTransport transport582) throws TException { + super(client580, protocolFactory581, transport582, resultHandler584, false); this.req = req; } @@ -5241,17 +5290,17 @@ public ListTagIndexesResp getResult() throws TException { } } - public void rebuildTagIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler582) throws TException { + public void rebuildTagIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler588) throws TException { checkReady(); - rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler582, this, ___protocolFactory, ___transport); + rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler588, 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 resultHandler583, TAsyncClient client579, TProtocolFactory protocolFactory580, TNonblockingTransport transport581) throws TException { - super(client579, protocolFactory580, transport581, resultHandler583, false); + public rebuildTagIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler589, TAsyncClient client585, TProtocolFactory protocolFactory586, TNonblockingTransport transport587) throws TException { + super(client585, protocolFactory586, transport587, resultHandler589, false); this.req = req; } @@ -5273,17 +5322,17 @@ public ExecResp getResult() throws TException { } } - public void listTagIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler587) throws TException { + public void listTagIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler593) throws TException { checkReady(); - listTagIndexStatus_call method_call = new listTagIndexStatus_call(req, resultHandler587, this, ___protocolFactory, ___transport); + listTagIndexStatus_call method_call = new listTagIndexStatus_call(req, resultHandler593, 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 resultHandler588, TAsyncClient client584, TProtocolFactory protocolFactory585, TNonblockingTransport transport586) throws TException { - super(client584, protocolFactory585, transport586, resultHandler588, false); + public listTagIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler594, TAsyncClient client590, TProtocolFactory protocolFactory591, TNonblockingTransport transport592) throws TException { + super(client590, protocolFactory591, transport592, resultHandler594, false); this.req = req; } @@ -5305,17 +5354,17 @@ public ListIndexStatusResp getResult() throws TException { } } - public void createEdgeIndex(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler592) throws TException { + public void createEdgeIndex(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler598) throws TException { checkReady(); - createEdgeIndex_call method_call = new createEdgeIndex_call(req, resultHandler592, this, ___protocolFactory, ___transport); + createEdgeIndex_call method_call = new createEdgeIndex_call(req, resultHandler598, 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 resultHandler593, TAsyncClient client589, TProtocolFactory protocolFactory590, TNonblockingTransport transport591) throws TException { - super(client589, protocolFactory590, transport591, resultHandler593, false); + public createEdgeIndex_call(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler599, TAsyncClient client595, TProtocolFactory protocolFactory596, TNonblockingTransport transport597) throws TException { + super(client595, protocolFactory596, transport597, resultHandler599, false); this.req = req; } @@ -5337,17 +5386,17 @@ public ExecResp getResult() throws TException { } } - public void dropEdgeIndex(DropEdgeIndexReq req, AsyncMethodCallback resultHandler597) throws TException { + public void dropEdgeIndex(DropEdgeIndexReq req, AsyncMethodCallback resultHandler603) throws TException { checkReady(); - dropEdgeIndex_call method_call = new dropEdgeIndex_call(req, resultHandler597, this, ___protocolFactory, ___transport); + dropEdgeIndex_call method_call = new dropEdgeIndex_call(req, resultHandler603, 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 resultHandler598, TAsyncClient client594, TProtocolFactory protocolFactory595, TNonblockingTransport transport596) throws TException { - super(client594, protocolFactory595, transport596, resultHandler598, false); + public dropEdgeIndex_call(DropEdgeIndexReq req, AsyncMethodCallback resultHandler604, TAsyncClient client600, TProtocolFactory protocolFactory601, TNonblockingTransport transport602) throws TException { + super(client600, protocolFactory601, transport602, resultHandler604, false); this.req = req; } @@ -5369,17 +5418,17 @@ public ExecResp getResult() throws TException { } } - public void getEdgeIndex(GetEdgeIndexReq req, AsyncMethodCallback resultHandler602) throws TException { + public void getEdgeIndex(GetEdgeIndexReq req, AsyncMethodCallback resultHandler608) throws TException { checkReady(); - getEdgeIndex_call method_call = new getEdgeIndex_call(req, resultHandler602, this, ___protocolFactory, ___transport); + getEdgeIndex_call method_call = new getEdgeIndex_call(req, resultHandler608, 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 resultHandler603, TAsyncClient client599, TProtocolFactory protocolFactory600, TNonblockingTransport transport601) throws TException { - super(client599, protocolFactory600, transport601, resultHandler603, false); + public getEdgeIndex_call(GetEdgeIndexReq req, AsyncMethodCallback resultHandler609, TAsyncClient client605, TProtocolFactory protocolFactory606, TNonblockingTransport transport607) throws TException { + super(client605, protocolFactory606, transport607, resultHandler609, false); this.req = req; } @@ -5401,17 +5450,17 @@ public GetEdgeIndexResp getResult() throws TException { } } - public void listEdgeIndexes(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler607) throws TException { + public void listEdgeIndexes(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler613) throws TException { checkReady(); - listEdgeIndexes_call method_call = new listEdgeIndexes_call(req, resultHandler607, this, ___protocolFactory, ___transport); + listEdgeIndexes_call method_call = new listEdgeIndexes_call(req, resultHandler613, 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 resultHandler608, TAsyncClient client604, TProtocolFactory protocolFactory605, TNonblockingTransport transport606) throws TException { - super(client604, protocolFactory605, transport606, resultHandler608, false); + public listEdgeIndexes_call(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler614, TAsyncClient client610, TProtocolFactory protocolFactory611, TNonblockingTransport transport612) throws TException { + super(client610, protocolFactory611, transport612, resultHandler614, false); this.req = req; } @@ -5433,17 +5482,17 @@ public ListEdgeIndexesResp getResult() throws TException { } } - public void rebuildEdgeIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler612) throws TException { + public void rebuildEdgeIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler618) throws TException { checkReady(); - rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler612, this, ___protocolFactory, ___transport); + rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler618, 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 resultHandler613, TAsyncClient client609, TProtocolFactory protocolFactory610, TNonblockingTransport transport611) throws TException { - super(client609, protocolFactory610, transport611, resultHandler613, false); + public rebuildEdgeIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler619, TAsyncClient client615, TProtocolFactory protocolFactory616, TNonblockingTransport transport617) throws TException { + super(client615, protocolFactory616, transport617, resultHandler619, false); this.req = req; } @@ -5465,17 +5514,17 @@ public ExecResp getResult() throws TException { } } - public void listEdgeIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler617) throws TException { + public void listEdgeIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler623) throws TException { checkReady(); - listEdgeIndexStatus_call method_call = new listEdgeIndexStatus_call(req, resultHandler617, this, ___protocolFactory, ___transport); + listEdgeIndexStatus_call method_call = new listEdgeIndexStatus_call(req, resultHandler623, 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 resultHandler618, TAsyncClient client614, TProtocolFactory protocolFactory615, TNonblockingTransport transport616) throws TException { - super(client614, protocolFactory615, transport616, resultHandler618, false); + public listEdgeIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler624, TAsyncClient client620, TProtocolFactory protocolFactory621, TNonblockingTransport transport622) throws TException { + super(client620, protocolFactory621, transport622, resultHandler624, false); this.req = req; } @@ -5497,17 +5546,17 @@ public ListIndexStatusResp getResult() throws TException { } } - public void createUser(CreateUserReq req, AsyncMethodCallback resultHandler622) throws TException { + public void createUser(CreateUserReq req, AsyncMethodCallback resultHandler628) throws TException { checkReady(); - createUser_call method_call = new createUser_call(req, resultHandler622, this, ___protocolFactory, ___transport); + createUser_call method_call = new createUser_call(req, resultHandler628, 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 resultHandler623, TAsyncClient client619, TProtocolFactory protocolFactory620, TNonblockingTransport transport621) throws TException { - super(client619, protocolFactory620, transport621, resultHandler623, false); + public createUser_call(CreateUserReq req, AsyncMethodCallback resultHandler629, TAsyncClient client625, TProtocolFactory protocolFactory626, TNonblockingTransport transport627) throws TException { + super(client625, protocolFactory626, transport627, resultHandler629, false); this.req = req; } @@ -5529,17 +5578,17 @@ public ExecResp getResult() throws TException { } } - public void dropUser(DropUserReq req, AsyncMethodCallback resultHandler627) throws TException { + public void dropUser(DropUserReq req, AsyncMethodCallback resultHandler633) throws TException { checkReady(); - dropUser_call method_call = new dropUser_call(req, resultHandler627, this, ___protocolFactory, ___transport); + dropUser_call method_call = new dropUser_call(req, resultHandler633, 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 resultHandler628, TAsyncClient client624, TProtocolFactory protocolFactory625, TNonblockingTransport transport626) throws TException { - super(client624, protocolFactory625, transport626, resultHandler628, false); + public dropUser_call(DropUserReq req, AsyncMethodCallback resultHandler634, TAsyncClient client630, TProtocolFactory protocolFactory631, TNonblockingTransport transport632) throws TException { + super(client630, protocolFactory631, transport632, resultHandler634, false); this.req = req; } @@ -5561,17 +5610,17 @@ public ExecResp getResult() throws TException { } } - public void alterUser(AlterUserReq req, AsyncMethodCallback resultHandler632) throws TException { + public void alterUser(AlterUserReq req, AsyncMethodCallback resultHandler638) throws TException { checkReady(); - alterUser_call method_call = new alterUser_call(req, resultHandler632, this, ___protocolFactory, ___transport); + alterUser_call method_call = new alterUser_call(req, resultHandler638, 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 resultHandler633, TAsyncClient client629, TProtocolFactory protocolFactory630, TNonblockingTransport transport631) throws TException { - super(client629, protocolFactory630, transport631, resultHandler633, false); + public alterUser_call(AlterUserReq req, AsyncMethodCallback resultHandler639, TAsyncClient client635, TProtocolFactory protocolFactory636, TNonblockingTransport transport637) throws TException { + super(client635, protocolFactory636, transport637, resultHandler639, false); this.req = req; } @@ -5593,17 +5642,17 @@ public ExecResp getResult() throws TException { } } - public void grantRole(GrantRoleReq req, AsyncMethodCallback resultHandler637) throws TException { + public void grantRole(GrantRoleReq req, AsyncMethodCallback resultHandler643) throws TException { checkReady(); - grantRole_call method_call = new grantRole_call(req, resultHandler637, this, ___protocolFactory, ___transport); + grantRole_call method_call = new grantRole_call(req, resultHandler643, 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 resultHandler638, TAsyncClient client634, TProtocolFactory protocolFactory635, TNonblockingTransport transport636) throws TException { - super(client634, protocolFactory635, transport636, resultHandler638, false); + public grantRole_call(GrantRoleReq req, AsyncMethodCallback resultHandler644, TAsyncClient client640, TProtocolFactory protocolFactory641, TNonblockingTransport transport642) throws TException { + super(client640, protocolFactory641, transport642, resultHandler644, false); this.req = req; } @@ -5625,17 +5674,17 @@ public ExecResp getResult() throws TException { } } - public void revokeRole(RevokeRoleReq req, AsyncMethodCallback resultHandler642) throws TException { + public void revokeRole(RevokeRoleReq req, AsyncMethodCallback resultHandler648) throws TException { checkReady(); - revokeRole_call method_call = new revokeRole_call(req, resultHandler642, this, ___protocolFactory, ___transport); + revokeRole_call method_call = new revokeRole_call(req, resultHandler648, 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 resultHandler643, TAsyncClient client639, TProtocolFactory protocolFactory640, TNonblockingTransport transport641) throws TException { - super(client639, protocolFactory640, transport641, resultHandler643, false); + public revokeRole_call(RevokeRoleReq req, AsyncMethodCallback resultHandler649, TAsyncClient client645, TProtocolFactory protocolFactory646, TNonblockingTransport transport647) throws TException { + super(client645, protocolFactory646, transport647, resultHandler649, false); this.req = req; } @@ -5657,17 +5706,17 @@ public ExecResp getResult() throws TException { } } - public void listUsers(ListUsersReq req, AsyncMethodCallback resultHandler647) throws TException { + public void listUsers(ListUsersReq req, AsyncMethodCallback resultHandler653) throws TException { checkReady(); - listUsers_call method_call = new listUsers_call(req, resultHandler647, this, ___protocolFactory, ___transport); + listUsers_call method_call = new listUsers_call(req, resultHandler653, 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 resultHandler648, TAsyncClient client644, TProtocolFactory protocolFactory645, TNonblockingTransport transport646) throws TException { - super(client644, protocolFactory645, transport646, resultHandler648, false); + public listUsers_call(ListUsersReq req, AsyncMethodCallback resultHandler654, TAsyncClient client650, TProtocolFactory protocolFactory651, TNonblockingTransport transport652) throws TException { + super(client650, protocolFactory651, transport652, resultHandler654, false); this.req = req; } @@ -5689,17 +5738,17 @@ public ListUsersResp getResult() throws TException { } } - public void listRoles(ListRolesReq req, AsyncMethodCallback resultHandler652) throws TException { + public void listRoles(ListRolesReq req, AsyncMethodCallback resultHandler658) throws TException { checkReady(); - listRoles_call method_call = new listRoles_call(req, resultHandler652, this, ___protocolFactory, ___transport); + listRoles_call method_call = new listRoles_call(req, resultHandler658, 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 resultHandler653, TAsyncClient client649, TProtocolFactory protocolFactory650, TNonblockingTransport transport651) throws TException { - super(client649, protocolFactory650, transport651, resultHandler653, false); + public listRoles_call(ListRolesReq req, AsyncMethodCallback resultHandler659, TAsyncClient client655, TProtocolFactory protocolFactory656, TNonblockingTransport transport657) throws TException { + super(client655, protocolFactory656, transport657, resultHandler659, false); this.req = req; } @@ -5721,17 +5770,17 @@ public ListRolesResp getResult() throws TException { } } - public void getUserRoles(GetUserRolesReq req, AsyncMethodCallback resultHandler657) throws TException { + public void getUserRoles(GetUserRolesReq req, AsyncMethodCallback resultHandler663) throws TException { checkReady(); - getUserRoles_call method_call = new getUserRoles_call(req, resultHandler657, this, ___protocolFactory, ___transport); + getUserRoles_call method_call = new getUserRoles_call(req, resultHandler663, 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 resultHandler658, TAsyncClient client654, TProtocolFactory protocolFactory655, TNonblockingTransport transport656) throws TException { - super(client654, protocolFactory655, transport656, resultHandler658, false); + public getUserRoles_call(GetUserRolesReq req, AsyncMethodCallback resultHandler664, TAsyncClient client660, TProtocolFactory protocolFactory661, TNonblockingTransport transport662) throws TException { + super(client660, protocolFactory661, transport662, resultHandler664, false); this.req = req; } @@ -5753,17 +5802,17 @@ public ListRolesResp getResult() throws TException { } } - public void changePassword(ChangePasswordReq req, AsyncMethodCallback resultHandler662) throws TException { + public void changePassword(ChangePasswordReq req, AsyncMethodCallback resultHandler668) throws TException { checkReady(); - changePassword_call method_call = new changePassword_call(req, resultHandler662, this, ___protocolFactory, ___transport); + changePassword_call method_call = new changePassword_call(req, resultHandler668, 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 resultHandler663, TAsyncClient client659, TProtocolFactory protocolFactory660, TNonblockingTransport transport661) throws TException { - super(client659, protocolFactory660, transport661, resultHandler663, false); + public changePassword_call(ChangePasswordReq req, AsyncMethodCallback resultHandler669, TAsyncClient client665, TProtocolFactory protocolFactory666, TNonblockingTransport transport667) throws TException { + super(client665, protocolFactory666, transport667, resultHandler669, false); this.req = req; } @@ -5785,17 +5834,17 @@ public ExecResp getResult() throws TException { } } - public void heartBeat(HBReq req, AsyncMethodCallback resultHandler667) throws TException { + public void heartBeat(HBReq req, AsyncMethodCallback resultHandler673) throws TException { checkReady(); - heartBeat_call method_call = new heartBeat_call(req, resultHandler667, this, ___protocolFactory, ___transport); + heartBeat_call method_call = new heartBeat_call(req, resultHandler673, 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 resultHandler668, TAsyncClient client664, TProtocolFactory protocolFactory665, TNonblockingTransport transport666) throws TException { - super(client664, protocolFactory665, transport666, resultHandler668, false); + public heartBeat_call(HBReq req, AsyncMethodCallback resultHandler674, TAsyncClient client670, TProtocolFactory protocolFactory671, TNonblockingTransport transport672) throws TException { + super(client670, protocolFactory671, transport672, resultHandler674, false); this.req = req; } @@ -5817,17 +5866,49 @@ public HBResp getResult() throws TException { } } - public void regConfig(RegConfigReq req, AsyncMethodCallback resultHandler672) throws TException { + public void agentHeartbeat(AgentHBReq req, AsyncMethodCallback resultHandler678) throws TException { checkReady(); - regConfig_call method_call = new regConfig_call(req, resultHandler672, this, ___protocolFactory, ___transport); + agentHeartbeat_call method_call = new agentHeartbeat_call(req, resultHandler678, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class agentHeartbeat_call extends TAsyncMethodCall { + private AgentHBReq req; + public agentHeartbeat_call(AgentHBReq req, AsyncMethodCallback resultHandler679, TAsyncClient client675, TProtocolFactory protocolFactory676, TNonblockingTransport transport677) throws TException { + super(client675, protocolFactory676, transport677, resultHandler679, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("agentHeartbeat", TMessageType.CALL, 0)); + agentHeartbeat_args args = new agentHeartbeat_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public AgentHBResp 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_agentHeartbeat(); + } + } + + public void regConfig(RegConfigReq req, AsyncMethodCallback resultHandler683) throws TException { + checkReady(); + regConfig_call method_call = new regConfig_call(req, resultHandler683, 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 resultHandler673, TAsyncClient client669, TProtocolFactory protocolFactory670, TNonblockingTransport transport671) throws TException { - super(client669, protocolFactory670, transport671, resultHandler673, false); + public regConfig_call(RegConfigReq req, AsyncMethodCallback resultHandler684, TAsyncClient client680, TProtocolFactory protocolFactory681, TNonblockingTransport transport682) throws TException { + super(client680, protocolFactory681, transport682, resultHandler684, false); this.req = req; } @@ -5849,17 +5930,17 @@ public ExecResp getResult() throws TException { } } - public void getConfig(GetConfigReq req, AsyncMethodCallback resultHandler677) throws TException { + public void getConfig(GetConfigReq req, AsyncMethodCallback resultHandler688) throws TException { checkReady(); - getConfig_call method_call = new getConfig_call(req, resultHandler677, this, ___protocolFactory, ___transport); + getConfig_call method_call = new getConfig_call(req, resultHandler688, 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 resultHandler678, TAsyncClient client674, TProtocolFactory protocolFactory675, TNonblockingTransport transport676) throws TException { - super(client674, protocolFactory675, transport676, resultHandler678, false); + public getConfig_call(GetConfigReq req, AsyncMethodCallback resultHandler689, TAsyncClient client685, TProtocolFactory protocolFactory686, TNonblockingTransport transport687) throws TException { + super(client685, protocolFactory686, transport687, resultHandler689, false); this.req = req; } @@ -5881,17 +5962,17 @@ public GetConfigResp getResult() throws TException { } } - public void setConfig(SetConfigReq req, AsyncMethodCallback resultHandler682) throws TException { + public void setConfig(SetConfigReq req, AsyncMethodCallback resultHandler693) throws TException { checkReady(); - setConfig_call method_call = new setConfig_call(req, resultHandler682, this, ___protocolFactory, ___transport); + setConfig_call method_call = new setConfig_call(req, resultHandler693, 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 resultHandler683, TAsyncClient client679, TProtocolFactory protocolFactory680, TNonblockingTransport transport681) throws TException { - super(client679, protocolFactory680, transport681, resultHandler683, false); + public setConfig_call(SetConfigReq req, AsyncMethodCallback resultHandler694, TAsyncClient client690, TProtocolFactory protocolFactory691, TNonblockingTransport transport692) throws TException { + super(client690, protocolFactory691, transport692, resultHandler694, false); this.req = req; } @@ -5913,17 +5994,17 @@ public ExecResp getResult() throws TException { } } - public void listConfigs(ListConfigsReq req, AsyncMethodCallback resultHandler687) throws TException { + public void listConfigs(ListConfigsReq req, AsyncMethodCallback resultHandler698) throws TException { checkReady(); - listConfigs_call method_call = new listConfigs_call(req, resultHandler687, this, ___protocolFactory, ___transport); + listConfigs_call method_call = new listConfigs_call(req, resultHandler698, 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 resultHandler688, TAsyncClient client684, TProtocolFactory protocolFactory685, TNonblockingTransport transport686) throws TException { - super(client684, protocolFactory685, transport686, resultHandler688, false); + public listConfigs_call(ListConfigsReq req, AsyncMethodCallback resultHandler699, TAsyncClient client695, TProtocolFactory protocolFactory696, TNonblockingTransport transport697) throws TException { + super(client695, protocolFactory696, transport697, resultHandler699, false); this.req = req; } @@ -5945,17 +6026,17 @@ public ListConfigsResp getResult() throws TException { } } - public void createSnapshot(CreateSnapshotReq req, AsyncMethodCallback resultHandler692) throws TException { + public void createSnapshot(CreateSnapshotReq req, AsyncMethodCallback resultHandler703) throws TException { checkReady(); - createSnapshot_call method_call = new createSnapshot_call(req, resultHandler692, this, ___protocolFactory, ___transport); + createSnapshot_call method_call = new createSnapshot_call(req, resultHandler703, 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 resultHandler693, TAsyncClient client689, TProtocolFactory protocolFactory690, TNonblockingTransport transport691) throws TException { - super(client689, protocolFactory690, transport691, resultHandler693, false); + public createSnapshot_call(CreateSnapshotReq req, AsyncMethodCallback resultHandler704, TAsyncClient client700, TProtocolFactory protocolFactory701, TNonblockingTransport transport702) throws TException { + super(client700, protocolFactory701, transport702, resultHandler704, false); this.req = req; } @@ -5977,17 +6058,17 @@ public ExecResp getResult() throws TException { } } - public void dropSnapshot(DropSnapshotReq req, AsyncMethodCallback resultHandler697) throws TException { + public void dropSnapshot(DropSnapshotReq req, AsyncMethodCallback resultHandler708) throws TException { checkReady(); - dropSnapshot_call method_call = new dropSnapshot_call(req, resultHandler697, this, ___protocolFactory, ___transport); + dropSnapshot_call method_call = new dropSnapshot_call(req, resultHandler708, 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 resultHandler698, TAsyncClient client694, TProtocolFactory protocolFactory695, TNonblockingTransport transport696) throws TException { - super(client694, protocolFactory695, transport696, resultHandler698, false); + public dropSnapshot_call(DropSnapshotReq req, AsyncMethodCallback resultHandler709, TAsyncClient client705, TProtocolFactory protocolFactory706, TNonblockingTransport transport707) throws TException { + super(client705, protocolFactory706, transport707, resultHandler709, false); this.req = req; } @@ -6009,17 +6090,17 @@ public ExecResp getResult() throws TException { } } - public void listSnapshots(ListSnapshotsReq req, AsyncMethodCallback resultHandler702) throws TException { + public void listSnapshots(ListSnapshotsReq req, AsyncMethodCallback resultHandler713) throws TException { checkReady(); - listSnapshots_call method_call = new listSnapshots_call(req, resultHandler702, this, ___protocolFactory, ___transport); + listSnapshots_call method_call = new listSnapshots_call(req, resultHandler713, 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 resultHandler703, TAsyncClient client699, TProtocolFactory protocolFactory700, TNonblockingTransport transport701) throws TException { - super(client699, protocolFactory700, transport701, resultHandler703, false); + public listSnapshots_call(ListSnapshotsReq req, AsyncMethodCallback resultHandler714, TAsyncClient client710, TProtocolFactory protocolFactory711, TNonblockingTransport transport712) throws TException { + super(client710, protocolFactory711, transport712, resultHandler714, false); this.req = req; } @@ -6041,17 +6122,17 @@ public ListSnapshotsResp getResult() throws TException { } } - public void runAdminJob(AdminJobReq req, AsyncMethodCallback resultHandler707) throws TException { + public void runAdminJob(AdminJobReq req, AsyncMethodCallback resultHandler718) throws TException { checkReady(); - runAdminJob_call method_call = new runAdminJob_call(req, resultHandler707, this, ___protocolFactory, ___transport); + runAdminJob_call method_call = new runAdminJob_call(req, resultHandler718, 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 resultHandler708, TAsyncClient client704, TProtocolFactory protocolFactory705, TNonblockingTransport transport706) throws TException { - super(client704, protocolFactory705, transport706, resultHandler708, false); + public runAdminJob_call(AdminJobReq req, AsyncMethodCallback resultHandler719, TAsyncClient client715, TProtocolFactory protocolFactory716, TNonblockingTransport transport717) throws TException { + super(client715, protocolFactory716, transport717, resultHandler719, false); this.req = req; } @@ -6073,17 +6154,17 @@ public AdminJobResp getResult() throws TException { } } - public void mergeZone(MergeZoneReq req, AsyncMethodCallback resultHandler712) throws TException { + public void mergeZone(MergeZoneReq req, AsyncMethodCallback resultHandler723) throws TException { checkReady(); - mergeZone_call method_call = new mergeZone_call(req, resultHandler712, this, ___protocolFactory, ___transport); + mergeZone_call method_call = new mergeZone_call(req, resultHandler723, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class mergeZone_call extends TAsyncMethodCall { private MergeZoneReq req; - public mergeZone_call(MergeZoneReq req, AsyncMethodCallback resultHandler713, TAsyncClient client709, TProtocolFactory protocolFactory710, TNonblockingTransport transport711) throws TException { - super(client709, protocolFactory710, transport711, resultHandler713, false); + public mergeZone_call(MergeZoneReq req, AsyncMethodCallback resultHandler724, TAsyncClient client720, TProtocolFactory protocolFactory721, TNonblockingTransport transport722) throws TException { + super(client720, protocolFactory721, transport722, resultHandler724, false); this.req = req; } @@ -6105,17 +6186,17 @@ public ExecResp getResult() throws TException { } } - public void dropZone(DropZoneReq req, AsyncMethodCallback resultHandler717) throws TException { + public void dropZone(DropZoneReq req, AsyncMethodCallback resultHandler728) throws TException { checkReady(); - dropZone_call method_call = new dropZone_call(req, resultHandler717, this, ___protocolFactory, ___transport); + dropZone_call method_call = new dropZone_call(req, resultHandler728, 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 resultHandler718, TAsyncClient client714, TProtocolFactory protocolFactory715, TNonblockingTransport transport716) throws TException { - super(client714, protocolFactory715, transport716, resultHandler718, false); + public dropZone_call(DropZoneReq req, AsyncMethodCallback resultHandler729, TAsyncClient client725, TProtocolFactory protocolFactory726, TNonblockingTransport transport727) throws TException { + super(client725, protocolFactory726, transport727, resultHandler729, false); this.req = req; } @@ -6137,17 +6218,17 @@ public ExecResp getResult() throws TException { } } - public void splitZone(SplitZoneReq req, AsyncMethodCallback resultHandler722) throws TException { + public void splitZone(SplitZoneReq req, AsyncMethodCallback resultHandler733) throws TException { checkReady(); - splitZone_call method_call = new splitZone_call(req, resultHandler722, this, ___protocolFactory, ___transport); + splitZone_call method_call = new splitZone_call(req, resultHandler733, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class splitZone_call extends TAsyncMethodCall { private SplitZoneReq req; - public splitZone_call(SplitZoneReq req, AsyncMethodCallback resultHandler723, TAsyncClient client719, TProtocolFactory protocolFactory720, TNonblockingTransport transport721) throws TException { - super(client719, protocolFactory720, transport721, resultHandler723, false); + public splitZone_call(SplitZoneReq req, AsyncMethodCallback resultHandler734, TAsyncClient client730, TProtocolFactory protocolFactory731, TNonblockingTransport transport732) throws TException { + super(client730, protocolFactory731, transport732, resultHandler734, false); this.req = req; } @@ -6169,17 +6250,17 @@ public ExecResp getResult() throws TException { } } - public void renameZone(RenameZoneReq req, AsyncMethodCallback resultHandler727) throws TException { + public void renameZone(RenameZoneReq req, AsyncMethodCallback resultHandler738) throws TException { checkReady(); - renameZone_call method_call = new renameZone_call(req, resultHandler727, this, ___protocolFactory, ___transport); + renameZone_call method_call = new renameZone_call(req, resultHandler738, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class renameZone_call extends TAsyncMethodCall { private RenameZoneReq req; - public renameZone_call(RenameZoneReq req, AsyncMethodCallback resultHandler728, TAsyncClient client724, TProtocolFactory protocolFactory725, TNonblockingTransport transport726) throws TException { - super(client724, protocolFactory725, transport726, resultHandler728, false); + public renameZone_call(RenameZoneReq req, AsyncMethodCallback resultHandler739, TAsyncClient client735, TProtocolFactory protocolFactory736, TNonblockingTransport transport737) throws TException { + super(client735, protocolFactory736, transport737, resultHandler739, false); this.req = req; } @@ -6201,17 +6282,17 @@ public ExecResp getResult() throws TException { } } - public void getZone(GetZoneReq req, AsyncMethodCallback resultHandler732) throws TException { + public void getZone(GetZoneReq req, AsyncMethodCallback resultHandler743) throws TException { checkReady(); - getZone_call method_call = new getZone_call(req, resultHandler732, this, ___protocolFactory, ___transport); + getZone_call method_call = new getZone_call(req, resultHandler743, 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 resultHandler733, TAsyncClient client729, TProtocolFactory protocolFactory730, TNonblockingTransport transport731) throws TException { - super(client729, protocolFactory730, transport731, resultHandler733, false); + public getZone_call(GetZoneReq req, AsyncMethodCallback resultHandler744, TAsyncClient client740, TProtocolFactory protocolFactory741, TNonblockingTransport transport742) throws TException { + super(client740, protocolFactory741, transport742, resultHandler744, false); this.req = req; } @@ -6233,17 +6314,17 @@ public GetZoneResp getResult() throws TException { } } - public void listZones(ListZonesReq req, AsyncMethodCallback resultHandler737) throws TException { + public void listZones(ListZonesReq req, AsyncMethodCallback resultHandler748) throws TException { checkReady(); - listZones_call method_call = new listZones_call(req, resultHandler737, this, ___protocolFactory, ___transport); + listZones_call method_call = new listZones_call(req, resultHandler748, 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 resultHandler738, TAsyncClient client734, TProtocolFactory protocolFactory735, TNonblockingTransport transport736) throws TException { - super(client734, protocolFactory735, transport736, resultHandler738, false); + public listZones_call(ListZonesReq req, AsyncMethodCallback resultHandler749, TAsyncClient client745, TProtocolFactory protocolFactory746, TNonblockingTransport transport747) throws TException { + super(client745, protocolFactory746, transport747, resultHandler749, false); this.req = req; } @@ -6265,81 +6346,17 @@ public ListZonesResp getResult() throws TException { } } - public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler742) throws TException { - checkReady(); - createBackup_call method_call = new createBackup_call(req, resultHandler742, 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 resultHandler743, TAsyncClient client739, TProtocolFactory protocolFactory740, TNonblockingTransport transport741) throws TException { - super(client739, protocolFactory740, transport741, resultHandler743, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("createBackup", TMessageType.CALL, 0)); - createBackup_args args = new createBackup_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public CreateBackupResp 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_createBackup(); - } - } - - public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler747) throws TException { - checkReady(); - restoreMeta_call method_call = new restoreMeta_call(req, resultHandler747, 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 resultHandler748, TAsyncClient client744, TProtocolFactory protocolFactory745, TNonblockingTransport transport746) throws TException { - super(client744, protocolFactory745, transport746, resultHandler748, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("restoreMeta", TMessageType.CALL, 0)); - restoreMeta_args args = new restoreMeta_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_restoreMeta(); - } - } - - public void addListener(AddListenerReq req, AsyncMethodCallback resultHandler752) throws TException { + public void addListener(AddListenerReq req, AsyncMethodCallback resultHandler753) throws TException { checkReady(); - addListener_call method_call = new addListener_call(req, resultHandler752, this, ___protocolFactory, ___transport); + addListener_call method_call = new addListener_call(req, resultHandler753, 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 resultHandler753, TAsyncClient client749, TProtocolFactory protocolFactory750, TNonblockingTransport transport751) throws TException { - super(client749, protocolFactory750, transport751, resultHandler753, false); + public addListener_call(AddListenerReq req, AsyncMethodCallback resultHandler754, TAsyncClient client750, TProtocolFactory protocolFactory751, TNonblockingTransport transport752) throws TException { + super(client750, protocolFactory751, transport752, resultHandler754, false); this.req = req; } @@ -6361,17 +6378,17 @@ public ExecResp getResult() throws TException { } } - public void removeListener(RemoveListenerReq req, AsyncMethodCallback resultHandler757) throws TException { + public void removeListener(RemoveListenerReq req, AsyncMethodCallback resultHandler758) throws TException { checkReady(); - removeListener_call method_call = new removeListener_call(req, resultHandler757, this, ___protocolFactory, ___transport); + removeListener_call method_call = new removeListener_call(req, resultHandler758, 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 resultHandler758, TAsyncClient client754, TProtocolFactory protocolFactory755, TNonblockingTransport transport756) throws TException { - super(client754, protocolFactory755, transport756, resultHandler758, false); + public removeListener_call(RemoveListenerReq req, AsyncMethodCallback resultHandler759, TAsyncClient client755, TProtocolFactory protocolFactory756, TNonblockingTransport transport757) throws TException { + super(client755, protocolFactory756, transport757, resultHandler759, false); this.req = req; } @@ -6393,17 +6410,17 @@ public ExecResp getResult() throws TException { } } - public void listListener(ListListenerReq req, AsyncMethodCallback resultHandler762) throws TException { + public void listListener(ListListenerReq req, AsyncMethodCallback resultHandler763) throws TException { checkReady(); - listListener_call method_call = new listListener_call(req, resultHandler762, this, ___protocolFactory, ___transport); + listListener_call method_call = new listListener_call(req, resultHandler763, 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 resultHandler763, TAsyncClient client759, TProtocolFactory protocolFactory760, TNonblockingTransport transport761) throws TException { - super(client759, protocolFactory760, transport761, resultHandler763, false); + public listListener_call(ListListenerReq req, AsyncMethodCallback resultHandler764, TAsyncClient client760, TProtocolFactory protocolFactory761, TNonblockingTransport transport762) throws TException { + super(client760, protocolFactory761, transport762, resultHandler764, false); this.req = req; } @@ -6425,17 +6442,17 @@ public ListListenerResp getResult() throws TException { } } - public void getStats(GetStatsReq req, AsyncMethodCallback resultHandler767) throws TException { + public void getStats(GetStatsReq req, AsyncMethodCallback resultHandler768) throws TException { checkReady(); - getStats_call method_call = new getStats_call(req, resultHandler767, this, ___protocolFactory, ___transport); + getStats_call method_call = new getStats_call(req, resultHandler768, 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 resultHandler768, TAsyncClient client764, TProtocolFactory protocolFactory765, TNonblockingTransport transport766) throws TException { - super(client764, protocolFactory765, transport766, resultHandler768, false); + public getStats_call(GetStatsReq req, AsyncMethodCallback resultHandler769, TAsyncClient client765, TProtocolFactory protocolFactory766, TNonblockingTransport transport767) throws TException { + super(client765, protocolFactory766, transport767, resultHandler769, false); this.req = req; } @@ -6457,17 +6474,17 @@ public GetStatsResp getResult() throws TException { } } - public void signInFTService(SignInFTServiceReq req, AsyncMethodCallback resultHandler772) throws TException { + public void signInFTService(SignInFTServiceReq req, AsyncMethodCallback resultHandler773) throws TException { checkReady(); - signInFTService_call method_call = new signInFTService_call(req, resultHandler772, this, ___protocolFactory, ___transport); + signInFTService_call method_call = new signInFTService_call(req, resultHandler773, 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 resultHandler773, TAsyncClient client769, TProtocolFactory protocolFactory770, TNonblockingTransport transport771) throws TException { - super(client769, protocolFactory770, transport771, resultHandler773, false); + public signInFTService_call(SignInFTServiceReq req, AsyncMethodCallback resultHandler774, TAsyncClient client770, TProtocolFactory protocolFactory771, TNonblockingTransport transport772) throws TException { + super(client770, protocolFactory771, transport772, resultHandler774, false); this.req = req; } @@ -6489,17 +6506,17 @@ public ExecResp getResult() throws TException { } } - public void signOutFTService(SignOutFTServiceReq req, AsyncMethodCallback resultHandler777) throws TException { + public void signOutFTService(SignOutFTServiceReq req, AsyncMethodCallback resultHandler778) throws TException { checkReady(); - signOutFTService_call method_call = new signOutFTService_call(req, resultHandler777, this, ___protocolFactory, ___transport); + signOutFTService_call method_call = new signOutFTService_call(req, resultHandler778, 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 resultHandler778, TAsyncClient client774, TProtocolFactory protocolFactory775, TNonblockingTransport transport776) throws TException { - super(client774, protocolFactory775, transport776, resultHandler778, false); + public signOutFTService_call(SignOutFTServiceReq req, AsyncMethodCallback resultHandler779, TAsyncClient client775, TProtocolFactory protocolFactory776, TNonblockingTransport transport777) throws TException { + super(client775, protocolFactory776, transport777, resultHandler779, false); this.req = req; } @@ -6521,17 +6538,17 @@ public ExecResp getResult() throws TException { } } - public void listFTClients(ListFTClientsReq req, AsyncMethodCallback resultHandler782) throws TException { + public void listFTClients(ListFTClientsReq req, AsyncMethodCallback resultHandler783) throws TException { checkReady(); - listFTClients_call method_call = new listFTClients_call(req, resultHandler782, this, ___protocolFactory, ___transport); + listFTClients_call method_call = new listFTClients_call(req, resultHandler783, 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 resultHandler783, TAsyncClient client779, TProtocolFactory protocolFactory780, TNonblockingTransport transport781) throws TException { - super(client779, protocolFactory780, transport781, resultHandler783, false); + public listFTClients_call(ListFTClientsReq req, AsyncMethodCallback resultHandler784, TAsyncClient client780, TProtocolFactory protocolFactory781, TNonblockingTransport transport782) throws TException { + super(client780, protocolFactory781, transport782, resultHandler784, false); this.req = req; } @@ -6553,17 +6570,17 @@ public ListFTClientsResp getResult() throws TException { } } - public void createFTIndex(CreateFTIndexReq req, AsyncMethodCallback resultHandler787) throws TException { + public void createFTIndex(CreateFTIndexReq req, AsyncMethodCallback resultHandler788) throws TException { checkReady(); - createFTIndex_call method_call = new createFTIndex_call(req, resultHandler787, this, ___protocolFactory, ___transport); + createFTIndex_call method_call = new createFTIndex_call(req, resultHandler788, 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 resultHandler788, TAsyncClient client784, TProtocolFactory protocolFactory785, TNonblockingTransport transport786) throws TException { - super(client784, protocolFactory785, transport786, resultHandler788, false); + public createFTIndex_call(CreateFTIndexReq req, AsyncMethodCallback resultHandler789, TAsyncClient client785, TProtocolFactory protocolFactory786, TNonblockingTransport transport787) throws TException { + super(client785, protocolFactory786, transport787, resultHandler789, false); this.req = req; } @@ -6585,17 +6602,17 @@ public ExecResp getResult() throws TException { } } - public void dropFTIndex(DropFTIndexReq req, AsyncMethodCallback resultHandler792) throws TException { + public void dropFTIndex(DropFTIndexReq req, AsyncMethodCallback resultHandler793) throws TException { checkReady(); - dropFTIndex_call method_call = new dropFTIndex_call(req, resultHandler792, this, ___protocolFactory, ___transport); + dropFTIndex_call method_call = new dropFTIndex_call(req, resultHandler793, 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 resultHandler793, TAsyncClient client789, TProtocolFactory protocolFactory790, TNonblockingTransport transport791) throws TException { - super(client789, protocolFactory790, transport791, resultHandler793, false); + public dropFTIndex_call(DropFTIndexReq req, AsyncMethodCallback resultHandler794, TAsyncClient client790, TProtocolFactory protocolFactory791, TNonblockingTransport transport792) throws TException { + super(client790, protocolFactory791, transport792, resultHandler794, false); this.req = req; } @@ -6617,17 +6634,17 @@ public ExecResp getResult() throws TException { } } - public void listFTIndexes(ListFTIndexesReq req, AsyncMethodCallback resultHandler797) throws TException { + public void listFTIndexes(ListFTIndexesReq req, AsyncMethodCallback resultHandler798) throws TException { checkReady(); - listFTIndexes_call method_call = new listFTIndexes_call(req, resultHandler797, this, ___protocolFactory, ___transport); + listFTIndexes_call method_call = new listFTIndexes_call(req, resultHandler798, 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 resultHandler798, TAsyncClient client794, TProtocolFactory protocolFactory795, TNonblockingTransport transport796) throws TException { - super(client794, protocolFactory795, transport796, resultHandler798, false); + public listFTIndexes_call(ListFTIndexesReq req, AsyncMethodCallback resultHandler799, TAsyncClient client795, TProtocolFactory protocolFactory796, TNonblockingTransport transport797) throws TException { + super(client795, protocolFactory796, transport797, resultHandler799, false); this.req = req; } @@ -6649,17 +6666,17 @@ public ListFTIndexesResp getResult() throws TException { } } - public void createSession(CreateSessionReq req, AsyncMethodCallback resultHandler802) throws TException { + public void createSession(CreateSessionReq req, AsyncMethodCallback resultHandler803) throws TException { checkReady(); - createSession_call method_call = new createSession_call(req, resultHandler802, this, ___protocolFactory, ___transport); + createSession_call method_call = new createSession_call(req, resultHandler803, 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 resultHandler803, TAsyncClient client799, TProtocolFactory protocolFactory800, TNonblockingTransport transport801) throws TException { - super(client799, protocolFactory800, transport801, resultHandler803, false); + public createSession_call(CreateSessionReq req, AsyncMethodCallback resultHandler804, TAsyncClient client800, TProtocolFactory protocolFactory801, TNonblockingTransport transport802) throws TException { + super(client800, protocolFactory801, transport802, resultHandler804, false); this.req = req; } @@ -6681,17 +6698,17 @@ public CreateSessionResp getResult() throws TException { } } - public void updateSessions(UpdateSessionsReq req, AsyncMethodCallback resultHandler807) throws TException { + public void updateSessions(UpdateSessionsReq req, AsyncMethodCallback resultHandler808) throws TException { checkReady(); - updateSessions_call method_call = new updateSessions_call(req, resultHandler807, this, ___protocolFactory, ___transport); + updateSessions_call method_call = new updateSessions_call(req, resultHandler808, 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 resultHandler808, TAsyncClient client804, TProtocolFactory protocolFactory805, TNonblockingTransport transport806) throws TException { - super(client804, protocolFactory805, transport806, resultHandler808, false); + public updateSessions_call(UpdateSessionsReq req, AsyncMethodCallback resultHandler809, TAsyncClient client805, TProtocolFactory protocolFactory806, TNonblockingTransport transport807) throws TException { + super(client805, protocolFactory806, transport807, resultHandler809, false); this.req = req; } @@ -6713,17 +6730,17 @@ public UpdateSessionsResp getResult() throws TException { } } - public void listSessions(ListSessionsReq req, AsyncMethodCallback resultHandler812) throws TException { + public void listSessions(ListSessionsReq req, AsyncMethodCallback resultHandler813) throws TException { checkReady(); - listSessions_call method_call = new listSessions_call(req, resultHandler812, this, ___protocolFactory, ___transport); + listSessions_call method_call = new listSessions_call(req, resultHandler813, 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 resultHandler813, TAsyncClient client809, TProtocolFactory protocolFactory810, TNonblockingTransport transport811) throws TException { - super(client809, protocolFactory810, transport811, resultHandler813, false); + public listSessions_call(ListSessionsReq req, AsyncMethodCallback resultHandler814, TAsyncClient client810, TProtocolFactory protocolFactory811, TNonblockingTransport transport812) throws TException { + super(client810, protocolFactory811, transport812, resultHandler814, false); this.req = req; } @@ -6745,17 +6762,17 @@ public ListSessionsResp getResult() throws TException { } } - public void getSession(GetSessionReq req, AsyncMethodCallback resultHandler817) throws TException { + public void getSession(GetSessionReq req, AsyncMethodCallback resultHandler818) throws TException { checkReady(); - getSession_call method_call = new getSession_call(req, resultHandler817, this, ___protocolFactory, ___transport); + getSession_call method_call = new getSession_call(req, resultHandler818, 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 resultHandler818, TAsyncClient client814, TProtocolFactory protocolFactory815, TNonblockingTransport transport816) throws TException { - super(client814, protocolFactory815, transport816, resultHandler818, false); + public getSession_call(GetSessionReq req, AsyncMethodCallback resultHandler819, TAsyncClient client815, TProtocolFactory protocolFactory816, TNonblockingTransport transport817) throws TException { + super(client815, protocolFactory816, transport817, resultHandler819, false); this.req = req; } @@ -6777,17 +6794,17 @@ public GetSessionResp getResult() throws TException { } } - public void removeSession(RemoveSessionReq req, AsyncMethodCallback resultHandler822) throws TException { + public void removeSession(RemoveSessionReq req, AsyncMethodCallback resultHandler823) throws TException { checkReady(); - removeSession_call method_call = new removeSession_call(req, resultHandler822, this, ___protocolFactory, ___transport); + removeSession_call method_call = new removeSession_call(req, resultHandler823, 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 resultHandler823, TAsyncClient client819, TProtocolFactory protocolFactory820, TNonblockingTransport transport821) throws TException { - super(client819, protocolFactory820, transport821, resultHandler823, false); + public removeSession_call(RemoveSessionReq req, AsyncMethodCallback resultHandler824, TAsyncClient client820, TProtocolFactory protocolFactory821, TNonblockingTransport transport822) throws TException { + super(client820, protocolFactory821, transport822, resultHandler824, false); this.req = req; } @@ -6809,17 +6826,17 @@ public ExecResp getResult() throws TException { } } - public void killQuery(KillQueryReq req, AsyncMethodCallback resultHandler827) throws TException { + public void killQuery(KillQueryReq req, AsyncMethodCallback resultHandler828) throws TException { checkReady(); - killQuery_call method_call = new killQuery_call(req, resultHandler827, this, ___protocolFactory, ___transport); + killQuery_call method_call = new killQuery_call(req, resultHandler828, 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 resultHandler828, TAsyncClient client824, TProtocolFactory protocolFactory825, TNonblockingTransport transport826) throws TException { - super(client824, protocolFactory825, transport826, resultHandler828, false); + public killQuery_call(KillQueryReq req, AsyncMethodCallback resultHandler829, TAsyncClient client825, TProtocolFactory protocolFactory826, TNonblockingTransport transport827) throws TException { + super(client825, protocolFactory826, transport827, resultHandler829, false); this.req = req; } @@ -6841,17 +6858,17 @@ public ExecResp getResult() throws TException { } } - public void reportTaskFinish(ReportTaskReq req, AsyncMethodCallback resultHandler832) throws TException { + public void reportTaskFinish(ReportTaskReq req, AsyncMethodCallback resultHandler833) throws TException { checkReady(); - reportTaskFinish_call method_call = new reportTaskFinish_call(req, resultHandler832, this, ___protocolFactory, ___transport); + reportTaskFinish_call method_call = new reportTaskFinish_call(req, resultHandler833, 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 resultHandler833, TAsyncClient client829, TProtocolFactory protocolFactory830, TNonblockingTransport transport831) throws TException { - super(client829, protocolFactory830, transport831, resultHandler833, false); + public reportTaskFinish_call(ReportTaskReq req, AsyncMethodCallback resultHandler834, TAsyncClient client830, TProtocolFactory protocolFactory831, TNonblockingTransport transport832) throws TException { + super(client830, protocolFactory831, transport832, resultHandler834, false); this.req = req; } @@ -6873,17 +6890,81 @@ public ExecResp getResult() throws TException { } } - public void listCluster(ListClusterInfoReq req, AsyncMethodCallback resultHandler837) throws TException { + public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler838) throws TException { checkReady(); - listCluster_call method_call = new listCluster_call(req, resultHandler837, this, ___protocolFactory, ___transport); + createBackup_call method_call = new createBackup_call(req, resultHandler838, 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 resultHandler839, TAsyncClient client835, TProtocolFactory protocolFactory836, TNonblockingTransport transport837) throws TException { + super(client835, protocolFactory836, transport837, resultHandler839, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("createBackup", TMessageType.CALL, 0)); + createBackup_args args = new createBackup_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public CreateBackupResp 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_createBackup(); + } + } + + public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler843) throws TException { + checkReady(); + restoreMeta_call method_call = new restoreMeta_call(req, resultHandler843, 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 resultHandler844, TAsyncClient client840, TProtocolFactory protocolFactory841, TNonblockingTransport transport842) throws TException { + super(client840, protocolFactory841, transport842, resultHandler844, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("restoreMeta", TMessageType.CALL, 0)); + restoreMeta_args args = new restoreMeta_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_restoreMeta(); + } + } + + public void listCluster(ListClusterInfoReq req, AsyncMethodCallback resultHandler848) throws TException { + checkReady(); + listCluster_call method_call = new listCluster_call(req, resultHandler848, 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 resultHandler838, TAsyncClient client834, TProtocolFactory protocolFactory835, TNonblockingTransport transport836) throws TException { - super(client834, protocolFactory835, transport836, resultHandler838, false); + public listCluster_call(ListClusterInfoReq req, AsyncMethodCallback resultHandler849, TAsyncClient client845, TProtocolFactory protocolFactory846, TNonblockingTransport transport847) throws TException { + super(client845, protocolFactory846, transport847, resultHandler849, false); this.req = req; } @@ -6905,17 +6986,17 @@ public ListClusterInfoResp getResult() throws TException { } } - public void getMetaDirInfo(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler842) throws TException { + public void getMetaDirInfo(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler853) throws TException { checkReady(); - getMetaDirInfo_call method_call = new getMetaDirInfo_call(req, resultHandler842, this, ___protocolFactory, ___transport); + getMetaDirInfo_call method_call = new getMetaDirInfo_call(req, resultHandler853, 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 resultHandler843, TAsyncClient client839, TProtocolFactory protocolFactory840, TNonblockingTransport transport841) throws TException { - super(client839, protocolFactory840, transport841, resultHandler843, false); + public getMetaDirInfo_call(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler854, TAsyncClient client850, TProtocolFactory protocolFactory851, TNonblockingTransport transport852) throws TException { + super(client850, protocolFactory851, transport852, resultHandler854, false); this.req = req; } @@ -6937,17 +7018,17 @@ public GetMetaDirInfoResp getResult() throws TException { } } - public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler847) throws TException { + public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler858) throws TException { checkReady(); - verifyClientVersion_call method_call = new verifyClientVersion_call(req, resultHandler847, this, ___protocolFactory, ___transport); + verifyClientVersion_call method_call = new verifyClientVersion_call(req, resultHandler858, 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 resultHandler848, TAsyncClient client844, TProtocolFactory protocolFactory845, TNonblockingTransport transport846) throws TException { - super(client844, protocolFactory845, transport846, resultHandler848, false); + public verifyClientVersion_call(VerifyClientVersionReq req, AsyncMethodCallback resultHandler859, TAsyncClient client855, TProtocolFactory protocolFactory856, TNonblockingTransport transport857) throws TException { + super(client855, protocolFactory856, transport857, resultHandler859, false); this.req = req; } @@ -7026,6 +7107,7 @@ public Processor(Iface iface) processMap_.put("getUserRoles", new getUserRoles()); processMap_.put("changePassword", new changePassword()); processMap_.put("heartBeat", new heartBeat()); + processMap_.put("agentHeartbeat", new agentHeartbeat()); processMap_.put("regConfig", new regConfig()); processMap_.put("getConfig", new getConfig()); processMap_.put("setConfig", new setConfig()); @@ -7040,8 +7122,6 @@ public Processor(Iface iface) processMap_.put("renameZone", new renameZone()); processMap_.put("getZone", new getZone()); processMap_.put("listZones", new listZones()); - processMap_.put("createBackup", new createBackup()); - processMap_.put("restoreMeta", new restoreMeta()); processMap_.put("addListener", new addListener()); processMap_.put("removeListener", new removeListener()); processMap_.put("listListener", new listListener()); @@ -7059,6 +7139,8 @@ public Processor(Iface iface) processMap_.put("removeSession", new removeSession()); processMap_.put("killQuery", new killQuery()); processMap_.put("reportTaskFinish", new reportTaskFinish()); + processMap_.put("createBackup", new createBackup()); + processMap_.put("restoreMeta", new restoreMeta()); processMap_.put("listCluster", new listCluster()); processMap_.put("getMetaDirInfo", new getMetaDirInfo()); processMap_.put("verifyClientVersion", new verifyClientVersion()); @@ -8123,6 +8205,27 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class agentHeartbeat implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.agentHeartbeat", server_ctx); + agentHeartbeat_args args = new agentHeartbeat_args(); + event_handler_.preRead(handler_ctx, "MetaService.agentHeartbeat"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.agentHeartbeat", args); + agentHeartbeat_result result = new agentHeartbeat_result(); + result.success = iface_.agentHeartbeat(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.agentHeartbeat", result); + oprot.writeMessageBegin(new TMessage("agentHeartbeat", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.agentHeartbeat", result); + } + + } + private class regConfig implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -8417,48 +8520,6 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } - private class createBackup implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("MetaService.createBackup", server_ctx); - createBackup_args args = new createBackup_args(); - event_handler_.preRead(handler_ctx, "MetaService.createBackup"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.createBackup", args); - createBackup_result result = new createBackup_result(); - result.success = iface_.createBackup(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.createBackup", result); - oprot.writeMessageBegin(new TMessage("createBackup", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.createBackup", result); - } - - } - - private class restoreMeta implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("MetaService.restoreMeta", server_ctx); - restoreMeta_args args = new restoreMeta_args(); - event_handler_.preRead(handler_ctx, "MetaService.restoreMeta"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.restoreMeta", args); - restoreMeta_result result = new restoreMeta_result(); - result.success = iface_.restoreMeta(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.restoreMeta", result); - oprot.writeMessageBegin(new TMessage("restoreMeta", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.restoreMeta", result); - } - - } - private class addListener implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -8816,6 +8877,48 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class createBackup implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.createBackup", server_ctx); + createBackup_args args = new createBackup_args(); + event_handler_.preRead(handler_ctx, "MetaService.createBackup"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.createBackup", args); + createBackup_result result = new createBackup_result(); + result.success = iface_.createBackup(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.createBackup", result); + oprot.writeMessageBegin(new TMessage("createBackup", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.createBackup", result); + } + + } + + private class restoreMeta implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.restoreMeta", server_ctx); + restoreMeta_args args = new restoreMeta_args(); + event_handler_.preRead(handler_ctx, "MetaService.restoreMeta"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.restoreMeta", args); + restoreMeta_result result = new restoreMeta_result(); + result.success = iface_.restoreMeta(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.restoreMeta", result); + oprot.writeMessageBegin(new TMessage("restoreMeta", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.restoreMeta", result); + } + + } + private class listCluster implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -9030,7 +9133,442 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateSpaceReq(); + this.req = new CreateSpaceReq(); + 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("createSpace_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 createSpace_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createSpace_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(createSpace_result.class, metaDataMap); + } + + public createSpace_result() { + } + + public createSpace_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public createSpace_result(createSpace_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public createSpace_result deepCopy() { + return new createSpace_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public createSpace_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 createSpace_result)) + return false; + createSpace_result that = (createSpace_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(createSpace_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("createSpace_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 dropSpace_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropSpace_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public DropSpaceReq 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, DropSpaceReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(dropSpace_args.class, metaDataMap); + } + + public dropSpace_args() { + } + + public dropSpace_args( + DropSpaceReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public dropSpace_args(dropSpace_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public dropSpace_args deepCopy() { + return new dropSpace_args(this); + } + + public DropSpaceReq getReq() { + return this.req; + } + + public dropSpace_args setReq(DropSpaceReq 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((DropSpaceReq)__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 dropSpace_args)) + return false; + dropSpace_args that = (dropSpace_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(dropSpace_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 DropSpaceReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -9072,7 +9610,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("createSpace_args"); + StringBuilder sb = new StringBuilder("dropSpace_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -9099,8 +9637,8 @@ public void validate() throws TException { } - public static class createSpace_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createSpace_result"); + public static class dropSpace_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropSpace_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -9118,13 +9656,13 @@ public static class createSpace_result implements TBase, java.io.Serializable, C } static { - FieldMetaData.addStructMetaDataMap(createSpace_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropSpace_result.class, metaDataMap); } - public createSpace_result() { + public dropSpace_result() { } - public createSpace_result( + public dropSpace_result( ExecResp success) { this(); this.success = success; @@ -9133,21 +9671,21 @@ public createSpace_result( /** * Performs a deep copy on other. */ - public createSpace_result(createSpace_result other) { + public dropSpace_result(dropSpace_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createSpace_result deepCopy() { - return new createSpace_result(this); + public dropSpace_result deepCopy() { + return new dropSpace_result(this); } public ExecResp getSuccess() { return this.success; } - public createSpace_result setSuccess(ExecResp success) { + public dropSpace_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -9198,9 +9736,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSpace_result)) + if (!(_that instanceof dropSpace_result)) return false; - createSpace_result that = (createSpace_result)_that; + dropSpace_result that = (dropSpace_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -9213,7 +9751,7 @@ public int hashCode() { } @Override - public int compareTo(createSpace_result other) { + public int compareTo(dropSpace_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -9289,7 +9827,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("createSpace_result"); + StringBuilder sb = new StringBuilder("dropSpace_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -9316,11 +9854,11 @@ public void validate() throws TException { } - public static class dropSpace_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropSpace_args"); + public static class getSpace_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getSpace_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropSpaceReq req; + public GetSpaceReq req; public static final int REQ = 1; // isset id assignments @@ -9330,19 +9868,19 @@ public static class dropSpace_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropSpaceReq.class))); + new StructMetaData(TType.STRUCT, GetSpaceReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropSpace_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getSpace_args.class, metaDataMap); } - public dropSpace_args() { + public getSpace_args() { } - public dropSpace_args( - DropSpaceReq req) { + public getSpace_args( + GetSpaceReq req) { this(); this.req = req; } @@ -9350,21 +9888,21 @@ public dropSpace_args( /** * Performs a deep copy on other. */ - public dropSpace_args(dropSpace_args other) { + public getSpace_args(getSpace_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropSpace_args deepCopy() { - return new dropSpace_args(this); + public getSpace_args deepCopy() { + return new getSpace_args(this); } - public DropSpaceReq getReq() { + public GetSpaceReq getReq() { return this.req; } - public dropSpace_args setReq(DropSpaceReq req) { + public getSpace_args setReq(GetSpaceReq req) { this.req = req; return this; } @@ -9390,7 +9928,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropSpaceReq)__value); + setReq((GetSpaceReq)__value); } break; @@ -9415,9 +9953,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropSpace_args)) + if (!(_that instanceof getSpace_args)) return false; - dropSpace_args that = (dropSpace_args)_that; + getSpace_args that = (getSpace_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -9430,7 +9968,7 @@ public int hashCode() { } @Override - public int compareTo(dropSpace_args other) { + public int compareTo(getSpace_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -9465,7 +10003,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropSpaceReq(); + this.req = new GetSpaceReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -9507,7 +10045,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("dropSpace_args"); + StringBuilder sb = new StringBuilder("getSpace_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -9534,11 +10072,11 @@ public void validate() throws TException { } - public static class dropSpace_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropSpace_result"); + public static class getSpace_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getSpace_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public GetSpaceResp success; public static final int SUCCESS = 0; // isset id assignments @@ -9548,19 +10086,19 @@ public static class dropSpace_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, GetSpaceResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropSpace_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getSpace_result.class, metaDataMap); } - public dropSpace_result() { + public getSpace_result() { } - public dropSpace_result( - ExecResp success) { + public getSpace_result( + GetSpaceResp success) { this(); this.success = success; } @@ -9568,21 +10106,21 @@ public dropSpace_result( /** * Performs a deep copy on other. */ - public dropSpace_result(dropSpace_result other) { + public getSpace_result(getSpace_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropSpace_result deepCopy() { - return new dropSpace_result(this); + public getSpace_result deepCopy() { + return new getSpace_result(this); } - public ExecResp getSuccess() { + public GetSpaceResp getSuccess() { return this.success; } - public dropSpace_result setSuccess(ExecResp success) { + public getSpace_result setSuccess(GetSpaceResp success) { this.success = success; return this; } @@ -9608,7 +10146,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetSpaceResp)__value); } break; @@ -9633,9 +10171,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropSpace_result)) + if (!(_that instanceof getSpace_result)) return false; - dropSpace_result that = (dropSpace_result)_that; + getSpace_result that = (getSpace_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -9648,7 +10186,7 @@ public int hashCode() { } @Override - public int compareTo(dropSpace_result other) { + public int compareTo(getSpace_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -9683,7 +10221,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new GetSpaceResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -9724,7 +10262,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("dropSpace_result"); + StringBuilder sb = new StringBuilder("getSpace_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -9751,11 +10289,11 @@ public void validate() throws TException { } - public static class getSpace_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getSpace_args"); + public static class listSpaces_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSpaces_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetSpaceReq req; + public ListSpacesReq req; public static final int REQ = 1; // isset id assignments @@ -9765,19 +10303,19 @@ public static class getSpace_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetSpaceReq.class))); + new StructMetaData(TType.STRUCT, ListSpacesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getSpace_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSpaces_args.class, metaDataMap); } - public getSpace_args() { + public listSpaces_args() { } - public getSpace_args( - GetSpaceReq req) { + public listSpaces_args( + ListSpacesReq req) { this(); this.req = req; } @@ -9785,21 +10323,21 @@ public getSpace_args( /** * Performs a deep copy on other. */ - public getSpace_args(getSpace_args other) { + public listSpaces_args(listSpaces_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getSpace_args deepCopy() { - return new getSpace_args(this); + public listSpaces_args deepCopy() { + return new listSpaces_args(this); } - public GetSpaceReq getReq() { + public ListSpacesReq getReq() { return this.req; } - public getSpace_args setReq(GetSpaceReq req) { + public listSpaces_args setReq(ListSpacesReq req) { this.req = req; return this; } @@ -9825,7 +10363,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetSpaceReq)__value); + setReq((ListSpacesReq)__value); } break; @@ -9850,9 +10388,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getSpace_args)) + if (!(_that instanceof listSpaces_args)) return false; - getSpace_args that = (getSpace_args)_that; + listSpaces_args that = (listSpaces_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -9865,7 +10403,7 @@ public int hashCode() { } @Override - public int compareTo(getSpace_args other) { + public int compareTo(listSpaces_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -9900,7 +10438,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetSpaceReq(); + this.req = new ListSpacesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -9942,7 +10480,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("getSpace_args"); + StringBuilder sb = new StringBuilder("listSpaces_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -9969,11 +10507,11 @@ public void validate() throws TException { } - public static class getSpace_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getSpace_result"); + public static class listSpaces_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSpaces_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetSpaceResp success; + public ListSpacesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -9983,19 +10521,19 @@ public static class getSpace_result implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetSpaceResp.class))); + new StructMetaData(TType.STRUCT, ListSpacesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getSpace_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSpaces_result.class, metaDataMap); } - public getSpace_result() { + public listSpaces_result() { } - public getSpace_result( - GetSpaceResp success) { + public listSpaces_result( + ListSpacesResp success) { this(); this.success = success; } @@ -10003,21 +10541,21 @@ public getSpace_result( /** * Performs a deep copy on other. */ - public getSpace_result(getSpace_result other) { + public listSpaces_result(listSpaces_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getSpace_result deepCopy() { - return new getSpace_result(this); + public listSpaces_result deepCopy() { + return new listSpaces_result(this); } - public GetSpaceResp getSuccess() { + public ListSpacesResp getSuccess() { return this.success; } - public getSpace_result setSuccess(GetSpaceResp success) { + public listSpaces_result setSuccess(ListSpacesResp success) { this.success = success; return this; } @@ -10043,7 +10581,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetSpaceResp)__value); + setSuccess((ListSpacesResp)__value); } break; @@ -10068,9 +10606,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getSpace_result)) + if (!(_that instanceof listSpaces_result)) return false; - getSpace_result that = (getSpace_result)_that; + listSpaces_result that = (listSpaces_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -10083,7 +10621,7 @@ public int hashCode() { } @Override - public int compareTo(getSpace_result other) { + public int compareTo(listSpaces_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -10118,7 +10656,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetSpaceResp(); + this.success = new ListSpacesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -10159,7 +10697,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("getSpace_result"); + StringBuilder sb = new StringBuilder("listSpaces_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -10186,11 +10724,11 @@ public void validate() throws TException { } - public static class listSpaces_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listSpaces_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 ListSpacesReq req; + public CreateSpaceAsReq req; public static final int REQ = 1; // isset id assignments @@ -10200,19 +10738,19 @@ public static class listSpaces_args implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListSpacesReq.class))); + new StructMetaData(TType.STRUCT, CreateSpaceAsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSpaces_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSpaceAs_args.class, metaDataMap); } - public listSpaces_args() { + public createSpaceAs_args() { } - public listSpaces_args( - ListSpacesReq req) { + public createSpaceAs_args( + CreateSpaceAsReq req) { this(); this.req = req; } @@ -10220,21 +10758,21 @@ public listSpaces_args( /** * Performs a deep copy on other. */ - public listSpaces_args(listSpaces_args other) { + public createSpaceAs_args(createSpaceAs_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listSpaces_args deepCopy() { - return new listSpaces_args(this); + public createSpaceAs_args deepCopy() { + return new createSpaceAs_args(this); } - public ListSpacesReq getReq() { + public CreateSpaceAsReq getReq() { return this.req; } - public listSpaces_args setReq(ListSpacesReq req) { + public createSpaceAs_args setReq(CreateSpaceAsReq req) { this.req = req; return this; } @@ -10260,7 +10798,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListSpacesReq)__value); + setReq((CreateSpaceAsReq)__value); } break; @@ -10285,9 +10823,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSpaces_args)) + if (!(_that instanceof createSpaceAs_args)) return false; - listSpaces_args that = (listSpaces_args)_that; + createSpaceAs_args that = (createSpaceAs_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -10300,7 +10838,7 @@ public int hashCode() { } @Override - public int compareTo(listSpaces_args other) { + public int compareTo(createSpaceAs_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -10335,7 +10873,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListSpacesReq(); + this.req = new CreateSpaceAsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -10377,7 +10915,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("listSpaces_args"); + StringBuilder sb = new StringBuilder("createSpaceAs_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -10404,11 +10942,11 @@ public void validate() throws TException { } - public static class listSpaces_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listSpaces_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 ListSpacesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -10418,19 +10956,19 @@ public static class listSpaces_result implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListSpacesResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSpaces_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSpaceAs_result.class, metaDataMap); } - public listSpaces_result() { + public createSpaceAs_result() { } - public listSpaces_result( - ListSpacesResp success) { + public createSpaceAs_result( + ExecResp success) { this(); this.success = success; } @@ -10438,21 +10976,21 @@ public listSpaces_result( /** * Performs a deep copy on other. */ - public listSpaces_result(listSpaces_result other) { + public createSpaceAs_result(createSpaceAs_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listSpaces_result deepCopy() { - return new listSpaces_result(this); + public createSpaceAs_result deepCopy() { + return new createSpaceAs_result(this); } - public ListSpacesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listSpaces_result setSuccess(ListSpacesResp success) { + public createSpaceAs_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -10478,7 +11016,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListSpacesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -10503,9 +11041,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSpaces_result)) + if (!(_that instanceof createSpaceAs_result)) return false; - listSpaces_result that = (listSpaces_result)_that; + createSpaceAs_result that = (createSpaceAs_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -10518,7 +11056,7 @@ public int hashCode() { } @Override - public int compareTo(listSpaces_result other) { + public int compareTo(createSpaceAs_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -10553,7 +11091,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListSpacesResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -10594,7 +11132,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("listSpaces_result"); + StringBuilder sb = new StringBuilder("createSpaceAs_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -10621,11 +11159,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"); + 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 CreateSpaceAsReq req; + public CreateTagReq req; public static final int REQ = 1; // isset id assignments @@ -10635,19 +11173,19 @@ public static class createSpaceAs_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateSpaceAsReq.class))); + new StructMetaData(TType.STRUCT, CreateTagReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createSpaceAs_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createTag_args.class, metaDataMap); } - public createSpaceAs_args() { + public createTag_args() { } - public createSpaceAs_args( - CreateSpaceAsReq req) { + public createTag_args( + CreateTagReq req) { this(); this.req = req; } @@ -10655,21 +11193,21 @@ public createSpaceAs_args( /** * Performs a deep copy on other. */ - public createSpaceAs_args(createSpaceAs_args other) { + public createTag_args(createTag_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createSpaceAs_args deepCopy() { - return new createSpaceAs_args(this); + public createTag_args deepCopy() { + return new createTag_args(this); } - public CreateSpaceAsReq getReq() { + public CreateTagReq getReq() { return this.req; } - public createSpaceAs_args setReq(CreateSpaceAsReq req) { + public createTag_args setReq(CreateTagReq req) { this.req = req; return this; } @@ -10695,7 +11233,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateSpaceAsReq)__value); + setReq((CreateTagReq)__value); } break; @@ -10720,9 +11258,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSpaceAs_args)) + if (!(_that instanceof createTag_args)) return false; - createSpaceAs_args that = (createSpaceAs_args)_that; + createTag_args that = (createTag_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -10735,7 +11273,7 @@ public int hashCode() { } @Override - public int compareTo(createSpaceAs_args other) { + public int compareTo(createTag_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -10770,7 +11308,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateSpaceAsReq(); + this.req = new CreateTagReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -10812,7 +11350,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("createSpaceAs_args"); + StringBuilder sb = new StringBuilder("createTag_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -10839,8 +11377,8 @@ public void validate() throws TException { } - public static class createSpaceAs_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createSpaceAs_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; @@ -10858,13 +11396,13 @@ public static class createSpaceAs_result implements TBase, java.io.Serializable, } static { - FieldMetaData.addStructMetaDataMap(createSpaceAs_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createTag_result.class, metaDataMap); } - public createSpaceAs_result() { + public createTag_result() { } - public createSpaceAs_result( + public createTag_result( ExecResp success) { this(); this.success = success; @@ -10873,21 +11411,21 @@ public createSpaceAs_result( /** * Performs a deep copy on other. */ - public createSpaceAs_result(createSpaceAs_result other) { + public createTag_result(createTag_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createSpaceAs_result deepCopy() { - return new createSpaceAs_result(this); + public createTag_result deepCopy() { + return new createTag_result(this); } public ExecResp getSuccess() { return this.success; } - public createSpaceAs_result setSuccess(ExecResp success) { + public createTag_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -10938,9 +11476,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSpaceAs_result)) + if (!(_that instanceof createTag_result)) return false; - createSpaceAs_result that = (createSpaceAs_result)_that; + createTag_result that = (createTag_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -10953,7 +11491,7 @@ public int hashCode() { } @Override - public int compareTo(createSpaceAs_result other) { + public int compareTo(createTag_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -11029,7 +11567,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("createSpaceAs_result"); + StringBuilder sb = new StringBuilder("createTag_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -11056,11 +11594,11 @@ public void validate() throws TException { } - public static class createTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createTag_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 CreateTagReq req; + public AlterTagReq req; public static final int REQ = 1; // isset id assignments @@ -11070,19 +11608,19 @@ public static class createTag_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateTagReq.class))); + new StructMetaData(TType.STRUCT, AlterTagReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createTag_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterTag_args.class, metaDataMap); } - public createTag_args() { + public alterTag_args() { } - public createTag_args( - CreateTagReq req) { + public alterTag_args( + AlterTagReq req) { this(); this.req = req; } @@ -11090,21 +11628,21 @@ public createTag_args( /** * Performs a deep copy on other. */ - public createTag_args(createTag_args other) { + public alterTag_args(alterTag_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createTag_args deepCopy() { - return new createTag_args(this); + public alterTag_args deepCopy() { + return new alterTag_args(this); } - public CreateTagReq getReq() { + public AlterTagReq getReq() { return this.req; } - public createTag_args setReq(CreateTagReq req) { + public alterTag_args setReq(AlterTagReq req) { this.req = req; return this; } @@ -11130,7 +11668,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateTagReq)__value); + setReq((AlterTagReq)__value); } break; @@ -11155,9 +11693,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createTag_args)) + if (!(_that instanceof alterTag_args)) return false; - createTag_args that = (createTag_args)_that; + alterTag_args that = (alterTag_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -11170,7 +11708,7 @@ public int hashCode() { } @Override - public int compareTo(createTag_args other) { + public int compareTo(alterTag_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -11205,7 +11743,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateTagReq(); + this.req = new AlterTagReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -11247,7 +11785,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("createTag_args"); + StringBuilder sb = new StringBuilder("alterTag_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -11274,8 +11812,8 @@ public void validate() throws TException { } - public static class createTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createTag_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; @@ -11293,13 +11831,13 @@ public static class createTag_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(createTag_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterTag_result.class, metaDataMap); } - public createTag_result() { + public alterTag_result() { } - public createTag_result( + public alterTag_result( ExecResp success) { this(); this.success = success; @@ -11308,21 +11846,21 @@ public createTag_result( /** * Performs a deep copy on other. */ - public createTag_result(createTag_result other) { + public alterTag_result(alterTag_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createTag_result deepCopy() { - return new createTag_result(this); + public alterTag_result deepCopy() { + return new alterTag_result(this); } public ExecResp getSuccess() { return this.success; } - public createTag_result setSuccess(ExecResp success) { + public alterTag_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -11373,9 +11911,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createTag_result)) + if (!(_that instanceof alterTag_result)) return false; - createTag_result that = (createTag_result)_that; + alterTag_result that = (alterTag_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -11388,7 +11926,7 @@ public int hashCode() { } @Override - public int compareTo(createTag_result other) { + public int compareTo(alterTag_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -11464,7 +12002,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("createTag_result"); + StringBuilder sb = new StringBuilder("alterTag_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -11491,11 +12029,11 @@ public void validate() throws TException { } - public static class alterTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("alterTag_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 AlterTagReq req; + public DropTagReq req; public static final int REQ = 1; // isset id assignments @@ -11505,19 +12043,19 @@ public static class alterTag_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AlterTagReq.class))); + new StructMetaData(TType.STRUCT, DropTagReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterTag_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropTag_args.class, metaDataMap); } - public alterTag_args() { + public dropTag_args() { } - public alterTag_args( - AlterTagReq req) { + public dropTag_args( + DropTagReq req) { this(); this.req = req; } @@ -11525,21 +12063,21 @@ public alterTag_args( /** * Performs a deep copy on other. */ - public alterTag_args(alterTag_args other) { + public dropTag_args(dropTag_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public alterTag_args deepCopy() { - return new alterTag_args(this); + public dropTag_args deepCopy() { + return new dropTag_args(this); } - public AlterTagReq getReq() { + public DropTagReq getReq() { return this.req; } - public alterTag_args setReq(AlterTagReq req) { + public dropTag_args setReq(DropTagReq req) { this.req = req; return this; } @@ -11565,7 +12103,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AlterTagReq)__value); + setReq((DropTagReq)__value); } break; @@ -11590,9 +12128,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterTag_args)) + if (!(_that instanceof dropTag_args)) return false; - alterTag_args that = (alterTag_args)_that; + dropTag_args that = (dropTag_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -11605,7 +12143,7 @@ public int hashCode() { } @Override - public int compareTo(alterTag_args other) { + public int compareTo(dropTag_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -11640,7 +12178,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AlterTagReq(); + this.req = new DropTagReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -11682,7 +12220,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("alterTag_args"); + StringBuilder sb = new StringBuilder("dropTag_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -11709,8 +12247,8 @@ public void validate() throws TException { } - public static class alterTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("alterTag_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 ExecResp success; @@ -11728,13 +12266,13 @@ public static class alterTag_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(alterTag_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropTag_result.class, metaDataMap); } - public alterTag_result() { + public dropTag_result() { } - public alterTag_result( + public dropTag_result( ExecResp success) { this(); this.success = success; @@ -11743,21 +12281,21 @@ public alterTag_result( /** * Performs a deep copy on other. */ - public alterTag_result(alterTag_result other) { + public dropTag_result(dropTag_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public alterTag_result deepCopy() { - return new alterTag_result(this); + public dropTag_result deepCopy() { + return new dropTag_result(this); } public ExecResp getSuccess() { return this.success; } - public alterTag_result setSuccess(ExecResp success) { + public dropTag_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -11808,9 +12346,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterTag_result)) + if (!(_that instanceof dropTag_result)) return false; - alterTag_result that = (alterTag_result)_that; + dropTag_result that = (dropTag_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -11823,7 +12361,7 @@ public int hashCode() { } @Override - public int compareTo(alterTag_result other) { + public int compareTo(dropTag_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -11899,7 +12437,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("alterTag_result"); + StringBuilder sb = new StringBuilder("dropTag_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -11926,11 +12464,11 @@ public void validate() throws TException { } - public static class dropTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropTag_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 DropTagReq req; + public GetTagReq req; public static final int REQ = 1; // isset id assignments @@ -11940,19 +12478,19 @@ public static class dropTag_args implements TBase, java.io.Serializable, Cloneab static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropTagReq.class))); + new StructMetaData(TType.STRUCT, GetTagReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropTag_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getTag_args.class, metaDataMap); } - public dropTag_args() { + public getTag_args() { } - public dropTag_args( - DropTagReq req) { + public getTag_args( + GetTagReq req) { this(); this.req = req; } @@ -11960,21 +12498,21 @@ public dropTag_args( /** * Performs a deep copy on other. */ - public dropTag_args(dropTag_args other) { + public getTag_args(getTag_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropTag_args deepCopy() { - return new dropTag_args(this); + public getTag_args deepCopy() { + return new getTag_args(this); } - public DropTagReq getReq() { + public GetTagReq getReq() { return this.req; } - public dropTag_args setReq(DropTagReq req) { + public getTag_args setReq(GetTagReq req) { this.req = req; return this; } @@ -12000,7 +12538,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropTagReq)__value); + setReq((GetTagReq)__value); } break; @@ -12025,9 +12563,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropTag_args)) + if (!(_that instanceof getTag_args)) return false; - dropTag_args that = (dropTag_args)_that; + getTag_args that = (getTag_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -12040,7 +12578,7 @@ public int hashCode() { } @Override - public int compareTo(dropTag_args other) { + public int compareTo(getTag_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -12075,7 +12613,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropTagReq(); + this.req = new GetTagReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -12117,7 +12655,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("dropTag_args"); + StringBuilder sb = new StringBuilder("getTag_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -12144,11 +12682,11 @@ public void validate() throws TException { } - public static class dropTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropTag_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 ExecResp success; + public GetTagResp success; public static final int SUCCESS = 0; // isset id assignments @@ -12158,19 +12696,19 @@ public static class dropTag_result implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, GetTagResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropTag_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getTag_result.class, metaDataMap); } - public dropTag_result() { + public getTag_result() { } - public dropTag_result( - ExecResp success) { + public getTag_result( + GetTagResp success) { this(); this.success = success; } @@ -12178,21 +12716,21 @@ public dropTag_result( /** * Performs a deep copy on other. */ - public dropTag_result(dropTag_result other) { + public getTag_result(getTag_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropTag_result deepCopy() { - return new dropTag_result(this); + public getTag_result deepCopy() { + return new getTag_result(this); } - public ExecResp getSuccess() { + public GetTagResp getSuccess() { return this.success; } - public dropTag_result setSuccess(ExecResp success) { + public getTag_result setSuccess(GetTagResp success) { this.success = success; return this; } @@ -12218,7 +12756,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetTagResp)__value); } break; @@ -12243,9 +12781,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropTag_result)) + if (!(_that instanceof getTag_result)) return false; - dropTag_result that = (dropTag_result)_that; + getTag_result that = (getTag_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -12258,7 +12796,7 @@ public int hashCode() { } @Override - public int compareTo(dropTag_result other) { + public int compareTo(getTag_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -12293,7 +12831,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new GetTagResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -12334,7 +12872,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("dropTag_result"); + StringBuilder sb = new StringBuilder("getTag_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -12361,11 +12899,11 @@ public void validate() throws TException { } - public static class getTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getTag_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 GetTagReq req; + public ListTagsReq req; public static final int REQ = 1; // isset id assignments @@ -12375,19 +12913,19 @@ public static class getTag_args implements TBase, java.io.Serializable, Cloneabl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetTagReq.class))); + new StructMetaData(TType.STRUCT, ListTagsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getTag_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTags_args.class, metaDataMap); } - public getTag_args() { + public listTags_args() { } - public getTag_args( - GetTagReq req) { + public listTags_args( + ListTagsReq req) { this(); this.req = req; } @@ -12395,21 +12933,21 @@ public getTag_args( /** * Performs a deep copy on other. */ - public getTag_args(getTag_args other) { + public listTags_args(listTags_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getTag_args deepCopy() { - return new getTag_args(this); + public listTags_args deepCopy() { + return new listTags_args(this); } - public GetTagReq getReq() { + public ListTagsReq getReq() { return this.req; } - public getTag_args setReq(GetTagReq req) { + public listTags_args setReq(ListTagsReq req) { this.req = req; return this; } @@ -12435,7 +12973,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetTagReq)__value); + setReq((ListTagsReq)__value); } break; @@ -12460,9 +12998,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getTag_args)) + if (!(_that instanceof listTags_args)) return false; - getTag_args that = (getTag_args)_that; + listTags_args that = (listTags_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -12475,7 +13013,7 @@ public int hashCode() { } @Override - public int compareTo(getTag_args other) { + public int compareTo(listTags_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -12510,7 +13048,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetTagReq(); + this.req = new ListTagsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -12552,7 +13090,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("getTag_args"); + StringBuilder sb = new StringBuilder("listTags_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -12579,11 +13117,11 @@ public void validate() throws TException { } - public static class getTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getTag_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 GetTagResp success; + public ListTagsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -12593,19 +13131,19 @@ public static class getTag_result implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetTagResp.class))); + new StructMetaData(TType.STRUCT, ListTagsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getTag_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTags_result.class, metaDataMap); } - public getTag_result() { + public listTags_result() { } - public getTag_result( - GetTagResp success) { + public listTags_result( + ListTagsResp success) { this(); this.success = success; } @@ -12613,21 +13151,21 @@ public getTag_result( /** * Performs a deep copy on other. */ - public getTag_result(getTag_result other) { + public listTags_result(listTags_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getTag_result deepCopy() { - return new getTag_result(this); + public listTags_result deepCopy() { + return new listTags_result(this); } - public GetTagResp getSuccess() { + public ListTagsResp getSuccess() { return this.success; } - public getTag_result setSuccess(GetTagResp success) { + public listTags_result setSuccess(ListTagsResp success) { this.success = success; return this; } @@ -12653,7 +13191,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetTagResp)__value); + setSuccess((ListTagsResp)__value); } break; @@ -12678,9 +13216,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getTag_result)) + if (!(_that instanceof listTags_result)) return false; - getTag_result that = (getTag_result)_that; + listTags_result that = (listTags_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -12693,7 +13231,7 @@ public int hashCode() { } @Override - public int compareTo(getTag_result other) { + public int compareTo(listTags_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -12728,7 +13266,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetTagResp(); + this.success = new ListTagsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -12769,7 +13307,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("getTag_result"); + StringBuilder sb = new StringBuilder("listTags_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -12796,11 +13334,11 @@ public void validate() throws TException { } - public static class listTags_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listTags_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 ListTagsReq req; + public CreateEdgeReq req; public static final int REQ = 1; // isset id assignments @@ -12810,19 +13348,19 @@ public static class listTags_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListTagsReq.class))); + new StructMetaData(TType.STRUCT, CreateEdgeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTags_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createEdge_args.class, metaDataMap); } - public listTags_args() { + public createEdge_args() { } - public listTags_args( - ListTagsReq req) { + public createEdge_args( + CreateEdgeReq req) { this(); this.req = req; } @@ -12830,21 +13368,21 @@ public listTags_args( /** * Performs a deep copy on other. */ - public listTags_args(listTags_args other) { + public createEdge_args(createEdge_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listTags_args deepCopy() { - return new listTags_args(this); + public createEdge_args deepCopy() { + return new createEdge_args(this); } - public ListTagsReq getReq() { + public CreateEdgeReq getReq() { return this.req; } - public listTags_args setReq(ListTagsReq req) { + public createEdge_args setReq(CreateEdgeReq req) { this.req = req; return this; } @@ -12870,7 +13408,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListTagsReq)__value); + setReq((CreateEdgeReq)__value); } break; @@ -12895,9 +13433,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTags_args)) + if (!(_that instanceof createEdge_args)) return false; - listTags_args that = (listTags_args)_that; + createEdge_args that = (createEdge_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -12910,7 +13448,7 @@ public int hashCode() { } @Override - public int compareTo(listTags_args other) { + public int compareTo(createEdge_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -12945,7 +13483,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListTagsReq(); + this.req = new CreateEdgeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -12987,7 +13525,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("listTags_args"); + StringBuilder sb = new StringBuilder("createEdge_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13014,11 +13552,11 @@ public void validate() throws TException { } - public static class listTags_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listTags_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 ListTagsResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -13028,19 +13566,19 @@ public static class listTags_result implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListTagsResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTags_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createEdge_result.class, metaDataMap); } - public listTags_result() { + public createEdge_result() { } - public listTags_result( - ListTagsResp success) { + public createEdge_result( + ExecResp success) { this(); this.success = success; } @@ -13048,21 +13586,21 @@ public listTags_result( /** * Performs a deep copy on other. */ - public listTags_result(listTags_result other) { + public createEdge_result(createEdge_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listTags_result deepCopy() { - return new listTags_result(this); + public createEdge_result deepCopy() { + return new createEdge_result(this); } - public ListTagsResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listTags_result setSuccess(ListTagsResp success) { + public createEdge_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -13088,7 +13626,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListTagsResp)__value); + setSuccess((ExecResp)__value); } break; @@ -13113,9 +13651,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTags_result)) + if (!(_that instanceof createEdge_result)) return false; - listTags_result that = (listTags_result)_that; + createEdge_result that = (createEdge_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -13128,7 +13666,7 @@ public int hashCode() { } @Override - public int compareTo(listTags_result other) { + public int compareTo(createEdge_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -13163,7 +13701,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListTagsResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -13204,7 +13742,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("listTags_result"); + StringBuilder sb = new StringBuilder("createEdge_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13231,11 +13769,11 @@ public void validate() throws TException { } - 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 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 CreateEdgeReq req; + public AlterEdgeReq req; public static final int REQ = 1; // isset id assignments @@ -13245,19 +13783,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, AlterEdgeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterEdge_args.class, metaDataMap); } - public createEdge_args() { + public alterEdge_args() { } - public createEdge_args( - CreateEdgeReq req) { + public alterEdge_args( + AlterEdgeReq req) { this(); this.req = req; } @@ -13265,21 +13803,21 @@ public createEdge_args( /** * Performs a deep copy on other. */ - public createEdge_args(createEdge_args other) { + public alterEdge_args(alterEdge_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createEdge_args deepCopy() { - return new createEdge_args(this); + public alterEdge_args deepCopy() { + return new alterEdge_args(this); } - public CreateEdgeReq getReq() { + public AlterEdgeReq getReq() { return this.req; } - public createEdge_args setReq(CreateEdgeReq req) { + public alterEdge_args setReq(AlterEdgeReq req) { this.req = req; return this; } @@ -13305,7 +13843,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateEdgeReq)__value); + setReq((AlterEdgeReq)__value); } break; @@ -13330,9 +13868,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdge_args)) + if (!(_that instanceof alterEdge_args)) return false; - createEdge_args that = (createEdge_args)_that; + alterEdge_args that = (alterEdge_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -13345,7 +13883,7 @@ public int hashCode() { } @Override - public int compareTo(createEdge_args other) { + public int compareTo(alterEdge_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -13380,7 +13918,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateEdgeReq(); + this.req = new AlterEdgeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -13422,7 +13960,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("alterEdge_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13449,8 +13987,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 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 ExecResp success; @@ -13468,13 +14006,13 @@ public static class createEdge_result implements TBase, java.io.Serializable, Cl } static { - FieldMetaData.addStructMetaDataMap(createEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterEdge_result.class, metaDataMap); } - public createEdge_result() { + public alterEdge_result() { } - public createEdge_result( + public alterEdge_result( ExecResp success) { this(); this.success = success; @@ -13483,21 +14021,21 @@ public createEdge_result( /** * Performs a deep copy on other. */ - public createEdge_result(createEdge_result other) { + public alterEdge_result(alterEdge_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createEdge_result deepCopy() { - return new createEdge_result(this); + public alterEdge_result deepCopy() { + return new alterEdge_result(this); } public ExecResp getSuccess() { return this.success; } - public createEdge_result setSuccess(ExecResp success) { + public alterEdge_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -13548,9 +14086,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdge_result)) + if (!(_that instanceof alterEdge_result)) return false; - createEdge_result that = (createEdge_result)_that; + alterEdge_result that = (alterEdge_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -13563,7 +14101,7 @@ public int hashCode() { } @Override - public int compareTo(createEdge_result other) { + public int compareTo(alterEdge_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -13639,7 +14177,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("alterEdge_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13666,11 +14204,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 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 AlterEdgeReq req; + public DropEdgeReq req; public static final int REQ = 1; // isset id assignments @@ -13680,19 +14218,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, DropEdgeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropEdge_args.class, metaDataMap); } - public alterEdge_args() { + public dropEdge_args() { } - public alterEdge_args( - AlterEdgeReq req) { + public dropEdge_args( + DropEdgeReq req) { this(); this.req = req; } @@ -13700,21 +14238,21 @@ public alterEdge_args( /** * Performs a deep copy on other. */ - public alterEdge_args(alterEdge_args other) { + public dropEdge_args(dropEdge_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public alterEdge_args deepCopy() { - return new alterEdge_args(this); + public dropEdge_args deepCopy() { + return new dropEdge_args(this); } - public AlterEdgeReq getReq() { + public DropEdgeReq getReq() { return this.req; } - public alterEdge_args setReq(AlterEdgeReq req) { + public dropEdge_args setReq(DropEdgeReq req) { this.req = req; return this; } @@ -13740,7 +14278,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AlterEdgeReq)__value); + setReq((DropEdgeReq)__value); } break; @@ -13765,9 +14303,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterEdge_args)) + if (!(_that instanceof dropEdge_args)) return false; - alterEdge_args that = (alterEdge_args)_that; + dropEdge_args that = (dropEdge_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -13780,7 +14318,7 @@ public int hashCode() { } @Override - public int compareTo(alterEdge_args other) { + public int compareTo(dropEdge_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -13815,7 +14353,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AlterEdgeReq(); + this.req = new DropEdgeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -13857,7 +14395,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("dropEdge_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13884,8 +14422,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 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; @@ -13903,13 +14441,13 @@ public static class alterEdge_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(alterEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropEdge_result.class, metaDataMap); } - public alterEdge_result() { + public dropEdge_result() { } - public alterEdge_result( + public dropEdge_result( ExecResp success) { this(); this.success = success; @@ -13918,21 +14456,21 @@ public alterEdge_result( /** * Performs a deep copy on other. */ - public alterEdge_result(alterEdge_result other) { + public dropEdge_result(dropEdge_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public alterEdge_result deepCopy() { - return new alterEdge_result(this); + public dropEdge_result deepCopy() { + return new dropEdge_result(this); } public ExecResp getSuccess() { return this.success; } - public alterEdge_result setSuccess(ExecResp success) { + public dropEdge_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -13983,9 +14521,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterEdge_result)) + if (!(_that instanceof dropEdge_result)) return false; - alterEdge_result that = (alterEdge_result)_that; + dropEdge_result that = (dropEdge_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -13998,7 +14536,7 @@ public int hashCode() { } @Override - public int compareTo(alterEdge_result other) { + public int compareTo(dropEdge_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14074,7 +14612,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("dropEdge_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14101,11 +14639,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 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 DropEdgeReq req; + public GetEdgeReq req; public static final int REQ = 1; // isset id assignments @@ -14115,19 +14653,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, GetEdgeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getEdge_args.class, metaDataMap); } - public dropEdge_args() { + public getEdge_args() { } - public dropEdge_args( - DropEdgeReq req) { + public getEdge_args( + GetEdgeReq req) { this(); this.req = req; } @@ -14135,21 +14673,21 @@ public dropEdge_args( /** * Performs a deep copy on other. */ - public dropEdge_args(dropEdge_args other) { + public getEdge_args(getEdge_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropEdge_args deepCopy() { - return new dropEdge_args(this); + public getEdge_args deepCopy() { + return new getEdge_args(this); } - public DropEdgeReq getReq() { + public GetEdgeReq getReq() { return this.req; } - public dropEdge_args setReq(DropEdgeReq req) { + public getEdge_args setReq(GetEdgeReq req) { this.req = req; return this; } @@ -14175,7 +14713,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropEdgeReq)__value); + setReq((GetEdgeReq)__value); } break; @@ -14200,9 +14738,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdge_args)) + if (!(_that instanceof getEdge_args)) return false; - dropEdge_args that = (dropEdge_args)_that; + getEdge_args that = (getEdge_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -14215,7 +14753,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdge_args other) { + public int compareTo(getEdge_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14250,7 +14788,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropEdgeReq(); + this.req = new GetEdgeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -14292,7 +14830,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("getEdge_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14319,11 +14857,11 @@ 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 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 ExecResp success; + public GetEdgeResp success; public static final int SUCCESS = 0; // isset id assignments @@ -14333,19 +14871,19 @@ public static class dropEdge_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, GetEdgeResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getEdge_result.class, metaDataMap); } - public dropEdge_result() { + public getEdge_result() { } - public dropEdge_result( - ExecResp success) { + public getEdge_result( + GetEdgeResp success) { this(); this.success = success; } @@ -14353,21 +14891,21 @@ public dropEdge_result( /** * Performs a deep copy on other. */ - public dropEdge_result(dropEdge_result other) { + public getEdge_result(getEdge_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropEdge_result deepCopy() { - return new dropEdge_result(this); + public getEdge_result deepCopy() { + return new getEdge_result(this); } - public ExecResp getSuccess() { + public GetEdgeResp getSuccess() { return this.success; } - public dropEdge_result setSuccess(ExecResp success) { + public getEdge_result setSuccess(GetEdgeResp success) { this.success = success; return this; } @@ -14393,7 +14931,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetEdgeResp)__value); } break; @@ -14418,9 +14956,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdge_result)) + if (!(_that instanceof getEdge_result)) return false; - dropEdge_result that = (dropEdge_result)_that; + getEdge_result that = (getEdge_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -14433,7 +14971,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdge_result other) { + public int compareTo(getEdge_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14468,7 +15006,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new GetEdgeResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -14509,7 +15047,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("getEdge_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14536,11 +15074,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 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 GetEdgeReq req; + public ListEdgesReq req; public static final int REQ = 1; // isset id assignments @@ -14550,19 +15088,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, ListEdgesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdges_args.class, metaDataMap); } - public getEdge_args() { + public listEdges_args() { } - public getEdge_args( - GetEdgeReq req) { + public listEdges_args( + ListEdgesReq req) { this(); this.req = req; } @@ -14570,21 +15108,21 @@ public getEdge_args( /** * Performs a deep copy on other. */ - public getEdge_args(getEdge_args other) { + public listEdges_args(listEdges_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getEdge_args deepCopy() { - return new getEdge_args(this); + public listEdges_args deepCopy() { + return new listEdges_args(this); } - public GetEdgeReq getReq() { + public ListEdgesReq getReq() { return this.req; } - public getEdge_args setReq(GetEdgeReq req) { + public listEdges_args setReq(ListEdgesReq req) { this.req = req; return this; } @@ -14610,7 +15148,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetEdgeReq)__value); + setReq((ListEdgesReq)__value); } break; @@ -14635,9 +15173,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdge_args)) + if (!(_that instanceof listEdges_args)) return false; - getEdge_args that = (getEdge_args)_that; + listEdges_args that = (listEdges_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -14650,7 +15188,7 @@ public int hashCode() { } @Override - public int compareTo(getEdge_args other) { + public int compareTo(listEdges_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14685,7 +15223,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetEdgeReq(); + this.req = new ListEdgesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -14727,7 +15265,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("listEdges_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14754,11 +15292,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 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 GetEdgeResp success; + public ListEdgesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -14768,19 +15306,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, ListEdgesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdges_result.class, metaDataMap); } - public getEdge_result() { + public listEdges_result() { } - public getEdge_result( - GetEdgeResp success) { + public listEdges_result( + ListEdgesResp success) { this(); this.success = success; } @@ -14788,21 +15326,21 @@ public getEdge_result( /** * Performs a deep copy on other. */ - public getEdge_result(getEdge_result other) { + public listEdges_result(listEdges_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getEdge_result deepCopy() { - return new getEdge_result(this); + public listEdges_result deepCopy() { + return new listEdges_result(this); } - public GetEdgeResp getSuccess() { + public ListEdgesResp getSuccess() { return this.success; } - public getEdge_result setSuccess(GetEdgeResp success) { + public listEdges_result setSuccess(ListEdgesResp success) { this.success = success; return this; } @@ -14828,7 +15366,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetEdgeResp)__value); + setSuccess((ListEdgesResp)__value); } break; @@ -14853,9 +15391,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdge_result)) + if (!(_that instanceof listEdges_result)) return false; - getEdge_result that = (getEdge_result)_that; + listEdges_result that = (listEdges_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -14868,7 +15406,7 @@ public int hashCode() { } @Override - public int compareTo(getEdge_result other) { + public int compareTo(listEdges_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14903,7 +15441,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetEdgeResp(); + this.success = new ListEdgesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -14944,7 +15482,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("listEdges_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14971,11 +15509,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 addHosts_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addHosts_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListEdgesReq req; + public AddHostsReq req; public static final int REQ = 1; // isset id assignments @@ -14985,19 +15523,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, AddHostsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdges_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addHosts_args.class, metaDataMap); } - public listEdges_args() { + public addHosts_args() { } - public listEdges_args( - ListEdgesReq req) { + public addHosts_args( + AddHostsReq req) { this(); this.req = req; } @@ -15005,21 +15543,21 @@ public listEdges_args( /** * Performs a deep copy on other. */ - public listEdges_args(listEdges_args other) { + public addHosts_args(addHosts_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listEdges_args deepCopy() { - return new listEdges_args(this); + public addHosts_args deepCopy() { + return new addHosts_args(this); } - public ListEdgesReq getReq() { + public AddHostsReq getReq() { return this.req; } - public listEdges_args setReq(ListEdgesReq req) { + public addHosts_args setReq(AddHostsReq req) { this.req = req; return this; } @@ -15045,7 +15583,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListEdgesReq)__value); + setReq((AddHostsReq)__value); } break; @@ -15070,9 +15608,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdges_args)) + if (!(_that instanceof addHosts_args)) return false; - listEdges_args that = (listEdges_args)_that; + addHosts_args that = (addHosts_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -15085,7 +15623,7 @@ public int hashCode() { } @Override - public int compareTo(listEdges_args other) { + public int compareTo(addHosts_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15120,7 +15658,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListEdgesReq(); + this.req = new AddHostsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15162,7 +15700,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("addHosts_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15189,11 +15727,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 addHosts_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addHosts_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListEdgesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -15203,19 +15741,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, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdges_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addHosts_result.class, metaDataMap); } - public listEdges_result() { + public addHosts_result() { } - public listEdges_result( - ListEdgesResp success) { + public addHosts_result( + ExecResp success) { this(); this.success = success; } @@ -15223,21 +15761,21 @@ public listEdges_result( /** * Performs a deep copy on other. */ - public listEdges_result(listEdges_result other) { + public addHosts_result(addHosts_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listEdges_result deepCopy() { - return new listEdges_result(this); + public addHosts_result deepCopy() { + return new addHosts_result(this); } - public ListEdgesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listEdges_result setSuccess(ListEdgesResp success) { + public addHosts_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -15263,7 +15801,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListEdgesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -15288,9 +15826,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdges_result)) + if (!(_that instanceof addHosts_result)) return false; - listEdges_result that = (listEdges_result)_that; + addHosts_result that = (addHosts_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -15303,7 +15841,7 @@ public int hashCode() { } @Override - public int compareTo(listEdges_result other) { + public int compareTo(addHosts_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15338,7 +15876,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListEdgesResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15379,7 +15917,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("addHosts_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15406,11 +15944,11 @@ public void validate() throws TException { } - public static class addHosts_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addHosts_args"); + public static class addHostsIntoZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addHostsIntoZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AddHostsReq req; + public AddHostsIntoZoneReq req; public static final int REQ = 1; // isset id assignments @@ -15420,19 +15958,19 @@ public static class addHosts_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AddHostsReq.class))); + new StructMetaData(TType.STRUCT, AddHostsIntoZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addHosts_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addHostsIntoZone_args.class, metaDataMap); } - public addHosts_args() { + public addHostsIntoZone_args() { } - public addHosts_args( - AddHostsReq req) { + public addHostsIntoZone_args( + AddHostsIntoZoneReq req) { this(); this.req = req; } @@ -15440,21 +15978,21 @@ public addHosts_args( /** * Performs a deep copy on other. */ - public addHosts_args(addHosts_args other) { + public addHostsIntoZone_args(addHostsIntoZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public addHosts_args deepCopy() { - return new addHosts_args(this); + public addHostsIntoZone_args deepCopy() { + return new addHostsIntoZone_args(this); } - public AddHostsReq getReq() { + public AddHostsIntoZoneReq getReq() { return this.req; } - public addHosts_args setReq(AddHostsReq req) { + public addHostsIntoZone_args setReq(AddHostsIntoZoneReq req) { this.req = req; return this; } @@ -15480,7 +16018,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AddHostsReq)__value); + setReq((AddHostsIntoZoneReq)__value); } break; @@ -15505,9 +16043,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addHosts_args)) + if (!(_that instanceof addHostsIntoZone_args)) return false; - addHosts_args that = (addHosts_args)_that; + addHostsIntoZone_args that = (addHostsIntoZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -15520,7 +16058,7 @@ public int hashCode() { } @Override - public int compareTo(addHosts_args other) { + public int compareTo(addHostsIntoZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15555,7 +16093,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AddHostsReq(); + this.req = new AddHostsIntoZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15597,7 +16135,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("addHosts_args"); + StringBuilder sb = new StringBuilder("addHostsIntoZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15624,8 +16162,8 @@ public void validate() throws TException { } - public static class addHosts_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addHosts_result"); + public static class addHostsIntoZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addHostsIntoZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -15643,13 +16181,13 @@ public static class addHosts_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(addHosts_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addHostsIntoZone_result.class, metaDataMap); } - public addHosts_result() { + public addHostsIntoZone_result() { } - public addHosts_result( + public addHostsIntoZone_result( ExecResp success) { this(); this.success = success; @@ -15658,21 +16196,21 @@ public addHosts_result( /** * Performs a deep copy on other. */ - public addHosts_result(addHosts_result other) { + public addHostsIntoZone_result(addHostsIntoZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public addHosts_result deepCopy() { - return new addHosts_result(this); + public addHostsIntoZone_result deepCopy() { + return new addHostsIntoZone_result(this); } public ExecResp getSuccess() { return this.success; } - public addHosts_result setSuccess(ExecResp success) { + public addHostsIntoZone_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -15723,9 +16261,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addHosts_result)) + if (!(_that instanceof addHostsIntoZone_result)) return false; - addHosts_result that = (addHosts_result)_that; + addHostsIntoZone_result that = (addHostsIntoZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -15738,7 +16276,7 @@ public int hashCode() { } @Override - public int compareTo(addHosts_result other) { + public int compareTo(addHostsIntoZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15814,7 +16352,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("addHosts_result"); + StringBuilder sb = new StringBuilder("addHostsIntoZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15841,11 +16379,11 @@ public void validate() throws TException { } - public static class addHostsIntoZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addHostsIntoZone_args"); + public static class dropHosts_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropHosts_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AddHostsIntoZoneReq req; + public DropHostsReq req; public static final int REQ = 1; // isset id assignments @@ -15855,19 +16393,19 @@ public static class addHostsIntoZone_args implements TBase, java.io.Serializable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AddHostsIntoZoneReq.class))); + new StructMetaData(TType.STRUCT, DropHostsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addHostsIntoZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropHosts_args.class, metaDataMap); } - public addHostsIntoZone_args() { + public dropHosts_args() { } - public addHostsIntoZone_args( - AddHostsIntoZoneReq req) { + public dropHosts_args( + DropHostsReq req) { this(); this.req = req; } @@ -15875,21 +16413,21 @@ public addHostsIntoZone_args( /** * Performs a deep copy on other. */ - public addHostsIntoZone_args(addHostsIntoZone_args other) { + public dropHosts_args(dropHosts_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public addHostsIntoZone_args deepCopy() { - return new addHostsIntoZone_args(this); + public dropHosts_args deepCopy() { + return new dropHosts_args(this); } - public AddHostsIntoZoneReq getReq() { + public DropHostsReq getReq() { return this.req; } - public addHostsIntoZone_args setReq(AddHostsIntoZoneReq req) { + public dropHosts_args setReq(DropHostsReq req) { this.req = req; return this; } @@ -15915,7 +16453,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AddHostsIntoZoneReq)__value); + setReq((DropHostsReq)__value); } break; @@ -15940,9 +16478,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addHostsIntoZone_args)) + if (!(_that instanceof dropHosts_args)) return false; - addHostsIntoZone_args that = (addHostsIntoZone_args)_that; + dropHosts_args that = (dropHosts_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -15955,7 +16493,7 @@ public int hashCode() { } @Override - public int compareTo(addHostsIntoZone_args other) { + public int compareTo(dropHosts_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15990,7 +16528,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AddHostsIntoZoneReq(); + this.req = new DropHostsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16032,7 +16570,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("addHostsIntoZone_args"); + StringBuilder sb = new StringBuilder("dropHosts_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16059,8 +16597,8 @@ public void validate() throws TException { } - public static class addHostsIntoZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addHostsIntoZone_result"); + public static class dropHosts_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropHosts_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -16078,13 +16616,13 @@ public static class addHostsIntoZone_result implements TBase, java.io.Serializab } static { - FieldMetaData.addStructMetaDataMap(addHostsIntoZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropHosts_result.class, metaDataMap); } - public addHostsIntoZone_result() { + public dropHosts_result() { } - public addHostsIntoZone_result( + public dropHosts_result( ExecResp success) { this(); this.success = success; @@ -16093,21 +16631,21 @@ public addHostsIntoZone_result( /** * Performs a deep copy on other. */ - public addHostsIntoZone_result(addHostsIntoZone_result other) { + public dropHosts_result(dropHosts_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public addHostsIntoZone_result deepCopy() { - return new addHostsIntoZone_result(this); + public dropHosts_result deepCopy() { + return new dropHosts_result(this); } public ExecResp getSuccess() { return this.success; } - public addHostsIntoZone_result setSuccess(ExecResp success) { + public dropHosts_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -16158,9 +16696,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addHostsIntoZone_result)) + if (!(_that instanceof dropHosts_result)) return false; - addHostsIntoZone_result that = (addHostsIntoZone_result)_that; + dropHosts_result that = (dropHosts_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -16173,7 +16711,7 @@ public int hashCode() { } @Override - public int compareTo(addHostsIntoZone_result other) { + public int compareTo(dropHosts_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16249,7 +16787,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("addHostsIntoZone_result"); + StringBuilder sb = new StringBuilder("dropHosts_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16276,11 +16814,11 @@ public void validate() throws TException { } - public static class dropHosts_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropHosts_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 DropHostsReq req; + public ListHostsReq req; public static final int REQ = 1; // isset id assignments @@ -16290,19 +16828,19 @@ public static class dropHosts_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropHostsReq.class))); + new StructMetaData(TType.STRUCT, ListHostsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropHosts_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listHosts_args.class, metaDataMap); } - public dropHosts_args() { + public listHosts_args() { } - public dropHosts_args( - DropHostsReq req) { + public listHosts_args( + ListHostsReq req) { this(); this.req = req; } @@ -16310,21 +16848,21 @@ public dropHosts_args( /** * Performs a deep copy on other. */ - public dropHosts_args(dropHosts_args other) { + public listHosts_args(listHosts_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropHosts_args deepCopy() { - return new dropHosts_args(this); + public listHosts_args deepCopy() { + return new listHosts_args(this); } - public DropHostsReq getReq() { + public ListHostsReq getReq() { return this.req; } - public dropHosts_args setReq(DropHostsReq req) { + public listHosts_args setReq(ListHostsReq req) { this.req = req; return this; } @@ -16350,7 +16888,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropHostsReq)__value); + setReq((ListHostsReq)__value); } break; @@ -16375,9 +16913,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropHosts_args)) + if (!(_that instanceof listHosts_args)) return false; - dropHosts_args that = (dropHosts_args)_that; + listHosts_args that = (listHosts_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -16390,7 +16928,7 @@ public int hashCode() { } @Override - public int compareTo(dropHosts_args other) { + public int compareTo(listHosts_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16425,7 +16963,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropHostsReq(); + this.req = new ListHostsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16467,7 +17005,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("dropHosts_args"); + StringBuilder sb = new StringBuilder("listHosts_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16494,11 +17032,11 @@ public void validate() throws TException { } - public static class dropHosts_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropHosts_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 @@ -16508,19 +17046,19 @@ public static class dropHosts_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, ListHostsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropHosts_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listHosts_result.class, metaDataMap); } - public dropHosts_result() { + public listHosts_result() { } - public dropHosts_result( - ExecResp success) { + public listHosts_result( + ListHostsResp success) { this(); this.success = success; } @@ -16528,21 +17066,21 @@ public dropHosts_result( /** * Performs a deep copy on other. */ - public dropHosts_result(dropHosts_result other) { + public listHosts_result(listHosts_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropHosts_result deepCopy() { - return new dropHosts_result(this); + public listHosts_result deepCopy() { + return new listHosts_result(this); } - public ExecResp getSuccess() { + public ListHostsResp getSuccess() { return this.success; } - public dropHosts_result setSuccess(ExecResp success) { + public listHosts_result setSuccess(ListHostsResp success) { this.success = success; return this; } @@ -16568,7 +17106,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListHostsResp)__value); } break; @@ -16593,9 +17131,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropHosts_result)) + if (!(_that instanceof listHosts_result)) return false; - dropHosts_result that = (dropHosts_result)_that; + listHosts_result that = (listHosts_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -16608,7 +17146,7 @@ public int hashCode() { } @Override - public int compareTo(dropHosts_result other) { + public int compareTo(listHosts_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16643,7 +17181,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); @@ -16684,7 +17222,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("dropHosts_result"); + StringBuilder sb = new StringBuilder("listHosts_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16711,11 +17249,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 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 ListHostsReq req; + public GetPartsAllocReq req; public static final int REQ = 1; // isset id assignments @@ -16725,19 +17263,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, GetPartsAllocReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listHosts_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getPartsAlloc_args.class, metaDataMap); } - public listHosts_args() { + public getPartsAlloc_args() { } - public listHosts_args( - ListHostsReq req) { + public getPartsAlloc_args( + GetPartsAllocReq req) { this(); this.req = req; } @@ -16745,21 +17283,21 @@ public listHosts_args( /** * Performs a deep copy on other. */ - public listHosts_args(listHosts_args other) { + public getPartsAlloc_args(getPartsAlloc_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listHosts_args deepCopy() { - return new listHosts_args(this); + public getPartsAlloc_args deepCopy() { + return new getPartsAlloc_args(this); } - public ListHostsReq getReq() { + public GetPartsAllocReq getReq() { return this.req; } - public listHosts_args setReq(ListHostsReq req) { + public getPartsAlloc_args setReq(GetPartsAllocReq req) { this.req = req; return this; } @@ -16785,7 +17323,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListHostsReq)__value); + setReq((GetPartsAllocReq)__value); } break; @@ -16810,9 +17348,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listHosts_args)) + if (!(_that instanceof getPartsAlloc_args)) return false; - listHosts_args that = (listHosts_args)_that; + getPartsAlloc_args that = (getPartsAlloc_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -16825,7 +17363,7 @@ public int hashCode() { } @Override - public int compareTo(listHosts_args other) { + public int compareTo(getPartsAlloc_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16860,7 +17398,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListHostsReq(); + this.req = new GetPartsAllocReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16902,7 +17440,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("getPartsAlloc_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16929,11 +17467,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 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 ListHostsResp success; + public GetPartsAllocResp success; public static final int SUCCESS = 0; // isset id assignments @@ -16943,19 +17481,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, GetPartsAllocResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listHosts_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getPartsAlloc_result.class, metaDataMap); } - public listHosts_result() { + public getPartsAlloc_result() { } - public listHosts_result( - ListHostsResp success) { + public getPartsAlloc_result( + GetPartsAllocResp success) { this(); this.success = success; } @@ -16963,21 +17501,21 @@ public listHosts_result( /** * Performs a deep copy on other. */ - public listHosts_result(listHosts_result other) { + public getPartsAlloc_result(getPartsAlloc_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listHosts_result deepCopy() { - return new listHosts_result(this); + public getPartsAlloc_result deepCopy() { + return new getPartsAlloc_result(this); } - public ListHostsResp getSuccess() { + public GetPartsAllocResp getSuccess() { return this.success; } - public listHosts_result setSuccess(ListHostsResp success) { + public getPartsAlloc_result setSuccess(GetPartsAllocResp success) { this.success = success; return this; } @@ -17003,7 +17541,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListHostsResp)__value); + setSuccess((GetPartsAllocResp)__value); } break; @@ -17028,9 +17566,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listHosts_result)) + if (!(_that instanceof getPartsAlloc_result)) return false; - listHosts_result that = (listHosts_result)_that; + getPartsAlloc_result that = (getPartsAlloc_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -17043,7 +17581,7 @@ public int hashCode() { } @Override - public int compareTo(listHosts_result other) { + public int compareTo(getPartsAlloc_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17078,7 +17616,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListHostsResp(); + this.success = new GetPartsAllocResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -17119,7 +17657,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("getPartsAlloc_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17146,11 +17684,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 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 GetPartsAllocReq req; + public ListPartsReq req; public static final int REQ = 1; // isset id assignments @@ -17160,19 +17698,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, ListPartsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getPartsAlloc_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listParts_args.class, metaDataMap); } - public getPartsAlloc_args() { + public listParts_args() { } - public getPartsAlloc_args( - GetPartsAllocReq req) { + public listParts_args( + ListPartsReq req) { this(); this.req = req; } @@ -17180,21 +17718,21 @@ public getPartsAlloc_args( /** * Performs a deep copy on other. */ - public getPartsAlloc_args(getPartsAlloc_args other) { + public listParts_args(listParts_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getPartsAlloc_args deepCopy() { - return new getPartsAlloc_args(this); + public listParts_args deepCopy() { + return new listParts_args(this); } - public GetPartsAllocReq getReq() { + public ListPartsReq getReq() { return this.req; } - public getPartsAlloc_args setReq(GetPartsAllocReq req) { + public listParts_args setReq(ListPartsReq req) { this.req = req; return this; } @@ -17220,7 +17758,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetPartsAllocReq)__value); + setReq((ListPartsReq)__value); } break; @@ -17245,9 +17783,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getPartsAlloc_args)) + if (!(_that instanceof listParts_args)) return false; - getPartsAlloc_args that = (getPartsAlloc_args)_that; + listParts_args that = (listParts_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -17260,7 +17798,7 @@ public int hashCode() { } @Override - public int compareTo(getPartsAlloc_args other) { + public int compareTo(listParts_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17295,7 +17833,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetPartsAllocReq(); + this.req = new ListPartsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -17337,7 +17875,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("listParts_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17364,11 +17902,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 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 GetPartsAllocResp success; + public ListPartsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -17378,19 +17916,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, ListPartsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getPartsAlloc_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listParts_result.class, metaDataMap); } - public getPartsAlloc_result() { + public listParts_result() { } - public getPartsAlloc_result( - GetPartsAllocResp success) { + public listParts_result( + ListPartsResp success) { this(); this.success = success; } @@ -17398,21 +17936,21 @@ public getPartsAlloc_result( /** * Performs a deep copy on other. */ - public getPartsAlloc_result(getPartsAlloc_result other) { + public listParts_result(listParts_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getPartsAlloc_result deepCopy() { - return new getPartsAlloc_result(this); + public listParts_result deepCopy() { + return new listParts_result(this); } - public GetPartsAllocResp getSuccess() { + public ListPartsResp getSuccess() { return this.success; } - public getPartsAlloc_result setSuccess(GetPartsAllocResp success) { + public listParts_result setSuccess(ListPartsResp success) { this.success = success; return this; } @@ -17438,7 +17976,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetPartsAllocResp)__value); + setSuccess((ListPartsResp)__value); } break; @@ -17463,9 +18001,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getPartsAlloc_result)) + if (!(_that instanceof listParts_result)) return false; - getPartsAlloc_result that = (getPartsAlloc_result)_that; + listParts_result that = (listParts_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -17478,7 +18016,7 @@ public int hashCode() { } @Override - public int compareTo(getPartsAlloc_result other) { + public int compareTo(listParts_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17513,7 +18051,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetPartsAllocResp(); + this.success = new ListPartsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -17554,7 +18092,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("listParts_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17581,11 +18119,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 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 ListPartsReq req; + public MultiPutReq req; public static final int REQ = 1; // isset id assignments @@ -17595,19 +18133,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, MultiPutReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listParts_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(multiPut_args.class, metaDataMap); } - public listParts_args() { + public multiPut_args() { } - public listParts_args( - ListPartsReq req) { + public multiPut_args( + MultiPutReq req) { this(); this.req = req; } @@ -17615,21 +18153,21 @@ public listParts_args( /** * Performs a deep copy on other. */ - public listParts_args(listParts_args other) { + public multiPut_args(multiPut_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listParts_args deepCopy() { - return new listParts_args(this); + public multiPut_args deepCopy() { + return new multiPut_args(this); } - public ListPartsReq getReq() { + public MultiPutReq getReq() { return this.req; } - public listParts_args setReq(ListPartsReq req) { + public multiPut_args setReq(MultiPutReq req) { this.req = req; return this; } @@ -17655,7 +18193,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListPartsReq)__value); + setReq((MultiPutReq)__value); } break; @@ -17680,9 +18218,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listParts_args)) + if (!(_that instanceof multiPut_args)) return false; - listParts_args that = (listParts_args)_that; + multiPut_args that = (multiPut_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -17695,7 +18233,7 @@ public int hashCode() { } @Override - public int compareTo(listParts_args other) { + public int compareTo(multiPut_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17730,7 +18268,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListPartsReq(); + this.req = new MultiPutReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -17772,7 +18310,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("multiPut_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17799,11 +18337,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 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 ListPartsResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -17813,19 +18351,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(multiPut_result.class, metaDataMap); } - public listParts_result() { + public multiPut_result() { } - public listParts_result( - ListPartsResp success) { + public multiPut_result( + ExecResp success) { this(); this.success = success; } @@ -17833,21 +18371,21 @@ public listParts_result( /** * Performs a deep copy on other. */ - public listParts_result(listParts_result other) { + public multiPut_result(multiPut_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listParts_result deepCopy() { - return new listParts_result(this); + public multiPut_result deepCopy() { + return new multiPut_result(this); } - public ListPartsResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listParts_result setSuccess(ListPartsResp success) { + public multiPut_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -17873,7 +18411,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListPartsResp)__value); + setSuccess((ExecResp)__value); } break; @@ -17898,9 +18436,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listParts_result)) + if (!(_that instanceof multiPut_result)) return false; - listParts_result that = (listParts_result)_that; + multiPut_result that = (multiPut_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -17913,7 +18451,7 @@ public int hashCode() { } @Override - public int compareTo(listParts_result other) { + public int compareTo(multiPut_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17948,7 +18486,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); @@ -17989,7 +18527,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("multiPut_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18016,11 +18554,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 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 MultiPutReq req; + public GetReq req; public static final int REQ = 1; // isset id assignments @@ -18030,19 +18568,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, GetReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(multiPut_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); } - public multiPut_args() { + public get_args() { } - public multiPut_args( - MultiPutReq req) { + public get_args( + GetReq req) { this(); this.req = req; } @@ -18050,21 +18588,21 @@ public multiPut_args( /** * Performs a deep copy on other. */ - public multiPut_args(multiPut_args other) { + public get_args(get_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public multiPut_args deepCopy() { - return new multiPut_args(this); + public get_args deepCopy() { + return new get_args(this); } - public MultiPutReq getReq() { + public GetReq getReq() { return this.req; } - public multiPut_args setReq(MultiPutReq req) { + public get_args setReq(GetReq req) { this.req = req; return this; } @@ -18090,7 +18628,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((MultiPutReq)__value); + setReq((GetReq)__value); } break; @@ -18115,9 +18653,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof multiPut_args)) + if (!(_that instanceof get_args)) return false; - multiPut_args that = (multiPut_args)_that; + get_args that = (get_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -18130,7 +18668,7 @@ public int hashCode() { } @Override - public int compareTo(multiPut_args other) { + public int compareTo(get_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18165,7 +18703,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new MultiPutReq(); + this.req = new GetReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18207,7 +18745,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("get_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18234,11 +18772,11 @@ 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 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 @@ -18248,19 +18786,19 @@ public static class multiPut_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, GetResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(multiPut_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); } - public multiPut_result() { + public get_result() { } - public multiPut_result( - ExecResp success) { + public get_result( + GetResp success) { this(); this.success = success; } @@ -18268,21 +18806,21 @@ public multiPut_result( /** * Performs a deep copy on other. */ - public multiPut_result(multiPut_result other) { + public get_result(get_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public multiPut_result deepCopy() { - return new multiPut_result(this); + public get_result deepCopy() { + return new get_result(this); } - public ExecResp getSuccess() { + public GetResp getSuccess() { return this.success; } - public multiPut_result setSuccess(ExecResp success) { + public get_result setSuccess(GetResp success) { this.success = success; return this; } @@ -18308,7 +18846,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetResp)__value); } break; @@ -18333,9 +18871,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof multiPut_result)) + if (!(_that instanceof get_result)) return false; - multiPut_result that = (multiPut_result)_that; + get_result that = (get_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -18348,7 +18886,7 @@ public int hashCode() { } @Override - public int compareTo(multiPut_result other) { + public int compareTo(get_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18383,7 +18921,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); @@ -18424,7 +18962,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("get_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18451,11 +18989,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 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 GetReq req; + public MultiGetReq req; public static final int REQ = 1; // isset id assignments @@ -18465,19 +19003,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, MultiGetReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(multiGet_args.class, metaDataMap); } - public get_args() { + public multiGet_args() { } - public get_args( - GetReq req) { + public multiGet_args( + MultiGetReq req) { this(); this.req = req; } @@ -18485,21 +19023,21 @@ public get_args( /** * Performs a deep copy on other. */ - public get_args(get_args other) { + public multiGet_args(multiGet_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public get_args deepCopy() { - return new get_args(this); + public multiGet_args deepCopy() { + return new multiGet_args(this); } - public GetReq getReq() { + public MultiGetReq getReq() { return this.req; } - public get_args setReq(GetReq req) { + public multiGet_args setReq(MultiGetReq req) { this.req = req; return this; } @@ -18525,7 +19063,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetReq)__value); + setReq((MultiGetReq)__value); } break; @@ -18550,9 +19088,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof get_args)) + if (!(_that instanceof multiGet_args)) return false; - get_args that = (get_args)_that; + multiGet_args that = (multiGet_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -18565,7 +19103,7 @@ public int hashCode() { } @Override - public int compareTo(get_args other) { + public int compareTo(multiGet_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18600,7 +19138,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetReq(); + this.req = new MultiGetReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18642,7 +19180,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("multiGet_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18669,11 +19207,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 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 GetResp success; + public MultiGetResp success; public static final int SUCCESS = 0; // isset id assignments @@ -18683,19 +19221,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, MultiGetResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(multiGet_result.class, metaDataMap); } - public get_result() { + public multiGet_result() { } - public get_result( - GetResp success) { + public multiGet_result( + MultiGetResp success) { this(); this.success = success; } @@ -18703,21 +19241,21 @@ public get_result( /** * Performs a deep copy on other. */ - public get_result(get_result other) { + public multiGet_result(multiGet_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public get_result deepCopy() { - return new get_result(this); + public multiGet_result deepCopy() { + return new multiGet_result(this); } - public GetResp getSuccess() { + public MultiGetResp getSuccess() { return this.success; } - public get_result setSuccess(GetResp success) { + public multiGet_result setSuccess(MultiGetResp success) { this.success = success; return this; } @@ -18743,7 +19281,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetResp)__value); + setSuccess((MultiGetResp)__value); } break; @@ -18768,9 +19306,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof get_result)) + if (!(_that instanceof multiGet_result)) return false; - get_result that = (get_result)_that; + multiGet_result that = (multiGet_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -18783,7 +19321,7 @@ public int hashCode() { } @Override - public int compareTo(get_result other) { + public int compareTo(multiGet_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18818,7 +19356,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetResp(); + this.success = new MultiGetResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18859,7 +19397,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("multiGet_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18886,11 +19424,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 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 MultiGetReq req; + public RemoveReq req; public static final int REQ = 1; // isset id assignments @@ -18900,19 +19438,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, RemoveReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(multiGet_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(remove_args.class, metaDataMap); } - public multiGet_args() { + public remove_args() { } - public multiGet_args( - MultiGetReq req) { + public remove_args( + RemoveReq req) { this(); this.req = req; } @@ -18920,21 +19458,21 @@ public multiGet_args( /** * Performs a deep copy on other. */ - public multiGet_args(multiGet_args other) { + public remove_args(remove_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public multiGet_args deepCopy() { - return new multiGet_args(this); + public remove_args deepCopy() { + return new remove_args(this); } - public MultiGetReq getReq() { + public RemoveReq getReq() { return this.req; } - public multiGet_args setReq(MultiGetReq req) { + public remove_args setReq(RemoveReq req) { this.req = req; return this; } @@ -18960,7 +19498,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((MultiGetReq)__value); + setReq((RemoveReq)__value); } break; @@ -18985,9 +19523,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof multiGet_args)) + if (!(_that instanceof remove_args)) return false; - multiGet_args that = (multiGet_args)_that; + remove_args that = (remove_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -19000,7 +19538,7 @@ public int hashCode() { } @Override - public int compareTo(multiGet_args other) { + public int compareTo(remove_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19035,7 +19573,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new MultiGetReq(); + this.req = new RemoveReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19077,7 +19615,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("remove_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19104,11 +19642,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 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 MultiGetResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -19118,19 +19656,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, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(multiGet_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(remove_result.class, metaDataMap); } - public multiGet_result() { + public remove_result() { } - public multiGet_result( - MultiGetResp success) { + public remove_result( + ExecResp success) { this(); this.success = success; } @@ -19138,21 +19676,21 @@ public multiGet_result( /** * Performs a deep copy on other. */ - public multiGet_result(multiGet_result other) { + public remove_result(remove_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public multiGet_result deepCopy() { - return new multiGet_result(this); + public remove_result deepCopy() { + return new remove_result(this); } - public MultiGetResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public multiGet_result setSuccess(MultiGetResp success) { + public remove_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -19178,7 +19716,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((MultiGetResp)__value); + setSuccess((ExecResp)__value); } break; @@ -19203,9 +19741,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof multiGet_result)) + if (!(_that instanceof remove_result)) return false; - multiGet_result that = (multiGet_result)_that; + remove_result that = (remove_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -19218,7 +19756,7 @@ public int hashCode() { } @Override - public int compareTo(multiGet_result other) { + public int compareTo(remove_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19253,7 +19791,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new MultiGetResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19294,7 +19832,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("remove_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19321,11 +19859,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 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 RemoveReq req; + public RemoveRangeReq req; public static final int REQ = 1; // isset id assignments @@ -19335,19 +19873,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, RemoveRangeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(remove_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeRange_args.class, metaDataMap); } - public remove_args() { + public removeRange_args() { } - public remove_args( - RemoveReq req) { + public removeRange_args( + RemoveRangeReq req) { this(); this.req = req; } @@ -19355,21 +19893,21 @@ public remove_args( /** * Performs a deep copy on other. */ - public remove_args(remove_args other) { + public removeRange_args(removeRange_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public remove_args deepCopy() { - return new remove_args(this); + public removeRange_args deepCopy() { + return new removeRange_args(this); } - public RemoveReq getReq() { + public RemoveRangeReq getReq() { return this.req; } - public remove_args setReq(RemoveReq req) { + public removeRange_args setReq(RemoveRangeReq req) { this.req = req; return this; } @@ -19395,7 +19933,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RemoveReq)__value); + setReq((RemoveRangeReq)__value); } break; @@ -19420,9 +19958,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof remove_args)) + if (!(_that instanceof removeRange_args)) return false; - remove_args that = (remove_args)_that; + removeRange_args that = (removeRange_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -19435,7 +19973,7 @@ public int hashCode() { } @Override - public int compareTo(remove_args other) { + public int compareTo(removeRange_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19470,7 +20008,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RemoveReq(); + this.req = new RemoveRangeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19512,7 +20050,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("removeRange_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19539,8 +20077,8 @@ 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 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; @@ -19558,13 +20096,13 @@ public static class remove_result implements TBase, java.io.Serializable, Clonea } static { - FieldMetaData.addStructMetaDataMap(remove_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeRange_result.class, metaDataMap); } - public remove_result() { + public removeRange_result() { } - public remove_result( + public removeRange_result( ExecResp success) { this(); this.success = success; @@ -19573,21 +20111,21 @@ public remove_result( /** * Performs a deep copy on other. */ - public remove_result(remove_result other) { + public removeRange_result(removeRange_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public remove_result deepCopy() { - return new remove_result(this); + public removeRange_result deepCopy() { + return new removeRange_result(this); } public ExecResp getSuccess() { return this.success; } - public remove_result setSuccess(ExecResp success) { + public removeRange_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -19638,9 +20176,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof remove_result)) + if (!(_that instanceof removeRange_result)) return false; - remove_result that = (remove_result)_that; + removeRange_result that = (removeRange_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -19653,7 +20191,7 @@ public int hashCode() { } @Override - public int compareTo(remove_result other) { + public int compareTo(removeRange_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19729,7 +20267,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("removeRange_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19756,11 +20294,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 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 RemoveRangeReq req; + public ScanReq req; public static final int REQ = 1; // isset id assignments @@ -19770,19 +20308,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, ScanReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeRange_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap); } - public removeRange_args() { + public scan_args() { } - public removeRange_args( - RemoveRangeReq req) { + public scan_args( + ScanReq req) { this(); this.req = req; } @@ -19790,21 +20328,21 @@ public removeRange_args( /** * Performs a deep copy on other. */ - public removeRange_args(removeRange_args other) { + public scan_args(scan_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public removeRange_args deepCopy() { - return new removeRange_args(this); + public scan_args deepCopy() { + return new scan_args(this); } - public RemoveRangeReq getReq() { + public ScanReq getReq() { return this.req; } - public removeRange_args setReq(RemoveRangeReq req) { + public scan_args setReq(ScanReq req) { this.req = req; return this; } @@ -19830,7 +20368,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RemoveRangeReq)__value); + setReq((ScanReq)__value); } break; @@ -19855,9 +20393,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeRange_args)) + if (!(_that instanceof scan_args)) return false; - removeRange_args that = (removeRange_args)_that; + scan_args that = (scan_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -19870,7 +20408,7 @@ public int hashCode() { } @Override - public int compareTo(removeRange_args other) { + public int compareTo(scan_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19905,7 +20443,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RemoveRangeReq(); + this.req = new ScanReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19947,7 +20485,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("scan_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19974,11 +20512,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 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 ExecResp success; + public ScanResp success; public static final int SUCCESS = 0; // isset id assignments @@ -19988,19 +20526,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, ScanResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeRange_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap); } - public removeRange_result() { + public scan_result() { } - public removeRange_result( - ExecResp success) { + public scan_result( + ScanResp success) { this(); this.success = success; } @@ -20008,21 +20546,21 @@ public removeRange_result( /** * Performs a deep copy on other. */ - public removeRange_result(removeRange_result other) { + public scan_result(scan_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public removeRange_result deepCopy() { - return new removeRange_result(this); + public scan_result deepCopy() { + return new scan_result(this); } - public ExecResp getSuccess() { + public ScanResp getSuccess() { return this.success; } - public removeRange_result setSuccess(ExecResp success) { + public scan_result setSuccess(ScanResp success) { this.success = success; return this; } @@ -20048,7 +20586,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ScanResp)__value); } break; @@ -20073,9 +20611,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeRange_result)) + if (!(_that instanceof scan_result)) return false; - removeRange_result that = (removeRange_result)_that; + scan_result that = (scan_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -20088,7 +20626,7 @@ public int hashCode() { } @Override - public int compareTo(removeRange_result other) { + public int compareTo(scan_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20123,7 +20661,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ScanResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20164,7 +20702,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("scan_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20191,11 +20729,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 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 ScanReq req; + public CreateTagIndexReq req; public static final int REQ = 1; // isset id assignments @@ -20205,19 +20743,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, CreateTagIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createTagIndex_args.class, metaDataMap); } - public scan_args() { + public createTagIndex_args() { } - public scan_args( - ScanReq req) { + public createTagIndex_args( + CreateTagIndexReq req) { this(); this.req = req; } @@ -20225,21 +20763,21 @@ public scan_args( /** * Performs a deep copy on other. */ - public scan_args(scan_args other) { + public createTagIndex_args(createTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public scan_args deepCopy() { - return new scan_args(this); + public createTagIndex_args deepCopy() { + return new createTagIndex_args(this); } - public ScanReq getReq() { + public CreateTagIndexReq getReq() { return this.req; } - public scan_args setReq(ScanReq req) { + public createTagIndex_args setReq(CreateTagIndexReq req) { this.req = req; return this; } @@ -20265,7 +20803,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ScanReq)__value); + setReq((CreateTagIndexReq)__value); } break; @@ -20290,9 +20828,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof scan_args)) + if (!(_that instanceof createTagIndex_args)) return false; - scan_args that = (scan_args)_that; + createTagIndex_args that = (createTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -20305,7 +20843,7 @@ public int hashCode() { } @Override - public int compareTo(scan_args other) { + public int compareTo(createTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20340,7 +20878,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ScanReq(); + this.req = new CreateTagIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20382,7 +20920,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("createTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20409,11 +20947,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 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 ScanResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -20423,19 +20961,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, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createTagIndex_result.class, metaDataMap); } - public scan_result() { + public createTagIndex_result() { } - public scan_result( - ScanResp success) { + public createTagIndex_result( + ExecResp success) { this(); this.success = success; } @@ -20443,21 +20981,21 @@ public scan_result( /** * Performs a deep copy on other. */ - public scan_result(scan_result other) { + public createTagIndex_result(createTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public scan_result deepCopy() { - return new scan_result(this); + public createTagIndex_result deepCopy() { + return new createTagIndex_result(this); } - public ScanResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public scan_result setSuccess(ScanResp success) { + public createTagIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -20483,7 +21021,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ScanResp)__value); + setSuccess((ExecResp)__value); } break; @@ -20508,9 +21046,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof scan_result)) + if (!(_that instanceof createTagIndex_result)) return false; - scan_result that = (scan_result)_that; + createTagIndex_result that = (createTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -20523,7 +21061,7 @@ public int hashCode() { } @Override - public int compareTo(scan_result other) { + public int compareTo(createTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20558,7 +21096,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ScanResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20599,7 +21137,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("createTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20626,11 +21164,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 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 CreateTagIndexReq req; + public DropTagIndexReq req; public static final int REQ = 1; // isset id assignments @@ -20640,19 +21178,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, DropTagIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropTagIndex_args.class, metaDataMap); } - public createTagIndex_args() { + public dropTagIndex_args() { } - public createTagIndex_args( - CreateTagIndexReq req) { + public dropTagIndex_args( + DropTagIndexReq req) { this(); this.req = req; } @@ -20660,21 +21198,21 @@ public createTagIndex_args( /** * Performs a deep copy on other. */ - public createTagIndex_args(createTagIndex_args other) { + public dropTagIndex_args(dropTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createTagIndex_args deepCopy() { - return new createTagIndex_args(this); + public dropTagIndex_args deepCopy() { + return new dropTagIndex_args(this); } - public CreateTagIndexReq getReq() { + public DropTagIndexReq getReq() { return this.req; } - public createTagIndex_args setReq(CreateTagIndexReq req) { + public dropTagIndex_args setReq(DropTagIndexReq req) { this.req = req; return this; } @@ -20700,7 +21238,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateTagIndexReq)__value); + setReq((DropTagIndexReq)__value); } break; @@ -20725,9 +21263,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createTagIndex_args)) + if (!(_that instanceof dropTagIndex_args)) return false; - createTagIndex_args that = (createTagIndex_args)_that; + dropTagIndex_args that = (dropTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -20740,7 +21278,7 @@ public int hashCode() { } @Override - public int compareTo(createTagIndex_args other) { + public int compareTo(dropTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20775,7 +21313,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateTagIndexReq(); + this.req = new DropTagIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20817,7 +21355,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("dropTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20844,8 +21382,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 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; @@ -20863,13 +21401,13 @@ public static class createTagIndex_result implements TBase, java.io.Serializable } static { - FieldMetaData.addStructMetaDataMap(createTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropTagIndex_result.class, metaDataMap); } - public createTagIndex_result() { + public dropTagIndex_result() { } - public createTagIndex_result( + public dropTagIndex_result( ExecResp success) { this(); this.success = success; @@ -20878,21 +21416,21 @@ public createTagIndex_result( /** * Performs a deep copy on other. */ - public createTagIndex_result(createTagIndex_result other) { + public dropTagIndex_result(dropTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createTagIndex_result deepCopy() { - return new createTagIndex_result(this); + public dropTagIndex_result deepCopy() { + return new dropTagIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public createTagIndex_result setSuccess(ExecResp success) { + public dropTagIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -20943,9 +21481,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createTagIndex_result)) + if (!(_that instanceof dropTagIndex_result)) return false; - createTagIndex_result that = (createTagIndex_result)_that; + dropTagIndex_result that = (dropTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -20958,7 +21496,7 @@ public int hashCode() { } @Override - public int compareTo(createTagIndex_result other) { + public int compareTo(dropTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21034,7 +21572,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("dropTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21061,11 +21599,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 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 DropTagIndexReq req; + public GetTagIndexReq req; public static final int REQ = 1; // isset id assignments @@ -21075,19 +21613,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, GetTagIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getTagIndex_args.class, metaDataMap); } - public dropTagIndex_args() { + public getTagIndex_args() { } - public dropTagIndex_args( - DropTagIndexReq req) { + public getTagIndex_args( + GetTagIndexReq req) { this(); this.req = req; } @@ -21095,21 +21633,21 @@ public dropTagIndex_args( /** * Performs a deep copy on other. */ - public dropTagIndex_args(dropTagIndex_args other) { + public getTagIndex_args(getTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropTagIndex_args deepCopy() { - return new dropTagIndex_args(this); + public getTagIndex_args deepCopy() { + return new getTagIndex_args(this); } - public DropTagIndexReq getReq() { + public GetTagIndexReq getReq() { return this.req; } - public dropTagIndex_args setReq(DropTagIndexReq req) { + public getTagIndex_args setReq(GetTagIndexReq req) { this.req = req; return this; } @@ -21135,7 +21673,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropTagIndexReq)__value); + setReq((GetTagIndexReq)__value); } break; @@ -21160,9 +21698,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropTagIndex_args)) + if (!(_that instanceof getTagIndex_args)) return false; - dropTagIndex_args that = (dropTagIndex_args)_that; + getTagIndex_args that = (getTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -21175,7 +21713,7 @@ public int hashCode() { } @Override - public int compareTo(dropTagIndex_args other) { + public int compareTo(getTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21210,7 +21748,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropTagIndexReq(); + this.req = new GetTagIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21252,7 +21790,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("getTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21279,11 +21817,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 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 ExecResp success; + public GetTagIndexResp success; public static final int SUCCESS = 0; // isset id assignments @@ -21293,19 +21831,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, GetTagIndexResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getTagIndex_result.class, metaDataMap); } - public dropTagIndex_result() { + public getTagIndex_result() { } - public dropTagIndex_result( - ExecResp success) { + public getTagIndex_result( + GetTagIndexResp success) { this(); this.success = success; } @@ -21313,21 +21851,21 @@ public dropTagIndex_result( /** * Performs a deep copy on other. */ - public dropTagIndex_result(dropTagIndex_result other) { + public getTagIndex_result(getTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropTagIndex_result deepCopy() { - return new dropTagIndex_result(this); + public getTagIndex_result deepCopy() { + return new getTagIndex_result(this); } - public ExecResp getSuccess() { + public GetTagIndexResp getSuccess() { return this.success; } - public dropTagIndex_result setSuccess(ExecResp success) { + public getTagIndex_result setSuccess(GetTagIndexResp success) { this.success = success; return this; } @@ -21353,7 +21891,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetTagIndexResp)__value); } break; @@ -21378,9 +21916,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropTagIndex_result)) + if (!(_that instanceof getTagIndex_result)) return false; - dropTagIndex_result that = (dropTagIndex_result)_that; + getTagIndex_result that = (getTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -21393,7 +21931,7 @@ public int hashCode() { } @Override - public int compareTo(dropTagIndex_result other) { + public int compareTo(getTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21428,7 +21966,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new GetTagIndexResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21469,7 +22007,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("getTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21496,11 +22034,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 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 GetTagIndexReq req; + public ListTagIndexesReq req; public static final int REQ = 1; // isset id assignments @@ -21510,19 +22048,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, ListTagIndexesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexes_args.class, metaDataMap); } - public getTagIndex_args() { + public listTagIndexes_args() { } - public getTagIndex_args( - GetTagIndexReq req) { + public listTagIndexes_args( + ListTagIndexesReq req) { this(); this.req = req; } @@ -21530,21 +22068,21 @@ public getTagIndex_args( /** * Performs a deep copy on other. */ - public getTagIndex_args(getTagIndex_args other) { + public listTagIndexes_args(listTagIndexes_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getTagIndex_args deepCopy() { - return new getTagIndex_args(this); + public listTagIndexes_args deepCopy() { + return new listTagIndexes_args(this); } - public GetTagIndexReq getReq() { + public ListTagIndexesReq getReq() { return this.req; } - public getTagIndex_args setReq(GetTagIndexReq req) { + public listTagIndexes_args setReq(ListTagIndexesReq req) { this.req = req; return this; } @@ -21570,7 +22108,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetTagIndexReq)__value); + setReq((ListTagIndexesReq)__value); } break; @@ -21595,9 +22133,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getTagIndex_args)) + if (!(_that instanceof listTagIndexes_args)) return false; - getTagIndex_args that = (getTagIndex_args)_that; + listTagIndexes_args that = (listTagIndexes_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -21610,7 +22148,7 @@ public int hashCode() { } @Override - public int compareTo(getTagIndex_args other) { + public int compareTo(listTagIndexes_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21645,7 +22183,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetTagIndexReq(); + this.req = new ListTagIndexesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21687,7 +22225,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("listTagIndexes_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21714,11 +22252,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 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 GetTagIndexResp success; + public ListTagIndexesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -21728,19 +22266,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, ListTagIndexesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexes_result.class, metaDataMap); } - public getTagIndex_result() { + public listTagIndexes_result() { } - public getTagIndex_result( - GetTagIndexResp success) { + public listTagIndexes_result( + ListTagIndexesResp success) { this(); this.success = success; } @@ -21748,21 +22286,21 @@ public getTagIndex_result( /** * Performs a deep copy on other. */ - public getTagIndex_result(getTagIndex_result other) { + public listTagIndexes_result(listTagIndexes_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getTagIndex_result deepCopy() { - return new getTagIndex_result(this); + public listTagIndexes_result deepCopy() { + return new listTagIndexes_result(this); } - public GetTagIndexResp getSuccess() { + public ListTagIndexesResp getSuccess() { return this.success; } - public getTagIndex_result setSuccess(GetTagIndexResp success) { + public listTagIndexes_result setSuccess(ListTagIndexesResp success) { this.success = success; return this; } @@ -21788,7 +22326,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetTagIndexResp)__value); + setSuccess((ListTagIndexesResp)__value); } break; @@ -21813,9 +22351,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getTagIndex_result)) + if (!(_that instanceof listTagIndexes_result)) return false; - getTagIndex_result that = (getTagIndex_result)_that; + listTagIndexes_result that = (listTagIndexes_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -21828,7 +22366,7 @@ public int hashCode() { } @Override - public int compareTo(getTagIndex_result other) { + public int compareTo(listTagIndexes_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21863,7 +22401,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetTagIndexResp(); + this.success = new ListTagIndexesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21904,7 +22442,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("listTagIndexes_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21931,11 +22469,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 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 ListTagIndexesReq req; + public RebuildIndexReq req; public static final int REQ = 1; // isset id assignments @@ -21945,19 +22483,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, RebuildIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexes_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildTagIndex_args.class, metaDataMap); } - public listTagIndexes_args() { + public rebuildTagIndex_args() { } - public listTagIndexes_args( - ListTagIndexesReq req) { + public rebuildTagIndex_args( + RebuildIndexReq req) { this(); this.req = req; } @@ -21965,21 +22503,21 @@ public listTagIndexes_args( /** * Performs a deep copy on other. */ - public listTagIndexes_args(listTagIndexes_args other) { + public rebuildTagIndex_args(rebuildTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listTagIndexes_args deepCopy() { - return new listTagIndexes_args(this); + public rebuildTagIndex_args deepCopy() { + return new rebuildTagIndex_args(this); } - public ListTagIndexesReq getReq() { + public RebuildIndexReq getReq() { return this.req; } - public listTagIndexes_args setReq(ListTagIndexesReq req) { + public rebuildTagIndex_args setReq(RebuildIndexReq req) { this.req = req; return this; } @@ -22005,7 +22543,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListTagIndexesReq)__value); + setReq((RebuildIndexReq)__value); } break; @@ -22030,9 +22568,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexes_args)) + if (!(_that instanceof rebuildTagIndex_args)) return false; - listTagIndexes_args that = (listTagIndexes_args)_that; + rebuildTagIndex_args that = (rebuildTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -22045,7 +22583,7 @@ public int hashCode() { } @Override - public int compareTo(listTagIndexes_args other) { + public int compareTo(rebuildTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22080,7 +22618,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListTagIndexesReq(); + this.req = new RebuildIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22122,7 +22660,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("rebuildTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22149,11 +22687,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 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 ListTagIndexesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -22163,19 +22701,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(rebuildTagIndex_result.class, metaDataMap); } - public listTagIndexes_result() { + public rebuildTagIndex_result() { } - public listTagIndexes_result( - ListTagIndexesResp success) { + public rebuildTagIndex_result( + ExecResp success) { this(); this.success = success; } @@ -22183,21 +22721,21 @@ public listTagIndexes_result( /** * Performs a deep copy on other. */ - public listTagIndexes_result(listTagIndexes_result other) { + public rebuildTagIndex_result(rebuildTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listTagIndexes_result deepCopy() { - return new listTagIndexes_result(this); + public rebuildTagIndex_result deepCopy() { + return new rebuildTagIndex_result(this); } - public ListTagIndexesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listTagIndexes_result setSuccess(ListTagIndexesResp success) { + public rebuildTagIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -22223,7 +22761,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListTagIndexesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -22248,9 +22786,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexes_result)) + if (!(_that instanceof rebuildTagIndex_result)) return false; - listTagIndexes_result that = (listTagIndexes_result)_that; + rebuildTagIndex_result that = (rebuildTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -22263,7 +22801,7 @@ public int hashCode() { } @Override - public int compareTo(listTagIndexes_result other) { + public int compareTo(rebuildTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22298,7 +22836,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); @@ -22339,7 +22877,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("rebuildTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22366,11 +22904,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 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 RebuildIndexReq req; + public ListIndexStatusReq req; public static final int REQ = 1; // isset id assignments @@ -22380,19 +22918,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, ListIndexStatusReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(rebuildTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexStatus_args.class, metaDataMap); } - public rebuildTagIndex_args() { + public listTagIndexStatus_args() { } - public rebuildTagIndex_args( - RebuildIndexReq req) { + public listTagIndexStatus_args( + ListIndexStatusReq req) { this(); this.req = req; } @@ -22400,21 +22938,21 @@ public rebuildTagIndex_args( /** * Performs a deep copy on other. */ - public rebuildTagIndex_args(rebuildTagIndex_args other) { + public listTagIndexStatus_args(listTagIndexStatus_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public rebuildTagIndex_args deepCopy() { - return new rebuildTagIndex_args(this); + public listTagIndexStatus_args deepCopy() { + return new listTagIndexStatus_args(this); } - public RebuildIndexReq getReq() { + public ListIndexStatusReq getReq() { return this.req; } - public rebuildTagIndex_args setReq(RebuildIndexReq req) { + public listTagIndexStatus_args setReq(ListIndexStatusReq req) { this.req = req; return this; } @@ -22440,7 +22978,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RebuildIndexReq)__value); + setReq((ListIndexStatusReq)__value); } break; @@ -22465,9 +23003,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildTagIndex_args)) + if (!(_that instanceof listTagIndexStatus_args)) return false; - rebuildTagIndex_args that = (rebuildTagIndex_args)_that; + listTagIndexStatus_args that = (listTagIndexStatus_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -22480,7 +23018,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildTagIndex_args other) { + public int compareTo(listTagIndexStatus_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22515,7 +23053,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RebuildIndexReq(); + this.req = new ListIndexStatusReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22557,7 +23095,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("listTagIndexStatus_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22584,11 +23122,11 @@ 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 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 ExecResp success; + public ListIndexStatusResp success; public static final int SUCCESS = 0; // isset id assignments @@ -22598,19 +23136,19 @@ public static class rebuildTagIndex_result implements TBase, java.io.Serializabl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, ListIndexStatusResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(rebuildTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexStatus_result.class, metaDataMap); } - public rebuildTagIndex_result() { + public listTagIndexStatus_result() { } - public rebuildTagIndex_result( - ExecResp success) { + public listTagIndexStatus_result( + ListIndexStatusResp success) { this(); this.success = success; } @@ -22618,21 +23156,21 @@ public rebuildTagIndex_result( /** * Performs a deep copy on other. */ - public rebuildTagIndex_result(rebuildTagIndex_result other) { + public listTagIndexStatus_result(listTagIndexStatus_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public rebuildTagIndex_result deepCopy() { - return new rebuildTagIndex_result(this); + public listTagIndexStatus_result deepCopy() { + return new listTagIndexStatus_result(this); } - public ExecResp getSuccess() { + public ListIndexStatusResp getSuccess() { return this.success; } - public rebuildTagIndex_result setSuccess(ExecResp success) { + public listTagIndexStatus_result setSuccess(ListIndexStatusResp success) { this.success = success; return this; } @@ -22658,7 +23196,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListIndexStatusResp)__value); } break; @@ -22683,9 +23221,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildTagIndex_result)) + if (!(_that instanceof listTagIndexStatus_result)) return false; - rebuildTagIndex_result that = (rebuildTagIndex_result)_that; + listTagIndexStatus_result that = (listTagIndexStatus_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -22698,7 +23236,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildTagIndex_result other) { + public int compareTo(listTagIndexStatus_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22733,7 +23271,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListIndexStatusResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22774,7 +23312,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("listTagIndexStatus_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22801,11 +23339,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 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 ListIndexStatusReq req; + public CreateEdgeIndexReq req; public static final int REQ = 1; // isset id assignments @@ -22815,19 +23353,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, CreateEdgeIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexStatus_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createEdgeIndex_args.class, metaDataMap); } - public listTagIndexStatus_args() { + public createEdgeIndex_args() { } - public listTagIndexStatus_args( - ListIndexStatusReq req) { + public createEdgeIndex_args( + CreateEdgeIndexReq req) { this(); this.req = req; } @@ -22835,21 +23373,21 @@ public listTagIndexStatus_args( /** * Performs a deep copy on other. */ - public listTagIndexStatus_args(listTagIndexStatus_args other) { + public createEdgeIndex_args(createEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listTagIndexStatus_args deepCopy() { - return new listTagIndexStatus_args(this); + public createEdgeIndex_args deepCopy() { + return new createEdgeIndex_args(this); } - public ListIndexStatusReq getReq() { + public CreateEdgeIndexReq getReq() { return this.req; } - public listTagIndexStatus_args setReq(ListIndexStatusReq req) { + public createEdgeIndex_args setReq(CreateEdgeIndexReq req) { this.req = req; return this; } @@ -22875,7 +23413,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListIndexStatusReq)__value); + setReq((CreateEdgeIndexReq)__value); } break; @@ -22900,9 +23438,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexStatus_args)) + if (!(_that instanceof createEdgeIndex_args)) return false; - listTagIndexStatus_args that = (listTagIndexStatus_args)_that; + createEdgeIndex_args that = (createEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -22915,7 +23453,7 @@ public int hashCode() { } @Override - public int compareTo(listTagIndexStatus_args other) { + public int compareTo(createEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22950,7 +23488,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListIndexStatusReq(); + this.req = new CreateEdgeIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22992,7 +23530,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("createEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23019,11 +23557,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 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 ListIndexStatusResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -23033,19 +23571,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, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexStatus_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createEdgeIndex_result.class, metaDataMap); } - public listTagIndexStatus_result() { + public createEdgeIndex_result() { } - public listTagIndexStatus_result( - ListIndexStatusResp success) { + public createEdgeIndex_result( + ExecResp success) { this(); this.success = success; } @@ -23053,21 +23591,21 @@ public listTagIndexStatus_result( /** * Performs a deep copy on other. */ - public listTagIndexStatus_result(listTagIndexStatus_result other) { + public createEdgeIndex_result(createEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listTagIndexStatus_result deepCopy() { - return new listTagIndexStatus_result(this); + public createEdgeIndex_result deepCopy() { + return new createEdgeIndex_result(this); } - public ListIndexStatusResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listTagIndexStatus_result setSuccess(ListIndexStatusResp success) { + public createEdgeIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -23093,7 +23631,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListIndexStatusResp)__value); + setSuccess((ExecResp)__value); } break; @@ -23118,9 +23656,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexStatus_result)) + if (!(_that instanceof createEdgeIndex_result)) return false; - listTagIndexStatus_result that = (listTagIndexStatus_result)_that; + createEdgeIndex_result that = (createEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -23133,7 +23671,7 @@ public int hashCode() { } @Override - public int compareTo(listTagIndexStatus_result other) { + public int compareTo(createEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23168,7 +23706,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListIndexStatusResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -23209,7 +23747,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("createEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23236,11 +23774,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 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 CreateEdgeIndexReq req; + public DropEdgeIndexReq req; public static final int REQ = 1; // isset id assignments @@ -23250,19 +23788,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, DropEdgeIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropEdgeIndex_args.class, metaDataMap); } - public createEdgeIndex_args() { + public dropEdgeIndex_args() { } - public createEdgeIndex_args( - CreateEdgeIndexReq req) { + public dropEdgeIndex_args( + DropEdgeIndexReq req) { this(); this.req = req; } @@ -23270,21 +23808,21 @@ public createEdgeIndex_args( /** * Performs a deep copy on other. */ - public createEdgeIndex_args(createEdgeIndex_args other) { + public dropEdgeIndex_args(dropEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createEdgeIndex_args deepCopy() { - return new createEdgeIndex_args(this); + public dropEdgeIndex_args deepCopy() { + return new dropEdgeIndex_args(this); } - public CreateEdgeIndexReq getReq() { + public DropEdgeIndexReq getReq() { return this.req; } - public createEdgeIndex_args setReq(CreateEdgeIndexReq req) { + public dropEdgeIndex_args setReq(DropEdgeIndexReq req) { this.req = req; return this; } @@ -23310,7 +23848,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateEdgeIndexReq)__value); + setReq((DropEdgeIndexReq)__value); } break; @@ -23335,9 +23873,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdgeIndex_args)) + if (!(_that instanceof dropEdgeIndex_args)) return false; - createEdgeIndex_args that = (createEdgeIndex_args)_that; + dropEdgeIndex_args that = (dropEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -23350,7 +23888,7 @@ public int hashCode() { } @Override - public int compareTo(createEdgeIndex_args other) { + public int compareTo(dropEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23385,7 +23923,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateEdgeIndexReq(); + this.req = new DropEdgeIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -23427,7 +23965,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("dropEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23454,8 +23992,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 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; @@ -23473,13 +24011,13 @@ public static class createEdgeIndex_result implements TBase, java.io.Serializabl } static { - FieldMetaData.addStructMetaDataMap(createEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropEdgeIndex_result.class, metaDataMap); } - public createEdgeIndex_result() { + public dropEdgeIndex_result() { } - public createEdgeIndex_result( + public dropEdgeIndex_result( ExecResp success) { this(); this.success = success; @@ -23488,21 +24026,21 @@ public createEdgeIndex_result( /** * Performs a deep copy on other. */ - public createEdgeIndex_result(createEdgeIndex_result other) { + public dropEdgeIndex_result(dropEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createEdgeIndex_result deepCopy() { - return new createEdgeIndex_result(this); + public dropEdgeIndex_result deepCopy() { + return new dropEdgeIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public createEdgeIndex_result setSuccess(ExecResp success) { + public dropEdgeIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -23553,9 +24091,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdgeIndex_result)) + if (!(_that instanceof dropEdgeIndex_result)) return false; - createEdgeIndex_result that = (createEdgeIndex_result)_that; + dropEdgeIndex_result that = (dropEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -23568,7 +24106,7 @@ public int hashCode() { } @Override - public int compareTo(createEdgeIndex_result other) { + public int compareTo(dropEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23644,7 +24182,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("dropEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23671,11 +24209,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 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 DropEdgeIndexReq req; + public GetEdgeIndexReq req; public static final int REQ = 1; // isset id assignments @@ -23685,19 +24223,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, GetEdgeIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getEdgeIndex_args.class, metaDataMap); } - public dropEdgeIndex_args() { + public getEdgeIndex_args() { } - public dropEdgeIndex_args( - DropEdgeIndexReq req) { + public getEdgeIndex_args( + GetEdgeIndexReq req) { this(); this.req = req; } @@ -23705,21 +24243,21 @@ public dropEdgeIndex_args( /** * Performs a deep copy on other. */ - public dropEdgeIndex_args(dropEdgeIndex_args other) { + public getEdgeIndex_args(getEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropEdgeIndex_args deepCopy() { - return new dropEdgeIndex_args(this); + public getEdgeIndex_args deepCopy() { + return new getEdgeIndex_args(this); } - public DropEdgeIndexReq getReq() { + public GetEdgeIndexReq getReq() { return this.req; } - public dropEdgeIndex_args setReq(DropEdgeIndexReq req) { + public getEdgeIndex_args setReq(GetEdgeIndexReq req) { this.req = req; return this; } @@ -23745,7 +24283,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropEdgeIndexReq)__value); + setReq((GetEdgeIndexReq)__value); } break; @@ -23770,9 +24308,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdgeIndex_args)) + if (!(_that instanceof getEdgeIndex_args)) return false; - dropEdgeIndex_args that = (dropEdgeIndex_args)_that; + getEdgeIndex_args that = (getEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -23785,7 +24323,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdgeIndex_args other) { + public int compareTo(getEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23820,7 +24358,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropEdgeIndexReq(); + this.req = new GetEdgeIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -23862,7 +24400,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("getEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23889,11 +24427,11 @@ 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 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 @@ -23903,19 +24441,19 @@ public static class dropEdgeIndex_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, GetEdgeIndexResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getEdgeIndex_result.class, metaDataMap); } - public dropEdgeIndex_result() { + public getEdgeIndex_result() { } - public dropEdgeIndex_result( - ExecResp success) { + public getEdgeIndex_result( + GetEdgeIndexResp success) { this(); this.success = success; } @@ -23923,21 +24461,21 @@ public dropEdgeIndex_result( /** * Performs a deep copy on other. */ - public dropEdgeIndex_result(dropEdgeIndex_result other) { + public getEdgeIndex_result(getEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropEdgeIndex_result deepCopy() { - return new dropEdgeIndex_result(this); + public getEdgeIndex_result deepCopy() { + return new getEdgeIndex_result(this); } - public ExecResp getSuccess() { + public GetEdgeIndexResp getSuccess() { return this.success; } - public dropEdgeIndex_result setSuccess(ExecResp success) { + public getEdgeIndex_result setSuccess(GetEdgeIndexResp success) { this.success = success; return this; } @@ -23963,7 +24501,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetEdgeIndexResp)__value); } break; @@ -23988,9 +24526,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdgeIndex_result)) + if (!(_that instanceof getEdgeIndex_result)) return false; - dropEdgeIndex_result that = (dropEdgeIndex_result)_that; + getEdgeIndex_result that = (getEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -24003,7 +24541,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdgeIndex_result other) { + public int compareTo(getEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24038,7 +24576,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); @@ -24079,7 +24617,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("getEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24106,11 +24644,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 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 GetEdgeIndexReq req; + public ListEdgeIndexesReq req; public static final int REQ = 1; // isset id assignments @@ -24120,19 +24658,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, ListEdgeIndexesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexes_args.class, metaDataMap); } - public getEdgeIndex_args() { + public listEdgeIndexes_args() { } - public getEdgeIndex_args( - GetEdgeIndexReq req) { + public listEdgeIndexes_args( + ListEdgeIndexesReq req) { this(); this.req = req; } @@ -24140,21 +24678,21 @@ public getEdgeIndex_args( /** * Performs a deep copy on other. */ - public getEdgeIndex_args(getEdgeIndex_args other) { + public listEdgeIndexes_args(listEdgeIndexes_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getEdgeIndex_args deepCopy() { - return new getEdgeIndex_args(this); + public listEdgeIndexes_args deepCopy() { + return new listEdgeIndexes_args(this); } - public GetEdgeIndexReq getReq() { + public ListEdgeIndexesReq getReq() { return this.req; } - public getEdgeIndex_args setReq(GetEdgeIndexReq req) { + public listEdgeIndexes_args setReq(ListEdgeIndexesReq req) { this.req = req; return this; } @@ -24180,7 +24718,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetEdgeIndexReq)__value); + setReq((ListEdgeIndexesReq)__value); } break; @@ -24205,9 +24743,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdgeIndex_args)) + if (!(_that instanceof listEdgeIndexes_args)) return false; - getEdgeIndex_args that = (getEdgeIndex_args)_that; + listEdgeIndexes_args that = (listEdgeIndexes_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -24220,7 +24758,7 @@ public int hashCode() { } @Override - public int compareTo(getEdgeIndex_args other) { + public int compareTo(listEdgeIndexes_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24255,7 +24793,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetEdgeIndexReq(); + this.req = new ListEdgeIndexesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -24297,7 +24835,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("listEdgeIndexes_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24324,11 +24862,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 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 GetEdgeIndexResp success; + public ListEdgeIndexesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -24338,19 +24876,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, ListEdgeIndexesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexes_result.class, metaDataMap); } - public getEdgeIndex_result() { + public listEdgeIndexes_result() { } - public getEdgeIndex_result( - GetEdgeIndexResp success) { + public listEdgeIndexes_result( + ListEdgeIndexesResp success) { this(); this.success = success; } @@ -24358,21 +24896,21 @@ public getEdgeIndex_result( /** * Performs a deep copy on other. */ - public getEdgeIndex_result(getEdgeIndex_result other) { + public listEdgeIndexes_result(listEdgeIndexes_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getEdgeIndex_result deepCopy() { - return new getEdgeIndex_result(this); + public listEdgeIndexes_result deepCopy() { + return new listEdgeIndexes_result(this); } - public GetEdgeIndexResp getSuccess() { + public ListEdgeIndexesResp getSuccess() { return this.success; } - public getEdgeIndex_result setSuccess(GetEdgeIndexResp success) { + public listEdgeIndexes_result setSuccess(ListEdgeIndexesResp success) { this.success = success; return this; } @@ -24398,7 +24936,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetEdgeIndexResp)__value); + setSuccess((ListEdgeIndexesResp)__value); } break; @@ -24423,9 +24961,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdgeIndex_result)) + if (!(_that instanceof listEdgeIndexes_result)) return false; - getEdgeIndex_result that = (getEdgeIndex_result)_that; + listEdgeIndexes_result that = (listEdgeIndexes_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -24438,7 +24976,7 @@ public int hashCode() { } @Override - public int compareTo(getEdgeIndex_result other) { + public int compareTo(listEdgeIndexes_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24473,7 +25011,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetEdgeIndexResp(); + this.success = new ListEdgeIndexesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -24514,7 +25052,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("listEdgeIndexes_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24541,11 +25079,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 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 ListEdgeIndexesReq req; + public RebuildIndexReq req; public static final int REQ = 1; // isset id assignments @@ -24555,19 +25093,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, RebuildIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexes_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_args.class, metaDataMap); } - public listEdgeIndexes_args() { + public rebuildEdgeIndex_args() { } - public listEdgeIndexes_args( - ListEdgeIndexesReq req) { + public rebuildEdgeIndex_args( + RebuildIndexReq req) { this(); this.req = req; } @@ -24575,21 +25113,21 @@ public listEdgeIndexes_args( /** * Performs a deep copy on other. */ - public listEdgeIndexes_args(listEdgeIndexes_args other) { + public rebuildEdgeIndex_args(rebuildEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listEdgeIndexes_args deepCopy() { - return new listEdgeIndexes_args(this); + public rebuildEdgeIndex_args deepCopy() { + return new rebuildEdgeIndex_args(this); } - public ListEdgeIndexesReq getReq() { + public RebuildIndexReq getReq() { return this.req; } - public listEdgeIndexes_args setReq(ListEdgeIndexesReq req) { + public rebuildEdgeIndex_args setReq(RebuildIndexReq req) { this.req = req; return this; } @@ -24615,7 +25153,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListEdgeIndexesReq)__value); + setReq((RebuildIndexReq)__value); } break; @@ -24640,9 +25178,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexes_args)) + if (!(_that instanceof rebuildEdgeIndex_args)) return false; - listEdgeIndexes_args that = (listEdgeIndexes_args)_that; + rebuildEdgeIndex_args that = (rebuildEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -24655,7 +25193,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexes_args other) { + public int compareTo(rebuildEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24690,7 +25228,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListEdgeIndexesReq(); + this.req = new RebuildIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -24732,7 +25270,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("rebuildEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24759,11 +25297,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 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 ListEdgeIndexesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -24773,19 +25311,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, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexes_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_result.class, metaDataMap); } - public listEdgeIndexes_result() { + public rebuildEdgeIndex_result() { } - public listEdgeIndexes_result( - ListEdgeIndexesResp success) { + public rebuildEdgeIndex_result( + ExecResp success) { this(); this.success = success; } @@ -24793,21 +25331,21 @@ public listEdgeIndexes_result( /** * Performs a deep copy on other. */ - public listEdgeIndexes_result(listEdgeIndexes_result other) { + public rebuildEdgeIndex_result(rebuildEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listEdgeIndexes_result deepCopy() { - return new listEdgeIndexes_result(this); + public rebuildEdgeIndex_result deepCopy() { + return new rebuildEdgeIndex_result(this); } - public ListEdgeIndexesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listEdgeIndexes_result setSuccess(ListEdgeIndexesResp success) { + public rebuildEdgeIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -24833,7 +25371,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListEdgeIndexesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -24858,9 +25396,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexes_result)) + if (!(_that instanceof rebuildEdgeIndex_result)) return false; - listEdgeIndexes_result that = (listEdgeIndexes_result)_that; + rebuildEdgeIndex_result that = (rebuildEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -24873,7 +25411,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexes_result other) { + public int compareTo(rebuildEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24908,7 +25446,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListEdgeIndexesResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -24949,7 +25487,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("rebuildEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24976,11 +25514,11 @@ 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 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 RebuildIndexReq req; + public ListIndexStatusReq req; public static final int REQ = 1; // isset id assignments @@ -24990,19 +25528,19 @@ public static class rebuildEdgeIndex_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, ListIndexStatusReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_args.class, metaDataMap); } - public rebuildEdgeIndex_args() { + public listEdgeIndexStatus_args() { } - public rebuildEdgeIndex_args( - RebuildIndexReq req) { + public listEdgeIndexStatus_args( + ListIndexStatusReq req) { this(); this.req = req; } @@ -25010,21 +25548,21 @@ public rebuildEdgeIndex_args( /** * Performs a deep copy on other. */ - public rebuildEdgeIndex_args(rebuildEdgeIndex_args other) { + public listEdgeIndexStatus_args(listEdgeIndexStatus_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public rebuildEdgeIndex_args deepCopy() { - return new rebuildEdgeIndex_args(this); + public listEdgeIndexStatus_args deepCopy() { + return new listEdgeIndexStatus_args(this); } - public RebuildIndexReq getReq() { + public ListIndexStatusReq getReq() { return this.req; } - public rebuildEdgeIndex_args setReq(RebuildIndexReq req) { + public listEdgeIndexStatus_args setReq(ListIndexStatusReq req) { this.req = req; return this; } @@ -25050,7 +25588,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RebuildIndexReq)__value); + setReq((ListIndexStatusReq)__value); } break; @@ -25075,9 +25613,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildEdgeIndex_args)) + if (!(_that instanceof listEdgeIndexStatus_args)) return false; - rebuildEdgeIndex_args that = (rebuildEdgeIndex_args)_that; + listEdgeIndexStatus_args that = (listEdgeIndexStatus_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -25090,7 +25628,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildEdgeIndex_args other) { + public int compareTo(listEdgeIndexStatus_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25125,7 +25663,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RebuildIndexReq(); + this.req = new ListIndexStatusReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -25167,7 +25705,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("listEdgeIndexStatus_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25194,11 +25732,11 @@ 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 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 ExecResp success; + public ListIndexStatusResp success; public static final int SUCCESS = 0; // isset id assignments @@ -25208,19 +25746,19 @@ public static class rebuildEdgeIndex_result implements TBase, java.io.Serializab static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, ListIndexStatusResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_result.class, metaDataMap); } - public rebuildEdgeIndex_result() { + public listEdgeIndexStatus_result() { } - public rebuildEdgeIndex_result( - ExecResp success) { + public listEdgeIndexStatus_result( + ListIndexStatusResp success) { this(); this.success = success; } @@ -25228,21 +25766,21 @@ public rebuildEdgeIndex_result( /** * Performs a deep copy on other. */ - public rebuildEdgeIndex_result(rebuildEdgeIndex_result other) { + public listEdgeIndexStatus_result(listEdgeIndexStatus_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public rebuildEdgeIndex_result deepCopy() { - return new rebuildEdgeIndex_result(this); + public listEdgeIndexStatus_result deepCopy() { + return new listEdgeIndexStatus_result(this); } - public ExecResp getSuccess() { + public ListIndexStatusResp getSuccess() { return this.success; } - public rebuildEdgeIndex_result setSuccess(ExecResp success) { + public listEdgeIndexStatus_result setSuccess(ListIndexStatusResp success) { this.success = success; return this; } @@ -25268,7 +25806,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListIndexStatusResp)__value); } break; @@ -25293,9 +25831,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildEdgeIndex_result)) + if (!(_that instanceof listEdgeIndexStatus_result)) return false; - rebuildEdgeIndex_result that = (rebuildEdgeIndex_result)_that; + listEdgeIndexStatus_result that = (listEdgeIndexStatus_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -25308,7 +25846,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildEdgeIndex_result other) { + public int compareTo(listEdgeIndexStatus_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25343,7 +25881,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListIndexStatusResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -25384,7 +25922,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("listEdgeIndexStatus_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25411,11 +25949,11 @@ 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 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 ListIndexStatusReq req; + public CreateUserReq req; public static final int REQ = 1; // isset id assignments @@ -25425,19 +25963,19 @@ public static class listEdgeIndexStatus_args implements TBase, java.io.Serializa static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListIndexStatusReq.class))); + new StructMetaData(TType.STRUCT, CreateUserReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap); } - public listEdgeIndexStatus_args() { + public createUser_args() { } - public listEdgeIndexStatus_args( - ListIndexStatusReq req) { + public createUser_args( + CreateUserReq req) { this(); this.req = req; } @@ -25445,21 +25983,21 @@ public listEdgeIndexStatus_args( /** * Performs a deep copy on other. */ - public listEdgeIndexStatus_args(listEdgeIndexStatus_args other) { + public createUser_args(createUser_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listEdgeIndexStatus_args deepCopy() { - return new listEdgeIndexStatus_args(this); + public createUser_args deepCopy() { + return new createUser_args(this); } - public ListIndexStatusReq getReq() { + public CreateUserReq getReq() { return this.req; } - public listEdgeIndexStatus_args setReq(ListIndexStatusReq req) { + public createUser_args setReq(CreateUserReq req) { this.req = req; return this; } @@ -25485,7 +26023,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListIndexStatusReq)__value); + setReq((CreateUserReq)__value); } break; @@ -25510,9 +26048,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexStatus_args)) + if (!(_that instanceof createUser_args)) return false; - listEdgeIndexStatus_args that = (listEdgeIndexStatus_args)_that; + createUser_args that = (createUser_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -25525,7 +26063,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexStatus_args other) { + public int compareTo(createUser_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25560,7 +26098,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListIndexStatusReq(); + this.req = new CreateUserReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -25602,7 +26140,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("createUser_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25629,11 +26167,11 @@ 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 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 ListIndexStatusResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -25643,19 +26181,19 @@ public static class listEdgeIndexStatus_result implements TBase, java.io.Seriali static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListIndexStatusResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap); } - public listEdgeIndexStatus_result() { + public createUser_result() { } - public listEdgeIndexStatus_result( - ListIndexStatusResp success) { + public createUser_result( + ExecResp success) { this(); this.success = success; } @@ -25663,21 +26201,21 @@ public listEdgeIndexStatus_result( /** * Performs a deep copy on other. */ - public listEdgeIndexStatus_result(listEdgeIndexStatus_result other) { + public createUser_result(createUser_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listEdgeIndexStatus_result deepCopy() { - return new listEdgeIndexStatus_result(this); + public createUser_result deepCopy() { + return new createUser_result(this); } - public ListIndexStatusResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listEdgeIndexStatus_result setSuccess(ListIndexStatusResp success) { + public createUser_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -25703,7 +26241,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListIndexStatusResp)__value); + setSuccess((ExecResp)__value); } break; @@ -25728,9 +26266,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexStatus_result)) + if (!(_that instanceof createUser_result)) return false; - listEdgeIndexStatus_result that = (listEdgeIndexStatus_result)_that; + createUser_result that = (createUser_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -25743,7 +26281,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexStatus_result other) { + public int compareTo(createUser_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25778,7 +26316,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListIndexStatusResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -25819,7 +26357,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("createUser_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25846,11 +26384,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 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 CreateUserReq req; + public DropUserReq req; public static final int REQ = 1; // isset id assignments @@ -25860,19 +26398,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, DropUserReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropUser_args.class, metaDataMap); } - public createUser_args() { + public dropUser_args() { } - public createUser_args( - CreateUserReq req) { + public dropUser_args( + DropUserReq req) { this(); this.req = req; } @@ -25880,21 +26418,21 @@ public createUser_args( /** * Performs a deep copy on other. */ - public createUser_args(createUser_args other) { + public dropUser_args(dropUser_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createUser_args deepCopy() { - return new createUser_args(this); + public dropUser_args deepCopy() { + return new dropUser_args(this); } - public CreateUserReq getReq() { + public DropUserReq getReq() { return this.req; } - public createUser_args setReq(CreateUserReq req) { + public dropUser_args setReq(DropUserReq req) { this.req = req; return this; } @@ -25920,7 +26458,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateUserReq)__value); + setReq((DropUserReq)__value); } break; @@ -25945,9 +26483,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createUser_args)) + if (!(_that instanceof dropUser_args)) return false; - createUser_args that = (createUser_args)_that; + dropUser_args that = (dropUser_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -25960,7 +26498,7 @@ public int hashCode() { } @Override - public int compareTo(createUser_args other) { + public int compareTo(dropUser_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25995,7 +26533,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateUserReq(); + this.req = new DropUserReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26037,7 +26575,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("dropUser_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26064,8 +26602,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 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 ExecResp success; @@ -26083,13 +26621,13 @@ public static class createUser_result implements TBase, java.io.Serializable, Cl } static { - FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropUser_result.class, metaDataMap); } - public createUser_result() { + public dropUser_result() { } - public createUser_result( + public dropUser_result( ExecResp success) { this(); this.success = success; @@ -26098,21 +26636,21 @@ public createUser_result( /** * Performs a deep copy on other. */ - public createUser_result(createUser_result other) { + public dropUser_result(dropUser_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createUser_result deepCopy() { - return new createUser_result(this); + public dropUser_result deepCopy() { + return new dropUser_result(this); } public ExecResp getSuccess() { return this.success; } - public createUser_result setSuccess(ExecResp success) { + public dropUser_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -26163,9 +26701,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createUser_result)) + if (!(_that instanceof dropUser_result)) return false; - createUser_result that = (createUser_result)_that; + dropUser_result that = (dropUser_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -26178,7 +26716,7 @@ public int hashCode() { } @Override - public int compareTo(createUser_result other) { + public int compareTo(dropUser_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26254,7 +26792,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("dropUser_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26281,11 +26819,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 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 DropUserReq req; + public AlterUserReq req; public static final int REQ = 1; // isset id assignments @@ -26295,19 +26833,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, AlterUserReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropUser_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterUser_args.class, metaDataMap); } - public dropUser_args() { + public alterUser_args() { } - public dropUser_args( - DropUserReq req) { + public alterUser_args( + AlterUserReq req) { this(); this.req = req; } @@ -26315,21 +26853,21 @@ public dropUser_args( /** * Performs a deep copy on other. */ - public dropUser_args(dropUser_args other) { + public alterUser_args(alterUser_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropUser_args deepCopy() { - return new dropUser_args(this); + public alterUser_args deepCopy() { + return new alterUser_args(this); } - public DropUserReq getReq() { + public AlterUserReq getReq() { return this.req; } - public dropUser_args setReq(DropUserReq req) { + public alterUser_args setReq(AlterUserReq req) { this.req = req; return this; } @@ -26355,7 +26893,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropUserReq)__value); + setReq((AlterUserReq)__value); } break; @@ -26380,9 +26918,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropUser_args)) + if (!(_that instanceof alterUser_args)) return false; - dropUser_args that = (dropUser_args)_that; + alterUser_args that = (alterUser_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -26395,7 +26933,7 @@ public int hashCode() { } @Override - public int compareTo(dropUser_args other) { + public int compareTo(alterUser_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26430,7 +26968,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropUserReq(); + this.req = new AlterUserReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26472,7 +27010,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("alterUser_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26499,8 +27037,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 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; @@ -26518,13 +27056,13 @@ public static class dropUser_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(dropUser_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterUser_result.class, metaDataMap); } - public dropUser_result() { + public alterUser_result() { } - public dropUser_result( + public alterUser_result( ExecResp success) { this(); this.success = success; @@ -26533,21 +27071,21 @@ public dropUser_result( /** * Performs a deep copy on other. */ - public dropUser_result(dropUser_result other) { + public alterUser_result(alterUser_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropUser_result deepCopy() { - return new dropUser_result(this); + public alterUser_result deepCopy() { + return new alterUser_result(this); } public ExecResp getSuccess() { return this.success; } - public dropUser_result setSuccess(ExecResp success) { + public alterUser_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -26598,9 +27136,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropUser_result)) + if (!(_that instanceof alterUser_result)) return false; - dropUser_result that = (dropUser_result)_that; + alterUser_result that = (alterUser_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -26613,7 +27151,7 @@ public int hashCode() { } @Override - public int compareTo(dropUser_result other) { + public int compareTo(alterUser_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26689,7 +27227,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("alterUser_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26716,11 +27254,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 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 AlterUserReq req; + public GrantRoleReq req; public static final int REQ = 1; // isset id assignments @@ -26730,19 +27268,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, GrantRoleReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterUser_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(grantRole_args.class, metaDataMap); } - public alterUser_args() { + public grantRole_args() { } - public alterUser_args( - AlterUserReq req) { + public grantRole_args( + GrantRoleReq req) { this(); this.req = req; } @@ -26750,21 +27288,21 @@ public alterUser_args( /** * Performs a deep copy on other. */ - public alterUser_args(alterUser_args other) { + public grantRole_args(grantRole_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public alterUser_args deepCopy() { - return new alterUser_args(this); + public grantRole_args deepCopy() { + return new grantRole_args(this); } - public AlterUserReq getReq() { + public GrantRoleReq getReq() { return this.req; } - public alterUser_args setReq(AlterUserReq req) { + public grantRole_args setReq(GrantRoleReq req) { this.req = req; return this; } @@ -26790,7 +27328,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AlterUserReq)__value); + setReq((GrantRoleReq)__value); } break; @@ -26815,9 +27353,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterUser_args)) + if (!(_that instanceof grantRole_args)) return false; - alterUser_args that = (alterUser_args)_that; + grantRole_args that = (grantRole_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -26830,7 +27368,7 @@ public int hashCode() { } @Override - public int compareTo(alterUser_args other) { + public int compareTo(grantRole_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26865,7 +27403,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AlterUserReq(); + this.req = new GrantRoleReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26907,7 +27445,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("grantRole_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26934,8 +27472,8 @@ 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 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 ExecResp success; @@ -26953,13 +27491,13 @@ public static class alterUser_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(alterUser_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(grantRole_result.class, metaDataMap); } - public alterUser_result() { + public grantRole_result() { } - public alterUser_result( + public grantRole_result( ExecResp success) { this(); this.success = success; @@ -26968,21 +27506,21 @@ public alterUser_result( /** * Performs a deep copy on other. */ - public alterUser_result(alterUser_result other) { + public grantRole_result(grantRole_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public alterUser_result deepCopy() { - return new alterUser_result(this); + public grantRole_result deepCopy() { + return new grantRole_result(this); } public ExecResp getSuccess() { return this.success; } - public alterUser_result setSuccess(ExecResp success) { + public grantRole_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -27033,9 +27571,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterUser_result)) + if (!(_that instanceof grantRole_result)) return false; - alterUser_result that = (alterUser_result)_that; + grantRole_result that = (grantRole_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -27048,7 +27586,7 @@ public int hashCode() { } @Override - public int compareTo(alterUser_result other) { + public int compareTo(grantRole_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27124,7 +27662,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("grantRole_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27151,11 +27689,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 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 GrantRoleReq req; + public RevokeRoleReq req; public static final int REQ = 1; // isset id assignments @@ -27165,19 +27703,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, RevokeRoleReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(grantRole_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(revokeRole_args.class, metaDataMap); } - public grantRole_args() { + public revokeRole_args() { } - public grantRole_args( - GrantRoleReq req) { + public revokeRole_args( + RevokeRoleReq req) { this(); this.req = req; } @@ -27185,21 +27723,21 @@ public grantRole_args( /** * Performs a deep copy on other. */ - public grantRole_args(grantRole_args other) { + public revokeRole_args(revokeRole_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public grantRole_args deepCopy() { - return new grantRole_args(this); + public revokeRole_args deepCopy() { + return new revokeRole_args(this); } - public GrantRoleReq getReq() { + public RevokeRoleReq getReq() { return this.req; } - public grantRole_args setReq(GrantRoleReq req) { + public revokeRole_args setReq(RevokeRoleReq req) { this.req = req; return this; } @@ -27225,7 +27763,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GrantRoleReq)__value); + setReq((RevokeRoleReq)__value); } break; @@ -27250,9 +27788,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof grantRole_args)) + if (!(_that instanceof revokeRole_args)) return false; - grantRole_args that = (grantRole_args)_that; + revokeRole_args that = (revokeRole_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -27265,7 +27803,7 @@ public int hashCode() { } @Override - public int compareTo(grantRole_args other) { + public int compareTo(revokeRole_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27300,7 +27838,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GrantRoleReq(); + this.req = new RevokeRoleReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -27342,7 +27880,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("revokeRole_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27369,8 +27907,8 @@ 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 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; @@ -27388,13 +27926,13 @@ public static class grantRole_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(grantRole_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(revokeRole_result.class, metaDataMap); } - public grantRole_result() { + public revokeRole_result() { } - public grantRole_result( + public revokeRole_result( ExecResp success) { this(); this.success = success; @@ -27403,21 +27941,21 @@ public grantRole_result( /** * Performs a deep copy on other. */ - public grantRole_result(grantRole_result other) { + public revokeRole_result(revokeRole_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public grantRole_result deepCopy() { - return new grantRole_result(this); + public revokeRole_result deepCopy() { + return new revokeRole_result(this); } public ExecResp getSuccess() { return this.success; } - public grantRole_result setSuccess(ExecResp success) { + public revokeRole_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -27468,9 +28006,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof grantRole_result)) + if (!(_that instanceof revokeRole_result)) return false; - grantRole_result that = (grantRole_result)_that; + revokeRole_result that = (revokeRole_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -27483,7 +28021,7 @@ public int hashCode() { } @Override - public int compareTo(grantRole_result other) { + public int compareTo(revokeRole_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27559,7 +28097,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("revokeRole_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27586,11 +28124,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 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 RevokeRoleReq req; + public ListUsersReq req; public static final int REQ = 1; // isset id assignments @@ -27600,19 +28138,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, ListUsersReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(revokeRole_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listUsers_args.class, metaDataMap); } - public revokeRole_args() { + public listUsers_args() { } - public revokeRole_args( - RevokeRoleReq req) { + public listUsers_args( + ListUsersReq req) { this(); this.req = req; } @@ -27620,21 +28158,21 @@ public revokeRole_args( /** * Performs a deep copy on other. */ - public revokeRole_args(revokeRole_args other) { + public listUsers_args(listUsers_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public revokeRole_args deepCopy() { - return new revokeRole_args(this); + public listUsers_args deepCopy() { + return new listUsers_args(this); } - public RevokeRoleReq getReq() { + public ListUsersReq getReq() { return this.req; } - public revokeRole_args setReq(RevokeRoleReq req) { + public listUsers_args setReq(ListUsersReq req) { this.req = req; return this; } @@ -27660,7 +28198,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RevokeRoleReq)__value); + setReq((ListUsersReq)__value); } break; @@ -27685,9 +28223,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof revokeRole_args)) + if (!(_that instanceof listUsers_args)) return false; - revokeRole_args that = (revokeRole_args)_that; + listUsers_args that = (listUsers_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -27700,7 +28238,7 @@ public int hashCode() { } @Override - public int compareTo(revokeRole_args other) { + public int compareTo(listUsers_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27735,7 +28273,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RevokeRoleReq(); + this.req = new ListUsersReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -27777,7 +28315,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("listUsers_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27804,11 +28342,11 @@ 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 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 ExecResp success; + public ListUsersResp success; public static final int SUCCESS = 0; // isset id assignments @@ -27818,19 +28356,19 @@ public static class revokeRole_result implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, ListUsersResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(revokeRole_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listUsers_result.class, metaDataMap); } - public revokeRole_result() { + public listUsers_result() { } - public revokeRole_result( - ExecResp success) { + public listUsers_result( + ListUsersResp success) { this(); this.success = success; } @@ -27838,21 +28376,21 @@ public revokeRole_result( /** * Performs a deep copy on other. */ - public revokeRole_result(revokeRole_result other) { + public listUsers_result(listUsers_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public revokeRole_result deepCopy() { - return new revokeRole_result(this); + public listUsers_result deepCopy() { + return new listUsers_result(this); } - public ExecResp getSuccess() { + public ListUsersResp getSuccess() { return this.success; } - public revokeRole_result setSuccess(ExecResp success) { + public listUsers_result setSuccess(ListUsersResp success) { this.success = success; return this; } @@ -27878,7 +28416,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListUsersResp)__value); } break; @@ -27903,9 +28441,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof revokeRole_result)) + if (!(_that instanceof listUsers_result)) return false; - revokeRole_result that = (revokeRole_result)_that; + listUsers_result that = (listUsers_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -27918,7 +28456,7 @@ public int hashCode() { } @Override - public int compareTo(revokeRole_result other) { + public int compareTo(listUsers_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27953,7 +28491,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListUsersResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -27994,7 +28532,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("listUsers_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28021,11 +28559,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 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 ListUsersReq req; + public ListRolesReq req; public static final int REQ = 1; // isset id assignments @@ -28035,19 +28573,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, ListRolesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listUsers_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listRoles_args.class, metaDataMap); } - public listUsers_args() { + public listRoles_args() { } - public listUsers_args( - ListUsersReq req) { + public listRoles_args( + ListRolesReq req) { this(); this.req = req; } @@ -28055,21 +28593,21 @@ public listUsers_args( /** * Performs a deep copy on other. */ - public listUsers_args(listUsers_args other) { + public listRoles_args(listRoles_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listUsers_args deepCopy() { - return new listUsers_args(this); + public listRoles_args deepCopy() { + return new listRoles_args(this); } - public ListUsersReq getReq() { + public ListRolesReq getReq() { return this.req; } - public listUsers_args setReq(ListUsersReq req) { + public listRoles_args setReq(ListRolesReq req) { this.req = req; return this; } @@ -28095,7 +28633,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListUsersReq)__value); + setReq((ListRolesReq)__value); } break; @@ -28120,9 +28658,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listUsers_args)) + if (!(_that instanceof listRoles_args)) return false; - listUsers_args that = (listUsers_args)_that; + listRoles_args that = (listRoles_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -28135,7 +28673,7 @@ public int hashCode() { } @Override - public int compareTo(listUsers_args other) { + public int compareTo(listRoles_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28170,7 +28708,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListUsersReq(); + this.req = new ListRolesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28212,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("listUsers_args"); + StringBuilder sb = new StringBuilder("listRoles_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28239,11 +28777,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 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 ListUsersResp success; + public ListRolesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -28253,19 +28791,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, ListRolesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listUsers_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listRoles_result.class, metaDataMap); } - public listUsers_result() { + public listRoles_result() { } - public listUsers_result( - ListUsersResp success) { + public listRoles_result( + ListRolesResp success) { this(); this.success = success; } @@ -28273,21 +28811,21 @@ public listUsers_result( /** * Performs a deep copy on other. */ - public listUsers_result(listUsers_result other) { + public listRoles_result(listRoles_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listUsers_result deepCopy() { - return new listUsers_result(this); + public listRoles_result deepCopy() { + return new listRoles_result(this); } - public ListUsersResp getSuccess() { + public ListRolesResp getSuccess() { return this.success; } - public listUsers_result setSuccess(ListUsersResp success) { + public listRoles_result setSuccess(ListRolesResp success) { this.success = success; return this; } @@ -28313,7 +28851,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListUsersResp)__value); + setSuccess((ListRolesResp)__value); } break; @@ -28338,9 +28876,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listUsers_result)) + if (!(_that instanceof listRoles_result)) return false; - listUsers_result that = (listUsers_result)_that; + listRoles_result that = (listRoles_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -28353,7 +28891,7 @@ public int hashCode() { } @Override - public int compareTo(listUsers_result other) { + public int compareTo(listRoles_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28388,7 +28926,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListUsersResp(); + this.success = new ListRolesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28429,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("listUsers_result"); + StringBuilder sb = new StringBuilder("listRoles_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28456,11 +28994,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 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 ListRolesReq req; + public GetUserRolesReq req; public static final int REQ = 1; // isset id assignments @@ -28470,19 +29008,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, GetUserRolesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listRoles_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getUserRoles_args.class, metaDataMap); } - public listRoles_args() { + public getUserRoles_args() { } - public listRoles_args( - ListRolesReq req) { + public getUserRoles_args( + GetUserRolesReq req) { this(); this.req = req; } @@ -28490,21 +29028,21 @@ public listRoles_args( /** * Performs a deep copy on other. */ - public listRoles_args(listRoles_args other) { + public getUserRoles_args(getUserRoles_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listRoles_args deepCopy() { - return new listRoles_args(this); + public getUserRoles_args deepCopy() { + return new getUserRoles_args(this); } - public ListRolesReq getReq() { + public GetUserRolesReq getReq() { return this.req; } - public listRoles_args setReq(ListRolesReq req) { + public getUserRoles_args setReq(GetUserRolesReq req) { this.req = req; return this; } @@ -28530,7 +29068,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListRolesReq)__value); + setReq((GetUserRolesReq)__value); } break; @@ -28555,9 +29093,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listRoles_args)) + if (!(_that instanceof getUserRoles_args)) return false; - listRoles_args that = (listRoles_args)_that; + getUserRoles_args that = (getUserRoles_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -28570,7 +29108,7 @@ public int hashCode() { } @Override - public int compareTo(listRoles_args other) { + public int compareTo(getUserRoles_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28605,7 +29143,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListRolesReq(); + this.req = new GetUserRolesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28647,7 +29185,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("getUserRoles_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28674,8 +29212,8 @@ 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 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 ListRolesResp success; @@ -28693,13 +29231,13 @@ public static class listRoles_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(listRoles_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getUserRoles_result.class, metaDataMap); } - public listRoles_result() { + public getUserRoles_result() { } - public listRoles_result( + public getUserRoles_result( ListRolesResp success) { this(); this.success = success; @@ -28708,21 +29246,21 @@ public listRoles_result( /** * Performs a deep copy on other. */ - public listRoles_result(listRoles_result other) { + public getUserRoles_result(getUserRoles_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listRoles_result deepCopy() { - return new listRoles_result(this); + public getUserRoles_result deepCopy() { + return new getUserRoles_result(this); } public ListRolesResp getSuccess() { return this.success; } - public listRoles_result setSuccess(ListRolesResp success) { + public getUserRoles_result setSuccess(ListRolesResp success) { this.success = success; return this; } @@ -28773,9 +29311,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listRoles_result)) + if (!(_that instanceof getUserRoles_result)) return false; - listRoles_result that = (listRoles_result)_that; + getUserRoles_result that = (getUserRoles_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -28788,7 +29326,7 @@ public int hashCode() { } @Override - public int compareTo(listRoles_result other) { + public int compareTo(getUserRoles_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28864,7 +29402,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("getUserRoles_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28891,11 +29429,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 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 GetUserRolesReq req; + public ChangePasswordReq req; public static final int REQ = 1; // isset id assignments @@ -28905,19 +29443,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, ChangePasswordReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getUserRoles_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(changePassword_args.class, metaDataMap); } - public getUserRoles_args() { + public changePassword_args() { } - public getUserRoles_args( - GetUserRolesReq req) { + public changePassword_args( + ChangePasswordReq req) { this(); this.req = req; } @@ -28925,21 +29463,21 @@ public getUserRoles_args( /** * Performs a deep copy on other. */ - public getUserRoles_args(getUserRoles_args other) { + public changePassword_args(changePassword_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getUserRoles_args deepCopy() { - return new getUserRoles_args(this); + public changePassword_args deepCopy() { + return new changePassword_args(this); } - public GetUserRolesReq getReq() { + public ChangePasswordReq getReq() { return this.req; } - public getUserRoles_args setReq(GetUserRolesReq req) { + public changePassword_args setReq(ChangePasswordReq req) { this.req = req; return this; } @@ -28965,7 +29503,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetUserRolesReq)__value); + setReq((ChangePasswordReq)__value); } break; @@ -28990,9 +29528,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getUserRoles_args)) + if (!(_that instanceof changePassword_args)) return false; - getUserRoles_args that = (getUserRoles_args)_that; + changePassword_args that = (changePassword_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -29005,7 +29543,7 @@ public int hashCode() { } @Override - public int compareTo(getUserRoles_args other) { + public int compareTo(changePassword_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -29040,7 +29578,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetUserRolesReq(); + this.req = new ChangePasswordReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29082,7 +29620,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("changePassword_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29109,11 +29647,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 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 ListRolesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -29123,19 +29661,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(changePassword_result.class, metaDataMap); } - public getUserRoles_result() { + public changePassword_result() { } - public getUserRoles_result( - ListRolesResp success) { + public changePassword_result( + ExecResp success) { this(); this.success = success; } @@ -29143,21 +29681,21 @@ public getUserRoles_result( /** * Performs a deep copy on other. */ - public getUserRoles_result(getUserRoles_result other) { + public changePassword_result(changePassword_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getUserRoles_result deepCopy() { - return new getUserRoles_result(this); + public changePassword_result deepCopy() { + return new changePassword_result(this); } - public ListRolesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getUserRoles_result setSuccess(ListRolesResp success) { + public changePassword_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -29183,7 +29721,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListRolesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -29208,9 +29746,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getUserRoles_result)) + if (!(_that instanceof changePassword_result)) return false; - getUserRoles_result that = (getUserRoles_result)_that; + changePassword_result that = (changePassword_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -29223,7 +29761,7 @@ public int hashCode() { } @Override - public int compareTo(getUserRoles_result other) { + public int compareTo(changePassword_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -29258,7 +29796,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); @@ -29299,7 +29837,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("changePassword_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29326,11 +29864,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 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 ChangePasswordReq req; + public HBReq req; public static final int REQ = 1; // isset id assignments @@ -29340,19 +29878,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, HBReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(changePassword_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(heartBeat_args.class, metaDataMap); } - public changePassword_args() { + public heartBeat_args() { } - public changePassword_args( - ChangePasswordReq req) { + public heartBeat_args( + HBReq req) { this(); this.req = req; } @@ -29360,21 +29898,21 @@ public changePassword_args( /** * Performs a deep copy on other. */ - public changePassword_args(changePassword_args other) { + public heartBeat_args(heartBeat_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public changePassword_args deepCopy() { - return new changePassword_args(this); + public heartBeat_args deepCopy() { + return new heartBeat_args(this); } - public ChangePasswordReq getReq() { + public HBReq getReq() { return this.req; } - public changePassword_args setReq(ChangePasswordReq req) { + public heartBeat_args setReq(HBReq req) { this.req = req; return this; } @@ -29400,7 +29938,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ChangePasswordReq)__value); + setReq((HBReq)__value); } break; @@ -29425,9 +29963,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof changePassword_args)) + if (!(_that instanceof heartBeat_args)) return false; - changePassword_args that = (changePassword_args)_that; + heartBeat_args that = (heartBeat_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -29440,7 +29978,7 @@ public int hashCode() { } @Override - public int compareTo(changePassword_args other) { + public int compareTo(heartBeat_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -29475,7 +30013,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ChangePasswordReq(); + this.req = new HBReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29517,7 +30055,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("heartBeat_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29544,11 +30082,11 @@ 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 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 @@ -29558,19 +30096,19 @@ public static class changePassword_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(changePassword_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(heartBeat_result.class, metaDataMap); } - public changePassword_result() { + public heartBeat_result() { } - public changePassword_result( - ExecResp success) { + public heartBeat_result( + HBResp success) { this(); this.success = success; } @@ -29578,21 +30116,21 @@ public changePassword_result( /** * Performs a deep copy on other. */ - public changePassword_result(changePassword_result other) { + public heartBeat_result(heartBeat_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public changePassword_result deepCopy() { - return new changePassword_result(this); + public heartBeat_result deepCopy() { + return new heartBeat_result(this); } - public ExecResp getSuccess() { + public HBResp getSuccess() { return this.success; } - public changePassword_result setSuccess(ExecResp success) { + public heartBeat_result setSuccess(HBResp success) { this.success = success; return this; } @@ -29618,7 +30156,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((HBResp)__value); } break; @@ -29643,9 +30181,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof changePassword_result)) + if (!(_that instanceof heartBeat_result)) return false; - changePassword_result that = (changePassword_result)_that; + heartBeat_result that = (heartBeat_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -29658,7 +30196,7 @@ public int hashCode() { } @Override - public int compareTo(changePassword_result other) { + public int compareTo(heartBeat_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -29693,7 +30231,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); @@ -29734,7 +30272,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("heartBeat_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29761,11 +30299,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 agentHeartbeat_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("agentHeartbeat_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public HBReq req; + public AgentHBReq req; public static final int REQ = 1; // isset id assignments @@ -29775,19 +30313,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, AgentHBReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(heartBeat_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(agentHeartbeat_args.class, metaDataMap); } - public heartBeat_args() { + public agentHeartbeat_args() { } - public heartBeat_args( - HBReq req) { + public agentHeartbeat_args( + AgentHBReq req) { this(); this.req = req; } @@ -29795,21 +30333,21 @@ public heartBeat_args( /** * Performs a deep copy on other. */ - public heartBeat_args(heartBeat_args other) { + public agentHeartbeat_args(agentHeartbeat_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public heartBeat_args deepCopy() { - return new heartBeat_args(this); + public agentHeartbeat_args deepCopy() { + return new agentHeartbeat_args(this); } - public HBReq getReq() { + public AgentHBReq getReq() { return this.req; } - public heartBeat_args setReq(HBReq req) { + public agentHeartbeat_args setReq(AgentHBReq req) { this.req = req; return this; } @@ -29835,7 +30373,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((HBReq)__value); + setReq((AgentHBReq)__value); } break; @@ -29860,9 +30398,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof heartBeat_args)) + if (!(_that instanceof agentHeartbeat_args)) return false; - heartBeat_args that = (heartBeat_args)_that; + agentHeartbeat_args that = (agentHeartbeat_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -29875,7 +30413,7 @@ public int hashCode() { } @Override - public int compareTo(heartBeat_args other) { + public int compareTo(agentHeartbeat_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -29910,7 +30448,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new HBReq(); + this.req = new AgentHBReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29952,7 +30490,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("agentHeartbeat_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29979,11 +30517,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 agentHeartbeat_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("agentHeartbeat_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public HBResp success; + public AgentHBResp success; public static final int SUCCESS = 0; // isset id assignments @@ -29993,19 +30531,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, AgentHBResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(heartBeat_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(agentHeartbeat_result.class, metaDataMap); } - public heartBeat_result() { + public agentHeartbeat_result() { } - public heartBeat_result( - HBResp success) { + public agentHeartbeat_result( + AgentHBResp success) { this(); this.success = success; } @@ -30013,21 +30551,21 @@ public heartBeat_result( /** * Performs a deep copy on other. */ - public heartBeat_result(heartBeat_result other) { + public agentHeartbeat_result(agentHeartbeat_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public heartBeat_result deepCopy() { - return new heartBeat_result(this); + public agentHeartbeat_result deepCopy() { + return new agentHeartbeat_result(this); } - public HBResp getSuccess() { + public AgentHBResp getSuccess() { return this.success; } - public heartBeat_result setSuccess(HBResp success) { + public agentHeartbeat_result setSuccess(AgentHBResp success) { this.success = success; return this; } @@ -30053,7 +30591,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((HBResp)__value); + setSuccess((AgentHBResp)__value); } break; @@ -30078,9 +30616,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof heartBeat_result)) + if (!(_that instanceof agentHeartbeat_result)) return false; - heartBeat_result that = (heartBeat_result)_that; + agentHeartbeat_result that = (agentHeartbeat_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -30093,7 +30631,7 @@ public int hashCode() { } @Override - public int compareTo(heartBeat_result other) { + public int compareTo(agentHeartbeat_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -30128,7 +30666,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new HBResp(); + this.success = new AgentHBResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -30169,7 +30707,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("agentHeartbeat_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36171,11 +36709,11 @@ public void validate() throws TException { } - public static class createBackup_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createBackup_args"); + public static class addListener_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addListener_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateBackupReq req; + public AddListenerReq req; public static final int REQ = 1; // isset id assignments @@ -36185,19 +36723,19 @@ public static class createBackup_args implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateBackupReq.class))); + new StructMetaData(TType.STRUCT, AddListenerReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createBackup_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addListener_args.class, metaDataMap); } - public createBackup_args() { + public addListener_args() { } - public createBackup_args( - CreateBackupReq req) { + public addListener_args( + AddListenerReq req) { this(); this.req = req; } @@ -36205,21 +36743,21 @@ public createBackup_args( /** * Performs a deep copy on other. */ - public createBackup_args(createBackup_args other) { + public addListener_args(addListener_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createBackup_args deepCopy() { - return new createBackup_args(this); + public addListener_args deepCopy() { + return new addListener_args(this); } - public CreateBackupReq getReq() { + public AddListenerReq getReq() { return this.req; } - public createBackup_args setReq(CreateBackupReq req) { + public addListener_args setReq(AddListenerReq req) { this.req = req; return this; } @@ -36245,7 +36783,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateBackupReq)__value); + setReq((AddListenerReq)__value); } break; @@ -36270,9 +36808,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createBackup_args)) + if (!(_that instanceof addListener_args)) return false; - createBackup_args that = (createBackup_args)_that; + addListener_args that = (addListener_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -36285,7 +36823,7 @@ public int hashCode() { } @Override - public int compareTo(createBackup_args other) { + public int compareTo(addListener_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36320,7 +36858,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateBackupReq(); + this.req = new AddListenerReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -36362,7 +36900,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("createBackup_args"); + StringBuilder sb = new StringBuilder("addListener_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36389,11 +36927,11 @@ public void validate() throws TException { } - public static class createBackup_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createBackup_result"); + public static class addListener_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addListener_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public CreateBackupResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -36403,19 +36941,19 @@ public static class createBackup_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateBackupResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createBackup_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addListener_result.class, metaDataMap); } - public createBackup_result() { + public addListener_result() { } - public createBackup_result( - CreateBackupResp success) { + public addListener_result( + ExecResp success) { this(); this.success = success; } @@ -36423,21 +36961,21 @@ public createBackup_result( /** * Performs a deep copy on other. */ - public createBackup_result(createBackup_result other) { + public addListener_result(addListener_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createBackup_result deepCopy() { - return new createBackup_result(this); + public addListener_result deepCopy() { + return new addListener_result(this); } - public CreateBackupResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public createBackup_result setSuccess(CreateBackupResp success) { + public addListener_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -36463,7 +37001,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((CreateBackupResp)__value); + setSuccess((ExecResp)__value); } break; @@ -36488,9 +37026,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createBackup_result)) + if (!(_that instanceof addListener_result)) return false; - createBackup_result that = (createBackup_result)_that; + addListener_result that = (addListener_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -36503,7 +37041,7 @@ public int hashCode() { } @Override - public int compareTo(createBackup_result other) { + public int compareTo(addListener_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36538,7 +37076,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new CreateBackupResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -36579,7 +37117,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("createBackup_result"); + StringBuilder sb = new StringBuilder("addListener_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36606,11 +37144,11 @@ public void validate() throws TException { } - public static class restoreMeta_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("restoreMeta_args"); + public static class removeListener_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("removeListener_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RestoreMetaReq req; + public RemoveListenerReq req; public static final int REQ = 1; // isset id assignments @@ -36620,19 +37158,19 @@ public static class restoreMeta_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RestoreMetaReq.class))); + new StructMetaData(TType.STRUCT, RemoveListenerReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(restoreMeta_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeListener_args.class, metaDataMap); } - public restoreMeta_args() { + public removeListener_args() { } - public restoreMeta_args( - RestoreMetaReq req) { + public removeListener_args( + RemoveListenerReq req) { this(); this.req = req; } @@ -36640,21 +37178,21 @@ public restoreMeta_args( /** * Performs a deep copy on other. */ - public restoreMeta_args(restoreMeta_args other) { + public removeListener_args(removeListener_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public restoreMeta_args deepCopy() { - return new restoreMeta_args(this); + public removeListener_args deepCopy() { + return new removeListener_args(this); } - public RestoreMetaReq getReq() { + public RemoveListenerReq getReq() { return this.req; } - public restoreMeta_args setReq(RestoreMetaReq req) { + public removeListener_args setReq(RemoveListenerReq req) { this.req = req; return this; } @@ -36680,7 +37218,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RestoreMetaReq)__value); + setReq((RemoveListenerReq)__value); } break; @@ -36705,9 +37243,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof restoreMeta_args)) + if (!(_that instanceof removeListener_args)) return false; - restoreMeta_args that = (restoreMeta_args)_that; + removeListener_args that = (removeListener_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -36720,7 +37258,7 @@ public int hashCode() { } @Override - public int compareTo(restoreMeta_args other) { + public int compareTo(removeListener_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36755,7 +37293,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RestoreMetaReq(); + this.req = new RemoveListenerReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -36797,7 +37335,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("restoreMeta_args"); + StringBuilder sb = new StringBuilder("removeListener_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36824,8 +37362,8 @@ public void validate() throws TException { } - public static class restoreMeta_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("restoreMeta_result"); + public static class removeListener_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("removeListener_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -36843,13 +37381,13 @@ public static class restoreMeta_result implements TBase, java.io.Serializable, C } static { - FieldMetaData.addStructMetaDataMap(restoreMeta_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeListener_result.class, metaDataMap); } - public restoreMeta_result() { + public removeListener_result() { } - public restoreMeta_result( + public removeListener_result( ExecResp success) { this(); this.success = success; @@ -36858,21 +37396,21 @@ public restoreMeta_result( /** * Performs a deep copy on other. */ - public restoreMeta_result(restoreMeta_result other) { + public removeListener_result(removeListener_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public restoreMeta_result deepCopy() { - return new restoreMeta_result(this); + public removeListener_result deepCopy() { + return new removeListener_result(this); } public ExecResp getSuccess() { return this.success; } - public restoreMeta_result setSuccess(ExecResp success) { + public removeListener_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -36923,9 +37461,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof restoreMeta_result)) + if (!(_that instanceof removeListener_result)) return false; - restoreMeta_result that = (restoreMeta_result)_that; + removeListener_result that = (removeListener_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -36938,7 +37476,7 @@ public int hashCode() { } @Override - public int compareTo(restoreMeta_result other) { + public int compareTo(removeListener_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37014,7 +37552,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("restoreMeta_result"); + StringBuilder sb = new StringBuilder("removeListener_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37041,11 +37579,11 @@ public void validate() throws TException { } - public static class addListener_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addListener_args"); + public static class listListener_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listListener_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AddListenerReq req; + public ListListenerReq req; public static final int REQ = 1; // isset id assignments @@ -37055,19 +37593,19 @@ public static class addListener_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AddListenerReq.class))); + new StructMetaData(TType.STRUCT, ListListenerReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addListener_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listListener_args.class, metaDataMap); } - public addListener_args() { + public listListener_args() { } - public addListener_args( - AddListenerReq req) { + public listListener_args( + ListListenerReq req) { this(); this.req = req; } @@ -37075,21 +37613,21 @@ public addListener_args( /** * Performs a deep copy on other. */ - public addListener_args(addListener_args other) { + public listListener_args(listListener_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public addListener_args deepCopy() { - return new addListener_args(this); + public listListener_args deepCopy() { + return new listListener_args(this); } - public AddListenerReq getReq() { + public ListListenerReq getReq() { return this.req; } - public addListener_args setReq(AddListenerReq req) { + public listListener_args setReq(ListListenerReq req) { this.req = req; return this; } @@ -37115,7 +37653,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AddListenerReq)__value); + setReq((ListListenerReq)__value); } break; @@ -37140,9 +37678,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addListener_args)) + if (!(_that instanceof listListener_args)) return false; - addListener_args that = (addListener_args)_that; + listListener_args that = (listListener_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -37155,7 +37693,7 @@ public int hashCode() { } @Override - public int compareTo(addListener_args other) { + public int compareTo(listListener_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37190,7 +37728,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AddListenerReq(); + this.req = new ListListenerReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37232,7 +37770,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("addListener_args"); + StringBuilder sb = new StringBuilder("listListener_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37259,11 +37797,11 @@ public void validate() throws TException { } - public static class addListener_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("addListener_result"); + public static class listListener_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listListener_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListListenerResp success; public static final int SUCCESS = 0; // isset id assignments @@ -37273,19 +37811,19 @@ public static class addListener_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, ListListenerResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addListener_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listListener_result.class, metaDataMap); } - public addListener_result() { + public listListener_result() { } - public addListener_result( - ExecResp success) { + public listListener_result( + ListListenerResp success) { this(); this.success = success; } @@ -37293,21 +37831,21 @@ public addListener_result( /** * Performs a deep copy on other. */ - public addListener_result(addListener_result other) { + public listListener_result(listListener_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public addListener_result deepCopy() { - return new addListener_result(this); + public listListener_result deepCopy() { + return new listListener_result(this); } - public ExecResp getSuccess() { + public ListListenerResp getSuccess() { return this.success; } - public addListener_result setSuccess(ExecResp success) { + public listListener_result setSuccess(ListListenerResp success) { this.success = success; return this; } @@ -37333,7 +37871,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListListenerResp)__value); } break; @@ -37358,9 +37896,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addListener_result)) + if (!(_that instanceof listListener_result)) return false; - addListener_result that = (addListener_result)_that; + listListener_result that = (listListener_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -37373,7 +37911,7 @@ public int hashCode() { } @Override - public int compareTo(addListener_result other) { + public int compareTo(listListener_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37408,7 +37946,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListListenerResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37449,7 +37987,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("addListener_result"); + StringBuilder sb = new StringBuilder("listListener_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37476,11 +38014,11 @@ public void validate() throws TException { } - public static class removeListener_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("removeListener_args"); + public static class getStats_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getStats_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RemoveListenerReq req; + public GetStatsReq req; public static final int REQ = 1; // isset id assignments @@ -37490,19 +38028,19 @@ public static class removeListener_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RemoveListenerReq.class))); + new StructMetaData(TType.STRUCT, GetStatsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeListener_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getStats_args.class, metaDataMap); } - public removeListener_args() { + public getStats_args() { } - public removeListener_args( - RemoveListenerReq req) { + public getStats_args( + GetStatsReq req) { this(); this.req = req; } @@ -37510,21 +38048,21 @@ public removeListener_args( /** * Performs a deep copy on other. */ - public removeListener_args(removeListener_args other) { + public getStats_args(getStats_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public removeListener_args deepCopy() { - return new removeListener_args(this); + public getStats_args deepCopy() { + return new getStats_args(this); } - public RemoveListenerReq getReq() { + public GetStatsReq getReq() { return this.req; } - public removeListener_args setReq(RemoveListenerReq req) { + public getStats_args setReq(GetStatsReq req) { this.req = req; return this; } @@ -37550,7 +38088,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RemoveListenerReq)__value); + setReq((GetStatsReq)__value); } break; @@ -37575,9 +38113,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeListener_args)) + if (!(_that instanceof getStats_args)) return false; - removeListener_args that = (removeListener_args)_that; + getStats_args that = (getStats_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -37590,7 +38128,7 @@ public int hashCode() { } @Override - public int compareTo(removeListener_args other) { + public int compareTo(getStats_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37625,7 +38163,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RemoveListenerReq(); + this.req = new GetStatsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37667,7 +38205,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("removeListener_args"); + StringBuilder sb = new StringBuilder("getStats_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37694,11 +38232,11 @@ public void validate() throws TException { } - public static class removeListener_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("removeListener_result"); + public static class getStats_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getStats_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public GetStatsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -37708,19 +38246,19 @@ public static class removeListener_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, GetStatsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeListener_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getStats_result.class, metaDataMap); } - public removeListener_result() { + public getStats_result() { } - public removeListener_result( - ExecResp success) { + public getStats_result( + GetStatsResp success) { this(); this.success = success; } @@ -37728,21 +38266,21 @@ public removeListener_result( /** * Performs a deep copy on other. */ - public removeListener_result(removeListener_result other) { + public getStats_result(getStats_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public removeListener_result deepCopy() { - return new removeListener_result(this); + public getStats_result deepCopy() { + return new getStats_result(this); } - public ExecResp getSuccess() { + public GetStatsResp getSuccess() { return this.success; } - public removeListener_result setSuccess(ExecResp success) { + public getStats_result setSuccess(GetStatsResp success) { this.success = success; return this; } @@ -37768,7 +38306,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetStatsResp)__value); } break; @@ -37793,9 +38331,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeListener_result)) + if (!(_that instanceof getStats_result)) return false; - removeListener_result that = (removeListener_result)_that; + getStats_result that = (getStats_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -37808,7 +38346,7 @@ public int hashCode() { } @Override - public int compareTo(removeListener_result other) { + public int compareTo(getStats_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37843,7 +38381,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new GetStatsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37884,7 +38422,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("removeListener_result"); + StringBuilder sb = new StringBuilder("getStats_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37911,11 +38449,11 @@ public void validate() throws TException { } - public static class listListener_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listListener_args"); + public static class signInFTService_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signInFTService_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListListenerReq req; + public SignInFTServiceReq req; public static final int REQ = 1; // isset id assignments @@ -37925,19 +38463,19 @@ public static class listListener_args implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListListenerReq.class))); + new StructMetaData(TType.STRUCT, SignInFTServiceReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listListener_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signInFTService_args.class, metaDataMap); } - public listListener_args() { + public signInFTService_args() { } - public listListener_args( - ListListenerReq req) { + public signInFTService_args( + SignInFTServiceReq req) { this(); this.req = req; } @@ -37945,21 +38483,21 @@ public listListener_args( /** * Performs a deep copy on other. */ - public listListener_args(listListener_args other) { + public signInFTService_args(signInFTService_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listListener_args deepCopy() { - return new listListener_args(this); + public signInFTService_args deepCopy() { + return new signInFTService_args(this); } - public ListListenerReq getReq() { + public SignInFTServiceReq getReq() { return this.req; } - public listListener_args setReq(ListListenerReq req) { + public signInFTService_args setReq(SignInFTServiceReq req) { this.req = req; return this; } @@ -37985,7 +38523,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListListenerReq)__value); + setReq((SignInFTServiceReq)__value); } break; @@ -38010,9 +38548,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listListener_args)) + if (!(_that instanceof signInFTService_args)) return false; - listListener_args that = (listListener_args)_that; + signInFTService_args that = (signInFTService_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -38025,7 +38563,7 @@ public int hashCode() { } @Override - public int compareTo(listListener_args other) { + public int compareTo(signInFTService_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -38060,7 +38598,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListListenerReq(); + this.req = new SignInFTServiceReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -38102,7 +38640,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("listListener_args"); + StringBuilder sb = new StringBuilder("signInFTService_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -38129,11 +38667,11 @@ public void validate() throws TException { } - public static class listListener_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listListener_result"); + public static class signInFTService_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signInFTService_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListListenerResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -38143,19 +38681,19 @@ public static class listListener_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListListenerResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listListener_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signInFTService_result.class, metaDataMap); } - public listListener_result() { + public signInFTService_result() { } - public listListener_result( - ListListenerResp success) { + public signInFTService_result( + ExecResp success) { this(); this.success = success; } @@ -38163,21 +38701,21 @@ public listListener_result( /** * Performs a deep copy on other. */ - public listListener_result(listListener_result other) { + public signInFTService_result(signInFTService_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listListener_result deepCopy() { - return new listListener_result(this); + public signInFTService_result deepCopy() { + return new signInFTService_result(this); } - public ListListenerResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listListener_result setSuccess(ListListenerResp success) { + public signInFTService_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -38203,7 +38741,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListListenerResp)__value); + setSuccess((ExecResp)__value); } break; @@ -38228,9 +38766,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listListener_result)) + if (!(_that instanceof signInFTService_result)) return false; - listListener_result that = (listListener_result)_that; + signInFTService_result that = (signInFTService_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -38243,7 +38781,7 @@ public int hashCode() { } @Override - public int compareTo(listListener_result other) { + public int compareTo(signInFTService_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -38278,7 +38816,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListListenerResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -38319,7 +38857,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("listListener_result"); + StringBuilder sb = new StringBuilder("signInFTService_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -38346,11 +38884,11 @@ public void validate() throws TException { } - public static class getStats_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getStats_args"); + public static class signOutFTService_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signOutFTService_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetStatsReq req; + public SignOutFTServiceReq req; public static final int REQ = 1; // isset id assignments @@ -38360,19 +38898,19 @@ public static class getStats_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetStatsReq.class))); + new StructMetaData(TType.STRUCT, SignOutFTServiceReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getStats_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signOutFTService_args.class, metaDataMap); } - public getStats_args() { + public signOutFTService_args() { } - public getStats_args( - GetStatsReq req) { + public signOutFTService_args( + SignOutFTServiceReq req) { this(); this.req = req; } @@ -38380,21 +38918,21 @@ public getStats_args( /** * Performs a deep copy on other. */ - public getStats_args(getStats_args other) { + public signOutFTService_args(signOutFTService_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getStats_args deepCopy() { - return new getStats_args(this); + public signOutFTService_args deepCopy() { + return new signOutFTService_args(this); } - public GetStatsReq getReq() { + public SignOutFTServiceReq getReq() { return this.req; } - public getStats_args setReq(GetStatsReq req) { + public signOutFTService_args setReq(SignOutFTServiceReq req) { this.req = req; return this; } @@ -38420,7 +38958,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetStatsReq)__value); + setReq((SignOutFTServiceReq)__value); } break; @@ -38445,9 +38983,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getStats_args)) + if (!(_that instanceof signOutFTService_args)) return false; - getStats_args that = (getStats_args)_that; + signOutFTService_args that = (signOutFTService_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -38460,7 +38998,7 @@ public int hashCode() { } @Override - public int compareTo(getStats_args other) { + public int compareTo(signOutFTService_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -38495,7 +39033,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetStatsReq(); + this.req = new SignOutFTServiceReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -38537,7 +39075,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("getStats_args"); + StringBuilder sb = new StringBuilder("signOutFTService_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -38564,11 +39102,11 @@ public void validate() throws TException { } - public static class getStats_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getStats_result"); + public static class signOutFTService_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signOutFTService_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetStatsResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -38578,19 +39116,19 @@ public static class getStats_result implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetStatsResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getStats_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signOutFTService_result.class, metaDataMap); } - public getStats_result() { + public signOutFTService_result() { } - public getStats_result( - GetStatsResp success) { + public signOutFTService_result( + ExecResp success) { this(); this.success = success; } @@ -38598,21 +39136,21 @@ public getStats_result( /** * Performs a deep copy on other. */ - public getStats_result(getStats_result other) { + public signOutFTService_result(signOutFTService_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getStats_result deepCopy() { - return new getStats_result(this); + public signOutFTService_result deepCopy() { + return new signOutFTService_result(this); } - public GetStatsResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getStats_result setSuccess(GetStatsResp success) { + public signOutFTService_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -38638,7 +39176,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetStatsResp)__value); + setSuccess((ExecResp)__value); } break; @@ -38663,9 +39201,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getStats_result)) + if (!(_that instanceof signOutFTService_result)) return false; - getStats_result that = (getStats_result)_that; + signOutFTService_result that = (signOutFTService_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -38678,7 +39216,7 @@ public int hashCode() { } @Override - public int compareTo(getStats_result other) { + public int compareTo(signOutFTService_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -38713,7 +39251,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetStatsResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -38754,7 +39292,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("getStats_result"); + StringBuilder sb = new StringBuilder("signOutFTService_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -38781,11 +39319,11 @@ public void validate() throws TException { } - public static class signInFTService_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("signInFTService_args"); + public static class listFTClients_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listFTClients_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public SignInFTServiceReq req; + public ListFTClientsReq req; public static final int REQ = 1; // isset id assignments @@ -38795,19 +39333,19 @@ public static class signInFTService_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, SignInFTServiceReq.class))); + new StructMetaData(TType.STRUCT, ListFTClientsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(signInFTService_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listFTClients_args.class, metaDataMap); } - public signInFTService_args() { + public listFTClients_args() { } - public signInFTService_args( - SignInFTServiceReq req) { + public listFTClients_args( + ListFTClientsReq req) { this(); this.req = req; } @@ -38815,21 +39353,21 @@ public signInFTService_args( /** * Performs a deep copy on other. */ - public signInFTService_args(signInFTService_args other) { + public listFTClients_args(listFTClients_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public signInFTService_args deepCopy() { - return new signInFTService_args(this); + public listFTClients_args deepCopy() { + return new listFTClients_args(this); } - public SignInFTServiceReq getReq() { + public ListFTClientsReq getReq() { return this.req; } - public signInFTService_args setReq(SignInFTServiceReq req) { + public listFTClients_args setReq(ListFTClientsReq req) { this.req = req; return this; } @@ -38855,7 +39393,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((SignInFTServiceReq)__value); + setReq((ListFTClientsReq)__value); } break; @@ -38880,9 +39418,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof signInFTService_args)) + if (!(_that instanceof listFTClients_args)) return false; - signInFTService_args that = (signInFTService_args)_that; + listFTClients_args that = (listFTClients_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -38895,7 +39433,7 @@ public int hashCode() { } @Override - public int compareTo(signInFTService_args other) { + public int compareTo(listFTClients_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -38930,7 +39468,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new SignInFTServiceReq(); + this.req = new ListFTClientsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -38972,7 +39510,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("signInFTService_args"); + StringBuilder sb = new StringBuilder("listFTClients_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -38999,11 +39537,11 @@ public void validate() throws TException { } - public static class signInFTService_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("signInFTService_result"); + public static class listFTClients_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listFTClients_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListFTClientsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -39013,19 +39551,19 @@ public static class signInFTService_result implements TBase, java.io.Serializabl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, ListFTClientsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(signInFTService_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listFTClients_result.class, metaDataMap); } - public signInFTService_result() { + public listFTClients_result() { } - public signInFTService_result( - ExecResp success) { + public listFTClients_result( + ListFTClientsResp success) { this(); this.success = success; } @@ -39033,21 +39571,21 @@ public signInFTService_result( /** * Performs a deep copy on other. */ - public signInFTService_result(signInFTService_result other) { + public listFTClients_result(listFTClients_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public signInFTService_result deepCopy() { - return new signInFTService_result(this); + public listFTClients_result deepCopy() { + return new listFTClients_result(this); } - public ExecResp getSuccess() { + public ListFTClientsResp getSuccess() { return this.success; } - public signInFTService_result setSuccess(ExecResp success) { + public listFTClients_result setSuccess(ListFTClientsResp success) { this.success = success; return this; } @@ -39073,7 +39611,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListFTClientsResp)__value); } break; @@ -39098,9 +39636,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof signInFTService_result)) + if (!(_that instanceof listFTClients_result)) return false; - signInFTService_result that = (signInFTService_result)_that; + listFTClients_result that = (listFTClients_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -39113,7 +39651,7 @@ public int hashCode() { } @Override - public int compareTo(signInFTService_result other) { + public int compareTo(listFTClients_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -39148,7 +39686,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListFTClientsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -39189,7 +39727,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("signInFTService_result"); + StringBuilder sb = new StringBuilder("listFTClients_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -39216,11 +39754,11 @@ public void validate() throws TException { } - public static class signOutFTService_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("signOutFTService_args"); + public static class createFTIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createFTIndex_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public SignOutFTServiceReq req; + public CreateFTIndexReq req; public static final int REQ = 1; // isset id assignments @@ -39230,19 +39768,19 @@ public static class signOutFTService_args implements TBase, java.io.Serializable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, SignOutFTServiceReq.class))); + new StructMetaData(TType.STRUCT, CreateFTIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(signOutFTService_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createFTIndex_args.class, metaDataMap); } - public signOutFTService_args() { + public createFTIndex_args() { } - public signOutFTService_args( - SignOutFTServiceReq req) { + public createFTIndex_args( + CreateFTIndexReq req) { this(); this.req = req; } @@ -39250,21 +39788,21 @@ public signOutFTService_args( /** * Performs a deep copy on other. */ - public signOutFTService_args(signOutFTService_args other) { + public createFTIndex_args(createFTIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public signOutFTService_args deepCopy() { - return new signOutFTService_args(this); + public createFTIndex_args deepCopy() { + return new createFTIndex_args(this); } - public SignOutFTServiceReq getReq() { + public CreateFTIndexReq getReq() { return this.req; } - public signOutFTService_args setReq(SignOutFTServiceReq req) { + public createFTIndex_args setReq(CreateFTIndexReq req) { this.req = req; return this; } @@ -39290,7 +39828,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((SignOutFTServiceReq)__value); + setReq((CreateFTIndexReq)__value); } break; @@ -39315,9 +39853,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof signOutFTService_args)) + if (!(_that instanceof createFTIndex_args)) return false; - signOutFTService_args that = (signOutFTService_args)_that; + createFTIndex_args that = (createFTIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -39330,7 +39868,7 @@ public int hashCode() { } @Override - public int compareTo(signOutFTService_args other) { + public int compareTo(createFTIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -39365,7 +39903,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new SignOutFTServiceReq(); + this.req = new CreateFTIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -39407,7 +39945,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("signOutFTService_args"); + StringBuilder sb = new StringBuilder("createFTIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -39434,8 +39972,8 @@ public void validate() throws TException { } - public static class signOutFTService_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("signOutFTService_result"); + public static class createFTIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createFTIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -39453,13 +39991,13 @@ public static class signOutFTService_result implements TBase, java.io.Serializab } static { - FieldMetaData.addStructMetaDataMap(signOutFTService_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createFTIndex_result.class, metaDataMap); } - public signOutFTService_result() { + public createFTIndex_result() { } - public signOutFTService_result( + public createFTIndex_result( ExecResp success) { this(); this.success = success; @@ -39468,21 +40006,21 @@ public signOutFTService_result( /** * Performs a deep copy on other. */ - public signOutFTService_result(signOutFTService_result other) { + public createFTIndex_result(createFTIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public signOutFTService_result deepCopy() { - return new signOutFTService_result(this); + public createFTIndex_result deepCopy() { + return new createFTIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public signOutFTService_result setSuccess(ExecResp success) { + public createFTIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -39533,9 +40071,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof signOutFTService_result)) + if (!(_that instanceof createFTIndex_result)) return false; - signOutFTService_result that = (signOutFTService_result)_that; + createFTIndex_result that = (createFTIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -39548,7 +40086,7 @@ public int hashCode() { } @Override - public int compareTo(signOutFTService_result other) { + public int compareTo(createFTIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -39624,7 +40162,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("signOutFTService_result"); + StringBuilder sb = new StringBuilder("createFTIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -39651,11 +40189,11 @@ public void validate() throws TException { } - public static class listFTClients_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listFTClients_args"); + public static class dropFTIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropFTIndex_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListFTClientsReq req; + public DropFTIndexReq req; public static final int REQ = 1; // isset id assignments @@ -39665,19 +40203,19 @@ public static class listFTClients_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListFTClientsReq.class))); + new StructMetaData(TType.STRUCT, DropFTIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listFTClients_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropFTIndex_args.class, metaDataMap); } - public listFTClients_args() { + public dropFTIndex_args() { } - public listFTClients_args( - ListFTClientsReq req) { + public dropFTIndex_args( + DropFTIndexReq req) { this(); this.req = req; } @@ -39685,21 +40223,21 @@ public listFTClients_args( /** * Performs a deep copy on other. */ - public listFTClients_args(listFTClients_args other) { + public dropFTIndex_args(dropFTIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listFTClients_args deepCopy() { - return new listFTClients_args(this); + public dropFTIndex_args deepCopy() { + return new dropFTIndex_args(this); } - public ListFTClientsReq getReq() { + public DropFTIndexReq getReq() { return this.req; } - public listFTClients_args setReq(ListFTClientsReq req) { + public dropFTIndex_args setReq(DropFTIndexReq req) { this.req = req; return this; } @@ -39725,7 +40263,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListFTClientsReq)__value); + setReq((DropFTIndexReq)__value); } break; @@ -39750,9 +40288,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listFTClients_args)) + if (!(_that instanceof dropFTIndex_args)) return false; - listFTClients_args that = (listFTClients_args)_that; + dropFTIndex_args that = (dropFTIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -39765,7 +40303,7 @@ public int hashCode() { } @Override - public int compareTo(listFTClients_args other) { + public int compareTo(dropFTIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -39800,7 +40338,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListFTClientsReq(); + this.req = new DropFTIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -39842,7 +40380,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("listFTClients_args"); + StringBuilder sb = new StringBuilder("dropFTIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -39869,11 +40407,11 @@ public void validate() throws TException { } - public static class listFTClients_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listFTClients_result"); + public static class dropFTIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropFTIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListFTClientsResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -39883,19 +40421,19 @@ public static class listFTClients_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListFTClientsResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listFTClients_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropFTIndex_result.class, metaDataMap); } - public listFTClients_result() { + public dropFTIndex_result() { } - public listFTClients_result( - ListFTClientsResp success) { + public dropFTIndex_result( + ExecResp success) { this(); this.success = success; } @@ -39903,21 +40441,21 @@ public listFTClients_result( /** * Performs a deep copy on other. */ - public listFTClients_result(listFTClients_result other) { + public dropFTIndex_result(dropFTIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listFTClients_result deepCopy() { - return new listFTClients_result(this); + public dropFTIndex_result deepCopy() { + return new dropFTIndex_result(this); } - public ListFTClientsResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listFTClients_result setSuccess(ListFTClientsResp success) { + public dropFTIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -39943,7 +40481,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListFTClientsResp)__value); + setSuccess((ExecResp)__value); } break; @@ -39968,9 +40506,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listFTClients_result)) + if (!(_that instanceof dropFTIndex_result)) return false; - listFTClients_result that = (listFTClients_result)_that; + dropFTIndex_result that = (dropFTIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -39983,7 +40521,7 @@ public int hashCode() { } @Override - public int compareTo(listFTClients_result other) { + public int compareTo(dropFTIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -40018,7 +40556,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListFTClientsResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -40059,7 +40597,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("listFTClients_result"); + StringBuilder sb = new StringBuilder("dropFTIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -40086,11 +40624,11 @@ public void validate() throws TException { } - public static class createFTIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createFTIndex_args"); + public static class listFTIndexes_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listFTIndexes_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateFTIndexReq req; + public ListFTIndexesReq req; public static final int REQ = 1; // isset id assignments @@ -40100,19 +40638,19 @@ public static class createFTIndex_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateFTIndexReq.class))); + new StructMetaData(TType.STRUCT, ListFTIndexesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createFTIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listFTIndexes_args.class, metaDataMap); } - public createFTIndex_args() { + public listFTIndexes_args() { } - public createFTIndex_args( - CreateFTIndexReq req) { + public listFTIndexes_args( + ListFTIndexesReq req) { this(); this.req = req; } @@ -40120,21 +40658,21 @@ public createFTIndex_args( /** * Performs a deep copy on other. */ - public createFTIndex_args(createFTIndex_args other) { + public listFTIndexes_args(listFTIndexes_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createFTIndex_args deepCopy() { - return new createFTIndex_args(this); + public listFTIndexes_args deepCopy() { + return new listFTIndexes_args(this); } - public CreateFTIndexReq getReq() { + public ListFTIndexesReq getReq() { return this.req; } - public createFTIndex_args setReq(CreateFTIndexReq req) { + public listFTIndexes_args setReq(ListFTIndexesReq req) { this.req = req; return this; } @@ -40160,7 +40698,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateFTIndexReq)__value); + setReq((ListFTIndexesReq)__value); } break; @@ -40185,9 +40723,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createFTIndex_args)) + if (!(_that instanceof listFTIndexes_args)) return false; - createFTIndex_args that = (createFTIndex_args)_that; + listFTIndexes_args that = (listFTIndexes_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -40200,7 +40738,7 @@ public int hashCode() { } @Override - public int compareTo(createFTIndex_args other) { + public int compareTo(listFTIndexes_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -40235,7 +40773,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateFTIndexReq(); + this.req = new ListFTIndexesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -40277,7 +40815,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("createFTIndex_args"); + StringBuilder sb = new StringBuilder("listFTIndexes_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -40304,11 +40842,11 @@ public void validate() throws TException { } - public static class createFTIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createFTIndex_result"); + public static class listFTIndexes_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listFTIndexes_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListFTIndexesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -40318,19 +40856,19 @@ public static class createFTIndex_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, ListFTIndexesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createFTIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listFTIndexes_result.class, metaDataMap); } - public createFTIndex_result() { + public listFTIndexes_result() { } - public createFTIndex_result( - ExecResp success) { + public listFTIndexes_result( + ListFTIndexesResp success) { this(); this.success = success; } @@ -40338,21 +40876,21 @@ public createFTIndex_result( /** * Performs a deep copy on other. */ - public createFTIndex_result(createFTIndex_result other) { + public listFTIndexes_result(listFTIndexes_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createFTIndex_result deepCopy() { - return new createFTIndex_result(this); + public listFTIndexes_result deepCopy() { + return new listFTIndexes_result(this); } - public ExecResp getSuccess() { + public ListFTIndexesResp getSuccess() { return this.success; } - public createFTIndex_result setSuccess(ExecResp success) { + public listFTIndexes_result setSuccess(ListFTIndexesResp success) { this.success = success; return this; } @@ -40378,7 +40916,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListFTIndexesResp)__value); } break; @@ -40403,9 +40941,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createFTIndex_result)) + if (!(_that instanceof listFTIndexes_result)) return false; - createFTIndex_result that = (createFTIndex_result)_that; + listFTIndexes_result that = (listFTIndexes_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -40418,7 +40956,7 @@ public int hashCode() { } @Override - public int compareTo(createFTIndex_result other) { + public int compareTo(listFTIndexes_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -40453,7 +40991,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListFTIndexesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -40494,7 +41032,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("createFTIndex_result"); + StringBuilder sb = new StringBuilder("listFTIndexes_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -40521,11 +41059,11 @@ public void validate() throws TException { } - public static class dropFTIndex_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropFTIndex_args"); + public static class createSession_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createSession_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropFTIndexReq req; + public CreateSessionReq req; public static final int REQ = 1; // isset id assignments @@ -40535,19 +41073,19 @@ public static class dropFTIndex_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropFTIndexReq.class))); + new StructMetaData(TType.STRUCT, CreateSessionReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropFTIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSession_args.class, metaDataMap); } - public dropFTIndex_args() { + public createSession_args() { } - public dropFTIndex_args( - DropFTIndexReq req) { + public createSession_args( + CreateSessionReq req) { this(); this.req = req; } @@ -40555,21 +41093,21 @@ public dropFTIndex_args( /** * Performs a deep copy on other. */ - public dropFTIndex_args(dropFTIndex_args other) { + public createSession_args(createSession_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropFTIndex_args deepCopy() { - return new dropFTIndex_args(this); + public createSession_args deepCopy() { + return new createSession_args(this); } - public DropFTIndexReq getReq() { + public CreateSessionReq getReq() { return this.req; } - public dropFTIndex_args setReq(DropFTIndexReq req) { + public createSession_args setReq(CreateSessionReq req) { this.req = req; return this; } @@ -40595,7 +41133,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropFTIndexReq)__value); + setReq((CreateSessionReq)__value); } break; @@ -40620,9 +41158,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropFTIndex_args)) + if (!(_that instanceof createSession_args)) return false; - dropFTIndex_args that = (dropFTIndex_args)_that; + createSession_args that = (createSession_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -40635,7 +41173,7 @@ public int hashCode() { } @Override - public int compareTo(dropFTIndex_args other) { + public int compareTo(createSession_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -40670,7 +41208,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropFTIndexReq(); + this.req = new CreateSessionReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -40712,7 +41250,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("dropFTIndex_args"); + StringBuilder sb = new StringBuilder("createSession_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -40739,11 +41277,11 @@ public void validate() throws TException { } - public static class dropFTIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropFTIndex_result"); + public static class createSession_result implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("createSession_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public CreateSessionResp success; public static final int SUCCESS = 0; // isset id assignments @@ -40753,19 +41291,19 @@ public static class dropFTIndex_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, CreateSessionResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropFTIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSession_result.class, metaDataMap); } - public dropFTIndex_result() { + public createSession_result() { } - public dropFTIndex_result( - ExecResp success) { + public createSession_result( + CreateSessionResp success) { this(); this.success = success; } @@ -40773,21 +41311,21 @@ public dropFTIndex_result( /** * Performs a deep copy on other. */ - public dropFTIndex_result(dropFTIndex_result other) { + public createSession_result(createSession_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropFTIndex_result deepCopy() { - return new dropFTIndex_result(this); + public createSession_result deepCopy() { + return new createSession_result(this); } - public ExecResp getSuccess() { + public CreateSessionResp getSuccess() { return this.success; } - public dropFTIndex_result setSuccess(ExecResp success) { + public createSession_result setSuccess(CreateSessionResp success) { this.success = success; return this; } @@ -40813,7 +41351,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((CreateSessionResp)__value); } break; @@ -40838,9 +41376,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropFTIndex_result)) + if (!(_that instanceof createSession_result)) return false; - dropFTIndex_result that = (dropFTIndex_result)_that; + createSession_result that = (createSession_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -40852,29 +41390,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(dropFTIndex_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); @@ -40888,7 +41403,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new CreateSessionResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -40929,7 +41444,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("dropFTIndex_result"); + StringBuilder sb = new StringBuilder("createSession_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -40956,11 +41471,11 @@ public void validate() throws TException { } - public static class listFTIndexes_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listFTIndexes_args"); + public static class updateSessions_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("updateSessions_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListFTIndexesReq req; + public UpdateSessionsReq req; public static final int REQ = 1; // isset id assignments @@ -40970,19 +41485,19 @@ public static class listFTIndexes_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListFTIndexesReq.class))); + new StructMetaData(TType.STRUCT, UpdateSessionsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listFTIndexes_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(updateSessions_args.class, metaDataMap); } - public listFTIndexes_args() { + public updateSessions_args() { } - public listFTIndexes_args( - ListFTIndexesReq req) { + public updateSessions_args( + UpdateSessionsReq req) { this(); this.req = req; } @@ -40990,21 +41505,21 @@ public listFTIndexes_args( /** * Performs a deep copy on other. */ - public listFTIndexes_args(listFTIndexes_args other) { + public updateSessions_args(updateSessions_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listFTIndexes_args deepCopy() { - return new listFTIndexes_args(this); + public updateSessions_args deepCopy() { + return new updateSessions_args(this); } - public ListFTIndexesReq getReq() { + public UpdateSessionsReq getReq() { return this.req; } - public listFTIndexes_args setReq(ListFTIndexesReq req) { + public updateSessions_args setReq(UpdateSessionsReq req) { this.req = req; return this; } @@ -41030,7 +41545,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListFTIndexesReq)__value); + setReq((UpdateSessionsReq)__value); } break; @@ -41055,9 +41570,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listFTIndexes_args)) + if (!(_that instanceof updateSessions_args)) return false; - listFTIndexes_args that = (listFTIndexes_args)_that; + updateSessions_args that = (updateSessions_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -41069,29 +41584,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } - @Override - public int compareTo(listFTIndexes_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); @@ -41105,7 +41597,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListFTIndexesReq(); + this.req = new UpdateSessionsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -41147,7 +41639,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("listFTIndexes_args"); + StringBuilder sb = new StringBuilder("updateSessions_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -41174,11 +41666,11 @@ public void validate() throws TException { } - public static class listFTIndexes_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listFTIndexes_result"); + public static class updateSessions_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("updateSessions_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListFTIndexesResp success; + public UpdateSessionsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -41188,19 +41680,19 @@ public static class listFTIndexes_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListFTIndexesResp.class))); + new StructMetaData(TType.STRUCT, UpdateSessionsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listFTIndexes_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(updateSessions_result.class, metaDataMap); } - public listFTIndexes_result() { + public updateSessions_result() { } - public listFTIndexes_result( - ListFTIndexesResp success) { + public updateSessions_result( + UpdateSessionsResp success) { this(); this.success = success; } @@ -41208,21 +41700,21 @@ public listFTIndexes_result( /** * Performs a deep copy on other. */ - public listFTIndexes_result(listFTIndexes_result other) { + public updateSessions_result(updateSessions_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listFTIndexes_result deepCopy() { - return new listFTIndexes_result(this); + public updateSessions_result deepCopy() { + return new updateSessions_result(this); } - public ListFTIndexesResp getSuccess() { + public UpdateSessionsResp getSuccess() { return this.success; } - public listFTIndexes_result setSuccess(ListFTIndexesResp success) { + public updateSessions_result setSuccess(UpdateSessionsResp success) { this.success = success; return this; } @@ -41248,7 +41740,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListFTIndexesResp)__value); + setSuccess((UpdateSessionsResp)__value); } break; @@ -41273,9 +41765,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listFTIndexes_result)) + if (!(_that instanceof updateSessions_result)) return false; - listFTIndexes_result that = (listFTIndexes_result)_that; + updateSessions_result that = (updateSessions_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -41288,7 +41780,7 @@ public int hashCode() { } @Override - public int compareTo(listFTIndexes_result other) { + public int compareTo(updateSessions_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -41323,7 +41815,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListFTIndexesResp(); + this.success = new UpdateSessionsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -41364,7 +41856,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("listFTIndexes_result"); + StringBuilder sb = new StringBuilder("updateSessions_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -41391,11 +41883,11 @@ public void validate() throws TException { } - public static class createSession_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createSession_args"); + public static class listSessions_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSessions_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateSessionReq req; + public ListSessionsReq req; public static final int REQ = 1; // isset id assignments @@ -41405,19 +41897,19 @@ public static class createSession_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateSessionReq.class))); + new StructMetaData(TType.STRUCT, ListSessionsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createSession_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSessions_args.class, metaDataMap); } - public createSession_args() { + public listSessions_args() { } - public createSession_args( - CreateSessionReq req) { + public listSessions_args( + ListSessionsReq req) { this(); this.req = req; } @@ -41425,21 +41917,21 @@ public createSession_args( /** * Performs a deep copy on other. */ - public createSession_args(createSession_args other) { + public listSessions_args(listSessions_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createSession_args deepCopy() { - return new createSession_args(this); + public listSessions_args deepCopy() { + return new listSessions_args(this); } - public CreateSessionReq getReq() { + public ListSessionsReq getReq() { return this.req; } - public createSession_args setReq(CreateSessionReq req) { + public listSessions_args setReq(ListSessionsReq req) { this.req = req; return this; } @@ -41465,7 +41957,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateSessionReq)__value); + setReq((ListSessionsReq)__value); } break; @@ -41490,9 +41982,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSession_args)) + if (!(_that instanceof listSessions_args)) return false; - createSession_args that = (createSession_args)_that; + listSessions_args that = (listSessions_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -41505,7 +41997,7 @@ public int hashCode() { } @Override - public int compareTo(createSession_args other) { + public int compareTo(listSessions_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -41540,7 +42032,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateSessionReq(); + this.req = new ListSessionsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -41582,7 +42074,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("createSession_args"); + StringBuilder sb = new StringBuilder("listSessions_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -41609,11 +42101,11 @@ public void validate() throws TException { } - public static class createSession_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("createSession_result"); + public static class listSessions_result implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("listSessions_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public CreateSessionResp success; + public ListSessionsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -41623,19 +42115,19 @@ public static class createSession_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateSessionResp.class))); + new StructMetaData(TType.STRUCT, ListSessionsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createSession_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSessions_result.class, metaDataMap); } - public createSession_result() { + public listSessions_result() { } - public createSession_result( - CreateSessionResp success) { + public listSessions_result( + ListSessionsResp success) { this(); this.success = success; } @@ -41643,21 +42135,21 @@ public createSession_result( /** * Performs a deep copy on other. */ - public createSession_result(createSession_result other) { + public listSessions_result(listSessions_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createSession_result deepCopy() { - return new createSession_result(this); + public listSessions_result deepCopy() { + return new listSessions_result(this); } - public CreateSessionResp getSuccess() { + public ListSessionsResp getSuccess() { return this.success; } - public createSession_result setSuccess(CreateSessionResp success) { + public listSessions_result setSuccess(ListSessionsResp success) { this.success = success; return this; } @@ -41683,7 +42175,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((CreateSessionResp)__value); + setSuccess((ListSessionsResp)__value); } break; @@ -41708,9 +42200,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSession_result)) + if (!(_that instanceof listSessions_result)) return false; - createSession_result that = (createSession_result)_that; + listSessions_result that = (listSessions_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -41735,7 +42227,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new CreateSessionResp(); + this.success = new ListSessionsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -41776,7 +42268,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("createSession_result"); + StringBuilder sb = new StringBuilder("listSessions_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -41803,11 +42295,11 @@ public void validate() throws TException { } - public static class updateSessions_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("updateSessions_args"); + public static class getSession_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getSession_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public UpdateSessionsReq req; + public GetSessionReq req; public static final int REQ = 1; // isset id assignments @@ -41817,19 +42309,19 @@ public static class updateSessions_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, UpdateSessionsReq.class))); + new StructMetaData(TType.STRUCT, GetSessionReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(updateSessions_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getSession_args.class, metaDataMap); } - public updateSessions_args() { + public getSession_args() { } - public updateSessions_args( - UpdateSessionsReq req) { + public getSession_args( + GetSessionReq req) { this(); this.req = req; } @@ -41837,21 +42329,21 @@ public updateSessions_args( /** * Performs a deep copy on other. */ - public updateSessions_args(updateSessions_args other) { + public getSession_args(getSession_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public updateSessions_args deepCopy() { - return new updateSessions_args(this); + public getSession_args deepCopy() { + return new getSession_args(this); } - public UpdateSessionsReq getReq() { + public GetSessionReq getReq() { return this.req; } - public updateSessions_args setReq(UpdateSessionsReq req) { + public getSession_args setReq(GetSessionReq req) { this.req = req; return this; } @@ -41877,7 +42369,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((UpdateSessionsReq)__value); + setReq((GetSessionReq)__value); } break; @@ -41902,9 +42394,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof updateSessions_args)) + if (!(_that instanceof getSession_args)) return false; - updateSessions_args that = (updateSessions_args)_that; + getSession_args that = (getSession_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -41916,6 +42408,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } + @Override + public int compareTo(getSession_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); @@ -41929,7 +42444,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new UpdateSessionsReq(); + this.req = new GetSessionReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -41971,7 +42486,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("updateSessions_args"); + StringBuilder sb = new StringBuilder("getSession_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -41998,11 +42513,11 @@ public void validate() throws TException { } - public static class updateSessions_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("updateSessions_result"); + public static class getSession_result implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("getSession_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public UpdateSessionsResp success; + public GetSessionResp success; public static final int SUCCESS = 0; // isset id assignments @@ -42012,19 +42527,19 @@ public static class updateSessions_result implements TBase, java.io.Serializable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, UpdateSessionsResp.class))); + new StructMetaData(TType.STRUCT, GetSessionResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(updateSessions_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getSession_result.class, metaDataMap); } - public updateSessions_result() { + public getSession_result() { } - public updateSessions_result( - UpdateSessionsResp success) { + public getSession_result( + GetSessionResp success) { this(); this.success = success; } @@ -42032,21 +42547,21 @@ public updateSessions_result( /** * Performs a deep copy on other. */ - public updateSessions_result(updateSessions_result other) { + public getSession_result(getSession_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public updateSessions_result deepCopy() { - return new updateSessions_result(this); + public getSession_result deepCopy() { + return new getSession_result(this); } - public UpdateSessionsResp getSuccess() { + public GetSessionResp getSuccess() { return this.success; } - public updateSessions_result setSuccess(UpdateSessionsResp success) { + public getSession_result setSuccess(GetSessionResp success) { this.success = success; return this; } @@ -42072,7 +42587,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((UpdateSessionsResp)__value); + setSuccess((GetSessionResp)__value); } break; @@ -42097,9 +42612,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof updateSessions_result)) + if (!(_that instanceof getSession_result)) return false; - updateSessions_result that = (updateSessions_result)_that; + getSession_result that = (getSession_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -42111,29 +42626,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(updateSessions_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); @@ -42147,7 +42639,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new UpdateSessionsResp(); + this.success = new GetSessionResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -42188,7 +42680,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("updateSessions_result"); + StringBuilder sb = new StringBuilder("getSession_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -42215,11 +42707,11 @@ public void validate() throws TException { } - public static class listSessions_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listSessions_args"); + public static class removeSession_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("removeSession_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListSessionsReq req; + public RemoveSessionReq req; public static final int REQ = 1; // isset id assignments @@ -42229,19 +42721,19 @@ public static class listSessions_args implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListSessionsReq.class))); + new StructMetaData(TType.STRUCT, RemoveSessionReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSessions_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeSession_args.class, metaDataMap); } - public listSessions_args() { + public removeSession_args() { } - public listSessions_args( - ListSessionsReq req) { + public removeSession_args( + RemoveSessionReq req) { this(); this.req = req; } @@ -42249,21 +42741,21 @@ public listSessions_args( /** * Performs a deep copy on other. */ - public listSessions_args(listSessions_args other) { + public removeSession_args(removeSession_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listSessions_args deepCopy() { - return new listSessions_args(this); + public removeSession_args deepCopy() { + return new removeSession_args(this); } - public ListSessionsReq getReq() { + public RemoveSessionReq getReq() { return this.req; } - public listSessions_args setReq(ListSessionsReq req) { + public removeSession_args setReq(RemoveSessionReq req) { this.req = req; return this; } @@ -42289,7 +42781,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListSessionsReq)__value); + setReq((RemoveSessionReq)__value); } break; @@ -42314,9 +42806,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSessions_args)) + if (!(_that instanceof removeSession_args)) return false; - listSessions_args that = (listSessions_args)_that; + removeSession_args that = (removeSession_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -42329,7 +42821,7 @@ public int hashCode() { } @Override - public int compareTo(listSessions_args other) { + public int compareTo(removeSession_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -42364,7 +42856,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListSessionsReq(); + this.req = new RemoveSessionReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -42406,7 +42898,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("listSessions_args"); + StringBuilder sb = new StringBuilder("removeSession_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -42433,11 +42925,11 @@ public void validate() throws TException { } - public static class listSessions_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("listSessions_result"); + public static class removeSession_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("removeSession_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListSessionsResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -42447,19 +42939,19 @@ public static class listSessions_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListSessionsResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSessions_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeSession_result.class, metaDataMap); } - public listSessions_result() { + public removeSession_result() { } - public listSessions_result( - ListSessionsResp success) { + public removeSession_result( + ExecResp success) { this(); this.success = success; } @@ -42467,21 +42959,21 @@ public listSessions_result( /** * Performs a deep copy on other. */ - public listSessions_result(listSessions_result other) { + public removeSession_result(removeSession_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listSessions_result deepCopy() { - return new listSessions_result(this); + public removeSession_result deepCopy() { + return new removeSession_result(this); } - public ListSessionsResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listSessions_result setSuccess(ListSessionsResp success) { + public removeSession_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -42507,7 +42999,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListSessionsResp)__value); + setSuccess((ExecResp)__value); } break; @@ -42532,9 +43024,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSessions_result)) + if (!(_that instanceof removeSession_result)) return false; - listSessions_result that = (listSessions_result)_that; + removeSession_result that = (removeSession_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -42546,6 +43038,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } + @Override + public int compareTo(removeSession_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); @@ -42559,7 +43074,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListSessionsResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -42600,7 +43115,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("listSessions_result"); + StringBuilder sb = new StringBuilder("removeSession_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -42627,11 +43142,11 @@ public void validate() throws TException { } - public static class getSession_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getSession_args"); + public static class killQuery_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("killQuery_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetSessionReq req; + public KillQueryReq req; public static final int REQ = 1; // isset id assignments @@ -42641,19 +43156,19 @@ public static class getSession_args implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetSessionReq.class))); + new StructMetaData(TType.STRUCT, KillQueryReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getSession_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(killQuery_args.class, metaDataMap); } - public getSession_args() { + public killQuery_args() { } - public getSession_args( - GetSessionReq req) { + public killQuery_args( + KillQueryReq req) { this(); this.req = req; } @@ -42661,21 +43176,21 @@ public getSession_args( /** * Performs a deep copy on other. */ - public getSession_args(getSession_args other) { + public killQuery_args(killQuery_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getSession_args deepCopy() { - return new getSession_args(this); + public killQuery_args deepCopy() { + return new killQuery_args(this); } - public GetSessionReq getReq() { + public KillQueryReq getReq() { return this.req; } - public getSession_args setReq(GetSessionReq req) { + public killQuery_args setReq(KillQueryReq req) { this.req = req; return this; } @@ -42701,7 +43216,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetSessionReq)__value); + setReq((KillQueryReq)__value); } break; @@ -42726,9 +43241,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getSession_args)) + if (!(_that instanceof killQuery_args)) return false; - getSession_args that = (getSession_args)_that; + killQuery_args that = (killQuery_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -42741,7 +43256,7 @@ public int hashCode() { } @Override - public int compareTo(getSession_args other) { + public int compareTo(killQuery_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -42776,7 +43291,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetSessionReq(); + this.req = new KillQueryReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -42818,7 +43333,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("getSession_args"); + StringBuilder sb = new StringBuilder("killQuery_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -42845,11 +43360,11 @@ public void validate() throws TException { } - public static class getSession_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getSession_result"); + public static class killQuery_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("killQuery_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetSessionResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -42859,19 +43374,19 @@ public static class getSession_result implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetSessionResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getSession_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(killQuery_result.class, metaDataMap); } - public getSession_result() { + public killQuery_result() { } - public getSession_result( - GetSessionResp success) { + public killQuery_result( + ExecResp success) { this(); this.success = success; } @@ -42879,21 +43394,21 @@ public getSession_result( /** * Performs a deep copy on other. */ - public getSession_result(getSession_result other) { + public killQuery_result(killQuery_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getSession_result deepCopy() { - return new getSession_result(this); + public killQuery_result deepCopy() { + return new killQuery_result(this); } - public GetSessionResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getSession_result setSuccess(GetSessionResp success) { + public killQuery_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -42919,7 +43434,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetSessionResp)__value); + setSuccess((ExecResp)__value); } break; @@ -42944,9 +43459,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getSession_result)) + if (!(_that instanceof killQuery_result)) return false; - getSession_result that = (getSession_result)_that; + killQuery_result that = (killQuery_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -42958,6 +43473,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } + @Override + public int compareTo(killQuery_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); @@ -42971,7 +43509,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetSessionResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -43012,7 +43550,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("getSession_result"); + StringBuilder sb = new StringBuilder("killQuery_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -43039,11 +43577,11 @@ public void validate() throws TException { } - public static class removeSession_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("removeSession_args"); + public static class reportTaskFinish_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("reportTaskFinish_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RemoveSessionReq req; + public ReportTaskReq req; public static final int REQ = 1; // isset id assignments @@ -43053,19 +43591,19 @@ public static class removeSession_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RemoveSessionReq.class))); + new StructMetaData(TType.STRUCT, ReportTaskReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeSession_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(reportTaskFinish_args.class, metaDataMap); } - public removeSession_args() { + public reportTaskFinish_args() { } - public removeSession_args( - RemoveSessionReq req) { + public reportTaskFinish_args( + ReportTaskReq req) { this(); this.req = req; } @@ -43073,21 +43611,21 @@ public removeSession_args( /** * Performs a deep copy on other. */ - public removeSession_args(removeSession_args other) { + public reportTaskFinish_args(reportTaskFinish_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public removeSession_args deepCopy() { - return new removeSession_args(this); + public reportTaskFinish_args deepCopy() { + return new reportTaskFinish_args(this); } - public RemoveSessionReq getReq() { + public ReportTaskReq getReq() { return this.req; } - public removeSession_args setReq(RemoveSessionReq req) { + public reportTaskFinish_args setReq(ReportTaskReq req) { this.req = req; return this; } @@ -43113,7 +43651,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RemoveSessionReq)__value); + setReq((ReportTaskReq)__value); } break; @@ -43138,9 +43676,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeSession_args)) + if (!(_that instanceof reportTaskFinish_args)) return false; - removeSession_args that = (removeSession_args)_that; + reportTaskFinish_args that = (reportTaskFinish_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -43153,7 +43691,7 @@ public int hashCode() { } @Override - public int compareTo(removeSession_args other) { + public int compareTo(reportTaskFinish_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -43188,7 +43726,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RemoveSessionReq(); + this.req = new ReportTaskReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -43230,7 +43768,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("removeSession_args"); + StringBuilder sb = new StringBuilder("reportTaskFinish_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -43257,8 +43795,8 @@ public void validate() throws TException { } - public static class removeSession_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("removeSession_result"); + public static class reportTaskFinish_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("reportTaskFinish_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -43276,13 +43814,13 @@ public static class removeSession_result implements TBase, java.io.Serializable, } static { - FieldMetaData.addStructMetaDataMap(removeSession_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(reportTaskFinish_result.class, metaDataMap); } - public removeSession_result() { + public reportTaskFinish_result() { } - public removeSession_result( + public reportTaskFinish_result( ExecResp success) { this(); this.success = success; @@ -43291,21 +43829,21 @@ public removeSession_result( /** * Performs a deep copy on other. */ - public removeSession_result(removeSession_result other) { + public reportTaskFinish_result(reportTaskFinish_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public removeSession_result deepCopy() { - return new removeSession_result(this); + public reportTaskFinish_result deepCopy() { + return new reportTaskFinish_result(this); } public ExecResp getSuccess() { return this.success; } - public removeSession_result setSuccess(ExecResp success) { + public reportTaskFinish_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -43356,9 +43894,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeSession_result)) + if (!(_that instanceof reportTaskFinish_result)) return false; - removeSession_result that = (removeSession_result)_that; + reportTaskFinish_result that = (reportTaskFinish_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -43371,7 +43909,7 @@ public int hashCode() { } @Override - public int compareTo(removeSession_result other) { + public int compareTo(reportTaskFinish_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -43447,7 +43985,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("removeSession_result"); + StringBuilder sb = new StringBuilder("reportTaskFinish_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -43474,11 +44012,11 @@ public void validate() throws TException { } - public static class killQuery_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("killQuery_args"); + public static class createBackup_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createBackup_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public KillQueryReq req; + public CreateBackupReq req; public static final int REQ = 1; // isset id assignments @@ -43488,19 +44026,19 @@ public static class killQuery_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, KillQueryReq.class))); + new StructMetaData(TType.STRUCT, CreateBackupReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(killQuery_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createBackup_args.class, metaDataMap); } - public killQuery_args() { + public createBackup_args() { } - public killQuery_args( - KillQueryReq req) { + public createBackup_args( + CreateBackupReq req) { this(); this.req = req; } @@ -43508,21 +44046,21 @@ public killQuery_args( /** * Performs a deep copy on other. */ - public killQuery_args(killQuery_args other) { + public createBackup_args(createBackup_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public killQuery_args deepCopy() { - return new killQuery_args(this); + public createBackup_args deepCopy() { + return new createBackup_args(this); } - public KillQueryReq getReq() { + public CreateBackupReq getReq() { return this.req; } - public killQuery_args setReq(KillQueryReq req) { + public createBackup_args setReq(CreateBackupReq req) { this.req = req; return this; } @@ -43548,7 +44086,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((KillQueryReq)__value); + setReq((CreateBackupReq)__value); } break; @@ -43573,9 +44111,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof killQuery_args)) + if (!(_that instanceof createBackup_args)) return false; - killQuery_args that = (killQuery_args)_that; + createBackup_args that = (createBackup_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -43588,7 +44126,7 @@ public int hashCode() { } @Override - public int compareTo(killQuery_args other) { + public int compareTo(createBackup_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -43623,7 +44161,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new KillQueryReq(); + this.req = new CreateBackupReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -43665,7 +44203,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("killQuery_args"); + StringBuilder sb = new StringBuilder("createBackup_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -43692,11 +44230,11 @@ public void validate() throws TException { } - public static class killQuery_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("killQuery_result"); + public static class createBackup_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createBackup_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public CreateBackupResp success; public static final int SUCCESS = 0; // isset id assignments @@ -43706,19 +44244,19 @@ public static class killQuery_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, CreateBackupResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(killQuery_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createBackup_result.class, metaDataMap); } - public killQuery_result() { + public createBackup_result() { } - public killQuery_result( - ExecResp success) { + public createBackup_result( + CreateBackupResp success) { this(); this.success = success; } @@ -43726,21 +44264,21 @@ public killQuery_result( /** * Performs a deep copy on other. */ - public killQuery_result(killQuery_result other) { + public createBackup_result(createBackup_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public killQuery_result deepCopy() { - return new killQuery_result(this); + public createBackup_result deepCopy() { + return new createBackup_result(this); } - public ExecResp getSuccess() { + public CreateBackupResp getSuccess() { return this.success; } - public killQuery_result setSuccess(ExecResp success) { + public createBackup_result setSuccess(CreateBackupResp success) { this.success = success; return this; } @@ -43766,7 +44304,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((CreateBackupResp)__value); } break; @@ -43791,9 +44329,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof killQuery_result)) + if (!(_that instanceof createBackup_result)) return false; - killQuery_result that = (killQuery_result)_that; + createBackup_result that = (createBackup_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -43806,7 +44344,7 @@ public int hashCode() { } @Override - public int compareTo(killQuery_result other) { + public int compareTo(createBackup_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -43841,7 +44379,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new CreateBackupResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -43882,7 +44420,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("killQuery_result"); + StringBuilder sb = new StringBuilder("createBackup_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -43909,11 +44447,11 @@ public void validate() throws TException { } - public static class reportTaskFinish_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("reportTaskFinish_args"); + public static class restoreMeta_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("restoreMeta_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ReportTaskReq req; + public RestoreMetaReq req; public static final int REQ = 1; // isset id assignments @@ -43923,19 +44461,19 @@ public static class reportTaskFinish_args implements TBase, java.io.Serializable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ReportTaskReq.class))); + new StructMetaData(TType.STRUCT, RestoreMetaReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(reportTaskFinish_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(restoreMeta_args.class, metaDataMap); } - public reportTaskFinish_args() { + public restoreMeta_args() { } - public reportTaskFinish_args( - ReportTaskReq req) { + public restoreMeta_args( + RestoreMetaReq req) { this(); this.req = req; } @@ -43943,21 +44481,21 @@ public reportTaskFinish_args( /** * Performs a deep copy on other. */ - public reportTaskFinish_args(reportTaskFinish_args other) { + public restoreMeta_args(restoreMeta_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public reportTaskFinish_args deepCopy() { - return new reportTaskFinish_args(this); + public restoreMeta_args deepCopy() { + return new restoreMeta_args(this); } - public ReportTaskReq getReq() { + public RestoreMetaReq getReq() { return this.req; } - public reportTaskFinish_args setReq(ReportTaskReq req) { + public restoreMeta_args setReq(RestoreMetaReq req) { this.req = req; return this; } @@ -43983,7 +44521,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ReportTaskReq)__value); + setReq((RestoreMetaReq)__value); } break; @@ -44008,9 +44546,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof reportTaskFinish_args)) + if (!(_that instanceof restoreMeta_args)) return false; - reportTaskFinish_args that = (reportTaskFinish_args)_that; + restoreMeta_args that = (restoreMeta_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -44023,7 +44561,7 @@ public int hashCode() { } @Override - public int compareTo(reportTaskFinish_args other) { + public int compareTo(restoreMeta_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -44058,7 +44596,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ReportTaskReq(); + this.req = new RestoreMetaReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -44100,7 +44638,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("reportTaskFinish_args"); + StringBuilder sb = new StringBuilder("restoreMeta_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -44127,8 +44665,8 @@ public void validate() throws TException { } - public static class reportTaskFinish_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("reportTaskFinish_result"); + public static class restoreMeta_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("restoreMeta_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -44146,13 +44684,13 @@ public static class reportTaskFinish_result implements TBase, java.io.Serializab } static { - FieldMetaData.addStructMetaDataMap(reportTaskFinish_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(restoreMeta_result.class, metaDataMap); } - public reportTaskFinish_result() { + public restoreMeta_result() { } - public reportTaskFinish_result( + public restoreMeta_result( ExecResp success) { this(); this.success = success; @@ -44161,21 +44699,21 @@ public reportTaskFinish_result( /** * Performs a deep copy on other. */ - public reportTaskFinish_result(reportTaskFinish_result other) { + public restoreMeta_result(restoreMeta_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public reportTaskFinish_result deepCopy() { - return new reportTaskFinish_result(this); + public restoreMeta_result deepCopy() { + return new restoreMeta_result(this); } public ExecResp getSuccess() { return this.success; } - public reportTaskFinish_result setSuccess(ExecResp success) { + public restoreMeta_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -44226,9 +44764,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof reportTaskFinish_result)) + if (!(_that instanceof restoreMeta_result)) return false; - reportTaskFinish_result that = (reportTaskFinish_result)_that; + restoreMeta_result that = (restoreMeta_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -44241,7 +44779,7 @@ public int hashCode() { } @Override - public int compareTo(reportTaskFinish_result other) { + public int compareTo(restoreMeta_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -44317,7 +44855,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("reportTaskFinish_result"); + StringBuilder sb = new StringBuilder("restoreMeta_result"); sb.append(space); sb.append("("); sb.append(newLine); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/PropertyType.java b/client/src/main/generated/com/vesoft/nebula/meta/PropertyType.java deleted file mode 100644 index fc77cc24b..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/PropertyType.java +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package com.vesoft.nebula.meta; - - -import com.facebook.thrift.IntRangeSet; -import java.util.Map; -import java.util.HashMap; - -@SuppressWarnings({ "unused" }) -public enum PropertyType implements com.facebook.thrift.TEnum { - UNKNOWN(0), - BOOL(1), - INT64(2), - VID(3), - FLOAT(4), - DOUBLE(5), - STRING(6), - FIXED_STRING(7), - INT8(8), - INT16(9), - INT32(10), - TIMESTAMP(21), - DATE(24), - DATETIME(25), - TIME(26), - GEOGRAPHY(31); - - private final int value; - - private PropertyType(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 PropertyType findByValue(int value) { - switch (value) { - case 0: - return UNKNOWN; - case 1: - return BOOL; - case 2: - return INT64; - case 3: - return VID; - case 4: - return FLOAT; - case 5: - return DOUBLE; - case 6: - return STRING; - case 7: - return FIXED_STRING; - case 8: - return INT8; - case 9: - return INT16; - case 10: - return INT32; - case 21: - return TIMESTAMP; - case 24: - return DATE; - case 25: - return DATETIME; - case 26: - return TIME; - case 31: - return GEOGRAPHY; - default: - return null; - } - } -} 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 dabc1b017..374fa601d 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 _list200 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list200.size)); - for (int _i201 = 0; - (_list200.size < 0) ? iprot.peekList() : (_i201 < _list200.size); - ++_i201) + TList _list204 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list204.size)); + for (int _i205 = 0; + (_list204.size < 0) ? iprot.peekList() : (_i205 < _list204.size); + ++_i205) { - ConfigItem _elem202; - _elem202 = new ConfigItem(); - _elem202.read(iprot); - this.items.add(_elem202); + ConfigItem _elem206; + _elem206 = new ConfigItem(); + _elem206.read(iprot); + this.items.add(_elem206); } 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 _iter203 : this.items) { - _iter203.write(oprot); + for (ConfigItem _iter207 : this.items) { + _iter207.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 647b86cf3..eefe51bd3 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 _list269 = iprot.readListBegin(); - this.files = new ArrayList(Math.max(0, _list269.size)); - for (int _i270 = 0; - (_list269.size < 0) ? iprot.peekList() : (_i270 < _list269.size); - ++_i270) + TList _list273 = iprot.readListBegin(); + this.files = new ArrayList(Math.max(0, _list273.size)); + for (int _i274 = 0; + (_list273.size < 0) ? iprot.peekList() : (_i274 < _list273.size); + ++_i274) { - byte[] _elem271; - _elem271 = iprot.readBinary(); - this.files.add(_elem271); + byte[] _elem275; + _elem275 = iprot.readBinary(); + this.files.add(_elem275); } iprot.readListEnd(); } @@ -280,16 +280,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - TList _list272 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list272.size)); - for (int _i273 = 0; - (_list272.size < 0) ? iprot.peekList() : (_i273 < _list272.size); - ++_i273) + TList _list276 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list276.size)); + for (int _i277 = 0; + (_list276.size < 0) ? iprot.peekList() : (_i277 < _list276.size); + ++_i277) { - HostPair _elem274; - _elem274 = new HostPair(); - _elem274.read(iprot); - this.hosts.add(_elem274); + HostPair _elem278; + _elem278 = new HostPair(); + _elem278.read(iprot); + this.hosts.add(_elem278); } 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[] _iter275 : this.files) { - oprot.writeBinary(_iter275); + for (byte[] _iter279 : this.files) { + oprot.writeBinary(_iter279); } 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 _iter276 : this.hosts) { - _iter276.write(oprot); + for (HostPair _iter280 : this.hosts) { + _iter280.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/SchemaID.java b/client/src/main/generated/com/vesoft/nebula/meta/SchemaID.java deleted file mode 100644 index 7f4a2d88e..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/SchemaID.java +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 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", "unchecked" }) -public class SchemaID extends TUnion implements Comparable { - private static final TStruct STRUCT_DESC = new TStruct("SchemaID"); - private static final TField TAG_ID_FIELD_DESC = new TField("tag_id", TType.I32, (short)1); - private static final TField EDGE_TYPE_FIELD_DESC = new TField("edge_type", TType.I32, (short)2); - - public static final int TAG_ID = 1; - public static final int EDGE_TYPE = 2; - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(TAG_ID, new FieldMetaData("tag_id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(EDGE_TYPE, new FieldMetaData("edge_type", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - public SchemaID() { - super(); - } - - public SchemaID(int setField, Object __value) { - super(setField, __value); - } - - public SchemaID(SchemaID other) { - super(other); - } - - public SchemaID deepCopy() { - return new SchemaID(this); - } - - public static SchemaID tag_id(int __value) { - SchemaID x = new SchemaID(); - x.setTag_id(__value); - return x; - } - - public static SchemaID edge_type(int __value) { - SchemaID x = new SchemaID(); - x.setEdge_type(__value); - return x; - } - - - @Override - protected void checkType(short setField, Object __value) throws ClassCastException { - switch (setField) { - case TAG_ID: - if (__value instanceof Integer) { - break; - } - throw new ClassCastException("Was expecting value of type Integer for field 'tag_id', but got " + __value.getClass().getSimpleName()); - case EDGE_TYPE: - if (__value instanceof Integer) { - break; - } - throw new ClassCastException("Was expecting value of type Integer for field 'edge_type', but got " + __value.getClass().getSimpleName()); - default: - throw new IllegalArgumentException("Unknown field id " + setField); - } - } - - @Override - public void read(TProtocol iprot) throws TException { - setField_ = 0; - value_ = null; - iprot.readStructBegin(metaDataMap); - TField __field = iprot.readFieldBegin(); - if (__field.type != TType.STOP) - { - value_ = readValue(iprot, __field); - if (value_ != null) - { - switch (__field.id) { - case TAG_ID: - if (__field.type == TAG_ID_FIELD_DESC.type) { - setField_ = __field.id; - } - break; - case EDGE_TYPE: - if (__field.type == EDGE_TYPE_FIELD_DESC.type) { - setField_ = __field.id; - } - break; - } - } - iprot.readFieldEnd(); - TField __stopField = iprot.readFieldBegin(); - if (__stopField.type != TType.STOP) { - throw new TProtocolException(TProtocolException.INVALID_DATA, "Union 'SchemaID' is missing a STOP byte"); - } - } - iprot.readStructEnd(); - } - - @Override - protected Object readValue(TProtocol iprot, TField __field) throws TException { - switch (__field.id) { - case TAG_ID: - if (__field.type == TAG_ID_FIELD_DESC.type) { - Integer tag_id; - tag_id = iprot.readI32(); - return tag_id; - } - break; - case EDGE_TYPE: - if (__field.type == EDGE_TYPE_FIELD_DESC.type) { - Integer edge_type; - edge_type = iprot.readI32(); - return edge_type; - } - break; - } - TProtocolUtil.skip(iprot, __field.type); - return null; - } - - @Override - protected void writeValue(TProtocol oprot, short setField, Object __value) throws TException { - switch (setField) { - case TAG_ID: - Integer tag_id = (Integer)getFieldValue(); - oprot.writeI32(tag_id); - return; - case EDGE_TYPE: - Integer edge_type = (Integer)getFieldValue(); - oprot.writeI32(edge_type); - return; - default: - throw new IllegalStateException("Cannot write union with unknown field " + setField); - } - } - - @Override - protected TField getFieldDesc(int setField) { - switch (setField) { - case TAG_ID: - return TAG_ID_FIELD_DESC; - case EDGE_TYPE: - return EDGE_TYPE_FIELD_DESC; - default: - throw new IllegalArgumentException("Unknown field id " + setField); - } - } - - @Override - protected TStruct getStructDesc() { - return STRUCT_DESC; - } - - @Override - protected Map getMetaDataMap() { return metaDataMap; } - - private Object __getValue(int expectedFieldId) { - if (getSetField() == expectedFieldId) { - return getFieldValue(); - } else { - throw new RuntimeException("Cannot get field '" + getFieldDesc(expectedFieldId).name + "' because union is currently set to " + getFieldDesc(getSetField()).name); - } - } - - private void __setValue(int fieldId, Object __value) { - if (__value == null) throw new NullPointerException(); - setField_ = fieldId; - value_ = __value; - } - - public int getTag_id() { - return (Integer) __getValue(TAG_ID); - } - - public void setTag_id(int __value) { - setField_ = TAG_ID; - value_ = __value; - } - - public int getEdge_type() { - return (Integer) __getValue(EDGE_TYPE); - } - - public void setEdge_type(int __value) { - setField_ = EDGE_TYPE; - value_ = __value; - } - - public boolean equals(Object other) { - if (other instanceof SchemaID) { - return equals((SchemaID)other); - } else { - return false; - } - } - - public boolean equals(SchemaID other) { - return equalsNobinaryImpl(other); - } - - @Override - public int compareTo(SchemaID other) { - return compareToImpl(other); - } - - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {getSetField(), getFieldValue()}); - } - -} diff --git a/client/src/main/generated/com/vesoft/nebula/NodeInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/ServiceInfo.java similarity index 50% rename from client/src/main/generated/com/vesoft/nebula/NodeInfo.java rename to client/src/main/generated/com/vesoft/nebula/meta/ServiceInfo.java index ad7fa8b35..ed762871e 100644 --- a/client/src/main/generated/com/vesoft/nebula/NodeInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ServiceInfo.java @@ -4,7 +4,7 @@ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ -package com.vesoft.nebula; +package com.vesoft.nebula.meta; import java.util.List; import java.util.ArrayList; @@ -24,15 +24,22 @@ import com.facebook.thrift.protocol.*; @SuppressWarnings({ "unused", "serial" }) -public class NodeInfo implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("NodeInfo"); - private static final TField HOST_FIELD_DESC = new TField("host", TType.STRUCT, (short)1); - private static final TField DIR_FIELD_DESC = new TField("dir", TType.STRUCT, (short)2); - - public HostAddr host; - public DirInfo dir; - public static final int HOST = 1; - public static final int DIR = 2; +public class ServiceInfo implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ServiceInfo"); + private static final TField DIR_FIELD_DESC = new TField("dir", TType.STRUCT, (short)1); + private static final TField ADDR_FIELD_DESC = new TField("addr", TType.STRUCT, (short)2); + private static final TField ROLE_FIELD_DESC = new TField("role", TType.I32, (short)3); + + public com.vesoft.nebula.DirInfo dir; + public com.vesoft.nebula.HostAddr addr; + /** + * + * @see HostRole + */ + public HostRole role; + public static final int DIR = 1; + public static final int ADDR = 2; + public static final int ROLE = 3; // isset id assignments @@ -40,49 +47,60 @@ public class NodeInfo implements TBase, java.io.Serializable, Cloneable, Compara static { Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(HOST, new FieldMetaData("host", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, HostAddr.class))); tmpMetaDataMap.put(DIR, new FieldMetaData("dir", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DirInfo.class))); + new StructMetaData(TType.STRUCT, com.vesoft.nebula.DirInfo.class))); + tmpMetaDataMap.put(ADDR, new FieldMetaData("addr", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); + tmpMetaDataMap.put(ROLE, new FieldMetaData("role", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(NodeInfo.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(ServiceInfo.class, metaDataMap); } - public NodeInfo() { + public ServiceInfo() { } - public NodeInfo( - HostAddr host, - DirInfo dir) { + public ServiceInfo( + com.vesoft.nebula.DirInfo dir, + com.vesoft.nebula.HostAddr addr, + HostRole role) { this(); - this.host = host; this.dir = dir; + this.addr = addr; + this.role = role; } public static class Builder { - private HostAddr host; - private DirInfo dir; + private com.vesoft.nebula.DirInfo dir; + private com.vesoft.nebula.HostAddr addr; + private HostRole role; public Builder() { } - public Builder setHost(final HostAddr host) { - this.host = host; + public Builder setDir(final com.vesoft.nebula.DirInfo dir) { + this.dir = dir; return this; } - public Builder setDir(final DirInfo dir) { - this.dir = dir; + public Builder setAddr(final com.vesoft.nebula.HostAddr addr) { + this.addr = addr; return this; } - public NodeInfo build() { - NodeInfo result = new NodeInfo(); - result.setHost(this.host); + public Builder setRole(final HostRole role) { + this.role = role; + return this; + } + + public ServiceInfo build() { + ServiceInfo result = new ServiceInfo(); result.setDir(this.dir); + result.setAddr(this.addr); + result.setRole(this.role); return result; } } @@ -94,82 +112,125 @@ public static Builder builder() { /** * Performs a deep copy on other. */ - public NodeInfo(NodeInfo other) { - if (other.isSetHost()) { - this.host = TBaseHelper.deepCopy(other.host); - } + public ServiceInfo(ServiceInfo other) { if (other.isSetDir()) { this.dir = TBaseHelper.deepCopy(other.dir); } + if (other.isSetAddr()) { + this.addr = TBaseHelper.deepCopy(other.addr); + } + if (other.isSetRole()) { + this.role = TBaseHelper.deepCopy(other.role); + } } - public NodeInfo deepCopy() { - return new NodeInfo(this); + public ServiceInfo deepCopy() { + return new ServiceInfo(this); } - public HostAddr getHost() { - return this.host; + public com.vesoft.nebula.DirInfo getDir() { + return this.dir; } - public NodeInfo setHost(HostAddr host) { - this.host = host; + public ServiceInfo setDir(com.vesoft.nebula.DirInfo dir) { + this.dir = dir; return this; } - public void unsetHost() { - this.host = null; + public void unsetDir() { + this.dir = null; } - // Returns true if field host is set (has been assigned a value) and false otherwise - public boolean isSetHost() { - return this.host != null; + // Returns true if field dir is set (has been assigned a value) and false otherwise + public boolean isSetDir() { + return this.dir != null; } - public void setHostIsSet(boolean __value) { + public void setDirIsSet(boolean __value) { if (!__value) { - this.host = null; + this.dir = null; } } - public DirInfo getDir() { - return this.dir; + public com.vesoft.nebula.HostAddr getAddr() { + return this.addr; } - public NodeInfo setDir(DirInfo dir) { - this.dir = dir; + public ServiceInfo setAddr(com.vesoft.nebula.HostAddr addr) { + this.addr = addr; return this; } - public void unsetDir() { - this.dir = null; + public void unsetAddr() { + this.addr = null; } - // Returns true if field dir is set (has been assigned a value) and false otherwise - public boolean isSetDir() { - return this.dir != null; + // Returns true if field addr is set (has been assigned a value) and false otherwise + public boolean isSetAddr() { + return this.addr != null; } - public void setDirIsSet(boolean __value) { + public void setAddrIsSet(boolean __value) { if (!__value) { - this.dir = null; + this.addr = null; + } + } + + /** + * + * @see HostRole + */ + public HostRole getRole() { + return this.role; + } + + /** + * + * @see HostRole + */ + public ServiceInfo setRole(HostRole 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 void setFieldValue(int fieldID, Object __value) { switch (fieldID) { - case HOST: + case DIR: if (__value == null) { - unsetHost(); + unsetDir(); } else { - setHost((HostAddr)__value); + setDir((com.vesoft.nebula.DirInfo)__value); } break; - case DIR: + case ADDR: if (__value == null) { - unsetDir(); + unsetAddr(); } else { - setDir((DirInfo)__value); + setAddr((com.vesoft.nebula.HostAddr)__value); + } + break; + + case ROLE: + if (__value == null) { + unsetRole(); + } else { + setRole((HostRole)__value); } break; @@ -180,12 +241,15 @@ public void setFieldValue(int fieldID, Object __value) { public Object getFieldValue(int fieldID) { switch (fieldID) { - case HOST: - return getHost(); - case DIR: return getDir(); + case ADDR: + return getAddr(); + + case ROLE: + return getRole(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -197,24 +261,26 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof NodeInfo)) + if (!(_that instanceof ServiceInfo)) return false; - NodeInfo that = (NodeInfo)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetHost(), that.isSetHost(), this.host, that.host)) { return false; } + ServiceInfo that = (ServiceInfo)_that; if (!TBaseHelper.equalsNobinary(this.isSetDir(), that.isSetDir(), this.dir, that.dir)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetAddr(), that.isSetAddr(), this.addr, that.addr)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetRole(), that.isSetRole(), this.role, that.role)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {host, dir}); + return Arrays.deepHashCode(new Object[] {dir, addr, role}); } @Override - public int compareTo(NodeInfo other) { + public int compareTo(ServiceInfo other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -225,19 +291,27 @@ public int compareTo(NodeInfo other) { } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetHost()).compareTo(other.isSetHost()); + lastComparison = Boolean.valueOf(isSetDir()).compareTo(other.isSetDir()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(host, other.host); + lastComparison = TBaseHelper.compareTo(dir, other.dir); if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetDir()).compareTo(other.isSetDir()); + lastComparison = Boolean.valueOf(isSetAddr()).compareTo(other.isSetAddr()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(dir, other.dir); + lastComparison = TBaseHelper.compareTo(addr, other.addr); + 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; } @@ -255,18 +329,25 @@ public void read(TProtocol iprot) throws TException { } switch (__field.id) { - case HOST: + case DIR: if (__field.type == TType.STRUCT) { - this.host = new HostAddr(); - this.host.read(iprot); + this.dir = new com.vesoft.nebula.DirInfo(); + this.dir.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); } break; - case DIR: + case ADDR: if (__field.type == TType.STRUCT) { - this.dir = new DirInfo(); - this.dir.read(iprot); + this.addr = new com.vesoft.nebula.HostAddr(); + this.addr.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case ROLE: + if (__field.type == TType.I32) { + this.role = HostRole.findByValue(iprot.readI32()); } else { TProtocolUtil.skip(iprot, __field.type); } @@ -288,16 +369,21 @@ public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); - if (this.host != null) { - oprot.writeFieldBegin(HOST_FIELD_DESC); - this.host.write(oprot); - oprot.writeFieldEnd(); - } if (this.dir != null) { oprot.writeFieldBegin(DIR_FIELD_DESC); this.dir.write(oprot); oprot.writeFieldEnd(); } + if (this.addr != null) { + oprot.writeFieldBegin(ADDR_FIELD_DESC); + this.addr.write(oprot); + oprot.writeFieldEnd(); + } + if (this.role != null) { + oprot.writeFieldBegin(ROLE_FIELD_DESC); + oprot.writeI32(this.role == null ? 0 : this.role.getValue()); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -312,31 +398,50 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("NodeInfo"); + StringBuilder sb = new StringBuilder("ServiceInfo"); sb.append(space); sb.append("("); sb.append(newLine); boolean first = true; sb.append(indentStr); - sb.append("host"); + sb.append("dir"); sb.append(space); sb.append(":").append(space); - if (this.getHost() == null) { + if (this.getDir() == null) { sb.append("null"); } else { - sb.append(TBaseHelper.toString(this.getHost(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.getDir(), indent + 1, prettyPrint)); } first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); - sb.append("dir"); + sb.append("addr"); sb.append(space); sb.append(":").append(space); - if (this.getDir() == null) { + if (this.getAddr() == null) { sb.append("null"); } else { - sb.append(TBaseHelper.toString(this.getDir(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.getAddr(), indent + 1, prettyPrint)); + } + 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; sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); 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 3477ee02a..3609413ba 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 _map294 = iprot.readMapBegin(); - this.configs = new HashMap(Math.max(0, 2*_map294.size)); - for (int _i295 = 0; - (_map294.size < 0) ? iprot.peekMap() : (_i295 < _map294.size); - ++_i295) + TMap _map298 = iprot.readMapBegin(); + this.configs = new HashMap(Math.max(0, 2*_map298.size)); + for (int _i299 = 0; + (_map298.size < 0) ? iprot.peekMap() : (_i299 < _map298.size); + ++_i299) { - byte[] _key296; - com.vesoft.nebula.Value _val297; - _key296 = iprot.readBinary(); - _val297 = new com.vesoft.nebula.Value(); - _val297.read(iprot); - this.configs.put(_key296, _val297); + byte[] _key300; + com.vesoft.nebula.Value _val301; + _key300 = iprot.readBinary(); + _val301 = new com.vesoft.nebula.Value(); + _val301.read(iprot); + this.configs.put(_key300, _val301); } iprot.readMapEnd(); } @@ -760,18 +760,18 @@ public void read(TProtocol iprot) throws TException { case QUERIES: if (__field.type == TType.MAP) { { - TMap _map298 = iprot.readMapBegin(); - this.queries = new HashMap(Math.max(0, 2*_map298.size)); - for (int _i299 = 0; - (_map298.size < 0) ? iprot.peekMap() : (_i299 < _map298.size); - ++_i299) + TMap _map302 = iprot.readMapBegin(); + this.queries = new HashMap(Math.max(0, 2*_map302.size)); + for (int _i303 = 0; + (_map302.size < 0) ? iprot.peekMap() : (_i303 < _map302.size); + ++_i303) { - long _key300; - QueryDesc _val301; - _key300 = iprot.readI64(); - _val301 = new QueryDesc(); - _val301.read(iprot); - this.queries.put(_key300, _val301); + long _key304; + QueryDesc _val305; + _key304 = iprot.readI64(); + _val305 = new QueryDesc(); + _val305.read(iprot); + this.queries.put(_key304, _val305); } 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 _iter302 : this.configs.entrySet()) { - oprot.writeBinary(_iter302.getKey()); - _iter302.getValue().write(oprot); + for (Map.Entry _iter306 : this.configs.entrySet()) { + oprot.writeBinary(_iter306.getKey()); + _iter306.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 _iter303 : this.queries.entrySet()) { - oprot.writeI64(_iter303.getKey()); - _iter303.getValue().write(oprot); + for (Map.Entry _iter307 : this.queries.entrySet()) { + oprot.writeI64(_iter307.getKey()); + _iter307.getValue().write(oprot); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/SessionContext.java b/client/src/main/generated/com/vesoft/nebula/meta/SessionContext.java deleted file mode 100644 index 979afd30a..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/SessionContext.java +++ /dev/null @@ -1,839 +0,0 @@ -/** - * 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 SessionContext implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("SessionContext"); - private static final TField SESSION_ID_FIELD_DESC = new TField("session_id", TType.I64, (short)1); - private static final TField USER_NAME_FIELD_DESC = new TField("user_name", TType.STRING, (short)2); - private static final TField TIMEZONE_FIELD_DESC = new TField("timezone", TType.I32, (short)3); - private static final TField SCHEMA_FIELD_DESC = new TField("schema", TType.STRUCT, (short)4); - private static final TField SPACE_NAME_FIELD_DESC = new TField("space_name", TType.STRING, (short)5); - private static final TField PARAM_DICT_FIELD_DESC = new TField("param_dict", TType.MAP, (short)6); - private static final TField PARAM_FALGS_FIELD_DESC = new TField("param_falgs", TType.MAP, (short)7); - private static final TField IS_TERMINATED_FIELD_DESC = new TField("is_terminated", TType.BOOL, (short)8); - - public long session_id; - public byte[] user_name; - public int timezone; - public SessionSchema schema; - public byte[] space_name; - public Map param_dict; - public Map param_falgs; - public boolean is_terminated; - public static final int SESSION_ID = 1; - public static final int USER_NAME = 2; - public static final int TIMEZONE = 3; - public static final int SCHEMA = 4; - public static final int SPACE_NAME = 5; - public static final int PARAM_DICT = 6; - public static final int PARAM_FALGS = 7; - public static final int IS_TERMINATED = 8; - - // isset id assignments - private static final int __SESSION_ID_ISSET_ID = 0; - private static final int __TIMEZONE_ISSET_ID = 1; - private static final int __IS_TERMINATED_ISSET_ID = 2; - private BitSet __isset_bit_vector = new BitSet(3); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SESSION_ID, new FieldMetaData("session_id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(USER_NAME, new FieldMetaData("user_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(TIMEZONE, new FieldMetaData("timezone", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(SCHEMA, new FieldMetaData("schema", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, SessionSchema.class))); - tmpMetaDataMap.put(SPACE_NAME, new FieldMetaData("space_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(PARAM_DICT, new FieldMetaData("param_dict", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new StructMetaData(TType.STRUCT, com.vesoft.nebula.Value.class)))); - tmpMetaDataMap.put(PARAM_FALGS, new FieldMetaData("param_falgs", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new StructMetaData(TType.STRUCT, com.vesoft.nebula.Value.class)))); - tmpMetaDataMap.put(IS_TERMINATED, new FieldMetaData("is_terminated", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(SessionContext.class, metaDataMap); - } - - public SessionContext() { - this.is_terminated = false; - - } - - public SessionContext( - long session_id, - byte[] user_name, - int timezone, - SessionSchema schema, - byte[] space_name, - Map param_dict, - Map param_falgs, - boolean is_terminated) { - this(); - this.session_id = session_id; - setSession_idIsSet(true); - this.user_name = user_name; - this.timezone = timezone; - setTimezoneIsSet(true); - this.schema = schema; - this.space_name = space_name; - this.param_dict = param_dict; - this.param_falgs = param_falgs; - this.is_terminated = is_terminated; - setIs_terminatedIsSet(true); - } - - public static class Builder { - private long session_id; - private byte[] user_name; - private int timezone; - private SessionSchema schema; - private byte[] space_name; - private Map param_dict; - private Map param_falgs; - private boolean is_terminated; - - BitSet __optional_isset = new BitSet(3); - - public Builder() { - } - - public Builder setSession_id(final long session_id) { - this.session_id = session_id; - __optional_isset.set(__SESSION_ID_ISSET_ID, true); - return this; - } - - public Builder setUser_name(final byte[] user_name) { - this.user_name = user_name; - return this; - } - - public Builder setTimezone(final int timezone) { - this.timezone = timezone; - __optional_isset.set(__TIMEZONE_ISSET_ID, true); - return this; - } - - public Builder setSchema(final SessionSchema schema) { - this.schema = schema; - return this; - } - - public Builder setSpace_name(final byte[] space_name) { - this.space_name = space_name; - return this; - } - - public Builder setParam_dict(final Map param_dict) { - this.param_dict = param_dict; - return this; - } - - public Builder setParam_falgs(final Map param_falgs) { - this.param_falgs = param_falgs; - return this; - } - - public Builder setIs_terminated(final boolean is_terminated) { - this.is_terminated = is_terminated; - __optional_isset.set(__IS_TERMINATED_ISSET_ID, true); - return this; - } - - public SessionContext build() { - SessionContext result = new SessionContext(); - if (__optional_isset.get(__SESSION_ID_ISSET_ID)) { - result.setSession_id(this.session_id); - } - result.setUser_name(this.user_name); - if (__optional_isset.get(__TIMEZONE_ISSET_ID)) { - result.setTimezone(this.timezone); - } - result.setSchema(this.schema); - result.setSpace_name(this.space_name); - result.setParam_dict(this.param_dict); - result.setParam_falgs(this.param_falgs); - if (__optional_isset.get(__IS_TERMINATED_ISSET_ID)) { - result.setIs_terminated(this.is_terminated); - } - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public SessionContext(SessionContext other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.session_id = TBaseHelper.deepCopy(other.session_id); - if (other.isSetUser_name()) { - this.user_name = TBaseHelper.deepCopy(other.user_name); - } - this.timezone = TBaseHelper.deepCopy(other.timezone); - if (other.isSetSchema()) { - this.schema = TBaseHelper.deepCopy(other.schema); - } - if (other.isSetSpace_name()) { - this.space_name = TBaseHelper.deepCopy(other.space_name); - } - if (other.isSetParam_dict()) { - this.param_dict = TBaseHelper.deepCopy(other.param_dict); - } - if (other.isSetParam_falgs()) { - this.param_falgs = TBaseHelper.deepCopy(other.param_falgs); - } - this.is_terminated = TBaseHelper.deepCopy(other.is_terminated); - } - - public SessionContext deepCopy() { - return new SessionContext(this); - } - - public long getSession_id() { - return this.session_id; - } - - public SessionContext setSession_id(long session_id) { - this.session_id = session_id; - setSession_idIsSet(true); - return this; - } - - public void unsetSession_id() { - __isset_bit_vector.clear(__SESSION_ID_ISSET_ID); - } - - // Returns true if field session_id is set (has been assigned a value) and false otherwise - public boolean isSetSession_id() { - return __isset_bit_vector.get(__SESSION_ID_ISSET_ID); - } - - public void setSession_idIsSet(boolean __value) { - __isset_bit_vector.set(__SESSION_ID_ISSET_ID, __value); - } - - public byte[] getUser_name() { - return this.user_name; - } - - public SessionContext setUser_name(byte[] user_name) { - this.user_name = user_name; - return this; - } - - public void unsetUser_name() { - this.user_name = null; - } - - // Returns true if field user_name is set (has been assigned a value) and false otherwise - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean __value) { - if (!__value) { - this.user_name = null; - } - } - - public int getTimezone() { - return this.timezone; - } - - public SessionContext setTimezone(int timezone) { - this.timezone = timezone; - setTimezoneIsSet(true); - return this; - } - - public void unsetTimezone() { - __isset_bit_vector.clear(__TIMEZONE_ISSET_ID); - } - - // Returns true if field timezone is set (has been assigned a value) and false otherwise - public boolean isSetTimezone() { - return __isset_bit_vector.get(__TIMEZONE_ISSET_ID); - } - - public void setTimezoneIsSet(boolean __value) { - __isset_bit_vector.set(__TIMEZONE_ISSET_ID, __value); - } - - public SessionSchema getSchema() { - return this.schema; - } - - public SessionContext setSchema(SessionSchema schema) { - this.schema = schema; - return this; - } - - public void unsetSchema() { - this.schema = null; - } - - // Returns true if field schema is set (has been assigned a value) and false otherwise - public boolean isSetSchema() { - return this.schema != null; - } - - public void setSchemaIsSet(boolean __value) { - if (!__value) { - this.schema = null; - } - } - - public byte[] getSpace_name() { - return this.space_name; - } - - public SessionContext setSpace_name(byte[] space_name) { - this.space_name = space_name; - return this; - } - - public void unsetSpace_name() { - this.space_name = null; - } - - // Returns true if field space_name is set (has been assigned a value) and false otherwise - public boolean isSetSpace_name() { - return this.space_name != null; - } - - public void setSpace_nameIsSet(boolean __value) { - if (!__value) { - this.space_name = null; - } - } - - public Map getParam_dict() { - return this.param_dict; - } - - public SessionContext setParam_dict(Map param_dict) { - this.param_dict = param_dict; - return this; - } - - public void unsetParam_dict() { - this.param_dict = null; - } - - // Returns true if field param_dict is set (has been assigned a value) and false otherwise - public boolean isSetParam_dict() { - return this.param_dict != null; - } - - public void setParam_dictIsSet(boolean __value) { - if (!__value) { - this.param_dict = null; - } - } - - public Map getParam_falgs() { - return this.param_falgs; - } - - public SessionContext setParam_falgs(Map param_falgs) { - this.param_falgs = param_falgs; - return this; - } - - public void unsetParam_falgs() { - this.param_falgs = null; - } - - // Returns true if field param_falgs is set (has been assigned a value) and false otherwise - public boolean isSetParam_falgs() { - return this.param_falgs != null; - } - - public void setParam_falgsIsSet(boolean __value) { - if (!__value) { - this.param_falgs = null; - } - } - - public boolean isIs_terminated() { - return this.is_terminated; - } - - public SessionContext setIs_terminated(boolean is_terminated) { - this.is_terminated = is_terminated; - setIs_terminatedIsSet(true); - return this; - } - - public void unsetIs_terminated() { - __isset_bit_vector.clear(__IS_TERMINATED_ISSET_ID); - } - - // Returns true if field is_terminated is set (has been assigned a value) and false otherwise - public boolean isSetIs_terminated() { - return __isset_bit_vector.get(__IS_TERMINATED_ISSET_ID); - } - - public void setIs_terminatedIsSet(boolean __value) { - __isset_bit_vector.set(__IS_TERMINATED_ISSET_ID, __value); - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SESSION_ID: - if (__value == null) { - unsetSession_id(); - } else { - setSession_id((Long)__value); - } - break; - - case USER_NAME: - if (__value == null) { - unsetUser_name(); - } else { - setUser_name((byte[])__value); - } - break; - - case TIMEZONE: - if (__value == null) { - unsetTimezone(); - } else { - setTimezone((Integer)__value); - } - break; - - case SCHEMA: - if (__value == null) { - unsetSchema(); - } else { - setSchema((SessionSchema)__value); - } - break; - - case SPACE_NAME: - if (__value == null) { - unsetSpace_name(); - } else { - setSpace_name((byte[])__value); - } - break; - - case PARAM_DICT: - if (__value == null) { - unsetParam_dict(); - } else { - setParam_dict((Map)__value); - } - break; - - case PARAM_FALGS: - if (__value == null) { - unsetParam_falgs(); - } else { - setParam_falgs((Map)__value); - } - break; - - case IS_TERMINATED: - if (__value == null) { - unsetIs_terminated(); - } else { - setIs_terminated((Boolean)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SESSION_ID: - return new Long(getSession_id()); - - case USER_NAME: - return getUser_name(); - - case TIMEZONE: - return new Integer(getTimezone()); - - case SCHEMA: - return getSchema(); - - case SPACE_NAME: - return getSpace_name(); - - case PARAM_DICT: - return getParam_dict(); - - case PARAM_FALGS: - return getParam_falgs(); - - case IS_TERMINATED: - return new Boolean(isIs_terminated()); - - 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 SessionContext)) - return false; - SessionContext that = (SessionContext)_that; - - if (!TBaseHelper.equalsNobinary(this.session_id, that.session_id)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetUser_name(), that.isSetUser_name(), this.user_name, that.user_name)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.timezone, that.timezone)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetSchema(), that.isSetSchema(), this.schema, that.schema)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetSpace_name(), that.isSetSpace_name(), this.space_name, that.space_name)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetParam_dict(), that.isSetParam_dict(), this.param_dict, that.param_dict)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetParam_falgs(), that.isSetParam_falgs(), this.param_falgs, that.param_falgs)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.is_terminated, that.is_terminated)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {session_id, user_name, timezone, schema, space_name, param_dict, param_falgs, is_terminated}); - } - - 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 SESSION_ID: - if (__field.type == TType.I64) { - this.session_id = iprot.readI64(); - setSession_idIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case USER_NAME: - if (__field.type == TType.STRING) { - this.user_name = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case TIMEZONE: - if (__field.type == TType.I32) { - this.timezone = iprot.readI32(); - setTimezoneIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case SCHEMA: - if (__field.type == TType.STRUCT) { - this.schema = new SessionSchema(); - this.schema.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case SPACE_NAME: - if (__field.type == TType.STRING) { - this.space_name = iprot.readBinary(); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case PARAM_DICT: - if (__field.type == TType.MAP) { - { - TMap _map304 = iprot.readMapBegin(); - this.param_dict = new HashMap(Math.max(0, 2*_map304.size)); - for (int _i305 = 0; - (_map304.size < 0) ? iprot.peekMap() : (_i305 < _map304.size); - ++_i305) - { - byte[] _key306; - com.vesoft.nebula.Value _val307; - _key306 = iprot.readBinary(); - _val307 = new com.vesoft.nebula.Value(); - _val307.read(iprot); - this.param_dict.put(_key306, _val307); - } - iprot.readMapEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case PARAM_FALGS: - if (__field.type == TType.MAP) { - { - TMap _map308 = iprot.readMapBegin(); - this.param_falgs = new HashMap(Math.max(0, 2*_map308.size)); - for (int _i309 = 0; - (_map308.size < 0) ? iprot.peekMap() : (_i309 < _map308.size); - ++_i309) - { - byte[] _key310; - com.vesoft.nebula.Value _val311; - _key310 = iprot.readBinary(); - _val311 = new com.vesoft.nebula.Value(); - _val311.read(iprot); - this.param_falgs.put(_key310, _val311); - } - iprot.readMapEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case IS_TERMINATED: - if (__field.type == TType.BOOL) { - this.is_terminated = iprot.readBool(); - setIs_terminatedIsSet(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(SESSION_ID_FIELD_DESC); - oprot.writeI64(this.session_id); - oprot.writeFieldEnd(); - if (this.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeBinary(this.user_name); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(TIMEZONE_FIELD_DESC); - oprot.writeI32(this.timezone); - oprot.writeFieldEnd(); - if (this.schema != null) { - oprot.writeFieldBegin(SCHEMA_FIELD_DESC); - this.schema.write(oprot); - oprot.writeFieldEnd(); - } - if (this.space_name != null) { - oprot.writeFieldBegin(SPACE_NAME_FIELD_DESC); - oprot.writeBinary(this.space_name); - oprot.writeFieldEnd(); - } - if (this.param_dict != null) { - oprot.writeFieldBegin(PARAM_DICT_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.param_dict.size())); - for (Map.Entry _iter312 : this.param_dict.entrySet()) { - oprot.writeBinary(_iter312.getKey()); - _iter312.getValue().write(oprot); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - if (this.param_falgs != null) { - oprot.writeFieldBegin(PARAM_FALGS_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.param_falgs.size())); - for (Map.Entry _iter313 : this.param_falgs.entrySet()) { - oprot.writeBinary(_iter313.getKey()); - _iter313.getValue().write(oprot); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(IS_TERMINATED_FIELD_DESC); - oprot.writeBool(this.is_terminated); - 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("SessionContext"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("session_id"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getSession_id(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("user_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getUser_name() == null) { - sb.append("null"); - } else { - int __user_name_size = Math.min(this.getUser_name().length, 128); - for (int i = 0; i < __user_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getUser_name()[i]).length() > 1 ? Integer.toHexString(this.getUser_name()[i]).substring(Integer.toHexString(this.getUser_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getUser_name()[i]).toUpperCase()); - } - if (this.getUser_name().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("timezone"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getTimezone(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("schema"); - sb.append(space); - sb.append(":").append(space); - if (this.getSchema() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getSchema(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("space_name"); - sb.append(space); - sb.append(":").append(space); - if (this.getSpace_name() == null) { - sb.append("null"); - } else { - int __space_name_size = Math.min(this.getSpace_name().length, 128); - for (int i = 0; i < __space_name_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getSpace_name()[i]).length() > 1 ? Integer.toHexString(this.getSpace_name()[i]).substring(Integer.toHexString(this.getSpace_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getSpace_name()[i]).toUpperCase()); - } - if (this.getSpace_name().length > 128) sb.append(" ..."); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("param_dict"); - sb.append(space); - sb.append(":").append(space); - if (this.getParam_dict() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getParam_dict(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("param_falgs"); - sb.append(space); - sb.append(":").append(space); - if (this.getParam_falgs() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getParam_falgs(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("is_terminated"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.isIs_terminated(), 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/SessionSchema.java b/client/src/main/generated/com/vesoft/nebula/meta/SessionSchema.java deleted file mode 100644 index 2f4520787..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/SessionSchema.java +++ /dev/null @@ -1,607 +0,0 @@ -/** - * 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 SessionSchema implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("SessionSchema"); - private static final TField CREATE_TIME_FIELD_DESC = new TField("create_time", TType.I64, (short)1); - private static final TField UPDATE_TIME_FIELD_DESC = new TField("update_time", TType.I64, (short)2); - private static final TField GRAPH_ADDR_FIELD_DESC = new TField("graph_addr", TType.STRUCT, (short)3); - private static final TField TIMEZONE_FIELD_DESC = new TField("timezone", TType.I32, (short)4); - private static final TField CLIENT_IP_FIELD_DESC = new TField("client_ip", TType.STRING, (short)5); - - public long create_time; - public long update_time; - public com.vesoft.nebula.HostAddr graph_addr; - public int timezone; - public byte[] client_ip; - public static final int CREATE_TIME = 1; - public static final int UPDATE_TIME = 2; - public static final int GRAPH_ADDR = 3; - public static final int TIMEZONE = 4; - public static final int CLIENT_IP = 5; - - // isset id assignments - private static final int __CREATE_TIME_ISSET_ID = 0; - private static final int __UPDATE_TIME_ISSET_ID = 1; - private static final int __TIMEZONE_ISSET_ID = 2; - private BitSet __isset_bit_vector = new BitSet(3); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(CREATE_TIME, new FieldMetaData("create_time", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(UPDATE_TIME, new FieldMetaData("update_time", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(GRAPH_ADDR, new FieldMetaData("graph_addr", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); - tmpMetaDataMap.put(TIMEZONE, new FieldMetaData("timezone", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(CLIENT_IP, new FieldMetaData("client_ip", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(SessionSchema.class, metaDataMap); - } - - public SessionSchema() { - } - - public SessionSchema( - long create_time, - long update_time, - com.vesoft.nebula.HostAddr graph_addr, - int timezone, - byte[] client_ip) { - this(); - this.create_time = create_time; - setCreate_timeIsSet(true); - this.update_time = update_time; - setUpdate_timeIsSet(true); - this.graph_addr = graph_addr; - this.timezone = timezone; - setTimezoneIsSet(true); - this.client_ip = client_ip; - } - - public static class Builder { - private long create_time; - private long update_time; - private com.vesoft.nebula.HostAddr graph_addr; - private int timezone; - private byte[] client_ip; - - BitSet __optional_isset = new BitSet(3); - - public Builder() { - } - - public Builder setCreate_time(final long create_time) { - this.create_time = create_time; - __optional_isset.set(__CREATE_TIME_ISSET_ID, true); - return this; - } - - public Builder setUpdate_time(final long update_time) { - this.update_time = update_time; - __optional_isset.set(__UPDATE_TIME_ISSET_ID, true); - return this; - } - - public Builder setGraph_addr(final com.vesoft.nebula.HostAddr graph_addr) { - this.graph_addr = graph_addr; - return this; - } - - public Builder setTimezone(final int timezone) { - this.timezone = timezone; - __optional_isset.set(__TIMEZONE_ISSET_ID, true); - return this; - } - - public Builder setClient_ip(final byte[] client_ip) { - this.client_ip = client_ip; - return this; - } - - public SessionSchema build() { - SessionSchema result = new SessionSchema(); - if (__optional_isset.get(__CREATE_TIME_ISSET_ID)) { - result.setCreate_time(this.create_time); - } - if (__optional_isset.get(__UPDATE_TIME_ISSET_ID)) { - result.setUpdate_time(this.update_time); - } - result.setGraph_addr(this.graph_addr); - if (__optional_isset.get(__TIMEZONE_ISSET_ID)) { - result.setTimezone(this.timezone); - } - result.setClient_ip(this.client_ip); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public SessionSchema(SessionSchema other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.create_time = TBaseHelper.deepCopy(other.create_time); - this.update_time = TBaseHelper.deepCopy(other.update_time); - if (other.isSetGraph_addr()) { - this.graph_addr = TBaseHelper.deepCopy(other.graph_addr); - } - this.timezone = TBaseHelper.deepCopy(other.timezone); - if (other.isSetClient_ip()) { - this.client_ip = TBaseHelper.deepCopy(other.client_ip); - } - } - - public SessionSchema deepCopy() { - return new SessionSchema(this); - } - - public long getCreate_time() { - return this.create_time; - } - - public SessionSchema setCreate_time(long create_time) { - this.create_time = create_time; - setCreate_timeIsSet(true); - return this; - } - - public void unsetCreate_time() { - __isset_bit_vector.clear(__CREATE_TIME_ISSET_ID); - } - - // Returns true if field create_time is set (has been assigned a value) and false otherwise - public boolean isSetCreate_time() { - return __isset_bit_vector.get(__CREATE_TIME_ISSET_ID); - } - - public void setCreate_timeIsSet(boolean __value) { - __isset_bit_vector.set(__CREATE_TIME_ISSET_ID, __value); - } - - public long getUpdate_time() { - return this.update_time; - } - - public SessionSchema setUpdate_time(long update_time) { - this.update_time = update_time; - setUpdate_timeIsSet(true); - return this; - } - - public void unsetUpdate_time() { - __isset_bit_vector.clear(__UPDATE_TIME_ISSET_ID); - } - - // Returns true if field update_time is set (has been assigned a value) and false otherwise - public boolean isSetUpdate_time() { - return __isset_bit_vector.get(__UPDATE_TIME_ISSET_ID); - } - - public void setUpdate_timeIsSet(boolean __value) { - __isset_bit_vector.set(__UPDATE_TIME_ISSET_ID, __value); - } - - public com.vesoft.nebula.HostAddr getGraph_addr() { - return this.graph_addr; - } - - public SessionSchema setGraph_addr(com.vesoft.nebula.HostAddr graph_addr) { - this.graph_addr = graph_addr; - return this; - } - - public void unsetGraph_addr() { - this.graph_addr = null; - } - - // Returns true if field graph_addr is set (has been assigned a value) and false otherwise - public boolean isSetGraph_addr() { - return this.graph_addr != null; - } - - public void setGraph_addrIsSet(boolean __value) { - if (!__value) { - this.graph_addr = null; - } - } - - public int getTimezone() { - return this.timezone; - } - - public SessionSchema setTimezone(int timezone) { - this.timezone = timezone; - setTimezoneIsSet(true); - return this; - } - - public void unsetTimezone() { - __isset_bit_vector.clear(__TIMEZONE_ISSET_ID); - } - - // Returns true if field timezone is set (has been assigned a value) and false otherwise - public boolean isSetTimezone() { - return __isset_bit_vector.get(__TIMEZONE_ISSET_ID); - } - - public void setTimezoneIsSet(boolean __value) { - __isset_bit_vector.set(__TIMEZONE_ISSET_ID, __value); - } - - public byte[] getClient_ip() { - return this.client_ip; - } - - public SessionSchema setClient_ip(byte[] client_ip) { - this.client_ip = client_ip; - return this; - } - - public void unsetClient_ip() { - this.client_ip = null; - } - - // Returns true if field client_ip is set (has been assigned a value) and false otherwise - public boolean isSetClient_ip() { - return this.client_ip != null; - } - - public void setClient_ipIsSet(boolean __value) { - if (!__value) { - this.client_ip = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case CREATE_TIME: - if (__value == null) { - unsetCreate_time(); - } else { - setCreate_time((Long)__value); - } - break; - - case UPDATE_TIME: - if (__value == null) { - unsetUpdate_time(); - } else { - setUpdate_time((Long)__value); - } - break; - - case GRAPH_ADDR: - if (__value == null) { - unsetGraph_addr(); - } else { - setGraph_addr((com.vesoft.nebula.HostAddr)__value); - } - break; - - case TIMEZONE: - if (__value == null) { - unsetTimezone(); - } else { - setTimezone((Integer)__value); - } - break; - - case CLIENT_IP: - if (__value == null) { - unsetClient_ip(); - } else { - setClient_ip((byte[])__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case CREATE_TIME: - return new Long(getCreate_time()); - - case UPDATE_TIME: - return new Long(getUpdate_time()); - - case GRAPH_ADDR: - return getGraph_addr(); - - case TIMEZONE: - return new Integer(getTimezone()); - - case CLIENT_IP: - return getClient_ip(); - - 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 SessionSchema)) - return false; - SessionSchema that = (SessionSchema)_that; - - if (!TBaseHelper.equalsNobinary(this.create_time, that.create_time)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.update_time, that.update_time)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetGraph_addr(), that.isSetGraph_addr(), this.graph_addr, that.graph_addr)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.timezone, that.timezone)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetClient_ip(), that.isSetClient_ip(), this.client_ip, that.client_ip)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {create_time, update_time, graph_addr, timezone, client_ip}); - } - - @Override - public int compareTo(SessionSchema other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetCreate_time()).compareTo(other.isSetCreate_time()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(create_time, other.create_time); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetUpdate_time()).compareTo(other.isSetUpdate_time()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(update_time, other.update_time); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetGraph_addr()).compareTo(other.isSetGraph_addr()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(graph_addr, other.graph_addr); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetTimezone()).compareTo(other.isSetTimezone()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(timezone, other.timezone); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetClient_ip()).compareTo(other.isSetClient_ip()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(client_ip, other.client_ip); - 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 CREATE_TIME: - if (__field.type == TType.I64) { - this.create_time = iprot.readI64(); - setCreate_timeIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case UPDATE_TIME: - if (__field.type == TType.I64) { - this.update_time = iprot.readI64(); - setUpdate_timeIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case GRAPH_ADDR: - if (__field.type == TType.STRUCT) { - this.graph_addr = new com.vesoft.nebula.HostAddr(); - this.graph_addr.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case TIMEZONE: - if (__field.type == TType.I32) { - this.timezone = iprot.readI32(); - setTimezoneIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case CLIENT_IP: - if (__field.type == TType.STRING) { - this.client_ip = 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(CREATE_TIME_FIELD_DESC); - oprot.writeI64(this.create_time); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(UPDATE_TIME_FIELD_DESC); - oprot.writeI64(this.update_time); - oprot.writeFieldEnd(); - if (this.graph_addr != null) { - oprot.writeFieldBegin(GRAPH_ADDR_FIELD_DESC); - this.graph_addr.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(TIMEZONE_FIELD_DESC); - oprot.writeI32(this.timezone); - oprot.writeFieldEnd(); - if (this.client_ip != null) { - oprot.writeFieldBegin(CLIENT_IP_FIELD_DESC); - oprot.writeBinary(this.client_ip); - 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("SessionSchema"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("create_time"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getCreate_time(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("update_time"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getUpdate_time(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("graph_addr"); - sb.append(space); - sb.append(":").append(space); - if (this.getGraph_addr() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getGraph_addr(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("timezone"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getTimezone(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("client_ip"); - sb.append(space); - sb.append(":").append(space); - if (this.getClient_ip() == null) { - sb.append("null"); - } else { - int __client_ip_size = Math.min(this.getClient_ip().length, 128); - for (int i = 0; i < __client_ip_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getClient_ip()[i]).length() > 1 ? Integer.toHexString(this.getClient_ip()[i]).substring(Integer.toHexString(this.getClient_ip()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getClient_ip()[i]).toUpperCase()); - } - if (this.getClient_ip().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/meta/SignInFTServiceReq.java b/client/src/main/generated/com/vesoft/nebula/meta/SignInFTServiceReq.java index d06d03b39..5b3572b58 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 _list277 = iprot.readListBegin(); - this.clients = new ArrayList(Math.max(0, _list277.size)); - for (int _i278 = 0; - (_list277.size < 0) ? iprot.peekList() : (_i278 < _list277.size); - ++_i278) + TList _list281 = iprot.readListBegin(); + this.clients = new ArrayList(Math.max(0, _list281.size)); + for (int _i282 = 0; + (_list281.size < 0) ? iprot.peekList() : (_i282 < _list281.size); + ++_i282) { - FTClient _elem279; - _elem279 = new FTClient(); - _elem279.read(iprot); - this.clients.add(_elem279); + FTClient _elem283; + _elem283 = new FTClient(); + _elem283.read(iprot); + this.clients.add(_elem283); } 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 _iter280 : this.clients) { - _iter280.write(oprot); + for (FTClient _iter284 : this.clients) { + _iter284.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 ce9e76060..21ab2eb81 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java @@ -27,12 +27,12 @@ public class SpaceBackupInfo implements TBase, java.io.Serializable, Cloneable, Comparable { private static final TStruct STRUCT_DESC = new TStruct("SpaceBackupInfo"); private static final TField SPACE_FIELD_DESC = new TField("space", TType.STRUCT, (short)1); - private static final TField INFO_FIELD_DESC = new TField("info", TType.LIST, (short)2); + private static final TField HOST_BACKUPS_FIELD_DESC = new TField("host_backups", TType.LIST, (short)2); public SpaceDesc space; - public List info; + public List host_backups; public static final int SPACE = 1; - public static final int INFO = 2; + public static final int HOST_BACKUPS = 2; // isset id assignments @@ -42,9 +42,9 @@ public class SpaceBackupInfo implements TBase, java.io.Serializable, Cloneable, Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SPACE, new FieldMetaData("space", TFieldRequirementType.DEFAULT, new StructMetaData(TType.STRUCT, SpaceDesc.class))); - tmpMetaDataMap.put(INFO, new FieldMetaData("info", TFieldRequirementType.DEFAULT, + tmpMetaDataMap.put(HOST_BACKUPS, new FieldMetaData("host_backups", TFieldRequirementType.DEFAULT, new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, BackupInfo.class)))); + new StructMetaData(TType.STRUCT, HostBackupInfo.class)))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -57,15 +57,15 @@ public SpaceBackupInfo() { public SpaceBackupInfo( SpaceDesc space, - List info) { + List host_backups) { this(); this.space = space; - this.info = info; + this.host_backups = host_backups; } public static class Builder { private SpaceDesc space; - private List info; + private List host_backups; public Builder() { } @@ -75,15 +75,15 @@ public Builder setSpace(final SpaceDesc space) { return this; } - public Builder setInfo(final List info) { - this.info = info; + public Builder setHost_backups(final List host_backups) { + this.host_backups = host_backups; return this; } public SpaceBackupInfo build() { SpaceBackupInfo result = new SpaceBackupInfo(); result.setSpace(this.space); - result.setInfo(this.info); + result.setHost_backups(this.host_backups); return result; } } @@ -99,8 +99,8 @@ public SpaceBackupInfo(SpaceBackupInfo other) { if (other.isSetSpace()) { this.space = TBaseHelper.deepCopy(other.space); } - if (other.isSetInfo()) { - this.info = TBaseHelper.deepCopy(other.info); + if (other.isSetHost_backups()) { + this.host_backups = TBaseHelper.deepCopy(other.host_backups); } } @@ -132,27 +132,27 @@ public void setSpaceIsSet(boolean __value) { } } - public List getInfo() { - return this.info; + public List getHost_backups() { + return this.host_backups; } - public SpaceBackupInfo setInfo(List info) { - this.info = info; + public SpaceBackupInfo setHost_backups(List host_backups) { + this.host_backups = host_backups; return this; } - public void unsetInfo() { - this.info = null; + public void unsetHost_backups() { + this.host_backups = null; } - // Returns true if field info is set (has been assigned a value) and false otherwise - public boolean isSetInfo() { - return this.info != null; + // Returns true if field host_backups is set (has been assigned a value) and false otherwise + public boolean isSetHost_backups() { + return this.host_backups != null; } - public void setInfoIsSet(boolean __value) { + public void setHost_backupsIsSet(boolean __value) { if (!__value) { - this.info = null; + this.host_backups = null; } } @@ -167,11 +167,11 @@ public void setFieldValue(int fieldID, Object __value) { } break; - case INFO: + case HOST_BACKUPS: if (__value == null) { - unsetInfo(); + unsetHost_backups(); } else { - setInfo((List)__value); + setHost_backups((List)__value); } break; @@ -185,8 +185,8 @@ public Object getFieldValue(int fieldID) { case SPACE: return getSpace(); - case INFO: - return getInfo(); + case HOST_BACKUPS: + return getHost_backups(); default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); @@ -205,14 +205,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.isSetSpace(), that.isSetSpace(), this.space, that.space)) { return false; } - if (!TBaseHelper.equalsNobinary(this.isSetInfo(), that.isSetInfo(), this.info, that.info)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetHost_backups(), that.isSetHost_backups(), this.host_backups, that.host_backups)) { return false; } return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space, info}); + return Arrays.deepHashCode(new Object[] {space, host_backups}); } @Override @@ -235,11 +235,11 @@ public int compareTo(SpaceBackupInfo other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetInfo()).compareTo(other.isSetInfo()); + lastComparison = Boolean.valueOf(isSetHost_backups()).compareTo(other.isSetHost_backups()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(info, other.info); + lastComparison = TBaseHelper.compareTo(host_backups, other.host_backups); if (lastComparison != 0) { return lastComparison; } @@ -265,19 +265,19 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case INFO: + case HOST_BACKUPS: if (__field.type == TType.LIST) { { - TList _list252 = iprot.readListBegin(); - this.info = new ArrayList(Math.max(0, _list252.size)); - for (int _i253 = 0; - (_list252.size < 0) ? iprot.peekList() : (_i253 < _list252.size); - ++_i253) + TList _list256 = iprot.readListBegin(); + this.host_backups = new ArrayList(Math.max(0, _list256.size)); + for (int _i257 = 0; + (_list256.size < 0) ? iprot.peekList() : (_i257 < _list256.size); + ++_i257) { - BackupInfo _elem254; - _elem254 = new BackupInfo(); - _elem254.read(iprot); - this.info.add(_elem254); + HostBackupInfo _elem258; + _elem258 = new HostBackupInfo(); + _elem258.read(iprot); + this.host_backups.add(_elem258); } iprot.readListEnd(); } @@ -307,12 +307,12 @@ public void write(TProtocol oprot) throws TException { this.space.write(oprot); oprot.writeFieldEnd(); } - if (this.info != null) { - oprot.writeFieldBegin(INFO_FIELD_DESC); + if (this.host_backups != null) { + oprot.writeFieldBegin(HOST_BACKUPS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.info.size())); - for (BackupInfo _iter255 : this.info) { - _iter255.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, this.host_backups.size())); + for (HostBackupInfo _iter259 : this.host_backups) { + _iter259.write(oprot); } oprot.writeListEnd(); } @@ -350,13 +350,13 @@ public String toString(int indent, boolean prettyPrint) { first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); - sb.append("info"); + sb.append("host_backups"); sb.append(space); sb.append(":").append(space); - if (this.getInfo() == null) { + if (this.getHost_backups() == null) { sb.append("null"); } else { - sb.append(TBaseHelper.toString(this.getInfo(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.getHost_backups(), indent + 1, prettyPrint)); } first = false; sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/StatisItem.java b/client/src/main/generated/com/vesoft/nebula/meta/StatisItem.java deleted file mode 100644 index 850f16215..000000000 --- a/client/src/main/generated/com/vesoft/nebula/meta/StatisItem.java +++ /dev/null @@ -1,927 +0,0 @@ -/** - * 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 StatisItem implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("StatisItem"); - private static final TField TAG_VERTICES_FIELD_DESC = new TField("tag_vertices", TType.MAP, (short)1); - private static final TField EDGES_FIELD_DESC = new TField("edges", TType.MAP, (short)2); - private static final TField SPACE_VERTICES_FIELD_DESC = new TField("space_vertices", TType.I64, (short)3); - private static final TField SPACE_EDGES_FIELD_DESC = new TField("space_edges", TType.I64, (short)4); - private static final TField POSITIVE_PART_CORRELATIVITY_FIELD_DESC = new TField("positive_part_correlativity", TType.MAP, (short)5); - private static final TField NEGATIVE_PART_CORRELATIVITY_FIELD_DESC = new TField("negative_part_correlativity", TType.MAP, (short)6); - private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)7); - - public Map tag_vertices; - public Map edges; - public long space_vertices; - public long space_edges; - public Map> positive_part_correlativity; - public Map> negative_part_correlativity; - /** - * - * @see JobStatus - */ - public JobStatus status; - public static final int TAG_VERTICES = 1; - public static final int EDGES = 2; - public static final int SPACE_VERTICES = 3; - public static final int SPACE_EDGES = 4; - public static final int POSITIVE_PART_CORRELATIVITY = 5; - public static final int NEGATIVE_PART_CORRELATIVITY = 6; - public static final int STATUS = 7; - - // isset id assignments - private static final int __SPACE_VERTICES_ISSET_ID = 0; - private static final int __SPACE_EDGES_ISSET_ID = 1; - private BitSet __isset_bit_vector = new BitSet(2); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(TAG_VERTICES, new FieldMetaData("tag_vertices", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.I64)))); - tmpMetaDataMap.put(EDGES, new FieldMetaData("edges", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.I64)))); - tmpMetaDataMap.put(SPACE_VERTICES, new FieldMetaData("space_vertices", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(SPACE_EDGES, new FieldMetaData("space_edges", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMetaDataMap.put(POSITIVE_PART_CORRELATIVITY, new FieldMetaData("positive_part_correlativity", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.I32), - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Correlativity.class))))); - tmpMetaDataMap.put(NEGATIVE_PART_CORRELATIVITY, new FieldMetaData("negative_part_correlativity", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.I32), - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Correlativity.class))))); - tmpMetaDataMap.put(STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(StatisItem.class, metaDataMap); - } - - public StatisItem() { - } - - public StatisItem( - Map tag_vertices, - Map edges, - long space_vertices, - long space_edges, - Map> positive_part_correlativity, - Map> negative_part_correlativity, - JobStatus status) { - this(); - this.tag_vertices = tag_vertices; - this.edges = edges; - this.space_vertices = space_vertices; - setSpace_verticesIsSet(true); - this.space_edges = space_edges; - setSpace_edgesIsSet(true); - this.positive_part_correlativity = positive_part_correlativity; - this.negative_part_correlativity = negative_part_correlativity; - this.status = status; - } - - public static class Builder { - private Map tag_vertices; - private Map edges; - private long space_vertices; - private long space_edges; - private Map> positive_part_correlativity; - private Map> negative_part_correlativity; - private JobStatus status; - - BitSet __optional_isset = new BitSet(2); - - public Builder() { - } - - public Builder setTag_vertices(final Map tag_vertices) { - this.tag_vertices = tag_vertices; - return this; - } - - public Builder setEdges(final Map edges) { - this.edges = edges; - return this; - } - - public Builder setSpace_vertices(final long space_vertices) { - this.space_vertices = space_vertices; - __optional_isset.set(__SPACE_VERTICES_ISSET_ID, true); - return this; - } - - public Builder setSpace_edges(final long space_edges) { - this.space_edges = space_edges; - __optional_isset.set(__SPACE_EDGES_ISSET_ID, true); - return this; - } - - public Builder setPositive_part_correlativity(final Map> positive_part_correlativity) { - this.positive_part_correlativity = positive_part_correlativity; - return this; - } - - public Builder setNegative_part_correlativity(final Map> negative_part_correlativity) { - this.negative_part_correlativity = negative_part_correlativity; - return this; - } - - public Builder setStatus(final JobStatus status) { - this.status = status; - return this; - } - - public StatisItem build() { - StatisItem result = new StatisItem(); - result.setTag_vertices(this.tag_vertices); - result.setEdges(this.edges); - if (__optional_isset.get(__SPACE_VERTICES_ISSET_ID)) { - result.setSpace_vertices(this.space_vertices); - } - if (__optional_isset.get(__SPACE_EDGES_ISSET_ID)) { - result.setSpace_edges(this.space_edges); - } - result.setPositive_part_correlativity(this.positive_part_correlativity); - result.setNegative_part_correlativity(this.negative_part_correlativity); - result.setStatus(this.status); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public StatisItem(StatisItem other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - if (other.isSetTag_vertices()) { - this.tag_vertices = TBaseHelper.deepCopy(other.tag_vertices); - } - if (other.isSetEdges()) { - this.edges = TBaseHelper.deepCopy(other.edges); - } - this.space_vertices = TBaseHelper.deepCopy(other.space_vertices); - this.space_edges = TBaseHelper.deepCopy(other.space_edges); - if (other.isSetPositive_part_correlativity()) { - this.positive_part_correlativity = TBaseHelper.deepCopy(other.positive_part_correlativity); - } - if (other.isSetNegative_part_correlativity()) { - this.negative_part_correlativity = TBaseHelper.deepCopy(other.negative_part_correlativity); - } - if (other.isSetStatus()) { - this.status = TBaseHelper.deepCopy(other.status); - } - } - - public StatisItem deepCopy() { - return new StatisItem(this); - } - - public Map getTag_vertices() { - return this.tag_vertices; - } - - public StatisItem setTag_vertices(Map tag_vertices) { - this.tag_vertices = tag_vertices; - return this; - } - - public void unsetTag_vertices() { - this.tag_vertices = null; - } - - // Returns true if field tag_vertices is set (has been assigned a value) and false otherwise - public boolean isSetTag_vertices() { - return this.tag_vertices != null; - } - - public void setTag_verticesIsSet(boolean __value) { - if (!__value) { - this.tag_vertices = null; - } - } - - public Map getEdges() { - return this.edges; - } - - public StatisItem setEdges(Map edges) { - this.edges = edges; - return this; - } - - public void unsetEdges() { - this.edges = null; - } - - // Returns true if field edges is set (has been assigned a value) and false otherwise - public boolean isSetEdges() { - return this.edges != null; - } - - public void setEdgesIsSet(boolean __value) { - if (!__value) { - this.edges = null; - } - } - - public long getSpace_vertices() { - return this.space_vertices; - } - - public StatisItem setSpace_vertices(long space_vertices) { - this.space_vertices = space_vertices; - setSpace_verticesIsSet(true); - return this; - } - - public void unsetSpace_vertices() { - __isset_bit_vector.clear(__SPACE_VERTICES_ISSET_ID); - } - - // Returns true if field space_vertices is set (has been assigned a value) and false otherwise - public boolean isSetSpace_vertices() { - return __isset_bit_vector.get(__SPACE_VERTICES_ISSET_ID); - } - - public void setSpace_verticesIsSet(boolean __value) { - __isset_bit_vector.set(__SPACE_VERTICES_ISSET_ID, __value); - } - - public long getSpace_edges() { - return this.space_edges; - } - - public StatisItem setSpace_edges(long space_edges) { - this.space_edges = space_edges; - setSpace_edgesIsSet(true); - return this; - } - - public void unsetSpace_edges() { - __isset_bit_vector.clear(__SPACE_EDGES_ISSET_ID); - } - - // Returns true if field space_edges is set (has been assigned a value) and false otherwise - public boolean isSetSpace_edges() { - return __isset_bit_vector.get(__SPACE_EDGES_ISSET_ID); - } - - public void setSpace_edgesIsSet(boolean __value) { - __isset_bit_vector.set(__SPACE_EDGES_ISSET_ID, __value); - } - - public Map> getPositive_part_correlativity() { - return this.positive_part_correlativity; - } - - public StatisItem setPositive_part_correlativity(Map> positive_part_correlativity) { - this.positive_part_correlativity = positive_part_correlativity; - return this; - } - - public void unsetPositive_part_correlativity() { - this.positive_part_correlativity = null; - } - - // Returns true if field positive_part_correlativity is set (has been assigned a value) and false otherwise - public boolean isSetPositive_part_correlativity() { - return this.positive_part_correlativity != null; - } - - public void setPositive_part_correlativityIsSet(boolean __value) { - if (!__value) { - this.positive_part_correlativity = null; - } - } - - public Map> getNegative_part_correlativity() { - return this.negative_part_correlativity; - } - - public StatisItem setNegative_part_correlativity(Map> negative_part_correlativity) { - this.negative_part_correlativity = negative_part_correlativity; - return this; - } - - public void unsetNegative_part_correlativity() { - this.negative_part_correlativity = null; - } - - // Returns true if field negative_part_correlativity is set (has been assigned a value) and false otherwise - public boolean isSetNegative_part_correlativity() { - return this.negative_part_correlativity != null; - } - - public void setNegative_part_correlativityIsSet(boolean __value) { - if (!__value) { - this.negative_part_correlativity = null; - } - } - - /** - * - * @see JobStatus - */ - public JobStatus getStatus() { - return this.status; - } - - /** - * - * @see JobStatus - */ - public StatisItem setStatus(JobStatus 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; - } - } - - @SuppressWarnings("unchecked") - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case TAG_VERTICES: - if (__value == null) { - unsetTag_vertices(); - } else { - setTag_vertices((Map)__value); - } - break; - - case EDGES: - if (__value == null) { - unsetEdges(); - } else { - setEdges((Map)__value); - } - break; - - case SPACE_VERTICES: - if (__value == null) { - unsetSpace_vertices(); - } else { - setSpace_vertices((Long)__value); - } - break; - - case SPACE_EDGES: - if (__value == null) { - unsetSpace_edges(); - } else { - setSpace_edges((Long)__value); - } - break; - - case POSITIVE_PART_CORRELATIVITY: - if (__value == null) { - unsetPositive_part_correlativity(); - } else { - setPositive_part_correlativity((Map>)__value); - } - break; - - case NEGATIVE_PART_CORRELATIVITY: - if (__value == null) { - unsetNegative_part_correlativity(); - } else { - setNegative_part_correlativity((Map>)__value); - } - break; - - case STATUS: - if (__value == null) { - unsetStatus(); - } else { - setStatus((JobStatus)__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case TAG_VERTICES: - return getTag_vertices(); - - case EDGES: - return getEdges(); - - case SPACE_VERTICES: - return new Long(getSpace_vertices()); - - case SPACE_EDGES: - return new Long(getSpace_edges()); - - case POSITIVE_PART_CORRELATIVITY: - return getPositive_part_correlativity(); - - case NEGATIVE_PART_CORRELATIVITY: - return getNegative_part_correlativity(); - - 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 StatisItem)) - return false; - StatisItem that = (StatisItem)_that; - - if (!TBaseHelper.equalsSlow(this.isSetTag_vertices(), that.isSetTag_vertices(), this.tag_vertices, that.tag_vertices)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetEdges(), that.isSetEdges(), this.edges, that.edges)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.space_vertices, that.space_vertices)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.space_edges, that.space_edges)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetPositive_part_correlativity(), that.isSetPositive_part_correlativity(), this.positive_part_correlativity, that.positive_part_correlativity)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetNegative_part_correlativity(), that.isSetNegative_part_correlativity(), this.negative_part_correlativity, that.negative_part_correlativity)) { 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[] {tag_vertices, edges, space_vertices, space_edges, positive_part_correlativity, negative_part_correlativity, status}); - } - - @Override - public int compareTo(StatisItem other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetTag_vertices()).compareTo(other.isSetTag_vertices()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(tag_vertices, other.tag_vertices); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetEdges()).compareTo(other.isSetEdges()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(edges, other.edges); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetSpace_vertices()).compareTo(other.isSetSpace_vertices()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(space_vertices, other.space_vertices); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetSpace_edges()).compareTo(other.isSetSpace_edges()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(space_edges, other.space_edges); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetPositive_part_correlativity()).compareTo(other.isSetPositive_part_correlativity()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(positive_part_correlativity, other.positive_part_correlativity); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetNegative_part_correlativity()).compareTo(other.isSetNegative_part_correlativity()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(negative_part_correlativity, other.negative_part_correlativity); - 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 TAG_VERTICES: - if (__field.type == TType.MAP) { - { - TMap _map42 = iprot.readMapBegin(); - this.tag_vertices = new HashMap(Math.max(0, 2*_map42.size)); - for (int _i43 = 0; - (_map42.size < 0) ? iprot.peekMap() : (_i43 < _map42.size); - ++_i43) - { - byte[] _key44; - long _val45; - _key44 = iprot.readBinary(); - _val45 = iprot.readI64(); - this.tag_vertices.put(_key44, _val45); - } - iprot.readMapEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case EDGES: - if (__field.type == TType.MAP) { - { - TMap _map46 = iprot.readMapBegin(); - this.edges = new HashMap(Math.max(0, 2*_map46.size)); - for (int _i47 = 0; - (_map46.size < 0) ? iprot.peekMap() : (_i47 < _map46.size); - ++_i47) - { - byte[] _key48; - long _val49; - _key48 = iprot.readBinary(); - _val49 = iprot.readI64(); - this.edges.put(_key48, _val49); - } - iprot.readMapEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case SPACE_VERTICES: - if (__field.type == TType.I64) { - this.space_vertices = iprot.readI64(); - setSpace_verticesIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case SPACE_EDGES: - if (__field.type == TType.I64) { - this.space_edges = iprot.readI64(); - setSpace_edgesIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case POSITIVE_PART_CORRELATIVITY: - if (__field.type == TType.MAP) { - { - TMap _map50 = iprot.readMapBegin(); - this.positive_part_correlativity = new HashMap>(Math.max(0, 2*_map50.size)); - for (int _i51 = 0; - (_map50.size < 0) ? iprot.peekMap() : (_i51 < _map50.size); - ++_i51) - { - int _key52; - List _val53; - _key52 = iprot.readI32(); - { - TList _list54 = iprot.readListBegin(); - _val53 = new ArrayList(Math.max(0, _list54.size)); - for (int _i55 = 0; - (_list54.size < 0) ? iprot.peekList() : (_i55 < _list54.size); - ++_i55) - { - Correlativity _elem56; - _elem56 = new Correlativity(); - _elem56.read(iprot); - _val53.add(_elem56); - } - iprot.readListEnd(); - } - this.positive_part_correlativity.put(_key52, _val53); - } - iprot.readMapEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case NEGATIVE_PART_CORRELATIVITY: - if (__field.type == TType.MAP) { - { - TMap _map57 = iprot.readMapBegin(); - this.negative_part_correlativity = new HashMap>(Math.max(0, 2*_map57.size)); - for (int _i58 = 0; - (_map57.size < 0) ? iprot.peekMap() : (_i58 < _map57.size); - ++_i58) - { - int _key59; - List _val60; - _key59 = iprot.readI32(); - { - TList _list61 = iprot.readListBegin(); - _val60 = new ArrayList(Math.max(0, _list61.size)); - for (int _i62 = 0; - (_list61.size < 0) ? iprot.peekList() : (_i62 < _list61.size); - ++_i62) - { - Correlativity _elem63; - _elem63 = new Correlativity(); - _elem63.read(iprot); - _val60.add(_elem63); - } - iprot.readListEnd(); - } - this.negative_part_correlativity.put(_key59, _val60); - } - iprot.readMapEnd(); - } - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case STATUS: - if (__field.type == TType.I32) { - this.status = JobStatus.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.tag_vertices != null) { - oprot.writeFieldBegin(TAG_VERTICES_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.STRING, TType.I64, this.tag_vertices.size())); - for (Map.Entry _iter64 : this.tag_vertices.entrySet()) { - oprot.writeBinary(_iter64.getKey()); - oprot.writeI64(_iter64.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - if (this.edges != null) { - oprot.writeFieldBegin(EDGES_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.STRING, TType.I64, this.edges.size())); - for (Map.Entry _iter65 : this.edges.entrySet()) { - oprot.writeBinary(_iter65.getKey()); - oprot.writeI64(_iter65.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(SPACE_VERTICES_FIELD_DESC); - oprot.writeI64(this.space_vertices); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(SPACE_EDGES_FIELD_DESC); - oprot.writeI64(this.space_edges); - oprot.writeFieldEnd(); - if (this.positive_part_correlativity != null) { - oprot.writeFieldBegin(POSITIVE_PART_CORRELATIVITY_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.positive_part_correlativity.size())); - for (Map.Entry> _iter66 : this.positive_part_correlativity.entrySet()) { - oprot.writeI32(_iter66.getKey()); - { - oprot.writeListBegin(new TList(TType.STRUCT, _iter66.getValue().size())); - for (Correlativity _iter67 : _iter66.getValue()) { - _iter67.write(oprot); - } - oprot.writeListEnd(); - } - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - if (this.negative_part_correlativity != null) { - oprot.writeFieldBegin(NEGATIVE_PART_CORRELATIVITY_FIELD_DESC); - { - oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.negative_part_correlativity.size())); - for (Map.Entry> _iter68 : this.negative_part_correlativity.entrySet()) { - oprot.writeI32(_iter68.getKey()); - { - oprot.writeListBegin(new TList(TType.STRUCT, _iter68.getValue().size())); - for (Correlativity _iter69 : _iter68.getValue()) { - _iter69.write(oprot); - } - oprot.writeListEnd(); - } - } - oprot.writeMapEnd(); - } - 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("StatisItem"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("tag_vertices"); - sb.append(space); - sb.append(":").append(space); - if (this.getTag_vertices() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getTag_vertices(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("edges"); - sb.append(space); - sb.append(":").append(space); - if (this.getEdges() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getEdges(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("space_vertices"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getSpace_vertices(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("space_edges"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getSpace_edges(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("positive_part_correlativity"); - sb.append(space); - sb.append(":").append(space); - if (this.getPositive_part_correlativity() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getPositive_part_correlativity(), indent + 1, prettyPrint)); - } - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("negative_part_correlativity"); - sb.append(space); - sb.append(":").append(space); - if (this.getNegative_part_correlativity() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getNegative_part_correlativity(), 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/com/vesoft/nebula/meta/UpdateSessionsReq.java b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsReq.java index 53d108957..6b5e25131 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 _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 _list308 = iprot.readListBegin(); + this.sessions = new ArrayList(Math.max(0, _list308.size)); + for (int _i309 = 0; + (_list308.size < 0) ? iprot.peekList() : (_i309 < _list308.size); + ++_i309) { - Session _elem306; - _elem306 = new Session(); - _elem306.read(iprot); - this.sessions.add(_elem306); + Session _elem310; + _elem310 = new Session(); + _elem310.read(iprot); + this.sessions.add(_elem310); } 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 _iter307 : this.sessions) { - _iter307.write(oprot); + for (Session _iter311 : this.sessions) { + _iter311.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 f39ae4113..fb74f8e51 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 _map308 = iprot.readMapBegin(); - this.killed_queries = new HashMap>(Math.max(0, 2*_map308.size)); - for (int _i309 = 0; - (_map308.size < 0) ? iprot.peekMap() : (_i309 < _map308.size); - ++_i309) + TMap _map312 = iprot.readMapBegin(); + this.killed_queries = new HashMap>(Math.max(0, 2*_map312.size)); + for (int _i313 = 0; + (_map312.size < 0) ? iprot.peekMap() : (_i313 < _map312.size); + ++_i313) { - long _key310; - Map _val311; - _key310 = iprot.readI64(); + long _key314; + Map _val315; + _key314 = iprot.readI64(); { - TMap _map312 = iprot.readMapBegin(); - _val311 = new HashMap(Math.max(0, 2*_map312.size)); - for (int _i313 = 0; - (_map312.size < 0) ? iprot.peekMap() : (_i313 < _map312.size); - ++_i313) + TMap _map316 = iprot.readMapBegin(); + _val315 = new HashMap(Math.max(0, 2*_map316.size)); + for (int _i317 = 0; + (_map316.size < 0) ? iprot.peekMap() : (_i317 < _map316.size); + ++_i317) { - long _key314; - QueryDesc _val315; - _key314 = iprot.readI64(); - _val315 = new QueryDesc(); - _val315.read(iprot); - _val311.put(_key314, _val315); + long _key318; + QueryDesc _val319; + _key318 = iprot.readI64(); + _val319 = new QueryDesc(); + _val319.read(iprot); + _val315.put(_key318, _val319); } iprot.readMapEnd(); } - this.killed_queries.put(_key310, _val311); + this.killed_queries.put(_key314, _val315); } 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> _iter316 : this.killed_queries.entrySet()) { - oprot.writeI64(_iter316.getKey()); + for (Map.Entry> _iter320 : this.killed_queries.entrySet()) { + oprot.writeI64(_iter320.getKey()); { - oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, _iter316.getValue().size())); - for (Map.Entry _iter317 : _iter316.getValue().entrySet()) { - oprot.writeI64(_iter317.getKey()); - _iter317.getValue().write(oprot); + oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, _iter320.getValue().size())); + for (Map.Entry _iter321 : _iter320.getValue().entrySet()) { + oprot.writeI64(_iter321.getKey()); + _iter321.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 f221c07af..79cb6dc9d 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 _list232 = iprot.readListBegin(); - this.nodes = new ArrayList(Math.max(0, _list232.size)); - for (int _i233 = 0; - (_list232.size < 0) ? iprot.peekList() : (_i233 < _list232.size); - ++_i233) + TList _list236 = iprot.readListBegin(); + this.nodes = new ArrayList(Math.max(0, _list236.size)); + for (int _i237 = 0; + (_list236.size < 0) ? iprot.peekList() : (_i237 < _list236.size); + ++_i237) { - com.vesoft.nebula.HostAddr _elem234; - _elem234 = new com.vesoft.nebula.HostAddr(); - _elem234.read(iprot); - this.nodes.add(_elem234); + com.vesoft.nebula.HostAddr _elem238; + _elem238 = new com.vesoft.nebula.HostAddr(); + _elem238.read(iprot); + this.nodes.add(_elem238); } 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 _iter235 : this.nodes) { - _iter235.write(oprot); + for (com.vesoft.nebula.HostAddr _iter239 : this.nodes) { + _iter239.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/BlockingSignRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/BlockingSignRequest.java index 08acac096..2025b5fdd 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/BlockingSignRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/BlockingSignRequest.java @@ -26,28 +26,27 @@ @SuppressWarnings({ "unused", "serial" }) public class BlockingSignRequest implements TBase, java.io.Serializable, Cloneable, Comparable { private static final TStruct STRUCT_DESC = new TStruct("BlockingSignRequest"); - private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); + private static final TField SPACE_IDS_FIELD_DESC = new TField("space_ids", TType.LIST, (short)1); private static final TField SIGN_FIELD_DESC = new TField("sign", TType.I32, (short)2); - public int space_id; + public List space_ids; /** * * @see EngineSignType */ public EngineSignType sign; - public static final int SPACE_ID = 1; + public static final int SPACE_IDS = 1; public static final int SIGN = 2; // isset id assignments - private static final int __SPACE_ID_ISSET_ID = 0; - private BitSet __isset_bit_vector = new BitSet(1); public static final Map metaDataMap; static { Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SPACE_ID, new FieldMetaData("space_id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(SPACE_IDS, new FieldMetaData("space_ids", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new FieldValueMetaData(TType.I32)))); tmpMetaDataMap.put(SIGN, new FieldMetaData("sign", TFieldRequirementType.REQUIRED, new FieldValueMetaData(TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); @@ -67,26 +66,22 @@ public BlockingSignRequest( } public BlockingSignRequest( - int space_id, + List space_ids, EngineSignType sign) { this(); - this.space_id = space_id; - setSpace_idIsSet(true); + this.space_ids = space_ids; this.sign = sign; } public static class Builder { - private int space_id; + private List space_ids; private EngineSignType sign; - BitSet __optional_isset = new BitSet(1); - public Builder() { } - public Builder setSpace_id(final int space_id) { - this.space_id = space_id; - __optional_isset.set(__SPACE_ID_ISSET_ID, true); + public Builder setSpace_ids(final List space_ids) { + this.space_ids = space_ids; return this; } @@ -97,9 +92,7 @@ public Builder setSign(final EngineSignType sign) { public BlockingSignRequest build() { BlockingSignRequest result = new BlockingSignRequest(); - if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { - result.setSpace_id(this.space_id); - } + result.setSpace_ids(this.space_ids); result.setSign(this.sign); return result; } @@ -113,9 +106,9 @@ public static Builder builder() { * Performs a deep copy on other. */ public BlockingSignRequest(BlockingSignRequest other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetSpace_ids()) { + this.space_ids = TBaseHelper.deepCopy(other.space_ids); + } if (other.isSetSign()) { this.sign = TBaseHelper.deepCopy(other.sign); } @@ -125,27 +118,28 @@ public BlockingSignRequest deepCopy() { return new BlockingSignRequest(this); } - public int getSpace_id() { - return this.space_id; + public List getSpace_ids() { + return this.space_ids; } - public BlockingSignRequest setSpace_id(int space_id) { - this.space_id = space_id; - setSpace_idIsSet(true); + public BlockingSignRequest setSpace_ids(List space_ids) { + this.space_ids = space_ids; return this; } - public void unsetSpace_id() { - __isset_bit_vector.clear(__SPACE_ID_ISSET_ID); + public void unsetSpace_ids() { + this.space_ids = null; } - // Returns true if field space_id is set (has been assigned a value) and false otherwise - public boolean isSetSpace_id() { - return __isset_bit_vector.get(__SPACE_ID_ISSET_ID); + // Returns true if field space_ids is set (has been assigned a value) and false otherwise + public boolean isSetSpace_ids() { + return this.space_ids != null; } - public void setSpace_idIsSet(boolean __value) { - __isset_bit_vector.set(__SPACE_ID_ISSET_ID, __value); + public void setSpace_idsIsSet(boolean __value) { + if (!__value) { + this.space_ids = null; + } } /** @@ -180,13 +174,14 @@ public void setSignIsSet(boolean __value) { } } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { - case SPACE_ID: + case SPACE_IDS: if (__value == null) { - unsetSpace_id(); + unsetSpace_ids(); } else { - setSpace_id((Integer)__value); + setSpace_ids((List)__value); } break; @@ -205,8 +200,8 @@ public void setFieldValue(int fieldID, Object __value) { public Object getFieldValue(int fieldID) { switch (fieldID) { - case SPACE_ID: - return new Integer(getSpace_id()); + case SPACE_IDS: + return getSpace_ids(); case SIGN: return getSign(); @@ -226,7 +221,7 @@ public boolean equals(Object _that) { return false; BlockingSignRequest that = (BlockingSignRequest)_that; - if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetSpace_ids(), that.isSetSpace_ids(), this.space_ids, that.space_ids)) { return false; } if (!TBaseHelper.equalsNobinary(this.isSetSign(), that.isSetSign(), this.sign, that.sign)) { return false; } @@ -235,7 +230,7 @@ public boolean equals(Object _that) { @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, sign}); + return Arrays.deepHashCode(new Object[] {space_ids, sign}); } @Override @@ -250,11 +245,11 @@ public int compareTo(BlockingSignRequest other) { } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSpace_id()).compareTo(other.isSetSpace_id()); + lastComparison = Boolean.valueOf(isSetSpace_ids()).compareTo(other.isSetSpace_ids()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(space_id, other.space_id); + lastComparison = TBaseHelper.compareTo(space_ids, other.space_ids); if (lastComparison != 0) { return lastComparison; } @@ -280,10 +275,21 @@ public void read(TProtocol iprot) throws TException { } switch (__field.id) { - case SPACE_ID: - if (__field.type == TType.I32) { - this.space_id = iprot.readI32(); - setSpace_idIsSet(true); + case SPACE_IDS: + if (__field.type == TType.LIST) { + { + TList _list264 = iprot.readListBegin(); + this.space_ids = new ArrayList(Math.max(0, _list264.size)); + for (int _i265 = 0; + (_list264.size < 0) ? iprot.peekList() : (_i265 < _list264.size); + ++_i265) + { + int _elem266; + _elem266 = iprot.readI32(); + this.space_ids.add(_elem266); + } + iprot.readListEnd(); + } } else { TProtocolUtil.skip(iprot, __field.type); } @@ -312,9 +318,17 @@ public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); - oprot.writeI32(this.space_id); - oprot.writeFieldEnd(); + if (this.space_ids != null) { + oprot.writeFieldBegin(SPACE_IDS_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.I32, this.space_ids.size())); + for (int _iter267 : this.space_ids) { + oprot.writeI32(_iter267); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (this.sign != null) { oprot.writeFieldBegin(SIGN_FIELD_DESC); oprot.writeI32(this.sign == null ? 0 : this.sign.getValue()); @@ -341,10 +355,14 @@ public String toString(int indent, boolean prettyPrint) { boolean first = true; sb.append(indentStr); - sb.append("space_id"); + sb.append("space_ids"); sb.append(space); sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getSpace_id(), indent + 1, prettyPrint)); + if (this.getSpace_ids() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSpace_ids(), indent + 1, prettyPrint)); + } first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); 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 35d79c774..69fc61b04 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 _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) + TMap _map303 = iprot.readMapBegin(); + this.parts = new HashMap>(Math.max(0, 2*_map303.size)); + for (int _i304 = 0; + (_map303.size < 0) ? iprot.peekMap() : (_i304 < _map303.size); + ++_i304) { - int _key293; - List _val294; - _key293 = iprot.readI32(); + int _key305; + List _val306; + _key305 = iprot.readI32(); { - 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) + TList _list307 = iprot.readListBegin(); + _val306 = new ArrayList(Math.max(0, _list307.size)); + for (int _i308 = 0; + (_list307.size < 0) ? iprot.peekList() : (_i308 < _list307.size); + ++_i308) { - NewEdge _elem297; - _elem297 = new NewEdge(); - _elem297.read(iprot); - _val294.add(_elem297); + NewEdge _elem309; + _elem309 = new NewEdge(); + _elem309.read(iprot); + _val306.add(_elem309); } iprot.readListEnd(); } - this.parts.put(_key293, _val294); + this.parts.put(_key305, _val306); } iprot.readMapEnd(); } @@ -520,15 +520,15 @@ public void read(TProtocol iprot) throws TException { case PROP_NAMES: if (__field.type == TType.LIST) { { - 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) + TList _list310 = iprot.readListBegin(); + this.prop_names = new ArrayList(Math.max(0, _list310.size)); + for (int _i311 = 0; + (_list310.size < 0) ? iprot.peekList() : (_i311 < _list310.size); + ++_i311) { - byte[] _elem300; - _elem300 = iprot.readBinary(); - this.prop_names.add(_elem300); + byte[] _elem312; + _elem312 = iprot.readBinary(); + this.prop_names.add(_elem312); } 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> _iter301 : this.parts.entrySet()) { - oprot.writeI32(_iter301.getKey()); + for (Map.Entry> _iter313 : this.parts.entrySet()) { + oprot.writeI32(_iter313.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter301.getValue().size())); - for (NewEdge _iter302 : _iter301.getValue()) { - _iter302.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, _iter313.getValue().size())); + for (NewEdge _iter314 : _iter313.getValue()) { + _iter314.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[] _iter303 : this.prop_names) { - oprot.writeBinary(_iter303); + for (byte[] _iter315 : this.prop_names) { + oprot.writeBinary(_iter315); } 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 b02f2c92b..59e1faf9c 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 _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) + TList _list316 = iprot.readListBegin(); + this.parts = new ArrayList(Math.max(0, _list316.size)); + for (int _i317 = 0; + (_list316.size < 0) ? iprot.peekList() : (_i317 < _list316.size); + ++_i317) { - int _elem306; - _elem306 = iprot.readI32(); - this.parts.add(_elem306); + int _elem318; + _elem318 = iprot.readI32(); + this.parts.add(_elem318); } 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 _iter307 : this.parts) { - oprot.writeI32(_iter307); + for (int _iter319 : this.parts) { + oprot.writeI32(_iter319); } 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 9cb193b9b..7f045d702 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 _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) + TList _list277 = iprot.readListBegin(); + this.peers = new ArrayList(Math.max(0, _list277.size)); + for (int _i278 = 0; + (_list277.size < 0) ? iprot.peekList() : (_i278 < _list277.size); + ++_i278) { - com.vesoft.nebula.HostAddr _elem267; - _elem267 = new com.vesoft.nebula.HostAddr(); - _elem267.read(iprot); - this.peers.add(_elem267); + com.vesoft.nebula.HostAddr _elem279; + _elem279 = new com.vesoft.nebula.HostAddr(); + _elem279.read(iprot); + this.peers.add(_elem279); } 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 _iter268 : this.peers) { - _iter268.write(oprot); + for (com.vesoft.nebula.HostAddr _iter280 : this.peers) { + _iter280.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/CreateCPRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/CreateCPRequest.java index 2fa3f399d..527116345 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/CreateCPRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/CreateCPRequest.java @@ -26,24 +26,23 @@ @SuppressWarnings({ "unused", "serial" }) public class CreateCPRequest implements TBase, java.io.Serializable, Cloneable, Comparable { private static final TStruct STRUCT_DESC = new TStruct("CreateCPRequest"); - private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); + private static final TField SPACE_IDS_FIELD_DESC = new TField("space_ids", TType.LIST, (short)1); private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)2); - public int space_id; + public List space_ids; public byte[] name; - public static final int SPACE_ID = 1; + public static final int SPACE_IDS = 1; public static final int NAME = 2; // isset id assignments - private static final int __SPACE_ID_ISSET_ID = 0; - private BitSet __isset_bit_vector = new BitSet(1); public static final Map metaDataMap; static { Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SPACE_ID, new FieldMetaData("space_id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(SPACE_IDS, new FieldMetaData("space_ids", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new FieldValueMetaData(TType.I32)))); tmpMetaDataMap.put(NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); @@ -57,26 +56,22 @@ public CreateCPRequest() { } public CreateCPRequest( - int space_id, + List space_ids, byte[] name) { this(); - this.space_id = space_id; - setSpace_idIsSet(true); + this.space_ids = space_ids; this.name = name; } public static class Builder { - private int space_id; + private List space_ids; private byte[] name; - BitSet __optional_isset = new BitSet(1); - public Builder() { } - public Builder setSpace_id(final int space_id) { - this.space_id = space_id; - __optional_isset.set(__SPACE_ID_ISSET_ID, true); + public Builder setSpace_ids(final List space_ids) { + this.space_ids = space_ids; return this; } @@ -87,9 +82,7 @@ public Builder setName(final byte[] name) { public CreateCPRequest build() { CreateCPRequest result = new CreateCPRequest(); - if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { - result.setSpace_id(this.space_id); - } + result.setSpace_ids(this.space_ids); result.setName(this.name); return result; } @@ -103,9 +96,9 @@ public static Builder builder() { * Performs a deep copy on other. */ public CreateCPRequest(CreateCPRequest other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetSpace_ids()) { + this.space_ids = TBaseHelper.deepCopy(other.space_ids); + } if (other.isSetName()) { this.name = TBaseHelper.deepCopy(other.name); } @@ -115,27 +108,28 @@ public CreateCPRequest deepCopy() { return new CreateCPRequest(this); } - public int getSpace_id() { - return this.space_id; + public List getSpace_ids() { + return this.space_ids; } - public CreateCPRequest setSpace_id(int space_id) { - this.space_id = space_id; - setSpace_idIsSet(true); + public CreateCPRequest setSpace_ids(List space_ids) { + this.space_ids = space_ids; return this; } - public void unsetSpace_id() { - __isset_bit_vector.clear(__SPACE_ID_ISSET_ID); + public void unsetSpace_ids() { + this.space_ids = null; } - // Returns true if field space_id is set (has been assigned a value) and false otherwise - public boolean isSetSpace_id() { - return __isset_bit_vector.get(__SPACE_ID_ISSET_ID); + // Returns true if field space_ids is set (has been assigned a value) and false otherwise + public boolean isSetSpace_ids() { + return this.space_ids != null; } - public void setSpace_idIsSet(boolean __value) { - __isset_bit_vector.set(__SPACE_ID_ISSET_ID, __value); + public void setSpace_idsIsSet(boolean __value) { + if (!__value) { + this.space_ids = null; + } } public byte[] getName() { @@ -162,13 +156,14 @@ public void setNameIsSet(boolean __value) { } } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { - case SPACE_ID: + case SPACE_IDS: if (__value == null) { - unsetSpace_id(); + unsetSpace_ids(); } else { - setSpace_id((Integer)__value); + setSpace_ids((List)__value); } break; @@ -187,8 +182,8 @@ public void setFieldValue(int fieldID, Object __value) { public Object getFieldValue(int fieldID) { switch (fieldID) { - case SPACE_ID: - return new Integer(getSpace_id()); + case SPACE_IDS: + return getSpace_ids(); case NAME: return getName(); @@ -208,7 +203,7 @@ public boolean equals(Object _that) { return false; CreateCPRequest that = (CreateCPRequest)_that; - if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetSpace_ids(), that.isSetSpace_ids(), this.space_ids, that.space_ids)) { return false; } if (!TBaseHelper.equalsSlow(this.isSetName(), that.isSetName(), this.name, that.name)) { return false; } @@ -217,7 +212,7 @@ public boolean equals(Object _that) { @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, name}); + return Arrays.deepHashCode(new Object[] {space_ids, name}); } @Override @@ -232,11 +227,11 @@ public int compareTo(CreateCPRequest other) { } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSpace_id()).compareTo(other.isSetSpace_id()); + lastComparison = Boolean.valueOf(isSetSpace_ids()).compareTo(other.isSetSpace_ids()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(space_id, other.space_id); + lastComparison = TBaseHelper.compareTo(space_ids, other.space_ids); if (lastComparison != 0) { return lastComparison; } @@ -262,10 +257,21 @@ public void read(TProtocol iprot) throws TException { } switch (__field.id) { - case SPACE_ID: - if (__field.type == TType.I32) { - this.space_id = iprot.readI32(); - setSpace_idIsSet(true); + case SPACE_IDS: + if (__field.type == TType.LIST) { + { + TList _list256 = iprot.readListBegin(); + this.space_ids = new ArrayList(Math.max(0, _list256.size)); + for (int _i257 = 0; + (_list256.size < 0) ? iprot.peekList() : (_i257 < _list256.size); + ++_i257) + { + int _elem258; + _elem258 = iprot.readI32(); + this.space_ids.add(_elem258); + } + iprot.readListEnd(); + } } else { TProtocolUtil.skip(iprot, __field.type); } @@ -294,9 +300,17 @@ public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); - oprot.writeI32(this.space_id); - oprot.writeFieldEnd(); + if (this.space_ids != null) { + oprot.writeFieldBegin(SPACE_IDS_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.I32, this.space_ids.size())); + for (int _iter259 : this.space_ids) { + oprot.writeI32(_iter259); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (this.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeBinary(this.name); @@ -323,10 +337,14 @@ public String toString(int indent, boolean prettyPrint) { boolean first = true; sb.append(indentStr); - sb.append("space_id"); + sb.append("space_ids"); sb.append(space); sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getSpace_id(), indent + 1, prettyPrint)); + if (this.getSpace_ids() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSpace_ids(), indent + 1, prettyPrint)); + } first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); 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 e26defcb8..f2b35a176 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 _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) + TList _list285 = iprot.readListBegin(); + this.info = new ArrayList(Math.max(0, _list285.size)); + for (int _i286 = 0; + (_list285.size < 0) ? iprot.peekList() : (_i286 < _list285.size); + ++_i286) { - com.vesoft.nebula.CheckpointInfo _elem275; - _elem275 = new com.vesoft.nebula.CheckpointInfo(); - _elem275.read(iprot); - this.info.add(_elem275); + com.vesoft.nebula.CheckpointInfo _elem287; + _elem287 = new com.vesoft.nebula.CheckpointInfo(); + _elem287.read(iprot); + this.info.add(_elem287); } 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 _iter276 : this.info) { - _iter276.write(oprot); + for (com.vesoft.nebula.CheckpointInfo _iter288 : this.info) { + _iter288.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/DropCPRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/DropCPRequest.java index 5d3b5a938..5edabff28 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/DropCPRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/DropCPRequest.java @@ -26,24 +26,23 @@ @SuppressWarnings({ "unused", "serial" }) public class DropCPRequest implements TBase, java.io.Serializable, Cloneable, Comparable { private static final TStruct STRUCT_DESC = new TStruct("DropCPRequest"); - private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); + private static final TField SPACE_IDS_FIELD_DESC = new TField("space_ids", TType.LIST, (short)1); private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)2); - public int space_id; + public List space_ids; public byte[] name; - public static final int SPACE_ID = 1; + public static final int SPACE_IDS = 1; public static final int NAME = 2; // isset id assignments - private static final int __SPACE_ID_ISSET_ID = 0; - private BitSet __isset_bit_vector = new BitSet(1); public static final Map metaDataMap; static { Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SPACE_ID, new FieldMetaData("space_id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(SPACE_IDS, new FieldMetaData("space_ids", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new FieldValueMetaData(TType.I32)))); tmpMetaDataMap.put(NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); @@ -57,26 +56,22 @@ public DropCPRequest() { } public DropCPRequest( - int space_id, + List space_ids, byte[] name) { this(); - this.space_id = space_id; - setSpace_idIsSet(true); + this.space_ids = space_ids; this.name = name; } public static class Builder { - private int space_id; + private List space_ids; private byte[] name; - BitSet __optional_isset = new BitSet(1); - public Builder() { } - public Builder setSpace_id(final int space_id) { - this.space_id = space_id; - __optional_isset.set(__SPACE_ID_ISSET_ID, true); + public Builder setSpace_ids(final List space_ids) { + this.space_ids = space_ids; return this; } @@ -87,9 +82,7 @@ public Builder setName(final byte[] name) { public DropCPRequest build() { DropCPRequest result = new DropCPRequest(); - if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { - result.setSpace_id(this.space_id); - } + result.setSpace_ids(this.space_ids); result.setName(this.name); return result; } @@ -103,9 +96,9 @@ public static Builder builder() { * Performs a deep copy on other. */ public DropCPRequest(DropCPRequest other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetSpace_ids()) { + this.space_ids = TBaseHelper.deepCopy(other.space_ids); + } if (other.isSetName()) { this.name = TBaseHelper.deepCopy(other.name); } @@ -115,27 +108,28 @@ public DropCPRequest deepCopy() { return new DropCPRequest(this); } - public int getSpace_id() { - return this.space_id; + public List getSpace_ids() { + return this.space_ids; } - public DropCPRequest setSpace_id(int space_id) { - this.space_id = space_id; - setSpace_idIsSet(true); + public DropCPRequest setSpace_ids(List space_ids) { + this.space_ids = space_ids; return this; } - public void unsetSpace_id() { - __isset_bit_vector.clear(__SPACE_ID_ISSET_ID); + public void unsetSpace_ids() { + this.space_ids = null; } - // Returns true if field space_id is set (has been assigned a value) and false otherwise - public boolean isSetSpace_id() { - return __isset_bit_vector.get(__SPACE_ID_ISSET_ID); + // Returns true if field space_ids is set (has been assigned a value) and false otherwise + public boolean isSetSpace_ids() { + return this.space_ids != null; } - public void setSpace_idIsSet(boolean __value) { - __isset_bit_vector.set(__SPACE_ID_ISSET_ID, __value); + public void setSpace_idsIsSet(boolean __value) { + if (!__value) { + this.space_ids = null; + } } public byte[] getName() { @@ -162,13 +156,14 @@ public void setNameIsSet(boolean __value) { } } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { - case SPACE_ID: + case SPACE_IDS: if (__value == null) { - unsetSpace_id(); + unsetSpace_ids(); } else { - setSpace_id((Integer)__value); + setSpace_ids((List)__value); } break; @@ -187,8 +182,8 @@ public void setFieldValue(int fieldID, Object __value) { public Object getFieldValue(int fieldID) { switch (fieldID) { - case SPACE_ID: - return new Integer(getSpace_id()); + case SPACE_IDS: + return getSpace_ids(); case NAME: return getName(); @@ -208,7 +203,7 @@ public boolean equals(Object _that) { return false; DropCPRequest that = (DropCPRequest)_that; - if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetSpace_ids(), that.isSetSpace_ids(), this.space_ids, that.space_ids)) { return false; } if (!TBaseHelper.equalsSlow(this.isSetName(), that.isSetName(), this.name, that.name)) { return false; } @@ -217,7 +212,7 @@ public boolean equals(Object _that) { @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, name}); + return Arrays.deepHashCode(new Object[] {space_ids, name}); } @Override @@ -232,11 +227,11 @@ public int compareTo(DropCPRequest other) { } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSpace_id()).compareTo(other.isSetSpace_id()); + lastComparison = Boolean.valueOf(isSetSpace_ids()).compareTo(other.isSetSpace_ids()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(space_id, other.space_id); + lastComparison = TBaseHelper.compareTo(space_ids, other.space_ids); if (lastComparison != 0) { return lastComparison; } @@ -262,10 +257,21 @@ public void read(TProtocol iprot) throws TException { } switch (__field.id) { - case SPACE_ID: - if (__field.type == TType.I32) { - this.space_id = iprot.readI32(); - setSpace_idIsSet(true); + case SPACE_IDS: + if (__field.type == TType.LIST) { + { + TList _list260 = iprot.readListBegin(); + this.space_ids = new ArrayList(Math.max(0, _list260.size)); + for (int _i261 = 0; + (_list260.size < 0) ? iprot.peekList() : (_i261 < _list260.size); + ++_i261) + { + int _elem262; + _elem262 = iprot.readI32(); + this.space_ids.add(_elem262); + } + iprot.readListEnd(); + } } else { TProtocolUtil.skip(iprot, __field.type); } @@ -294,9 +300,17 @@ public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); - oprot.writeI32(this.space_id); - oprot.writeFieldEnd(); + if (this.space_ids != null) { + oprot.writeFieldBegin(SPACE_IDS_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.I32, this.space_ids.size())); + for (int _iter263 : this.space_ids) { + oprot.writeI32(_iter263); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (this.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeBinary(this.name); @@ -323,10 +337,14 @@ public String toString(int indent, boolean prettyPrint) { boolean first = true; sb.append(indentStr); - sb.append("space_id"); + sb.append("space_ids"); sb.append(space); sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getSpace_id(), indent + 1, prettyPrint)); + if (this.getSpace_ids() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSpace_ids(), indent + 1, prettyPrint)); + } first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); diff --git a/client/src/main/generated/com/vesoft/nebula/storage/GeneralStorageService.java b/client/src/main/generated/com/vesoft/nebula/storage/GeneralStorageService.java deleted file mode 100644 index 752c8b08e..000000000 --- a/client/src/main/generated/com/vesoft/nebula/storage/GeneralStorageService.java +++ /dev/null @@ -1,1743 +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 GeneralStorageService { - - public interface Iface { - - public KVGetResponse get(KVGetRequest req) throws TException; - - public ExecResponse put(KVPutRequest req) throws TException; - - public ExecResponse remove(KVRemoveRequest req) throws TException; - - } - - public interface AsyncIface { - - 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 { - 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 KVGetResponse get(KVGetRequest req) throws TException - { - ContextStack ctx = getContextStack("GeneralStorageService.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, "GeneralStorageService.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, "GeneralStorageService.get", args); - return; - } - - public KVGetResponse recv_get() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "GeneralStorageService.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, "GeneralStorageService.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("GeneralStorageService.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, "GeneralStorageService.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, "GeneralStorageService.put", args); - return; - } - - public ExecResponse recv_put() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "GeneralStorageService.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, "GeneralStorageService.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("GeneralStorageService.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, "GeneralStorageService.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, "GeneralStorageService.remove", args); - return; - } - - public ExecResponse recv_remove() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "GeneralStorageService.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, "GeneralStorageService.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 { - 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 get(KVGetRequest req, AsyncMethodCallback resultHandler507) throws TException { - checkReady(); - get_call method_call = new get_call(req, resultHandler507, 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 resultHandler508, TAsyncClient client504, TProtocolFactory protocolFactory505, TNonblockingTransport transport506) throws TException { - super(client504, protocolFactory505, transport506, resultHandler508, 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 resultHandler512) throws TException { - checkReady(); - put_call method_call = new put_call(req, resultHandler512, 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 resultHandler513, TAsyncClient client509, TProtocolFactory protocolFactory510, TNonblockingTransport transport511) throws TException { - super(client509, protocolFactory510, transport511, resultHandler513, 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 resultHandler517) throws TException { - checkReady(); - remove_call method_call = new remove_call(req, resultHandler517, 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 resultHandler518, TAsyncClient client514, TProtocolFactory protocolFactory515, TNonblockingTransport transport516) throws TException { - super(client514, protocolFactory515, transport516, resultHandler518, 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 { - private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); - public Processor(Iface iface) - { - iface_ = iface; - event_handler_ = new TProcessorEventHandler(); // Empty handler - processMap_.put("get", new get()); - processMap_.put("put", new put()); - processMap_.put("remove", new remove()); - } - - 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 get implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("GeneralStorageService.get", server_ctx); - get_args args = new get_args(); - event_handler_.preRead(handler_ctx, "GeneralStorageService.get"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "GeneralStorageService.get", args); - get_result result = new get_result(); - result.success = iface_.get(args.req); - event_handler_.preWrite(handler_ctx, "GeneralStorageService.get", result); - oprot.writeMessageBegin(new TMessage("get", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "GeneralStorageService.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("GeneralStorageService.put", server_ctx); - put_args args = new put_args(); - event_handler_.preRead(handler_ctx, "GeneralStorageService.put"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "GeneralStorageService.put", args); - put_result result = new put_result(); - result.success = iface_.put(args.req); - event_handler_.preWrite(handler_ctx, "GeneralStorageService.put", result); - oprot.writeMessageBegin(new TMessage("put", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "GeneralStorageService.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("GeneralStorageService.remove", server_ctx); - remove_args args = new remove_args(); - event_handler_.preRead(handler_ctx, "GeneralStorageService.remove"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "GeneralStorageService.remove", args); - remove_result result = new remove_result(); - result.success = iface_.remove(args.req); - event_handler_.preWrite(handler_ctx, "GeneralStorageService.remove", result); - oprot.writeMessageBegin(new TMessage("remove", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "GeneralStorageService.remove", result); - } - - } - - } - - 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/GetLeaderPartsResp.java b/client/src/main/generated/com/vesoft/nebula/storage/GetLeaderPartsResp.java index 28e298ee6..aa4c9b533 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 _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) + TMap _map268 = iprot.readMapBegin(); + this.leader_parts = new HashMap>(Math.max(0, 2*_map268.size)); + for (int _i269 = 0; + (_map268.size < 0) ? iprot.peekMap() : (_i269 < _map268.size); + ++_i269) { - int _key258; - List _val259; - _key258 = iprot.readI32(); + int _key270; + List _val271; + _key270 = iprot.readI32(); { - 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) + TList _list272 = iprot.readListBegin(); + _val271 = new ArrayList(Math.max(0, _list272.size)); + for (int _i273 = 0; + (_list272.size < 0) ? iprot.peekList() : (_i273 < _list272.size); + ++_i273) { - int _elem262; - _elem262 = iprot.readI32(); - _val259.add(_elem262); + int _elem274; + _elem274 = iprot.readI32(); + _val271.add(_elem274); } iprot.readListEnd(); } - this.leader_parts.put(_key258, _val259); + this.leader_parts.put(_key270, _val271); } 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> _iter263 : this.leader_parts.entrySet()) { - oprot.writeI32(_iter263.getKey()); + for (Map.Entry> _iter275 : this.leader_parts.entrySet()) { + oprot.writeI32(_iter275.getKey()); { - oprot.writeListBegin(new TList(TType.I32, _iter263.getValue().size())); - for (int _iter264 : _iter263.getValue()) { - oprot.writeI32(_iter264); + oprot.writeListBegin(new TList(TType.I32, _iter275.getValue().size())); + for (int _iter276 : _iter275.getValue()) { + oprot.writeI32(_iter276); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/GetValueRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/GetValueRequest.java deleted file mode 100644 index 4712c0e7f..000000000 --- a/client/src/main/generated/com/vesoft/nebula/storage/GetValueRequest.java +++ /dev/null @@ -1,439 +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 GetValueRequest implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("GetValueRequest"); - private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); - private static final TField PART_ID_FIELD_DESC = new TField("part_id", TType.I32, (short)2); - private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)3); - - public int space_id; - public int part_id; - public byte[] key; - public static final int SPACE_ID = 1; - public static final int PART_ID = 2; - public static final int KEY = 3; - - // isset id assignments - private static final int __SPACE_ID_ISSET_ID = 0; - private static final int __PART_ID_ISSET_ID = 1; - private BitSet __isset_bit_vector = new BitSet(2); - - public static final Map metaDataMap; - - static { - Map tmpMetaDataMap = new HashMap(); - tmpMetaDataMap.put(SPACE_ID, new FieldMetaData("space_id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(PART_ID, new FieldMetaData("part_id", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(KEY, new FieldMetaData("key", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(GetValueRequest.class, metaDataMap); - } - - public GetValueRequest() { - } - - public GetValueRequest( - int space_id, - int part_id, - byte[] key) { - this(); - this.space_id = space_id; - setSpace_idIsSet(true); - this.part_id = part_id; - setPart_idIsSet(true); - this.key = key; - } - - public static class Builder { - private int space_id; - private int part_id; - private byte[] key; - - BitSet __optional_isset = new BitSet(2); - - public Builder() { - } - - public Builder setSpace_id(final int space_id) { - this.space_id = space_id; - __optional_isset.set(__SPACE_ID_ISSET_ID, true); - return this; - } - - public Builder setPart_id(final int part_id) { - this.part_id = part_id; - __optional_isset.set(__PART_ID_ISSET_ID, true); - return this; - } - - public Builder setKey(final byte[] key) { - this.key = key; - return this; - } - - public GetValueRequest build() { - GetValueRequest result = new GetValueRequest(); - if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { - result.setSpace_id(this.space_id); - } - if (__optional_isset.get(__PART_ID_ISSET_ID)) { - result.setPart_id(this.part_id); - } - result.setKey(this.key); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public GetValueRequest(GetValueRequest other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); - this.space_id = TBaseHelper.deepCopy(other.space_id); - this.part_id = TBaseHelper.deepCopy(other.part_id); - if (other.isSetKey()) { - this.key = TBaseHelper.deepCopy(other.key); - } - } - - public GetValueRequest deepCopy() { - return new GetValueRequest(this); - } - - public int getSpace_id() { - return this.space_id; - } - - public GetValueRequest setSpace_id(int space_id) { - this.space_id = space_id; - setSpace_idIsSet(true); - return this; - } - - public void unsetSpace_id() { - __isset_bit_vector.clear(__SPACE_ID_ISSET_ID); - } - - // Returns true if field space_id is set (has been assigned a value) and false otherwise - public boolean isSetSpace_id() { - return __isset_bit_vector.get(__SPACE_ID_ISSET_ID); - } - - public void setSpace_idIsSet(boolean __value) { - __isset_bit_vector.set(__SPACE_ID_ISSET_ID, __value); - } - - public int getPart_id() { - return this.part_id; - } - - public GetValueRequest setPart_id(int part_id) { - this.part_id = part_id; - setPart_idIsSet(true); - return this; - } - - public void unsetPart_id() { - __isset_bit_vector.clear(__PART_ID_ISSET_ID); - } - - // Returns true if field part_id is set (has been assigned a value) and false otherwise - public boolean isSetPart_id() { - return __isset_bit_vector.get(__PART_ID_ISSET_ID); - } - - public void setPart_idIsSet(boolean __value) { - __isset_bit_vector.set(__PART_ID_ISSET_ID, __value); - } - - public byte[] getKey() { - return this.key; - } - - public GetValueRequest setKey(byte[] key) { - this.key = key; - return this; - } - - public void unsetKey() { - this.key = null; - } - - // Returns true if field key is set (has been assigned a value) and false otherwise - public boolean isSetKey() { - return this.key != null; - } - - public void setKeyIsSet(boolean __value) { - if (!__value) { - this.key = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case SPACE_ID: - if (__value == null) { - unsetSpace_id(); - } else { - setSpace_id((Integer)__value); - } - break; - - case PART_ID: - if (__value == null) { - unsetPart_id(); - } else { - setPart_id((Integer)__value); - } - break; - - case KEY: - if (__value == null) { - unsetKey(); - } else { - setKey((byte[])__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case SPACE_ID: - return new Integer(getSpace_id()); - - case PART_ID: - return new Integer(getPart_id()); - - case KEY: - return getKey(); - - 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 GetValueRequest)) - return false; - GetValueRequest that = (GetValueRequest)_that; - - if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.part_id, that.part_id)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetKey(), that.isSetKey(), this.key, that.key)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, part_id, key}); - } - - @Override - public int compareTo(GetValueRequest other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSpace_id()).compareTo(other.isSetSpace_id()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(space_id, other.space_id); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetPart_id()).compareTo(other.isSetPart_id()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(part_id, other.part_id); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(key, other.key); - 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_ID: - if (__field.type == TType.I32) { - this.space_id = iprot.readI32(); - setSpace_idIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case PART_ID: - if (__field.type == TType.I32) { - this.part_id = iprot.readI32(); - setPart_idIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case KEY: - if (__field.type == TType.STRING) { - this.key = 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(SPACE_ID_FIELD_DESC); - oprot.writeI32(this.space_id); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(PART_ID_FIELD_DESC); - oprot.writeI32(this.part_id); - oprot.writeFieldEnd(); - if (this.key != null) { - oprot.writeFieldBegin(KEY_FIELD_DESC); - oprot.writeBinary(this.key); - 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("GetValueRequest"); - sb.append(space); - sb.append("("); - sb.append(newLine); - boolean first = true; - - sb.append(indentStr); - sb.append("space_id"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getSpace_id(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("part_id"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.getPart_id(), indent + 1, prettyPrint)); - first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("key"); - sb.append(space); - sb.append(":").append(space); - if (this.getKey() == null) { - sb.append("null"); - } else { - int __key_size = Math.min(this.getKey().length, 128); - for (int i = 0; i < __key_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getKey()[i]).length() > 1 ? Integer.toHexString(this.getKey()[i]).substring(Integer.toHexString(this.getKey()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getKey()[i]).toUpperCase()); - } - if (this.getKey().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/storage/GetValueResponse.java b/client/src/main/generated/com/vesoft/nebula/storage/GetValueResponse.java deleted file mode 100644 index 8a0b704b8..000000000 --- a/client/src/main/generated/com/vesoft/nebula/storage/GetValueResponse.java +++ /dev/null @@ -1,365 +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 GetValueResponse implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("GetValueResponse"); - private static final TField RESULT_FIELD_DESC = new TField("result", TType.STRUCT, (short)1); - private static final TField VALUE_FIELD_DESC = new TField("value", TType.STRING, (short)2); - - public ResponseCommon result; - public byte[] value; - public static final int RESULT = 1; - public static final int VALUE = 2; - - // 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(VALUE, new FieldMetaData("value", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(GetValueResponse.class, metaDataMap); - } - - public GetValueResponse() { - } - - public GetValueResponse( - ResponseCommon result) { - this(); - this.result = result; - } - - public GetValueResponse( - ResponseCommon result, - byte[] value) { - this(); - this.result = result; - this.value = value; - } - - public static class Builder { - private ResponseCommon result; - private byte[] value; - - public Builder() { - } - - public Builder setResult(final ResponseCommon result) { - this.result = result; - return this; - } - - public Builder setValue(final byte[] value) { - this.value = value; - return this; - } - - public GetValueResponse build() { - GetValueResponse result = new GetValueResponse(); - result.setResult(this.result); - result.setValue(this.value); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public GetValueResponse(GetValueResponse other) { - if (other.isSetResult()) { - this.result = TBaseHelper.deepCopy(other.result); - } - if (other.isSetValue()) { - this.value = TBaseHelper.deepCopy(other.value); - } - } - - public GetValueResponse deepCopy() { - return new GetValueResponse(this); - } - - public ResponseCommon getResult() { - return this.result; - } - - public GetValueResponse 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 byte[] getValue() { - return this.value; - } - - public GetValueResponse setValue(byte[] value) { - this.value = value; - return this; - } - - public void unsetValue() { - this.value = null; - } - - // Returns true if field value is set (has been assigned a value) and false otherwise - public boolean isSetValue() { - return this.value != null; - } - - public void setValueIsSet(boolean __value) { - if (!__value) { - this.value = null; - } - } - - public void setFieldValue(int fieldID, Object __value) { - switch (fieldID) { - case RESULT: - if (__value == null) { - unsetResult(); - } else { - setResult((ResponseCommon)__value); - } - break; - - case VALUE: - if (__value == null) { - unsetValue(); - } else { - setValue((byte[])__value); - } - break; - - default: - throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); - } - } - - public Object getFieldValue(int fieldID) { - switch (fieldID) { - case RESULT: - return getResult(); - - case VALUE: - return getValue(); - - 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 GetValueResponse)) - return false; - GetValueResponse that = (GetValueResponse)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetResult(), that.isSetResult(), this.result, that.result)) { return false; } - - if (!TBaseHelper.equalsSlow(this.isSetValue(), that.isSetValue(), this.value, that.value)) { return false; } - - return true; - } - - @Override - public int hashCode() { - return Arrays.deepHashCode(new Object[] {result, value}); - } - - @Override - public int compareTo(GetValueResponse other) { - if (other == null) { - // See java.lang.Comparable docs - throw new NullPointerException(); - } - - if (other == this) { - return 0; - } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetResult()).compareTo(other.isSetResult()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(result, other.result); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(value, other.value); - 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 RESULT: - if (__field.type == TType.STRUCT) { - this.result = new ResponseCommon(); - this.result.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case VALUE: - if (__field.type == TType.STRING) { - this.value = 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); - if (this.result != null) { - oprot.writeFieldBegin(RESULT_FIELD_DESC); - this.result.write(oprot); - oprot.writeFieldEnd(); - } - if (this.value != null) { - oprot.writeFieldBegin(VALUE_FIELD_DESC); - oprot.writeBinary(this.value); - 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("GetValueResponse"); - 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 (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("value"); - sb.append(space); - sb.append(":").append(space); - if (this.getValue() == null) { - sb.append("null"); - } else { - int __value_size = Math.min(this.getValue().length, 128); - for (int i = 0; i < __value_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getValue()[i]).length() > 1 ? Integer.toHexString(this.getValue()[i]).substring(Integer.toHexString(this.getValue()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getValue()[i]).toUpperCase()); - } - if (this.getValue().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 - 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/GraphStorageService.java b/client/src/main/generated/com/vesoft/nebula/storage/GraphStorageService.java index 3cfcc78f6..0ecb6bdf2 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/GraphStorageService.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/GraphStorageService.java @@ -1015,17 +1015,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void getNeighbors(GetNeighborsRequest req, AsyncMethodCallback resultHandler330) throws TException { + public void getNeighbors(GetNeighborsRequest req, AsyncMethodCallback resultHandler342) throws TException { checkReady(); - getNeighbors_call method_call = new getNeighbors_call(req, resultHandler330, this, ___protocolFactory, ___transport); + getNeighbors_call method_call = new getNeighbors_call(req, resultHandler342, 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 resultHandler331, TAsyncClient client327, TProtocolFactory protocolFactory328, TNonblockingTransport transport329) throws TException { - super(client327, protocolFactory328, transport329, resultHandler331, false); + public getNeighbors_call(GetNeighborsRequest req, AsyncMethodCallback resultHandler343, TAsyncClient client339, TProtocolFactory protocolFactory340, TNonblockingTransport transport341) throws TException { + super(client339, protocolFactory340, transport341, resultHandler343, false); this.req = req; } @@ -1047,17 +1047,17 @@ public GetNeighborsResponse getResult() throws TException { } } - public void getProps(GetPropRequest req, AsyncMethodCallback resultHandler335) throws TException { + public void getProps(GetPropRequest req, AsyncMethodCallback resultHandler347) throws TException { checkReady(); - getProps_call method_call = new getProps_call(req, resultHandler335, this, ___protocolFactory, ___transport); + getProps_call method_call = new getProps_call(req, resultHandler347, 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 resultHandler336, TAsyncClient client332, TProtocolFactory protocolFactory333, TNonblockingTransport transport334) throws TException { - super(client332, protocolFactory333, transport334, resultHandler336, false); + public getProps_call(GetPropRequest req, AsyncMethodCallback resultHandler348, TAsyncClient client344, TProtocolFactory protocolFactory345, TNonblockingTransport transport346) throws TException { + super(client344, protocolFactory345, transport346, resultHandler348, false); this.req = req; } @@ -1079,17 +1079,17 @@ public GetPropResponse getResult() throws TException { } } - public void addVertices(AddVerticesRequest req, AsyncMethodCallback resultHandler340) throws TException { + public void addVertices(AddVerticesRequest req, AsyncMethodCallback resultHandler352) throws TException { checkReady(); - addVertices_call method_call = new addVertices_call(req, resultHandler340, this, ___protocolFactory, ___transport); + addVertices_call method_call = new addVertices_call(req, resultHandler352, 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 resultHandler341, TAsyncClient client337, TProtocolFactory protocolFactory338, TNonblockingTransport transport339) throws TException { - super(client337, protocolFactory338, transport339, resultHandler341, false); + public addVertices_call(AddVerticesRequest req, AsyncMethodCallback resultHandler353, TAsyncClient client349, TProtocolFactory protocolFactory350, TNonblockingTransport transport351) throws TException { + super(client349, protocolFactory350, transport351, resultHandler353, false); this.req = req; } @@ -1111,17 +1111,17 @@ public ExecResponse getResult() throws TException { } } - public void addEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler345) throws TException { + public void addEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler357) throws TException { checkReady(); - addEdges_call method_call = new addEdges_call(req, resultHandler345, this, ___protocolFactory, ___transport); + addEdges_call method_call = new addEdges_call(req, resultHandler357, 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 resultHandler346, TAsyncClient client342, TProtocolFactory protocolFactory343, TNonblockingTransport transport344) throws TException { - super(client342, protocolFactory343, transport344, resultHandler346, false); + public addEdges_call(AddEdgesRequest req, AsyncMethodCallback resultHandler358, TAsyncClient client354, TProtocolFactory protocolFactory355, TNonblockingTransport transport356) throws TException { + super(client354, protocolFactory355, transport356, resultHandler358, false); this.req = req; } @@ -1143,17 +1143,17 @@ public ExecResponse getResult() throws TException { } } - public void deleteEdges(DeleteEdgesRequest req, AsyncMethodCallback resultHandler350) throws TException { + public void deleteEdges(DeleteEdgesRequest req, AsyncMethodCallback resultHandler362) throws TException { checkReady(); - deleteEdges_call method_call = new deleteEdges_call(req, resultHandler350, this, ___protocolFactory, ___transport); + deleteEdges_call method_call = new deleteEdges_call(req, resultHandler362, 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 resultHandler351, TAsyncClient client347, TProtocolFactory protocolFactory348, TNonblockingTransport transport349) throws TException { - super(client347, protocolFactory348, transport349, resultHandler351, false); + public deleteEdges_call(DeleteEdgesRequest req, AsyncMethodCallback resultHandler363, TAsyncClient client359, TProtocolFactory protocolFactory360, TNonblockingTransport transport361) throws TException { + super(client359, protocolFactory360, transport361, resultHandler363, false); this.req = req; } @@ -1175,17 +1175,17 @@ public ExecResponse getResult() throws TException { } } - public void deleteVertices(DeleteVerticesRequest req, AsyncMethodCallback resultHandler355) throws TException { + public void deleteVertices(DeleteVerticesRequest req, AsyncMethodCallback resultHandler367) throws TException { checkReady(); - deleteVertices_call method_call = new deleteVertices_call(req, resultHandler355, this, ___protocolFactory, ___transport); + deleteVertices_call method_call = new deleteVertices_call(req, resultHandler367, 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 resultHandler356, TAsyncClient client352, TProtocolFactory protocolFactory353, TNonblockingTransport transport354) throws TException { - super(client352, protocolFactory353, transport354, resultHandler356, false); + public deleteVertices_call(DeleteVerticesRequest req, AsyncMethodCallback resultHandler368, TAsyncClient client364, TProtocolFactory protocolFactory365, TNonblockingTransport transport366) throws TException { + super(client364, protocolFactory365, transport366, resultHandler368, false); this.req = req; } @@ -1207,17 +1207,17 @@ public ExecResponse getResult() throws TException { } } - public void deleteTags(DeleteTagsRequest req, AsyncMethodCallback resultHandler360) throws TException { + public void deleteTags(DeleteTagsRequest req, AsyncMethodCallback resultHandler372) throws TException { checkReady(); - deleteTags_call method_call = new deleteTags_call(req, resultHandler360, this, ___protocolFactory, ___transport); + deleteTags_call method_call = new deleteTags_call(req, resultHandler372, 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 resultHandler361, TAsyncClient client357, TProtocolFactory protocolFactory358, TNonblockingTransport transport359) throws TException { - super(client357, protocolFactory358, transport359, resultHandler361, false); + public deleteTags_call(DeleteTagsRequest req, AsyncMethodCallback resultHandler373, TAsyncClient client369, TProtocolFactory protocolFactory370, TNonblockingTransport transport371) throws TException { + super(client369, protocolFactory370, transport371, resultHandler373, false); this.req = req; } @@ -1239,17 +1239,17 @@ public ExecResponse getResult() throws TException { } } - public void updateVertex(UpdateVertexRequest req, AsyncMethodCallback resultHandler365) throws TException { + public void updateVertex(UpdateVertexRequest req, AsyncMethodCallback resultHandler377) throws TException { checkReady(); - updateVertex_call method_call = new updateVertex_call(req, resultHandler365, this, ___protocolFactory, ___transport); + updateVertex_call method_call = new updateVertex_call(req, resultHandler377, 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 resultHandler366, TAsyncClient client362, TProtocolFactory protocolFactory363, TNonblockingTransport transport364) throws TException { - super(client362, protocolFactory363, transport364, resultHandler366, false); + public updateVertex_call(UpdateVertexRequest req, AsyncMethodCallback resultHandler378, TAsyncClient client374, TProtocolFactory protocolFactory375, TNonblockingTransport transport376) throws TException { + super(client374, protocolFactory375, transport376, resultHandler378, false); this.req = req; } @@ -1271,17 +1271,17 @@ public UpdateResponse getResult() throws TException { } } - public void updateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler370) throws TException { + public void updateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler382) throws TException { checkReady(); - updateEdge_call method_call = new updateEdge_call(req, resultHandler370, this, ___protocolFactory, ___transport); + updateEdge_call method_call = new updateEdge_call(req, resultHandler382, 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 resultHandler371, TAsyncClient client367, TProtocolFactory protocolFactory368, TNonblockingTransport transport369) throws TException { - super(client367, protocolFactory368, transport369, resultHandler371, false); + public updateEdge_call(UpdateEdgeRequest req, AsyncMethodCallback resultHandler383, TAsyncClient client379, TProtocolFactory protocolFactory380, TNonblockingTransport transport381) throws TException { + super(client379, protocolFactory380, transport381, resultHandler383, false); this.req = req; } @@ -1303,17 +1303,17 @@ public UpdateResponse getResult() throws TException { } } - public void scanVertex(ScanVertexRequest req, AsyncMethodCallback resultHandler375) throws TException { + public void scanVertex(ScanVertexRequest req, AsyncMethodCallback resultHandler387) throws TException { checkReady(); - scanVertex_call method_call = new scanVertex_call(req, resultHandler375, this, ___protocolFactory, ___transport); + scanVertex_call method_call = new scanVertex_call(req, resultHandler387, 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 resultHandler376, TAsyncClient client372, TProtocolFactory protocolFactory373, TNonblockingTransport transport374) throws TException { - super(client372, protocolFactory373, transport374, resultHandler376, false); + public scanVertex_call(ScanVertexRequest req, AsyncMethodCallback resultHandler388, TAsyncClient client384, TProtocolFactory protocolFactory385, TNonblockingTransport transport386) throws TException { + super(client384, protocolFactory385, transport386, resultHandler388, false); this.req = req; } @@ -1335,17 +1335,17 @@ public ScanResponse getResult() throws TException { } } - public void scanEdge(ScanEdgeRequest req, AsyncMethodCallback resultHandler380) throws TException { + public void scanEdge(ScanEdgeRequest req, AsyncMethodCallback resultHandler392) throws TException { checkReady(); - scanEdge_call method_call = new scanEdge_call(req, resultHandler380, this, ___protocolFactory, ___transport); + scanEdge_call method_call = new scanEdge_call(req, resultHandler392, 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 resultHandler381, TAsyncClient client377, TProtocolFactory protocolFactory378, TNonblockingTransport transport379) throws TException { - super(client377, protocolFactory378, transport379, resultHandler381, false); + public scanEdge_call(ScanEdgeRequest req, AsyncMethodCallback resultHandler393, TAsyncClient client389, TProtocolFactory protocolFactory390, TNonblockingTransport transport391) throws TException { + super(client389, protocolFactory390, transport391, resultHandler393, false); this.req = req; } @@ -1367,17 +1367,17 @@ public ScanResponse getResult() throws TException { } } - public void getUUID(GetUUIDReq req, AsyncMethodCallback resultHandler385) throws TException { + public void getUUID(GetUUIDReq req, AsyncMethodCallback resultHandler397) throws TException { checkReady(); - getUUID_call method_call = new getUUID_call(req, resultHandler385, this, ___protocolFactory, ___transport); + getUUID_call method_call = new getUUID_call(req, resultHandler397, 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 resultHandler386, TAsyncClient client382, TProtocolFactory protocolFactory383, TNonblockingTransport transport384) throws TException { - super(client382, protocolFactory383, transport384, resultHandler386, false); + public getUUID_call(GetUUIDReq req, AsyncMethodCallback resultHandler398, TAsyncClient client394, TProtocolFactory protocolFactory395, TNonblockingTransport transport396) throws TException { + super(client394, protocolFactory395, transport396, resultHandler398, false); this.req = req; } @@ -1399,17 +1399,17 @@ public GetUUIDResp getResult() throws TException { } } - public void lookupIndex(LookupIndexRequest req, AsyncMethodCallback resultHandler390) throws TException { + public void lookupIndex(LookupIndexRequest req, AsyncMethodCallback resultHandler402) throws TException { checkReady(); - lookupIndex_call method_call = new lookupIndex_call(req, resultHandler390, this, ___protocolFactory, ___transport); + lookupIndex_call method_call = new lookupIndex_call(req, resultHandler402, 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 resultHandler391, TAsyncClient client387, TProtocolFactory protocolFactory388, TNonblockingTransport transport389) throws TException { - super(client387, protocolFactory388, transport389, resultHandler391, false); + public lookupIndex_call(LookupIndexRequest req, AsyncMethodCallback resultHandler403, TAsyncClient client399, TProtocolFactory protocolFactory400, TNonblockingTransport transport401) throws TException { + super(client399, protocolFactory400, transport401, resultHandler403, false); this.req = req; } @@ -1431,17 +1431,17 @@ public LookupIndexResp getResult() throws TException { } } - public void lookupAndTraverse(LookupAndTraverseRequest req, AsyncMethodCallback resultHandler395) throws TException { + public void lookupAndTraverse(LookupAndTraverseRequest req, AsyncMethodCallback resultHandler407) throws TException { checkReady(); - lookupAndTraverse_call method_call = new lookupAndTraverse_call(req, resultHandler395, this, ___protocolFactory, ___transport); + lookupAndTraverse_call method_call = new lookupAndTraverse_call(req, resultHandler407, 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 resultHandler396, TAsyncClient client392, TProtocolFactory protocolFactory393, TNonblockingTransport transport394) throws TException { - super(client392, protocolFactory393, transport394, resultHandler396, false); + public lookupAndTraverse_call(LookupAndTraverseRequest req, AsyncMethodCallback resultHandler408, TAsyncClient client404, TProtocolFactory protocolFactory405, TNonblockingTransport transport406) throws TException { + super(client404, protocolFactory405, transport406, resultHandler408, false); this.req = req; } @@ -1463,17 +1463,17 @@ public GetNeighborsResponse getResult() throws TException { } } - public void chainUpdateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler400) throws TException { + public void chainUpdateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler412) throws TException { checkReady(); - chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler400, this, ___protocolFactory, ___transport); + chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler412, 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 resultHandler401, TAsyncClient client397, TProtocolFactory protocolFactory398, TNonblockingTransport transport399) throws TException { - super(client397, protocolFactory398, transport399, resultHandler401, false); + public chainUpdateEdge_call(UpdateEdgeRequest req, AsyncMethodCallback resultHandler413, TAsyncClient client409, TProtocolFactory protocolFactory410, TNonblockingTransport transport411) throws TException { + super(client409, protocolFactory410, transport411, resultHandler413, false); this.req = req; } @@ -1495,17 +1495,17 @@ public UpdateResponse getResult() throws TException { } } - public void chainAddEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler405) throws TException { + public void chainAddEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler417) throws TException { checkReady(); - chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler405, this, ___protocolFactory, ___transport); + chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler417, 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 resultHandler406, TAsyncClient client402, TProtocolFactory protocolFactory403, TNonblockingTransport transport404) throws TException { - super(client402, protocolFactory403, transport404, resultHandler406, false); + public chainAddEdges_call(AddEdgesRequest req, AsyncMethodCallback resultHandler418, TAsyncClient client414, TProtocolFactory protocolFactory415, TNonblockingTransport transport416) throws TException { + super(client414, protocolFactory415, transport416, resultHandler418, false); this.req = req; } @@ -1527,17 +1527,17 @@ public ExecResponse getResult() throws TException { } } - public void get(KVGetRequest req, AsyncMethodCallback resultHandler410) throws TException { + public void get(KVGetRequest req, AsyncMethodCallback resultHandler422) throws TException { checkReady(); - get_call method_call = new get_call(req, resultHandler410, this, ___protocolFactory, ___transport); + get_call method_call = new get_call(req, resultHandler422, 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); + public get_call(KVGetRequest req, AsyncMethodCallback resultHandler423, TAsyncClient client419, TProtocolFactory protocolFactory420, TNonblockingTransport transport421) throws TException { + super(client419, protocolFactory420, transport421, resultHandler423, false); this.req = req; } @@ -1559,17 +1559,17 @@ public KVGetResponse getResult() throws TException { } } - public void put(KVPutRequest req, AsyncMethodCallback resultHandler415) throws TException { + public void put(KVPutRequest req, AsyncMethodCallback resultHandler427) throws TException { checkReady(); - put_call method_call = new put_call(req, resultHandler415, this, ___protocolFactory, ___transport); + put_call method_call = new put_call(req, resultHandler427, 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); + public put_call(KVPutRequest req, AsyncMethodCallback resultHandler428, TAsyncClient client424, TProtocolFactory protocolFactory425, TNonblockingTransport transport426) throws TException { + super(client424, protocolFactory425, transport426, resultHandler428, false); this.req = req; } @@ -1591,17 +1591,17 @@ public ExecResponse getResult() throws TException { } } - public void remove(KVRemoveRequest req, AsyncMethodCallback resultHandler420) throws TException { + public void remove(KVRemoveRequest req, AsyncMethodCallback resultHandler432) throws TException { checkReady(); - remove_call method_call = new remove_call(req, resultHandler420, this, ___protocolFactory, ___transport); + remove_call method_call = new remove_call(req, resultHandler432, 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); + public remove_call(KVRemoveRequest req, AsyncMethodCallback resultHandler433, TAsyncClient client429, TProtocolFactory protocolFactory430, TNonblockingTransport transport431) throws TException { + super(client429, protocolFactory430, transport431, resultHandler433, false); this.req = req; } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java b/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java index f687d603f..eb9e70bc2 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java @@ -182,17 +182,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void chainAddEdges(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler523) throws TException { + public void chainAddEdges(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler529) throws TException { checkReady(); - chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler523, this, ___protocolFactory, ___transport); + chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler529, 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); + public chainAddEdges_call(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler530, TAsyncClient client526, TProtocolFactory protocolFactory527, TNonblockingTransport transport528) throws TException { + super(client526, protocolFactory527, transport528, resultHandler530, false); this.req = req; } @@ -214,17 +214,17 @@ public ExecResponse getResult() throws TException { } } - public void chainUpdateEdge(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler528) throws TException { + public void chainUpdateEdge(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler534) throws TException { checkReady(); - chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler528, this, ___protocolFactory, ___transport); + chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler534, 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); + public chainUpdateEdge_call(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler535, TAsyncClient client531, TProtocolFactory protocolFactory532, TNonblockingTransport transport533) throws TException { + super(client531, protocolFactory532, transport533, resultHandler535, false); this.req = req; } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java index a54234d85..692ffd7fe 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java @@ -419,17 +419,17 @@ public void read(TProtocol iprot) throws TException { 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) + TMap _map289 = iprot.readMapBegin(); + this.term_of_parts = new HashMap(Math.max(0, 2*_map289.size)); + for (int _i290 = 0; + (_map289.size < 0) ? iprot.peekMap() : (_i290 < _map289.size); + ++_i290) { - int _key279; - long _val280; - _key279 = iprot.readI32(); - _val280 = iprot.readI64(); - this.term_of_parts.put(_key279, _val280); + int _key291; + long _val292; + _key291 = iprot.readI32(); + _val292 = iprot.readI64(); + this.term_of_parts.put(_key291, _val292); } iprot.readMapEnd(); } @@ -456,29 +456,29 @@ public void read(TProtocol iprot) throws TException { 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) + TMap _map293 = iprot.readMapBegin(); + this.edge_ver = new HashMap>(Math.max(0, 2*_map293.size)); + for (int _i294 = 0; + (_map293.size < 0) ? iprot.peekMap() : (_i294 < _map293.size); + ++_i294) { - int _key283; - List _val284; - _key283 = iprot.readI32(); + int _key295; + List _val296; + _key295 = 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) + TList _list297 = iprot.readListBegin(); + _val296 = new ArrayList(Math.max(0, _list297.size)); + for (int _i298 = 0; + (_list297.size < 0) ? iprot.peekList() : (_i298 < _list297.size); + ++_i298) { - long _elem287; - _elem287 = iprot.readI64(); - _val284.add(_elem287); + long _elem299; + _elem299 = iprot.readI64(); + _val296.add(_elem299); } iprot.readListEnd(); } - this.edge_ver.put(_key283, _val284); + this.edge_ver.put(_key295, _val296); } iprot.readMapEnd(); } @@ -510,9 +510,9 @@ public void write(TProtocol oprot) throws TException { 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()); + for (Map.Entry _iter300 : this.term_of_parts.entrySet()) { + oprot.writeI32(_iter300.getKey()); + oprot.writeI64(_iter300.getValue()); } oprot.writeMapEnd(); } @@ -537,12 +537,12 @@ public void write(TProtocol oprot) throws TException { 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()); + for (Map.Entry> _iter301 : this.edge_ver.entrySet()) { + oprot.writeI32(_iter301.getKey()); { - oprot.writeListBegin(new TList(TType.I64, _iter289.getValue().size())); - for (long _iter290 : _iter289.getValue()) { - oprot.writeI64(_iter290); + oprot.writeListBegin(new TList(TType.I64, _iter301.getValue().size())); + for (long _iter302 : _iter301.getValue()) { + oprot.writeI64(_iter302); } 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 c3947fc5e..2047e2101 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 _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) + TList _list281 = iprot.readListBegin(); + this.parts = new ArrayList(Math.max(0, _list281.size)); + for (int _i282 = 0; + (_list281.size < 0) ? iprot.peekList() : (_i282 < _list281.size); + ++_i282) { - int _elem271; - _elem271 = iprot.readI32(); - this.parts.add(_elem271); + int _elem283; + _elem283 = iprot.readI32(); + this.parts.add(_elem283); } 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 _iter272 : this.parts) { - oprot.writeI32(_iter272); + for (int _iter284 : this.parts) { + oprot.writeI32(_iter284); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeResponse.java b/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeResponse.java deleted file mode 100644 index 36a6c53df..000000000 --- a/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeResponse.java +++ /dev/null @@ -1,432 +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 ScanEdgeResponse implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("ScanEdgeResponse"); - private static final TField RESULT_FIELD_DESC = new TField("result", TType.STRUCT, (short)1); - private static final TField EDGE_DATA_FIELD_DESC = new TField("edge_data", 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 edge_data; - public Map cursors; - public static final int RESULT = 1; - public static final int EDGE_DATA = 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(EDGE_DATA, new FieldMetaData("edge_data", TFieldRequirementType.DEFAULT, - 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(ScanEdgeResponse.class, metaDataMap); - } - - public ScanEdgeResponse() { - } - - public ScanEdgeResponse( - ResponseCommon result) { - this(); - this.result = result; - } - - public ScanEdgeResponse( - ResponseCommon result, - com.vesoft.nebula.DataSet edge_data, - Map cursors) { - this(); - this.result = result; - this.edge_data = edge_data; - this.cursors = cursors; - } - - public static class Builder { - private ResponseCommon result; - private com.vesoft.nebula.DataSet edge_data; - private Map cursors; - - public Builder() { - } - - public Builder setResult(final ResponseCommon result) { - this.result = result; - return this; - } - - public Builder setEdge_data(final com.vesoft.nebula.DataSet edge_data) { - this.edge_data = edge_data; - return this; - } - - public Builder setCursors(final Map cursors) { - this.cursors = cursors; - return this; - } - - public ScanEdgeResponse build() { - ScanEdgeResponse result = new ScanEdgeResponse(); - result.setResult(this.result); - result.setEdge_data(this.edge_data); - result.setCursors(this.cursors); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public ScanEdgeResponse(ScanEdgeResponse other) { - if (other.isSetResult()) { - this.result = TBaseHelper.deepCopy(other.result); - } - if (other.isSetEdge_data()) { - this.edge_data = TBaseHelper.deepCopy(other.edge_data); - } - if (other.isSetCursors()) { - this.cursors = TBaseHelper.deepCopy(other.cursors); - } - } - - public ScanEdgeResponse deepCopy() { - return new ScanEdgeResponse(this); - } - - public ResponseCommon getResult() { - return this.result; - } - - public ScanEdgeResponse 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 getEdge_data() { - return this.edge_data; - } - - public ScanEdgeResponse setEdge_data(com.vesoft.nebula.DataSet edge_data) { - this.edge_data = edge_data; - return this; - } - - public void unsetEdge_data() { - this.edge_data = null; - } - - // Returns true if field edge_data is set (has been assigned a value) and false otherwise - public boolean isSetEdge_data() { - return this.edge_data != null; - } - - public void setEdge_dataIsSet(boolean __value) { - if (!__value) { - this.edge_data = null; - } - } - - public Map getCursors() { - return this.cursors; - } - - public ScanEdgeResponse 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 EDGE_DATA: - if (__value == null) { - unsetEdge_data(); - } else { - setEdge_data((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 EDGE_DATA: - return getEdge_data(); - - 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 ScanEdgeResponse)) - return false; - ScanEdgeResponse that = (ScanEdgeResponse)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetResult(), that.isSetResult(), this.result, that.result)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetEdge_data(), that.isSetEdge_data(), this.edge_data, that.edge_data)) { 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, edge_data, 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 EDGE_DATA: - if (__field.type == TType.STRUCT) { - this.edge_data = new com.vesoft.nebula.DataSet(); - this.edge_data.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case CURSORS: - if (__field.type == TType.MAP) { - { - TMap _map208 = iprot.readMapBegin(); - this.cursors = new HashMap(Math.max(0, 2*_map208.size)); - for (int _i209 = 0; - (_map208.size < 0) ? iprot.peekMap() : (_i209 < _map208.size); - ++_i209) - { - int _key210; - ScanCursor _val211; - _key210 = iprot.readI32(); - _val211 = new ScanCursor(); - _val211.read(iprot); - this.cursors.put(_key210, _val211); - } - 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.edge_data != null) { - oprot.writeFieldBegin(EDGE_DATA_FIELD_DESC); - this.edge_data.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 _iter212 : this.cursors.entrySet()) { - oprot.writeI32(_iter212.getKey()); - _iter212.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("ScanEdgeResponse"); - 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 (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("edge_data"); - sb.append(space); - sb.append(":").append(space); - if (this.getEdge_data() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getEdge_data(), 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/ScanVertexResponse.java b/client/src/main/generated/com/vesoft/nebula/storage/ScanVertexResponse.java deleted file mode 100644 index 377ff3c26..000000000 --- a/client/src/main/generated/com/vesoft/nebula/storage/ScanVertexResponse.java +++ /dev/null @@ -1,432 +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 ScanVertexResponse implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("ScanVertexResponse"); - private static final TField RESULT_FIELD_DESC = new TField("result", TType.STRUCT, (short)1); - private static final TField VERTEX_DATA_FIELD_DESC = new TField("vertex_data", 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 vertex_data; - public Map cursors; - public static final int RESULT = 1; - public static final int VERTEX_DATA = 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(VERTEX_DATA, new FieldMetaData("vertex_data", TFieldRequirementType.DEFAULT, - 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(ScanVertexResponse.class, metaDataMap); - } - - public ScanVertexResponse() { - } - - public ScanVertexResponse( - ResponseCommon result) { - this(); - this.result = result; - } - - public ScanVertexResponse( - ResponseCommon result, - com.vesoft.nebula.DataSet vertex_data, - Map cursors) { - this(); - this.result = result; - this.vertex_data = vertex_data; - this.cursors = cursors; - } - - public static class Builder { - private ResponseCommon result; - private com.vesoft.nebula.DataSet vertex_data; - private Map cursors; - - public Builder() { - } - - public Builder setResult(final ResponseCommon result) { - this.result = result; - return this; - } - - public Builder setVertex_data(final com.vesoft.nebula.DataSet vertex_data) { - this.vertex_data = vertex_data; - return this; - } - - public Builder setCursors(final Map cursors) { - this.cursors = cursors; - return this; - } - - public ScanVertexResponse build() { - ScanVertexResponse result = new ScanVertexResponse(); - result.setResult(this.result); - result.setVertex_data(this.vertex_data); - result.setCursors(this.cursors); - return result; - } - } - - public static Builder builder() { - return new Builder(); - } - - /** - * Performs a deep copy on other. - */ - public ScanVertexResponse(ScanVertexResponse other) { - if (other.isSetResult()) { - this.result = TBaseHelper.deepCopy(other.result); - } - if (other.isSetVertex_data()) { - this.vertex_data = TBaseHelper.deepCopy(other.vertex_data); - } - if (other.isSetCursors()) { - this.cursors = TBaseHelper.deepCopy(other.cursors); - } - } - - public ScanVertexResponse deepCopy() { - return new ScanVertexResponse(this); - } - - public ResponseCommon getResult() { - return this.result; - } - - public ScanVertexResponse 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 getVertex_data() { - return this.vertex_data; - } - - public ScanVertexResponse setVertex_data(com.vesoft.nebula.DataSet vertex_data) { - this.vertex_data = vertex_data; - return this; - } - - public void unsetVertex_data() { - this.vertex_data = null; - } - - // Returns true if field vertex_data is set (has been assigned a value) and false otherwise - public boolean isSetVertex_data() { - return this.vertex_data != null; - } - - public void setVertex_dataIsSet(boolean __value) { - if (!__value) { - this.vertex_data = null; - } - } - - public Map getCursors() { - return this.cursors; - } - - public ScanVertexResponse 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 VERTEX_DATA: - if (__value == null) { - unsetVertex_data(); - } else { - setVertex_data((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 VERTEX_DATA: - return getVertex_data(); - - 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 ScanVertexResponse)) - return false; - ScanVertexResponse that = (ScanVertexResponse)_that; - - if (!TBaseHelper.equalsNobinary(this.isSetResult(), that.isSetResult(), this.result, that.result)) { return false; } - - if (!TBaseHelper.equalsNobinary(this.isSetVertex_data(), that.isSetVertex_data(), this.vertex_data, that.vertex_data)) { 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, vertex_data, 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 VERTEX_DATA: - if (__field.type == TType.STRUCT) { - this.vertex_data = new com.vesoft.nebula.DataSet(); - this.vertex_data.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; - case CURSORS: - if (__field.type == TType.MAP) { - { - TMap _map198 = iprot.readMapBegin(); - this.cursors = new HashMap(Math.max(0, 2*_map198.size)); - for (int _i199 = 0; - (_map198.size < 0) ? iprot.peekMap() : (_i199 < _map198.size); - ++_i199) - { - int _key200; - ScanCursor _val201; - _key200 = iprot.readI32(); - _val201 = new ScanCursor(); - _val201.read(iprot); - this.cursors.put(_key200, _val201); - } - 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.vertex_data != null) { - oprot.writeFieldBegin(VERTEX_DATA_FIELD_DESC); - this.vertex_data.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 _iter202 : this.cursors.entrySet()) { - oprot.writeI32(_iter202.getKey()); - _iter202.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("ScanVertexResponse"); - 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 (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("vertex_data"); - sb.append(space); - sb.append(":").append(space); - if (this.getVertex_data() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getVertex_data(), 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 4374a8cd4..c1cae42ce 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/StorageAdminService.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/StorageAdminService.java @@ -61,8 +61,6 @@ public interface Iface { public AdminExecResp stopAdminTask(StopAdminTaskRequest req) throws TException; - public ListClusterInfoResp listClusterInfo(ListClusterInfoReq req) throws TException; - } public interface AsyncIface { @@ -97,8 +95,6 @@ public interface AsyncIface { public void stopAdminTask(StopAdminTaskRequest req, AsyncMethodCallback resultHandler) throws TException; - public void listClusterInfo(ListClusterInfoReq req, AsyncMethodCallback resultHandler) throws TException; - } public static class Client extends EventHandlerBase implements Iface, TClientIf { @@ -805,51 +801,6 @@ public AdminExecResp recv_stopAdminTask() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "stopAdminTask failed: unknown result"); } - public ListClusterInfoResp listClusterInfo(ListClusterInfoReq req) throws TException - { - ContextStack ctx = getContextStack("StorageAdminService.listClusterInfo", null); - this.setContextStack(ctx); - send_listClusterInfo(req); - return recv_listClusterInfo(); - } - - public void send_listClusterInfo(ListClusterInfoReq req) throws TException - { - ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "StorageAdminService.listClusterInfo", null); - oprot_.writeMessageBegin(new TMessage("listClusterInfo", TMessageType.CALL, seqid_)); - listClusterInfo_args args = new listClusterInfo_args(); - args.req = req; - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); - super.postWrite(ctx, "StorageAdminService.listClusterInfo", args); - return; - } - - public ListClusterInfoResp recv_listClusterInfo() throws TException - { - ContextStack ctx = super.getContextStack(); - long bytes; - TMessageType mtype; - super.preRead(ctx, "StorageAdminService.listClusterInfo"); - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - listClusterInfo_result result = new listClusterInfo_result(); - result.read(iprot_); - iprot_.readMessageEnd(); - super.postRead(ctx, "StorageAdminService.listClusterInfo", result); - - if (result.isSetSuccess()) { - return result.success; - } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "listClusterInfo failed: unknown result"); - } - } public static class AsyncClient extends TAsyncClient implements AsyncIface { public static class Factory implements TAsyncClientFactory { @@ -868,17 +819,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void transLeader(TransLeaderReq req, AsyncMethodCallback resultHandler441) throws TException { + public void transLeader(TransLeaderReq req, AsyncMethodCallback resultHandler452) throws TException { checkReady(); - transLeader_call method_call = new transLeader_call(req, resultHandler441, this, ___protocolFactory, ___transport); + transLeader_call method_call = new transLeader_call(req, resultHandler452, 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 resultHandler442, TAsyncClient client438, TProtocolFactory protocolFactory439, TNonblockingTransport transport440) throws TException { - super(client438, protocolFactory439, transport440, resultHandler442, false); + public transLeader_call(TransLeaderReq req, AsyncMethodCallback resultHandler453, TAsyncClient client449, TProtocolFactory protocolFactory450, TNonblockingTransport transport451) throws TException { + super(client449, protocolFactory450, transport451, resultHandler453, false); this.req = req; } @@ -900,17 +851,17 @@ public AdminExecResp getResult() throws TException { } } - public void addPart(AddPartReq req, AsyncMethodCallback resultHandler446) throws TException { + public void addPart(AddPartReq req, AsyncMethodCallback resultHandler457) throws TException { checkReady(); - addPart_call method_call = new addPart_call(req, resultHandler446, this, ___protocolFactory, ___transport); + addPart_call method_call = new addPart_call(req, resultHandler457, 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 resultHandler447, TAsyncClient client443, TProtocolFactory protocolFactory444, TNonblockingTransport transport445) throws TException { - super(client443, protocolFactory444, transport445, resultHandler447, false); + public addPart_call(AddPartReq req, AsyncMethodCallback resultHandler458, TAsyncClient client454, TProtocolFactory protocolFactory455, TNonblockingTransport transport456) throws TException { + super(client454, protocolFactory455, transport456, resultHandler458, false); this.req = req; } @@ -932,17 +883,17 @@ public AdminExecResp getResult() throws TException { } } - public void addLearner(AddLearnerReq req, AsyncMethodCallback resultHandler451) throws TException { + public void addLearner(AddLearnerReq req, AsyncMethodCallback resultHandler462) throws TException { checkReady(); - addLearner_call method_call = new addLearner_call(req, resultHandler451, this, ___protocolFactory, ___transport); + addLearner_call method_call = new addLearner_call(req, resultHandler462, 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 resultHandler452, TAsyncClient client448, TProtocolFactory protocolFactory449, TNonblockingTransport transport450) throws TException { - super(client448, protocolFactory449, transport450, resultHandler452, false); + public addLearner_call(AddLearnerReq req, AsyncMethodCallback resultHandler463, TAsyncClient client459, TProtocolFactory protocolFactory460, TNonblockingTransport transport461) throws TException { + super(client459, protocolFactory460, transport461, resultHandler463, false); this.req = req; } @@ -964,17 +915,17 @@ public AdminExecResp getResult() throws TException { } } - public void removePart(RemovePartReq req, AsyncMethodCallback resultHandler456) throws TException { + public void removePart(RemovePartReq req, AsyncMethodCallback resultHandler467) throws TException { checkReady(); - removePart_call method_call = new removePart_call(req, resultHandler456, this, ___protocolFactory, ___transport); + removePart_call method_call = new removePart_call(req, resultHandler467, 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 resultHandler457, TAsyncClient client453, TProtocolFactory protocolFactory454, TNonblockingTransport transport455) throws TException { - super(client453, protocolFactory454, transport455, resultHandler457, false); + public removePart_call(RemovePartReq req, AsyncMethodCallback resultHandler468, TAsyncClient client464, TProtocolFactory protocolFactory465, TNonblockingTransport transport466) throws TException { + super(client464, protocolFactory465, transport466, resultHandler468, false); this.req = req; } @@ -996,17 +947,17 @@ public AdminExecResp getResult() throws TException { } } - public void memberChange(MemberChangeReq req, AsyncMethodCallback resultHandler461) throws TException { + public void memberChange(MemberChangeReq req, AsyncMethodCallback resultHandler472) throws TException { checkReady(); - memberChange_call method_call = new memberChange_call(req, resultHandler461, this, ___protocolFactory, ___transport); + memberChange_call method_call = new memberChange_call(req, resultHandler472, 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 resultHandler462, TAsyncClient client458, TProtocolFactory protocolFactory459, TNonblockingTransport transport460) throws TException { - super(client458, protocolFactory459, transport460, resultHandler462, false); + public memberChange_call(MemberChangeReq req, AsyncMethodCallback resultHandler473, TAsyncClient client469, TProtocolFactory protocolFactory470, TNonblockingTransport transport471) throws TException { + super(client469, protocolFactory470, transport471, resultHandler473, false); this.req = req; } @@ -1028,17 +979,17 @@ public AdminExecResp getResult() throws TException { } } - public void waitingForCatchUpData(CatchUpDataReq req, AsyncMethodCallback resultHandler466) throws TException { + public void waitingForCatchUpData(CatchUpDataReq req, AsyncMethodCallback resultHandler477) throws TException { checkReady(); - waitingForCatchUpData_call method_call = new waitingForCatchUpData_call(req, resultHandler466, this, ___protocolFactory, ___transport); + waitingForCatchUpData_call method_call = new waitingForCatchUpData_call(req, resultHandler477, 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 resultHandler467, TAsyncClient client463, TProtocolFactory protocolFactory464, TNonblockingTransport transport465) throws TException { - super(client463, protocolFactory464, transport465, resultHandler467, false); + public waitingForCatchUpData_call(CatchUpDataReq req, AsyncMethodCallback resultHandler478, TAsyncClient client474, TProtocolFactory protocolFactory475, TNonblockingTransport transport476) throws TException { + super(client474, protocolFactory475, transport476, resultHandler478, false); this.req = req; } @@ -1060,17 +1011,17 @@ public AdminExecResp getResult() throws TException { } } - public void createCheckpoint(CreateCPRequest req, AsyncMethodCallback resultHandler471) throws TException { + public void createCheckpoint(CreateCPRequest req, AsyncMethodCallback resultHandler482) throws TException { checkReady(); - createCheckpoint_call method_call = new createCheckpoint_call(req, resultHandler471, this, ___protocolFactory, ___transport); + createCheckpoint_call method_call = new createCheckpoint_call(req, resultHandler482, 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 resultHandler472, TAsyncClient client468, TProtocolFactory protocolFactory469, TNonblockingTransport transport470) throws TException { - super(client468, protocolFactory469, transport470, resultHandler472, false); + public createCheckpoint_call(CreateCPRequest req, AsyncMethodCallback resultHandler483, TAsyncClient client479, TProtocolFactory protocolFactory480, TNonblockingTransport transport481) throws TException { + super(client479, protocolFactory480, transport481, resultHandler483, false); this.req = req; } @@ -1092,17 +1043,17 @@ public CreateCPResp getResult() throws TException { } } - public void dropCheckpoint(DropCPRequest req, AsyncMethodCallback resultHandler476) throws TException { + public void dropCheckpoint(DropCPRequest req, AsyncMethodCallback resultHandler487) throws TException { checkReady(); - dropCheckpoint_call method_call = new dropCheckpoint_call(req, resultHandler476, this, ___protocolFactory, ___transport); + dropCheckpoint_call method_call = new dropCheckpoint_call(req, resultHandler487, 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 resultHandler477, TAsyncClient client473, TProtocolFactory protocolFactory474, TNonblockingTransport transport475) throws TException { - super(client473, protocolFactory474, transport475, resultHandler477, false); + public dropCheckpoint_call(DropCPRequest req, AsyncMethodCallback resultHandler488, TAsyncClient client484, TProtocolFactory protocolFactory485, TNonblockingTransport transport486) throws TException { + super(client484, protocolFactory485, transport486, resultHandler488, false); this.req = req; } @@ -1124,17 +1075,17 @@ public AdminExecResp getResult() throws TException { } } - public void blockingWrites(BlockingSignRequest req, AsyncMethodCallback resultHandler481) throws TException { + public void blockingWrites(BlockingSignRequest req, AsyncMethodCallback resultHandler492) throws TException { checkReady(); - blockingWrites_call method_call = new blockingWrites_call(req, resultHandler481, this, ___protocolFactory, ___transport); + blockingWrites_call method_call = new blockingWrites_call(req, resultHandler492, 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 resultHandler482, TAsyncClient client478, TProtocolFactory protocolFactory479, TNonblockingTransport transport480) throws TException { - super(client478, protocolFactory479, transport480, resultHandler482, false); + public blockingWrites_call(BlockingSignRequest req, AsyncMethodCallback resultHandler493, TAsyncClient client489, TProtocolFactory protocolFactory490, TNonblockingTransport transport491) throws TException { + super(client489, protocolFactory490, transport491, resultHandler493, false); this.req = req; } @@ -1156,17 +1107,17 @@ public AdminExecResp getResult() throws TException { } } - public void rebuildTagIndex(RebuildIndexRequest req, AsyncMethodCallback resultHandler486) throws TException { + public void rebuildTagIndex(RebuildIndexRequest req, AsyncMethodCallback resultHandler497) throws TException { checkReady(); - rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler486, this, ___protocolFactory, ___transport); + rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler497, 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 resultHandler487, TAsyncClient client483, TProtocolFactory protocolFactory484, TNonblockingTransport transport485) throws TException { - super(client483, protocolFactory484, transport485, resultHandler487, false); + public rebuildTagIndex_call(RebuildIndexRequest req, AsyncMethodCallback resultHandler498, TAsyncClient client494, TProtocolFactory protocolFactory495, TNonblockingTransport transport496) throws TException { + super(client494, protocolFactory495, transport496, resultHandler498, false); this.req = req; } @@ -1188,17 +1139,17 @@ public AdminExecResp getResult() throws TException { } } - public void rebuildEdgeIndex(RebuildIndexRequest req, AsyncMethodCallback resultHandler491) throws TException { + public void rebuildEdgeIndex(RebuildIndexRequest req, AsyncMethodCallback resultHandler502) throws TException { checkReady(); - rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler491, this, ___protocolFactory, ___transport); + rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler502, 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 resultHandler492, TAsyncClient client488, TProtocolFactory protocolFactory489, TNonblockingTransport transport490) throws TException { - super(client488, protocolFactory489, transport490, resultHandler492, false); + public rebuildEdgeIndex_call(RebuildIndexRequest req, AsyncMethodCallback resultHandler503, TAsyncClient client499, TProtocolFactory protocolFactory500, TNonblockingTransport transport501) throws TException { + super(client499, protocolFactory500, transport501, resultHandler503, false); this.req = req; } @@ -1220,17 +1171,17 @@ public AdminExecResp getResult() throws TException { } } - public void getLeaderParts(GetLeaderReq req, AsyncMethodCallback resultHandler496) throws TException { + public void getLeaderParts(GetLeaderReq req, AsyncMethodCallback resultHandler507) throws TException { checkReady(); - getLeaderParts_call method_call = new getLeaderParts_call(req, resultHandler496, this, ___protocolFactory, ___transport); + getLeaderParts_call method_call = new getLeaderParts_call(req, resultHandler507, 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 resultHandler497, TAsyncClient client493, TProtocolFactory protocolFactory494, TNonblockingTransport transport495) throws TException { - super(client493, protocolFactory494, transport495, resultHandler497, false); + public getLeaderParts_call(GetLeaderReq req, AsyncMethodCallback resultHandler508, TAsyncClient client504, TProtocolFactory protocolFactory505, TNonblockingTransport transport506) throws TException { + super(client504, protocolFactory505, transport506, resultHandler508, false); this.req = req; } @@ -1252,17 +1203,17 @@ public GetLeaderPartsResp getResult() throws TException { } } - public void checkPeers(CheckPeersReq req, AsyncMethodCallback resultHandler501) throws TException { + public void checkPeers(CheckPeersReq req, AsyncMethodCallback resultHandler512) throws TException { checkReady(); - checkPeers_call method_call = new checkPeers_call(req, resultHandler501, this, ___protocolFactory, ___transport); + checkPeers_call method_call = new checkPeers_call(req, resultHandler512, 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 resultHandler502, TAsyncClient client498, TProtocolFactory protocolFactory499, TNonblockingTransport transport500) throws TException { - super(client498, protocolFactory499, transport500, resultHandler502, false); + public checkPeers_call(CheckPeersReq req, AsyncMethodCallback resultHandler513, TAsyncClient client509, TProtocolFactory protocolFactory510, TNonblockingTransport transport511) throws TException { + super(client509, protocolFactory510, transport511, resultHandler513, false); this.req = req; } @@ -1284,17 +1235,17 @@ public AdminExecResp getResult() throws TException { } } - public void addAdminTask(AddAdminTaskRequest req, AsyncMethodCallback resultHandler506) throws TException { + public void addAdminTask(AddAdminTaskRequest req, AsyncMethodCallback resultHandler517) throws TException { checkReady(); - addAdminTask_call method_call = new addAdminTask_call(req, resultHandler506, this, ___protocolFactory, ___transport); + addAdminTask_call method_call = new addAdminTask_call(req, resultHandler517, 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 resultHandler507, TAsyncClient client503, TProtocolFactory protocolFactory504, TNonblockingTransport transport505) throws TException { - super(client503, protocolFactory504, transport505, resultHandler507, false); + public addAdminTask_call(AddAdminTaskRequest req, AsyncMethodCallback resultHandler518, TAsyncClient client514, TProtocolFactory protocolFactory515, TNonblockingTransport transport516) throws TException { + super(client514, protocolFactory515, transport516, resultHandler518, false); this.req = req; } @@ -1316,17 +1267,17 @@ public AdminExecResp getResult() throws TException { } } - public void stopAdminTask(StopAdminTaskRequest req, AsyncMethodCallback resultHandler511) throws TException { + public void stopAdminTask(StopAdminTaskRequest req, AsyncMethodCallback resultHandler522) throws TException { checkReady(); - stopAdminTask_call method_call = new stopAdminTask_call(req, resultHandler511, this, ___protocolFactory, ___transport); + stopAdminTask_call method_call = new stopAdminTask_call(req, resultHandler522, 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 resultHandler512, TAsyncClient client508, TProtocolFactory protocolFactory509, TNonblockingTransport transport510) throws TException { - super(client508, protocolFactory509, transport510, resultHandler512, false); + public stopAdminTask_call(StopAdminTaskRequest req, AsyncMethodCallback resultHandler523, TAsyncClient client519, TProtocolFactory protocolFactory520, TNonblockingTransport transport521) throws TException { + super(client519, protocolFactory520, transport521, resultHandler523, false); this.req = req; } @@ -1348,38 +1299,6 @@ public AdminExecResp getResult() throws TException { } } - public void listClusterInfo(ListClusterInfoReq req, AsyncMethodCallback resultHandler516) throws TException { - checkReady(); - 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 resultHandler517, TAsyncClient client513, TProtocolFactory protocolFactory514, TNonblockingTransport transport515) throws TException { - super(client513, protocolFactory514, transport515, resultHandler517, false); - this.req = req; - } - - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("listClusterInfo", TMessageType.CALL, 0)); - listClusterInfo_args args = new listClusterInfo_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public ListClusterInfoResp 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_listClusterInfo(); - } - } - } public static class Processor implements TProcessor { @@ -1403,7 +1322,6 @@ public Processor(Iface iface) processMap_.put("checkPeers", new checkPeers()); processMap_.put("addAdminTask", new addAdminTask()); processMap_.put("stopAdminTask", new stopAdminTask()); - processMap_.put("listClusterInfo", new listClusterInfo()); } protected static interface ProcessFunction { @@ -1751,27 +1669,6 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } - private class listClusterInfo implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException - { - Object handler_ctx = event_handler_.getContext("StorageAdminService.listClusterInfo", server_ctx); - listClusterInfo_args args = new listClusterInfo_args(); - event_handler_.preRead(handler_ctx, "StorageAdminService.listClusterInfo"); - args.read(iprot); - iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "StorageAdminService.listClusterInfo", args); - listClusterInfo_result result = new listClusterInfo_result(); - result.success = iface_.listClusterInfo(args.req); - event_handler_.preWrite(handler_ctx, "StorageAdminService.listClusterInfo", result); - oprot.writeMessageBegin(new TMessage("listClusterInfo", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "StorageAdminService.listClusterInfo", result); - } - - } - } public static class transLeader_args implements TBase, java.io.Serializable, Cloneable, Comparable { @@ -8299,439 +8196,4 @@ public void validate() throws TException { } - public static class listClusterInfo_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listClusterInfo_args"); - private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - - public ListClusterInfoReq 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, ListClusterInfoReq.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(listClusterInfo_args.class, metaDataMap); - } - - public listClusterInfo_args() { - } - - public listClusterInfo_args( - ListClusterInfoReq req) { - this(); - this.req = req; - } - - /** - * Performs a deep copy on other. - */ - public listClusterInfo_args(listClusterInfo_args other) { - if (other.isSetReq()) { - this.req = TBaseHelper.deepCopy(other.req); - } - } - - public listClusterInfo_args deepCopy() { - return new listClusterInfo_args(this); - } - - public ListClusterInfoReq getReq() { - return this.req; - } - - public listClusterInfo_args setReq(ListClusterInfoReq 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((ListClusterInfoReq)__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 listClusterInfo_args)) - return false; - listClusterInfo_args that = (listClusterInfo_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(listClusterInfo_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 ListClusterInfoReq(); - 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("listClusterInfo_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 listClusterInfo_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listClusterInfo_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - - public ListClusterInfoResp 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, ListClusterInfoResp.class))); - metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); - } - - static { - FieldMetaData.addStructMetaDataMap(listClusterInfo_result.class, metaDataMap); - } - - public listClusterInfo_result() { - } - - public listClusterInfo_result( - ListClusterInfoResp success) { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public listClusterInfo_result(listClusterInfo_result other) { - if (other.isSetSuccess()) { - this.success = TBaseHelper.deepCopy(other.success); - } - } - - public listClusterInfo_result deepCopy() { - return new listClusterInfo_result(this); - } - - public ListClusterInfoResp getSuccess() { - return this.success; - } - - public listClusterInfo_result setSuccess(ListClusterInfoResp 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((ListClusterInfoResp)__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 listClusterInfo_result)) - return false; - listClusterInfo_result that = (listClusterInfo_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(listClusterInfo_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 ListClusterInfoResp(); - 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("listClusterInfo_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/java/com/vesoft/nebula/client/storage/GraphStorageConnection.java b/client/src/main/java/com/vesoft/nebula/client/storage/GraphStorageConnection.java index 6794818b5..a3bfc260a 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 @@ -18,14 +18,11 @@ import com.vesoft.nebula.client.graph.exception.IOErrorException; 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; import java.io.IOException; import java.net.InetAddress; -import java.net.UnknownHostException; import javax.net.ssl.SSLSocketFactory; public class GraphStorageConnection { 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 b221ef9f8..ead2b54dc 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 @@ -7,16 +7,13 @@ import com.facebook.thrift.TException; import com.vesoft.nebula.DataSet; -import com.vesoft.nebula.ErrorCode; import com.vesoft.nebula.client.graph.data.HostAddress; import com.vesoft.nebula.client.meta.MetaManager; import com.vesoft.nebula.client.storage.GraphStorageConnection; import com.vesoft.nebula.client.storage.StorageConnPool; 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.ScanEdgeRequest; -import com.vesoft.nebula.storage.ScanEdgeResponse; import com.vesoft.nebula.storage.ScanResponse; import java.util.ArrayList; import java.util.Collections; 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 10fa498c4..5c599dbd5 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 @@ -7,13 +7,11 @@ import com.facebook.thrift.TException; import com.vesoft.nebula.DataSet; -import com.vesoft.nebula.ErrorCode; import com.vesoft.nebula.client.graph.data.HostAddress; import com.vesoft.nebula.client.meta.MetaManager; import com.vesoft.nebula.client.storage.GraphStorageConnection; import com.vesoft.nebula.client.storage.StorageConnPool; 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;