diff --git a/client/src/main/generated/EndSendCheckpointResponse.java b/client/src/main/generated/EndSendCheckpointResponse.java new file mode 100644 index 000000000..d580f6a43 --- /dev/null +++ b/client/src/main/generated/EndSendCheckpointResponse.java @@ -0,0 +1,283 @@ +/** + * 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 EndSendCheckpointResponse implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("EndSendCheckpointResponse"); + private static final TField ERROR_CODE_FIELD_DESC = new TField("error_code", TType.I32, (short)1); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode error_code; + public static final int ERROR_CODE = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(ERROR_CODE, new FieldMetaData("error_code", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(EndSendCheckpointResponse.class, metaDataMap); + } + + public EndSendCheckpointResponse() { + } + + public EndSendCheckpointResponse( + com.vesoft.nebula.ErrorCode error_code) { + this(); + this.error_code = error_code; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode error_code; + + public Builder() { + } + + public Builder setError_code(final com.vesoft.nebula.ErrorCode error_code) { + this.error_code = error_code; + return this; + } + + public EndSendCheckpointResponse build() { + EndSendCheckpointResponse result = new EndSendCheckpointResponse(); + result.setError_code(this.error_code); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public EndSendCheckpointResponse(EndSendCheckpointResponse other) { + if (other.isSetError_code()) { + this.error_code = TBaseHelper.deepCopy(other.error_code); + } + } + + public EndSendCheckpointResponse deepCopy() { + return new EndSendCheckpointResponse(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getError_code() { + return this.error_code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public EndSendCheckpointResponse setError_code(com.vesoft.nebula.ErrorCode error_code) { + this.error_code = error_code; + return this; + } + + public void unsetError_code() { + this.error_code = null; + } + + // Returns true if field error_code is set (has been assigned a value) and false otherwise + public boolean isSetError_code() { + return this.error_code != null; + } + + public void setError_codeIsSet(boolean __value) { + if (!__value) { + this.error_code = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case ERROR_CODE: + if (__value == null) { + unsetError_code(); + } else { + setError_code((com.vesoft.nebula.ErrorCode)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case ERROR_CODE: + return getError_code(); + + 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 EndSendCheckpointResponse)) + return false; + EndSendCheckpointResponse that = (EndSendCheckpointResponse)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetError_code(), that.isSetError_code(), this.error_code, that.error_code)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {error_code}); + } + + @Override + public int compareTo(EndSendCheckpointResponse other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetError_code()).compareTo(other.isSetError_code()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(error_code, other.error_code); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case ERROR_CODE: + if (__field.type == TType.I32) { + this.error_code = com.vesoft.nebula.ErrorCode.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.error_code != null) { + oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC); + oprot.writeI32(this.error_code == null ? 0 : this.error_code.getValue()); + oprot.writeFieldEnd(); + } + 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("EndSendCheckpointResponse"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("error_code"); + sb.append(space); + sb.append(":").append(space); + if (this.getError_code() == null) { + sb.append("null"); + } else { + String error_code_name = this.getError_code() == null ? "null" : this.getError_code().name(); + if (error_code_name != null) { + sb.append(error_code_name); + sb.append(" ("); + } + sb.append(this.getError_code()); + if (error_code_name != null) { + sb.append(")"); + } + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + +} + diff --git a/client/src/main/generated/RaftexService.java b/client/src/main/generated/RaftexService.java index 6c7c23e13..1d3bff609 100644 --- a/client/src/main/generated/RaftexService.java +++ b/client/src/main/generated/RaftexService.java @@ -39,6 +39,10 @@ public interface Iface { public GetStateResponse getState(GetStateRequest req) throws TException; + public StartSendCheckpointResponse startSendCheckpoint(SendCheckpointRequest req) throws TException; + + public EndSendCheckpointResponse endSendCheckpoint(SendCheckpointRequest req) throws TException; + } public interface AsyncIface { @@ -53,6 +57,10 @@ public interface AsyncIface { public void getState(GetStateRequest req, AsyncMethodCallback resultHandler) throws TException; + public void startSendCheckpoint(SendCheckpointRequest req, AsyncMethodCallback resultHandler) throws TException; + + public void endSendCheckpoint(SendCheckpointRequest req, AsyncMethodCallback resultHandler) throws TException; + } public static class Client extends EventHandlerBase implements Iface, TClientIf { @@ -309,6 +317,96 @@ public GetStateResponse recv_getState() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "getState failed: unknown result"); } + public StartSendCheckpointResponse startSendCheckpoint(SendCheckpointRequest req) throws TException + { + ContextStack ctx = getContextStack("RaftexService.startSendCheckpoint", null); + this.setContextStack(ctx); + send_startSendCheckpoint(req); + return recv_startSendCheckpoint(); + } + + public void send_startSendCheckpoint(SendCheckpointRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "RaftexService.startSendCheckpoint", null); + oprot_.writeMessageBegin(new TMessage("startSendCheckpoint", TMessageType.CALL, seqid_)); + startSendCheckpoint_args args = new startSendCheckpoint_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "RaftexService.startSendCheckpoint", args); + return; + } + + public StartSendCheckpointResponse recv_startSendCheckpoint() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "RaftexService.startSendCheckpoint"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + startSendCheckpoint_result result = new startSendCheckpoint_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "RaftexService.startSendCheckpoint", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "startSendCheckpoint failed: unknown result"); + } + + public EndSendCheckpointResponse endSendCheckpoint(SendCheckpointRequest req) throws TException + { + ContextStack ctx = getContextStack("RaftexService.endSendCheckpoint", null); + this.setContextStack(ctx); + send_endSendCheckpoint(req); + return recv_endSendCheckpoint(); + } + + public void send_endSendCheckpoint(SendCheckpointRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "RaftexService.endSendCheckpoint", null); + oprot_.writeMessageBegin(new TMessage("endSendCheckpoint", TMessageType.CALL, seqid_)); + endSendCheckpoint_args args = new endSendCheckpoint_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "RaftexService.endSendCheckpoint", args); + return; + } + + public EndSendCheckpointResponse recv_endSendCheckpoint() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "RaftexService.endSendCheckpoint"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + endSendCheckpoint_result result = new endSendCheckpoint_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "RaftexService.endSendCheckpoint", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "endSendCheckpoint failed: unknown result"); + } + } public static class AsyncClient extends TAsyncClient implements AsyncIface { public static class Factory implements TAsyncClientFactory { @@ -327,17 +425,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void askForVote(AskForVoteRequest req, AsyncMethodCallback resultHandler20) throws TException { + public void askForVote(AskForVoteRequest req, AsyncMethodCallback resultHandler22) throws TException { checkReady(); - askForVote_call method_call = new askForVote_call(req, resultHandler20, this, ___protocolFactory, ___transport); + askForVote_call method_call = new askForVote_call(req, resultHandler22, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class askForVote_call extends TAsyncMethodCall { private AskForVoteRequest req; - public askForVote_call(AskForVoteRequest req, AsyncMethodCallback resultHandler21, TAsyncClient client17, TProtocolFactory protocolFactory18, TNonblockingTransport transport19) throws TException { - super(client17, protocolFactory18, transport19, resultHandler21, false); + public askForVote_call(AskForVoteRequest req, AsyncMethodCallback resultHandler23, TAsyncClient client19, TProtocolFactory protocolFactory20, TNonblockingTransport transport21) throws TException { + super(client19, protocolFactory20, transport21, resultHandler23, false); this.req = req; } @@ -359,17 +457,17 @@ public AskForVoteResponse getResult() throws TException { } } - public void appendLog(AppendLogRequest req, AsyncMethodCallback resultHandler25) throws TException { + public void appendLog(AppendLogRequest req, AsyncMethodCallback resultHandler27) throws TException { checkReady(); - appendLog_call method_call = new appendLog_call(req, resultHandler25, this, ___protocolFactory, ___transport); + appendLog_call method_call = new appendLog_call(req, resultHandler27, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class appendLog_call extends TAsyncMethodCall { private AppendLogRequest req; - public appendLog_call(AppendLogRequest req, AsyncMethodCallback resultHandler26, TAsyncClient client22, TProtocolFactory protocolFactory23, TNonblockingTransport transport24) throws TException { - super(client22, protocolFactory23, transport24, resultHandler26, false); + public appendLog_call(AppendLogRequest req, AsyncMethodCallback resultHandler28, TAsyncClient client24, TProtocolFactory protocolFactory25, TNonblockingTransport transport26) throws TException { + super(client24, protocolFactory25, transport26, resultHandler28, false); this.req = req; } @@ -391,17 +489,17 @@ public AppendLogResponse getResult() throws TException { } } - public void sendSnapshot(SendSnapshotRequest req, AsyncMethodCallback resultHandler30) throws TException { + public void sendSnapshot(SendSnapshotRequest req, AsyncMethodCallback resultHandler32) throws TException { checkReady(); - sendSnapshot_call method_call = new sendSnapshot_call(req, resultHandler30, this, ___protocolFactory, ___transport); + sendSnapshot_call method_call = new sendSnapshot_call(req, resultHandler32, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sendSnapshot_call extends TAsyncMethodCall { private SendSnapshotRequest req; - public sendSnapshot_call(SendSnapshotRequest req, AsyncMethodCallback resultHandler31, TAsyncClient client27, TProtocolFactory protocolFactory28, TNonblockingTransport transport29) throws TException { - super(client27, protocolFactory28, transport29, resultHandler31, false); + public sendSnapshot_call(SendSnapshotRequest req, AsyncMethodCallback resultHandler33, TAsyncClient client29, TProtocolFactory protocolFactory30, TNonblockingTransport transport31) throws TException { + super(client29, protocolFactory30, transport31, resultHandler33, false); this.req = req; } @@ -423,17 +521,17 @@ public SendSnapshotResponse getResult() throws TException { } } - public void heartbeat(HeartbeatRequest req, AsyncMethodCallback resultHandler35) throws TException { + public void heartbeat(HeartbeatRequest req, AsyncMethodCallback resultHandler37) throws TException { checkReady(); - heartbeat_call method_call = new heartbeat_call(req, resultHandler35, this, ___protocolFactory, ___transport); + heartbeat_call method_call = new heartbeat_call(req, resultHandler37, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class heartbeat_call extends TAsyncMethodCall { private HeartbeatRequest req; - public heartbeat_call(HeartbeatRequest req, AsyncMethodCallback resultHandler36, TAsyncClient client32, TProtocolFactory protocolFactory33, TNonblockingTransport transport34) throws TException { - super(client32, protocolFactory33, transport34, resultHandler36, false); + public heartbeat_call(HeartbeatRequest req, AsyncMethodCallback resultHandler38, TAsyncClient client34, TProtocolFactory protocolFactory35, TNonblockingTransport transport36) throws TException { + super(client34, protocolFactory35, transport36, resultHandler38, false); this.req = req; } @@ -455,17 +553,17 @@ public HeartbeatResponse getResult() throws TException { } } - public void getState(GetStateRequest req, AsyncMethodCallback resultHandler40) throws TException { + public void getState(GetStateRequest req, AsyncMethodCallback resultHandler42) throws TException { checkReady(); - getState_call method_call = new getState_call(req, resultHandler40, this, ___protocolFactory, ___transport); + getState_call method_call = new getState_call(req, resultHandler42, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getState_call extends TAsyncMethodCall { private GetStateRequest req; - public getState_call(GetStateRequest req, AsyncMethodCallback resultHandler41, TAsyncClient client37, TProtocolFactory protocolFactory38, TNonblockingTransport transport39) throws TException { - super(client37, protocolFactory38, transport39, resultHandler41, false); + public getState_call(GetStateRequest req, AsyncMethodCallback resultHandler43, TAsyncClient client39, TProtocolFactory protocolFactory40, TNonblockingTransport transport41) throws TException { + super(client39, protocolFactory40, transport41, resultHandler43, false); this.req = req; } @@ -487,6 +585,70 @@ public GetStateResponse getResult() throws TException { } } + public void startSendCheckpoint(SendCheckpointRequest req, AsyncMethodCallback resultHandler47) throws TException { + checkReady(); + startSendCheckpoint_call method_call = new startSendCheckpoint_call(req, resultHandler47, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class startSendCheckpoint_call extends TAsyncMethodCall { + private SendCheckpointRequest req; + public startSendCheckpoint_call(SendCheckpointRequest req, AsyncMethodCallback resultHandler48, TAsyncClient client44, TProtocolFactory protocolFactory45, TNonblockingTransport transport46) throws TException { + super(client44, protocolFactory45, transport46, resultHandler48, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("startSendCheckpoint", TMessageType.CALL, 0)); + startSendCheckpoint_args args = new startSendCheckpoint_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public StartSendCheckpointResponse 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_startSendCheckpoint(); + } + } + + public void endSendCheckpoint(SendCheckpointRequest req, AsyncMethodCallback resultHandler52) throws TException { + checkReady(); + endSendCheckpoint_call method_call = new endSendCheckpoint_call(req, resultHandler52, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class endSendCheckpoint_call extends TAsyncMethodCall { + private SendCheckpointRequest req; + public endSendCheckpoint_call(SendCheckpointRequest req, AsyncMethodCallback resultHandler53, TAsyncClient client49, TProtocolFactory protocolFactory50, TNonblockingTransport transport51) throws TException { + super(client49, protocolFactory50, transport51, resultHandler53, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("endSendCheckpoint", TMessageType.CALL, 0)); + endSendCheckpoint_args args = new endSendCheckpoint_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public EndSendCheckpointResponse 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_endSendCheckpoint(); + } + } + } public static class Processor implements TProcessor { @@ -500,6 +662,8 @@ public Processor(Iface iface) processMap_.put("sendSnapshot", new sendSnapshot()); processMap_.put("heartbeat", new heartbeat()); processMap_.put("getState", new getState()); + processMap_.put("startSendCheckpoint", new startSendCheckpoint()); + processMap_.put("endSendCheckpoint", new endSendCheckpoint()); } protected static interface ProcessFunction { @@ -637,6 +801,48 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class startSendCheckpoint implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("RaftexService.startSendCheckpoint", server_ctx); + startSendCheckpoint_args args = new startSendCheckpoint_args(); + event_handler_.preRead(handler_ctx, "RaftexService.startSendCheckpoint"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "RaftexService.startSendCheckpoint", args); + startSendCheckpoint_result result = new startSendCheckpoint_result(); + result.success = iface_.startSendCheckpoint(args.req); + event_handler_.preWrite(handler_ctx, "RaftexService.startSendCheckpoint", result); + oprot.writeMessageBegin(new TMessage("startSendCheckpoint", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "RaftexService.startSendCheckpoint", result); + } + + } + + private class endSendCheckpoint implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("RaftexService.endSendCheckpoint", server_ctx); + endSendCheckpoint_args args = new endSendCheckpoint_args(); + event_handler_.preRead(handler_ctx, "RaftexService.endSendCheckpoint"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "RaftexService.endSendCheckpoint", args); + endSendCheckpoint_result result = new endSendCheckpoint_result(); + result.success = iface_.endSendCheckpoint(args.req); + event_handler_.preWrite(handler_ctx, "RaftexService.endSendCheckpoint", result); + oprot.writeMessageBegin(new TMessage("endSendCheckpoint", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "RaftexService.endSendCheckpoint", result); + } + + } + } public static class askForVote_args implements TBase, java.io.Serializable, Cloneable, Comparable { @@ -2814,4 +3020,874 @@ public void validate() throws TException { } + public static class startSendCheckpoint_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("startSendCheckpoint_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public SendCheckpointRequest 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, SendCheckpointRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(startSendCheckpoint_args.class, metaDataMap); + } + + public startSendCheckpoint_args() { + } + + public startSendCheckpoint_args( + SendCheckpointRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public startSendCheckpoint_args(startSendCheckpoint_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public startSendCheckpoint_args deepCopy() { + return new startSendCheckpoint_args(this); + } + + public SendCheckpointRequest getReq() { + return this.req; + } + + public startSendCheckpoint_args setReq(SendCheckpointRequest 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((SendCheckpointRequest)__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 startSendCheckpoint_args)) + return false; + startSendCheckpoint_args that = (startSendCheckpoint_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(startSendCheckpoint_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 SendCheckpointRequest(); + 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("startSendCheckpoint_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 startSendCheckpoint_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("startSendCheckpoint_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public StartSendCheckpointResponse 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, StartSendCheckpointResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(startSendCheckpoint_result.class, metaDataMap); + } + + public startSendCheckpoint_result() { + } + + public startSendCheckpoint_result( + StartSendCheckpointResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public startSendCheckpoint_result(startSendCheckpoint_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public startSendCheckpoint_result deepCopy() { + return new startSendCheckpoint_result(this); + } + + public StartSendCheckpointResponse getSuccess() { + return this.success; + } + + public startSendCheckpoint_result setSuccess(StartSendCheckpointResponse 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((StartSendCheckpointResponse)__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 startSendCheckpoint_result)) + return false; + startSendCheckpoint_result that = (startSendCheckpoint_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(startSendCheckpoint_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 StartSendCheckpointResponse(); + 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("startSendCheckpoint_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 endSendCheckpoint_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("endSendCheckpoint_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public SendCheckpointRequest 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, SendCheckpointRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(endSendCheckpoint_args.class, metaDataMap); + } + + public endSendCheckpoint_args() { + } + + public endSendCheckpoint_args( + SendCheckpointRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public endSendCheckpoint_args(endSendCheckpoint_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public endSendCheckpoint_args deepCopy() { + return new endSendCheckpoint_args(this); + } + + public SendCheckpointRequest getReq() { + return this.req; + } + + public endSendCheckpoint_args setReq(SendCheckpointRequest 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((SendCheckpointRequest)__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 endSendCheckpoint_args)) + return false; + endSendCheckpoint_args that = (endSendCheckpoint_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(endSendCheckpoint_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 SendCheckpointRequest(); + 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("endSendCheckpoint_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 endSendCheckpoint_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("endSendCheckpoint_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public EndSendCheckpointResponse 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, EndSendCheckpointResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(endSendCheckpoint_result.class, metaDataMap); + } + + public endSendCheckpoint_result() { + } + + public endSendCheckpoint_result( + EndSendCheckpointResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public endSendCheckpoint_result(endSendCheckpoint_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public endSendCheckpoint_result deepCopy() { + return new endSendCheckpoint_result(this); + } + + public EndSendCheckpointResponse getSuccess() { + return this.success; + } + + public endSendCheckpoint_result setSuccess(EndSendCheckpointResponse 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((EndSendCheckpointResponse)__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 endSendCheckpoint_result)) + return false; + endSendCheckpoint_result that = (endSendCheckpoint_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(endSendCheckpoint_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 EndSendCheckpointResponse(); + 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("endSendCheckpoint_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/SendCheckpointRequest.java b/client/src/main/generated/SendCheckpointRequest.java new file mode 100644 index 000000000..b74372a6b --- /dev/null +++ b/client/src/main/generated/SendCheckpointRequest.java @@ -0,0 +1,678 @@ +/** + * 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 SendCheckpointRequest implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("SendCheckpointRequest"); + private static final TField SPACE_FIELD_DESC = new TField("space", TType.I32, (short)1); + private static final TField PART_FIELD_DESC = new TField("part", TType.I32, (short)2); + private static final TField CURRENT_TERM_FIELD_DESC = new TField("current_term", TType.I64, (short)3); + private static final TField LEADER_ADDR_FIELD_DESC = new TField("leader_addr", TType.STRING, (short)4); + private static final TField LEADER_PORT_FIELD_DESC = new TField("leader_port", TType.I32, (short)5); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)6); + + public int space; + public int part; + public long current_term; + public String leader_addr; + public int leader_port; + public boolean success; + public static final int SPACE = 1; + public static final int PART = 2; + public static final int CURRENT_TERM = 3; + public static final int LEADER_ADDR = 4; + public static final int LEADER_PORT = 5; + public static final int SUCCESS = 6; + + // isset id assignments + private static final int __SPACE_ISSET_ID = 0; + private static final int __PART_ISSET_ID = 1; + private static final int __CURRENT_TERM_ISSET_ID = 2; + private static final int __LEADER_PORT_ISSET_ID = 3; + private static final int __SUCCESS_ISSET_ID = 4; + private BitSet __isset_bit_vector = new BitSet(5); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SPACE, new FieldMetaData("space", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(PART, new FieldMetaData("part", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(CURRENT_TERM, new FieldMetaData("current_term", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(LEADER_ADDR, new FieldMetaData("leader_addr", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(LEADER_PORT, new FieldMetaData("leader_port", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(SendCheckpointRequest.class, metaDataMap); + } + + public SendCheckpointRequest() { + } + + public SendCheckpointRequest( + int space, + int part, + long current_term, + String leader_addr, + int leader_port, + boolean success) { + this(); + this.space = space; + setSpaceIsSet(true); + this.part = part; + setPartIsSet(true); + this.current_term = current_term; + setCurrent_termIsSet(true); + this.leader_addr = leader_addr; + this.leader_port = leader_port; + setLeader_portIsSet(true); + this.success = success; + setSuccessIsSet(true); + } + + public static class Builder { + private int space; + private int part; + private long current_term; + private String leader_addr; + private int leader_port; + private boolean success; + + BitSet __optional_isset = new BitSet(5); + + public Builder() { + } + + public Builder setSpace(final int space) { + this.space = space; + __optional_isset.set(__SPACE_ISSET_ID, true); + return this; + } + + public Builder setPart(final int part) { + this.part = part; + __optional_isset.set(__PART_ISSET_ID, true); + return this; + } + + public Builder setCurrent_term(final long current_term) { + this.current_term = current_term; + __optional_isset.set(__CURRENT_TERM_ISSET_ID, true); + return this; + } + + public Builder setLeader_addr(final String leader_addr) { + this.leader_addr = leader_addr; + return this; + } + + public Builder setLeader_port(final int leader_port) { + this.leader_port = leader_port; + __optional_isset.set(__LEADER_PORT_ISSET_ID, true); + return this; + } + + public Builder setSuccess(final boolean success) { + this.success = success; + __optional_isset.set(__SUCCESS_ISSET_ID, true); + return this; + } + + public SendCheckpointRequest build() { + SendCheckpointRequest result = new SendCheckpointRequest(); + if (__optional_isset.get(__SPACE_ISSET_ID)) { + result.setSpace(this.space); + } + if (__optional_isset.get(__PART_ISSET_ID)) { + result.setPart(this.part); + } + if (__optional_isset.get(__CURRENT_TERM_ISSET_ID)) { + result.setCurrent_term(this.current_term); + } + result.setLeader_addr(this.leader_addr); + if (__optional_isset.get(__LEADER_PORT_ISSET_ID)) { + result.setLeader_port(this.leader_port); + } + if (__optional_isset.get(__SUCCESS_ISSET_ID)) { + result.setSuccess(this.success); + } + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public SendCheckpointRequest(SendCheckpointRequest other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space = TBaseHelper.deepCopy(other.space); + this.part = TBaseHelper.deepCopy(other.part); + this.current_term = TBaseHelper.deepCopy(other.current_term); + if (other.isSetLeader_addr()) { + this.leader_addr = TBaseHelper.deepCopy(other.leader_addr); + } + this.leader_port = TBaseHelper.deepCopy(other.leader_port); + this.success = TBaseHelper.deepCopy(other.success); + } + + public SendCheckpointRequest deepCopy() { + return new SendCheckpointRequest(this); + } + + public int getSpace() { + return this.space; + } + + public SendCheckpointRequest setSpace(int space) { + this.space = space; + setSpaceIsSet(true); + return this; + } + + public void unsetSpace() { + __isset_bit_vector.clear(__SPACE_ISSET_ID); + } + + // Returns true if field space is set (has been assigned a value) and false otherwise + public boolean isSetSpace() { + return __isset_bit_vector.get(__SPACE_ISSET_ID); + } + + public void setSpaceIsSet(boolean __value) { + __isset_bit_vector.set(__SPACE_ISSET_ID, __value); + } + + public int getPart() { + return this.part; + } + + public SendCheckpointRequest setPart(int part) { + this.part = part; + setPartIsSet(true); + return this; + } + + public void unsetPart() { + __isset_bit_vector.clear(__PART_ISSET_ID); + } + + // Returns true if field part is set (has been assigned a value) and false otherwise + public boolean isSetPart() { + return __isset_bit_vector.get(__PART_ISSET_ID); + } + + public void setPartIsSet(boolean __value) { + __isset_bit_vector.set(__PART_ISSET_ID, __value); + } + + public long getCurrent_term() { + return this.current_term; + } + + public SendCheckpointRequest setCurrent_term(long current_term) { + this.current_term = current_term; + setCurrent_termIsSet(true); + return this; + } + + public void unsetCurrent_term() { + __isset_bit_vector.clear(__CURRENT_TERM_ISSET_ID); + } + + // Returns true if field current_term is set (has been assigned a value) and false otherwise + public boolean isSetCurrent_term() { + return __isset_bit_vector.get(__CURRENT_TERM_ISSET_ID); + } + + public void setCurrent_termIsSet(boolean __value) { + __isset_bit_vector.set(__CURRENT_TERM_ISSET_ID, __value); + } + + public String getLeader_addr() { + return this.leader_addr; + } + + public SendCheckpointRequest setLeader_addr(String leader_addr) { + this.leader_addr = leader_addr; + return this; + } + + public void unsetLeader_addr() { + this.leader_addr = null; + } + + // Returns true if field leader_addr is set (has been assigned a value) and false otherwise + public boolean isSetLeader_addr() { + return this.leader_addr != null; + } + + public void setLeader_addrIsSet(boolean __value) { + if (!__value) { + this.leader_addr = null; + } + } + + public int getLeader_port() { + return this.leader_port; + } + + public SendCheckpointRequest setLeader_port(int leader_port) { + this.leader_port = leader_port; + setLeader_portIsSet(true); + return this; + } + + public void unsetLeader_port() { + __isset_bit_vector.clear(__LEADER_PORT_ISSET_ID); + } + + // Returns true if field leader_port is set (has been assigned a value) and false otherwise + public boolean isSetLeader_port() { + return __isset_bit_vector.get(__LEADER_PORT_ISSET_ID); + } + + public void setLeader_portIsSet(boolean __value) { + __isset_bit_vector.set(__LEADER_PORT_ISSET_ID, __value); + } + + public boolean isSuccess() { + return this.success; + } + + public SendCheckpointRequest setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bit_vector.clear(__SUCCESS_ISSET_ID); + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return __isset_bit_vector.get(__SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean __value) { + __isset_bit_vector.set(__SUCCESS_ISSET_ID, __value); + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SPACE: + if (__value == null) { + unsetSpace(); + } else { + setSpace((Integer)__value); + } + break; + + case PART: + if (__value == null) { + unsetPart(); + } else { + setPart((Integer)__value); + } + break; + + case CURRENT_TERM: + if (__value == null) { + unsetCurrent_term(); + } else { + setCurrent_term((Long)__value); + } + break; + + case LEADER_ADDR: + if (__value == null) { + unsetLeader_addr(); + } else { + setLeader_addr((String)__value); + } + break; + + case LEADER_PORT: + if (__value == null) { + unsetLeader_port(); + } else { + setLeader_port((Integer)__value); + } + break; + + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SPACE: + return new Integer(getSpace()); + + case PART: + return new Integer(getPart()); + + case CURRENT_TERM: + return new Long(getCurrent_term()); + + case LEADER_ADDR: + return getLeader_addr(); + + case LEADER_PORT: + return new Integer(getLeader_port()); + + case SUCCESS: + return new Boolean(isSuccess()); + + 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 SendCheckpointRequest)) + return false; + SendCheckpointRequest that = (SendCheckpointRequest)_that; + + if (!TBaseHelper.equalsNobinary(this.space, that.space)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.part, that.part)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.current_term, that.current_term)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetLeader_addr(), that.isSetLeader_addr(), this.leader_addr, that.leader_addr)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.leader_port, that.leader_port)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space, part, current_term, leader_addr, leader_port, success}); + } + + @Override + public int compareTo(SendCheckpointRequest other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSpace()).compareTo(other.isSetSpace()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(space, other.space); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetPart()).compareTo(other.isSetPart()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(part, other.part); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetCurrent_term()).compareTo(other.isSetCurrent_term()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(current_term, other.current_term); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLeader_addr()).compareTo(other.isSetLeader_addr()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(leader_addr, other.leader_addr); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLeader_port()).compareTo(other.isSetLeader_port()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(leader_port, other.leader_port); + if (lastComparison != 0) { + return lastComparison; + } + 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 SPACE: + if (__field.type == TType.I32) { + this.space = iprot.readI32(); + setSpaceIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PART: + if (__field.type == TType.I32) { + this.part = iprot.readI32(); + setPartIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case CURRENT_TERM: + if (__field.type == TType.I64) { + this.current_term = iprot.readI64(); + setCurrent_termIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LEADER_ADDR: + if (__field.type == TType.STRING) { + this.leader_addr = iprot.readString(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LEADER_PORT: + if (__field.type == TType.I32) { + this.leader_port = iprot.readI32(); + setLeader_portIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case SUCCESS: + if (__field.type == TType.BOOL) { + this.success = iprot.readBool(); + setSuccessIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(SPACE_FIELD_DESC); + oprot.writeI32(this.space); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(PART_FIELD_DESC); + oprot.writeI32(this.part); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(CURRENT_TERM_FIELD_DESC); + oprot.writeI64(this.current_term); + oprot.writeFieldEnd(); + if (this.leader_addr != null) { + oprot.writeFieldBegin(LEADER_ADDR_FIELD_DESC); + oprot.writeString(this.leader_addr); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LEADER_PORT_FIELD_DESC); + oprot.writeI32(this.leader_port); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(this.success); + 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("SendCheckpointRequest"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("space"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getSpace(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("part"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getPart(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("current_term"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getCurrent_term(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("leader_addr"); + sb.append(space); + sb.append(":").append(space); + if (this.getLeader_addr() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getLeader_addr(), indent + 1, prettyPrint)); + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("leader_port"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getLeader_port(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isSuccess(), 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/StartSendCheckpointResponse.java b/client/src/main/generated/StartSendCheckpointResponse.java new file mode 100644 index 000000000..352d134b0 --- /dev/null +++ b/client/src/main/generated/StartSendCheckpointResponse.java @@ -0,0 +1,460 @@ +/** + * 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 StartSendCheckpointResponse implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("StartSendCheckpointResponse"); + private static final TField ERROR_CODE_FIELD_DESC = new TField("error_code", TType.I32, (short)1); + private static final TField PATH_FIELD_DESC = new TField("path", TType.STRING, (short)2); + private static final TField HTTP_PORT_FIELD_DESC = new TField("httpPort", TType.I32, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode error_code; + public byte[] path; + public int httpPort; + public static final int ERROR_CODE = 1; + public static final int PATH = 2; + public static final int HTTPPORT = 3; + + // isset id assignments + private static final int __HTTPPORT_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(ERROR_CODE, new FieldMetaData("error_code", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(PATH, new FieldMetaData("path", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(HTTPPORT, new FieldMetaData("httpPort", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(StartSendCheckpointResponse.class, metaDataMap); + } + + public StartSendCheckpointResponse() { + } + + public StartSendCheckpointResponse( + com.vesoft.nebula.ErrorCode error_code, + byte[] path, + int httpPort) { + this(); + this.error_code = error_code; + this.path = path; + this.httpPort = httpPort; + setHttpPortIsSet(true); + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode error_code; + private byte[] path; + private int httpPort; + + BitSet __optional_isset = new BitSet(1); + + public Builder() { + } + + public Builder setError_code(final com.vesoft.nebula.ErrorCode error_code) { + this.error_code = error_code; + return this; + } + + public Builder setPath(final byte[] path) { + this.path = path; + return this; + } + + public Builder setHttpPort(final int httpPort) { + this.httpPort = httpPort; + __optional_isset.set(__HTTPPORT_ISSET_ID, true); + return this; + } + + public StartSendCheckpointResponse build() { + StartSendCheckpointResponse result = new StartSendCheckpointResponse(); + result.setError_code(this.error_code); + result.setPath(this.path); + if (__optional_isset.get(__HTTPPORT_ISSET_ID)) { + result.setHttpPort(this.httpPort); + } + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public StartSendCheckpointResponse(StartSendCheckpointResponse other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + if (other.isSetError_code()) { + this.error_code = TBaseHelper.deepCopy(other.error_code); + } + if (other.isSetPath()) { + this.path = TBaseHelper.deepCopy(other.path); + } + this.httpPort = TBaseHelper.deepCopy(other.httpPort); + } + + public StartSendCheckpointResponse deepCopy() { + return new StartSendCheckpointResponse(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getError_code() { + return this.error_code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public StartSendCheckpointResponse setError_code(com.vesoft.nebula.ErrorCode error_code) { + this.error_code = error_code; + return this; + } + + public void unsetError_code() { + this.error_code = null; + } + + // Returns true if field error_code is set (has been assigned a value) and false otherwise + public boolean isSetError_code() { + return this.error_code != null; + } + + public void setError_codeIsSet(boolean __value) { + if (!__value) { + this.error_code = null; + } + } + + public byte[] getPath() { + return this.path; + } + + public StartSendCheckpointResponse setPath(byte[] path) { + this.path = path; + return this; + } + + public void unsetPath() { + this.path = null; + } + + // Returns true if field path is set (has been assigned a value) and false otherwise + public boolean isSetPath() { + return this.path != null; + } + + public void setPathIsSet(boolean __value) { + if (!__value) { + this.path = null; + } + } + + public int getHttpPort() { + return this.httpPort; + } + + public StartSendCheckpointResponse setHttpPort(int httpPort) { + this.httpPort = httpPort; + setHttpPortIsSet(true); + return this; + } + + public void unsetHttpPort() { + __isset_bit_vector.clear(__HTTPPORT_ISSET_ID); + } + + // Returns true if field httpPort is set (has been assigned a value) and false otherwise + public boolean isSetHttpPort() { + return __isset_bit_vector.get(__HTTPPORT_ISSET_ID); + } + + public void setHttpPortIsSet(boolean __value) { + __isset_bit_vector.set(__HTTPPORT_ISSET_ID, __value); + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case ERROR_CODE: + if (__value == null) { + unsetError_code(); + } else { + setError_code((com.vesoft.nebula.ErrorCode)__value); + } + break; + + case PATH: + if (__value == null) { + unsetPath(); + } else { + setPath((byte[])__value); + } + break; + + case HTTPPORT: + if (__value == null) { + unsetHttpPort(); + } else { + setHttpPort((Integer)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case ERROR_CODE: + return getError_code(); + + case PATH: + return getPath(); + + case HTTPPORT: + return new Integer(getHttpPort()); + + 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 StartSendCheckpointResponse)) + return false; + StartSendCheckpointResponse that = (StartSendCheckpointResponse)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetError_code(), that.isSetError_code(), this.error_code, that.error_code)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetPath(), that.isSetPath(), this.path, that.path)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.httpPort, that.httpPort)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {error_code, path, httpPort}); + } + + @Override + public int compareTo(StartSendCheckpointResponse other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetError_code()).compareTo(other.isSetError_code()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(error_code, other.error_code); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(path, other.path); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetHttpPort()).compareTo(other.isSetHttpPort()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(httpPort, other.httpPort); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case ERROR_CODE: + if (__field.type == TType.I32) { + this.error_code = com.vesoft.nebula.ErrorCode.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PATH: + if (__field.type == TType.STRING) { + this.path = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case HTTPPORT: + if (__field.type == TType.I32) { + this.httpPort = iprot.readI32(); + setHttpPortIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.error_code != null) { + oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC); + oprot.writeI32(this.error_code == null ? 0 : this.error_code.getValue()); + oprot.writeFieldEnd(); + } + if (this.path != null) { + oprot.writeFieldBegin(PATH_FIELD_DESC); + oprot.writeBinary(this.path); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(HTTP_PORT_FIELD_DESC); + oprot.writeI32(this.httpPort); + 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("StartSendCheckpointResponse"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("error_code"); + sb.append(space); + sb.append(":").append(space); + if (this.getError_code() == null) { + sb.append("null"); + } else { + String error_code_name = this.getError_code() == null ? "null" : this.getError_code().name(); + if (error_code_name != null) { + sb.append(error_code_name); + sb.append(" ("); + } + sb.append(this.getError_code()); + if (error_code_name != null) { + sb.append(")"); + } + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("path"); + sb.append(space); + sb.append(":").append(space); + if (this.getPath() == null) { + sb.append("null"); + } else { + int __path_size = Math.min(this.getPath().length, 128); + for (int i = 0; i < __path_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getPath()[i]).length() > 1 ? Integer.toHexString(this.getPath()[i]).substring(Integer.toHexString(this.getPath()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getPath()[i]).toUpperCase()); + } + if (this.getPath().length > 128) sb.append(" ..."); + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("httpPort"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getHttpPort(), 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/Status.java b/client/src/main/generated/Status.java index f32f0760c..c2457aa06 100644 --- a/client/src/main/generated/Status.java +++ b/client/src/main/generated/Status.java @@ -14,7 +14,8 @@ public enum Status implements com.facebook.thrift.TEnum { STARTING(0), RUNNING(1), STOPPED(2), - WAITING_SNAPSHOT(3); + WAITING_SNAPSHOT(3), + WAITING_CHECKPOINT(4); private final int value; @@ -43,6 +44,8 @@ public static Status findByValue(int value) { return STOPPED; case 3: return WAITING_SNAPSHOT; + case 4: + return WAITING_CHECKPOINT; default: return null; } diff --git a/client/src/main/generated/com/vesoft/nebula/ErrorCode.java b/client/src/main/generated/com/vesoft/nebula/ErrorCode.java index b96d78078..7b03581d4 100644 --- a/client/src/main/generated/com/vesoft/nebula/ErrorCode.java +++ b/client/src/main/generated/com/vesoft/nebula/ErrorCode.java @@ -78,6 +78,7 @@ public enum ErrorCode implements com.facebook.thrift.TEnum { E_RELATED_SPACE_EXISTS(-2016), E_RELATED_FULLTEXT_INDEX_EXISTS(-2017), E_HISTORY_CONFLICT(-2018), + E_ZONE_IS_ENABLED(-2019), E_STORE_FAILURE(-2021), E_STORE_SEGMENT_ILLEGAL(-2022), E_BAD_BALANCE_PLAN(-2023), @@ -97,6 +98,7 @@ public enum ErrorCode implements com.facebook.thrift.TEnum { E_PRIVILEGE_NOT_EXIST(-2037), E_PRIVILEGE_NEED_BASIC_ROLE(-2038), E_PRIVILEGE_ACTION_INVALID(-2039), + E_STORAGE_ENABLE_AUTH(-2058), E_SNAPSHOT_FAILURE(-2040), E_SNAPSHOT_RUNNING_JOBS(-2056), E_SNAPSHOT_NOT_FOUND(-2057), @@ -206,7 +208,8 @@ public enum ErrorCode implements com.facebook.thrift.TEnum { E_POOL_NOT_FOUND(-5004), E_CACHE_WRITE_FAILURE(-5005), E_NODE_NUMBER_EXCEED_LIMIT(-7001), - E_PARSING_LICENSE_FAILURE(-7002), + E_TOTAL_CPU_CORE_EXCEED_LIMIT(-7002), + E_INVALID_LICENSE_MANAGER_STATUS(-7003), E_STORAGE_MEMORY_EXCEEDED(-3600), E_UNKNOWN(-8000); diff --git a/client/src/main/generated/com/vesoft/nebula/SyncInfo.java b/client/src/main/generated/com/vesoft/nebula/SyncInfo.java new file mode 100644 index 000000000..b4340f9ea --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/SyncInfo.java @@ -0,0 +1,454 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula; + +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 SyncInfo implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("SyncInfo"); + private static final TField TIME_LATENCY_FIELD_DESC = new TField("time_latency", TType.I64, (short)1); + private static final TField ID_LAG_FIELD_DESC = new TField("id_lag", TType.I64, (short)2); + private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)3); + + public long time_latency; + public long id_lag; + /** + * + * @see SyncStatus + */ + public SyncStatus status; + public static final int TIME_LATENCY = 1; + public static final int ID_LAG = 2; + public static final int STATUS = 3; + + // isset id assignments + private static final int __TIME_LATENCY_ISSET_ID = 0; + private static final int __ID_LAG_ISSET_ID = 1; + private BitSet __isset_bit_vector = new BitSet(2); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(TIME_LATENCY, new FieldMetaData("time_latency", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(ID_LAG, new FieldMetaData("id_lag", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(SyncInfo.class, metaDataMap); + } + + public SyncInfo() { + } + + public SyncInfo( + long time_latency, + long id_lag, + SyncStatus status) { + this(); + this.time_latency = time_latency; + setTime_latencyIsSet(true); + this.id_lag = id_lag; + setId_lagIsSet(true); + this.status = status; + } + + public static class Builder { + private long time_latency; + private long id_lag; + private SyncStatus status; + + BitSet __optional_isset = new BitSet(2); + + public Builder() { + } + + public Builder setTime_latency(final long time_latency) { + this.time_latency = time_latency; + __optional_isset.set(__TIME_LATENCY_ISSET_ID, true); + return this; + } + + public Builder setId_lag(final long id_lag) { + this.id_lag = id_lag; + __optional_isset.set(__ID_LAG_ISSET_ID, true); + return this; + } + + public Builder setStatus(final SyncStatus status) { + this.status = status; + return this; + } + + public SyncInfo build() { + SyncInfo result = new SyncInfo(); + if (__optional_isset.get(__TIME_LATENCY_ISSET_ID)) { + result.setTime_latency(this.time_latency); + } + if (__optional_isset.get(__ID_LAG_ISSET_ID)) { + result.setId_lag(this.id_lag); + } + result.setStatus(this.status); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public SyncInfo(SyncInfo other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.time_latency = TBaseHelper.deepCopy(other.time_latency); + this.id_lag = TBaseHelper.deepCopy(other.id_lag); + if (other.isSetStatus()) { + this.status = TBaseHelper.deepCopy(other.status); + } + } + + public SyncInfo deepCopy() { + return new SyncInfo(this); + } + + public long getTime_latency() { + return this.time_latency; + } + + public SyncInfo setTime_latency(long time_latency) { + this.time_latency = time_latency; + setTime_latencyIsSet(true); + return this; + } + + public void unsetTime_latency() { + __isset_bit_vector.clear(__TIME_LATENCY_ISSET_ID); + } + + // Returns true if field time_latency is set (has been assigned a value) and false otherwise + public boolean isSetTime_latency() { + return __isset_bit_vector.get(__TIME_LATENCY_ISSET_ID); + } + + public void setTime_latencyIsSet(boolean __value) { + __isset_bit_vector.set(__TIME_LATENCY_ISSET_ID, __value); + } + + public long getId_lag() { + return this.id_lag; + } + + public SyncInfo setId_lag(long id_lag) { + this.id_lag = id_lag; + setId_lagIsSet(true); + return this; + } + + public void unsetId_lag() { + __isset_bit_vector.clear(__ID_LAG_ISSET_ID); + } + + // Returns true if field id_lag is set (has been assigned a value) and false otherwise + public boolean isSetId_lag() { + return __isset_bit_vector.get(__ID_LAG_ISSET_ID); + } + + public void setId_lagIsSet(boolean __value) { + __isset_bit_vector.set(__ID_LAG_ISSET_ID, __value); + } + + /** + * + * @see SyncStatus + */ + public SyncStatus getStatus() { + return this.status; + } + + /** + * + * @see SyncStatus + */ + public SyncInfo setStatus(SyncStatus status) { + this.status = status; + return this; + } + + public void unsetStatus() { + this.status = null; + } + + // Returns true if field status is set (has been assigned a value) and false otherwise + public boolean isSetStatus() { + return this.status != null; + } + + public void setStatusIsSet(boolean __value) { + if (!__value) { + this.status = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case TIME_LATENCY: + if (__value == null) { + unsetTime_latency(); + } else { + setTime_latency((Long)__value); + } + break; + + case ID_LAG: + if (__value == null) { + unsetId_lag(); + } else { + setId_lag((Long)__value); + } + break; + + case STATUS: + if (__value == null) { + unsetStatus(); + } else { + setStatus((SyncStatus)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case TIME_LATENCY: + return new Long(getTime_latency()); + + case ID_LAG: + return new Long(getId_lag()); + + 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 SyncInfo)) + return false; + SyncInfo that = (SyncInfo)_that; + + if (!TBaseHelper.equalsNobinary(this.time_latency, that.time_latency)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.id_lag, that.id_lag)) { 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[] {time_latency, id_lag, status}); + } + + @Override + public int compareTo(SyncInfo other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTime_latency()).compareTo(other.isSetTime_latency()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(time_latency, other.time_latency); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetId_lag()).compareTo(other.isSetId_lag()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(id_lag, other.id_lag); + 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 TIME_LATENCY: + if (__field.type == TType.I64) { + this.time_latency = iprot.readI64(); + setTime_latencyIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case ID_LAG: + if (__field.type == TType.I64) { + this.id_lag = iprot.readI64(); + setId_lagIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case STATUS: + if (__field.type == TType.I32) { + this.status = SyncStatus.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); + oprot.writeFieldBegin(TIME_LATENCY_FIELD_DESC); + oprot.writeI64(this.time_latency); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(ID_LAG_FIELD_DESC); + oprot.writeI64(this.id_lag); + 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("SyncInfo"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("time_latency"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getTime_latency(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("id_lag"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getId_lag(), 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/SyncStatus.java b/client/src/main/generated/com/vesoft/nebula/SyncStatus.java new file mode 100644 index 000000000..4bd202c09 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/SyncStatus.java @@ -0,0 +1,49 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula; + + +import com.facebook.thrift.IntRangeSet; +import java.util.Map; +import java.util.HashMap; + +@SuppressWarnings({ "unused" }) +public enum SyncStatus implements com.facebook.thrift.TEnum { + UNKNOWN(0), + ONLINE(1), + OFFLINE(2); + + private final int value; + + private SyncStatus(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 SyncStatus findByValue(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return ONLINE; + case 2: + return OFFLINE; + default: + return null; + } + } +} diff --git a/client/src/main/generated/com/vesoft/nebula/drainer/AppendLogRequest.java b/client/src/main/generated/com/vesoft/nebula/drainer/AppendLogRequest.java new file mode 100644 index 000000000..5daf59a9e --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/drainer/AppendLogRequest.java @@ -0,0 +1,1552 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.drainer; + +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 AppendLogRequest implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("AppendLogRequest"); + private static final TField CLUSTER_ID_FIELD_DESC = new TField("clusterId", TType.I64, (short)1); + private static final TField SPACE_FIELD_DESC = new TField("space", TType.I32, (short)2); + private static final TField PART_FIELD_DESC = new TField("part", TType.I32, (short)3); + private static final TField PART_NUM_FIELD_DESC = new TField("part_num", TType.I32, (short)4); + private static final TField LAST_LOG_ID_TO_SEND_FIELD_DESC = new TField("last_log_id_to_send", TType.I64, (short)5); + private static final TField LAST_LOG_ID_SENT_FIELD_DESC = new TField("last_log_id_sent", TType.I64, (short)6); + private static final TField LOG_TERM_FIELD_DESC = new TField("log_term", TType.I64, (short)7); + private static final TField LOG_STR_LIST_FIELD_DESC = new TField("log_str_list", TType.LIST, (short)8); + private static final TField NEED_CLEANUP_FIELD_DESC = new TField("need_cleanup", TType.BOOL, (short)9); + private static final TField IS_SNAPSHOT_FIELD_DESC = new TField("is_snapshot", TType.BOOL, (short)10); + private static final TField SNAPSHOT_FINISHED_FIELD_DESC = new TField("snapshot_finished", TType.BOOL, (short)11); + private static final TField SNAPSHOT_COMMIT_LOG_ID_FIELD_DESC = new TField("snapshot_commitLogId", TType.I64, (short)12); + private static final TField TO_SPACE_NAME_FIELD_DESC = new TField("to_space_name", TType.STRING, (short)13); + private static final TField SYNC_META_FIELD_DESC = new TField("sync_meta", TType.BOOL, (short)14); + private static final TField SPACE_VID_TYPE_FIELD_DESC = new TField("space_vid_type", TType.I32, (short)15); + private static final TField SPACE_VID_LEN_FIELD_DESC = new TField("space_vid_len", TType.I16, (short)16); + + public long clusterId; + public int space; + public int part; + public int part_num; + public long last_log_id_to_send; + public long last_log_id_sent; + public long log_term; + public List log_str_list; + public boolean need_cleanup; + public boolean is_snapshot; + public boolean snapshot_finished; + public long snapshot_commitLogId; + public byte[] to_space_name; + public boolean sync_meta; + /** + * + * @see com.vesoft.nebula.PropertyType + */ + public com.vesoft.nebula.PropertyType space_vid_type; + public short space_vid_len; + public static final int CLUSTERID = 1; + public static final int SPACE = 2; + public static final int PART = 3; + public static final int PART_NUM = 4; + public static final int LAST_LOG_ID_TO_SEND = 5; + public static final int LAST_LOG_ID_SENT = 6; + public static final int LOG_TERM = 7; + public static final int LOG_STR_LIST = 8; + public static final int NEED_CLEANUP = 9; + public static final int IS_SNAPSHOT = 10; + public static final int SNAPSHOT_FINISHED = 11; + public static final int SNAPSHOT_COMMITLOGID = 12; + public static final int TO_SPACE_NAME = 13; + public static final int SYNC_META = 14; + public static final int SPACE_VID_TYPE = 15; + public static final int SPACE_VID_LEN = 16; + + // isset id assignments + private static final int __CLUSTERID_ISSET_ID = 0; + private static final int __SPACE_ISSET_ID = 1; + private static final int __PART_ISSET_ID = 2; + private static final int __PART_NUM_ISSET_ID = 3; + private static final int __LAST_LOG_ID_TO_SEND_ISSET_ID = 4; + private static final int __LAST_LOG_ID_SENT_ISSET_ID = 5; + private static final int __LOG_TERM_ISSET_ID = 6; + private static final int __NEED_CLEANUP_ISSET_ID = 7; + private static final int __IS_SNAPSHOT_ISSET_ID = 8; + private static final int __SNAPSHOT_FINISHED_ISSET_ID = 9; + private static final int __SNAPSHOT_COMMITLOGID_ISSET_ID = 10; + private static final int __SYNC_META_ISSET_ID = 11; + private static final int __SPACE_VID_LEN_ISSET_ID = 12; + private BitSet __isset_bit_vector = new BitSet(13); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(CLUSTERID, new FieldMetaData("clusterId", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(SPACE, new FieldMetaData("space", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(PART, new FieldMetaData("part", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(PART_NUM, new FieldMetaData("part_num", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(LAST_LOG_ID_TO_SEND, new FieldMetaData("last_log_id_to_send", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(LAST_LOG_ID_SENT, new FieldMetaData("last_log_id_sent", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(LOG_TERM, new FieldMetaData("log_term", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(LOG_STR_LIST, new FieldMetaData("log_str_list", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.LogEntry.class)))); + tmpMetaDataMap.put(NEED_CLEANUP, new FieldMetaData("need_cleanup", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); + tmpMetaDataMap.put(IS_SNAPSHOT, new FieldMetaData("is_snapshot", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); + tmpMetaDataMap.put(SNAPSHOT_FINISHED, new FieldMetaData("snapshot_finished", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); + tmpMetaDataMap.put(SNAPSHOT_COMMITLOGID, new FieldMetaData("snapshot_commitLogId", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(TO_SPACE_NAME, new FieldMetaData("to_space_name", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(SYNC_META, new FieldMetaData("sync_meta", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); + tmpMetaDataMap.put(SPACE_VID_TYPE, new FieldMetaData("space_vid_type", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(SPACE_VID_LEN, new FieldMetaData("space_vid_len", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I16))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(AppendLogRequest.class, metaDataMap); + } + + public AppendLogRequest() { + } + + public AppendLogRequest( + long clusterId, + int space, + int part, + int part_num, + long last_log_id_to_send, + long last_log_id_sent, + long log_term, + List log_str_list, + boolean need_cleanup, + boolean is_snapshot, + boolean snapshot_finished, + long snapshot_commitLogId, + byte[] to_space_name, + boolean sync_meta, + com.vesoft.nebula.PropertyType space_vid_type, + short space_vid_len) { + this(); + this.clusterId = clusterId; + setClusterIdIsSet(true); + this.space = space; + setSpaceIsSet(true); + this.part = part; + setPartIsSet(true); + this.part_num = part_num; + setPart_numIsSet(true); + this.last_log_id_to_send = last_log_id_to_send; + setLast_log_id_to_sendIsSet(true); + this.last_log_id_sent = last_log_id_sent; + setLast_log_id_sentIsSet(true); + this.log_term = log_term; + setLog_termIsSet(true); + this.log_str_list = log_str_list; + this.need_cleanup = need_cleanup; + setNeed_cleanupIsSet(true); + this.is_snapshot = is_snapshot; + setIs_snapshotIsSet(true); + this.snapshot_finished = snapshot_finished; + setSnapshot_finishedIsSet(true); + this.snapshot_commitLogId = snapshot_commitLogId; + setSnapshot_commitLogIdIsSet(true); + this.to_space_name = to_space_name; + this.sync_meta = sync_meta; + setSync_metaIsSet(true); + this.space_vid_type = space_vid_type; + this.space_vid_len = space_vid_len; + setSpace_vid_lenIsSet(true); + } + + public static class Builder { + private long clusterId; + private int space; + private int part; + private int part_num; + private long last_log_id_to_send; + private long last_log_id_sent; + private long log_term; + private List log_str_list; + private boolean need_cleanup; + private boolean is_snapshot; + private boolean snapshot_finished; + private long snapshot_commitLogId; + private byte[] to_space_name; + private boolean sync_meta; + private com.vesoft.nebula.PropertyType space_vid_type; + private short space_vid_len; + + BitSet __optional_isset = new BitSet(13); + + public Builder() { + } + + public Builder setClusterId(final long clusterId) { + this.clusterId = clusterId; + __optional_isset.set(__CLUSTERID_ISSET_ID, true); + return this; + } + + public Builder setSpace(final int space) { + this.space = space; + __optional_isset.set(__SPACE_ISSET_ID, true); + return this; + } + + public Builder setPart(final int part) { + this.part = part; + __optional_isset.set(__PART_ISSET_ID, true); + return this; + } + + public Builder setPart_num(final int part_num) { + this.part_num = part_num; + __optional_isset.set(__PART_NUM_ISSET_ID, true); + return this; + } + + public Builder setLast_log_id_to_send(final long last_log_id_to_send) { + this.last_log_id_to_send = last_log_id_to_send; + __optional_isset.set(__LAST_LOG_ID_TO_SEND_ISSET_ID, true); + return this; + } + + public Builder setLast_log_id_sent(final long last_log_id_sent) { + this.last_log_id_sent = last_log_id_sent; + __optional_isset.set(__LAST_LOG_ID_SENT_ISSET_ID, true); + return this; + } + + public Builder setLog_term(final long log_term) { + this.log_term = log_term; + __optional_isset.set(__LOG_TERM_ISSET_ID, true); + return this; + } + + public Builder setLog_str_list(final List log_str_list) { + this.log_str_list = log_str_list; + return this; + } + + public Builder setNeed_cleanup(final boolean need_cleanup) { + this.need_cleanup = need_cleanup; + __optional_isset.set(__NEED_CLEANUP_ISSET_ID, true); + return this; + } + + public Builder setIs_snapshot(final boolean is_snapshot) { + this.is_snapshot = is_snapshot; + __optional_isset.set(__IS_SNAPSHOT_ISSET_ID, true); + return this; + } + + public Builder setSnapshot_finished(final boolean snapshot_finished) { + this.snapshot_finished = snapshot_finished; + __optional_isset.set(__SNAPSHOT_FINISHED_ISSET_ID, true); + return this; + } + + public Builder setSnapshot_commitLogId(final long snapshot_commitLogId) { + this.snapshot_commitLogId = snapshot_commitLogId; + __optional_isset.set(__SNAPSHOT_COMMITLOGID_ISSET_ID, true); + return this; + } + + public Builder setTo_space_name(final byte[] to_space_name) { + this.to_space_name = to_space_name; + return this; + } + + public Builder setSync_meta(final boolean sync_meta) { + this.sync_meta = sync_meta; + __optional_isset.set(__SYNC_META_ISSET_ID, true); + return this; + } + + public Builder setSpace_vid_type(final com.vesoft.nebula.PropertyType space_vid_type) { + this.space_vid_type = space_vid_type; + return this; + } + + public Builder setSpace_vid_len(final short space_vid_len) { + this.space_vid_len = space_vid_len; + __optional_isset.set(__SPACE_VID_LEN_ISSET_ID, true); + return this; + } + + public AppendLogRequest build() { + AppendLogRequest result = new AppendLogRequest(); + if (__optional_isset.get(__CLUSTERID_ISSET_ID)) { + result.setClusterId(this.clusterId); + } + if (__optional_isset.get(__SPACE_ISSET_ID)) { + result.setSpace(this.space); + } + if (__optional_isset.get(__PART_ISSET_ID)) { + result.setPart(this.part); + } + if (__optional_isset.get(__PART_NUM_ISSET_ID)) { + result.setPart_num(this.part_num); + } + if (__optional_isset.get(__LAST_LOG_ID_TO_SEND_ISSET_ID)) { + result.setLast_log_id_to_send(this.last_log_id_to_send); + } + if (__optional_isset.get(__LAST_LOG_ID_SENT_ISSET_ID)) { + result.setLast_log_id_sent(this.last_log_id_sent); + } + if (__optional_isset.get(__LOG_TERM_ISSET_ID)) { + result.setLog_term(this.log_term); + } + result.setLog_str_list(this.log_str_list); + if (__optional_isset.get(__NEED_CLEANUP_ISSET_ID)) { + result.setNeed_cleanup(this.need_cleanup); + } + if (__optional_isset.get(__IS_SNAPSHOT_ISSET_ID)) { + result.setIs_snapshot(this.is_snapshot); + } + if (__optional_isset.get(__SNAPSHOT_FINISHED_ISSET_ID)) { + result.setSnapshot_finished(this.snapshot_finished); + } + if (__optional_isset.get(__SNAPSHOT_COMMITLOGID_ISSET_ID)) { + result.setSnapshot_commitLogId(this.snapshot_commitLogId); + } + result.setTo_space_name(this.to_space_name); + if (__optional_isset.get(__SYNC_META_ISSET_ID)) { + result.setSync_meta(this.sync_meta); + } + result.setSpace_vid_type(this.space_vid_type); + if (__optional_isset.get(__SPACE_VID_LEN_ISSET_ID)) { + result.setSpace_vid_len(this.space_vid_len); + } + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public AppendLogRequest(AppendLogRequest other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.clusterId = TBaseHelper.deepCopy(other.clusterId); + this.space = TBaseHelper.deepCopy(other.space); + this.part = TBaseHelper.deepCopy(other.part); + this.part_num = TBaseHelper.deepCopy(other.part_num); + this.last_log_id_to_send = TBaseHelper.deepCopy(other.last_log_id_to_send); + this.last_log_id_sent = TBaseHelper.deepCopy(other.last_log_id_sent); + this.log_term = TBaseHelper.deepCopy(other.log_term); + if (other.isSetLog_str_list()) { + this.log_str_list = TBaseHelper.deepCopy(other.log_str_list); + } + this.need_cleanup = TBaseHelper.deepCopy(other.need_cleanup); + this.is_snapshot = TBaseHelper.deepCopy(other.is_snapshot); + this.snapshot_finished = TBaseHelper.deepCopy(other.snapshot_finished); + this.snapshot_commitLogId = TBaseHelper.deepCopy(other.snapshot_commitLogId); + if (other.isSetTo_space_name()) { + this.to_space_name = TBaseHelper.deepCopy(other.to_space_name); + } + this.sync_meta = TBaseHelper.deepCopy(other.sync_meta); + if (other.isSetSpace_vid_type()) { + this.space_vid_type = TBaseHelper.deepCopy(other.space_vid_type); + } + this.space_vid_len = TBaseHelper.deepCopy(other.space_vid_len); + } + + public AppendLogRequest deepCopy() { + return new AppendLogRequest(this); + } + + public long getClusterId() { + return this.clusterId; + } + + public AppendLogRequest setClusterId(long clusterId) { + this.clusterId = clusterId; + setClusterIdIsSet(true); + return this; + } + + public void unsetClusterId() { + __isset_bit_vector.clear(__CLUSTERID_ISSET_ID); + } + + // Returns true if field clusterId is set (has been assigned a value) and false otherwise + public boolean isSetClusterId() { + return __isset_bit_vector.get(__CLUSTERID_ISSET_ID); + } + + public void setClusterIdIsSet(boolean __value) { + __isset_bit_vector.set(__CLUSTERID_ISSET_ID, __value); + } + + public int getSpace() { + return this.space; + } + + public AppendLogRequest setSpace(int space) { + this.space = space; + setSpaceIsSet(true); + return this; + } + + public void unsetSpace() { + __isset_bit_vector.clear(__SPACE_ISSET_ID); + } + + // Returns true if field space is set (has been assigned a value) and false otherwise + public boolean isSetSpace() { + return __isset_bit_vector.get(__SPACE_ISSET_ID); + } + + public void setSpaceIsSet(boolean __value) { + __isset_bit_vector.set(__SPACE_ISSET_ID, __value); + } + + public int getPart() { + return this.part; + } + + public AppendLogRequest setPart(int part) { + this.part = part; + setPartIsSet(true); + return this; + } + + public void unsetPart() { + __isset_bit_vector.clear(__PART_ISSET_ID); + } + + // Returns true if field part is set (has been assigned a value) and false otherwise + public boolean isSetPart() { + return __isset_bit_vector.get(__PART_ISSET_ID); + } + + public void setPartIsSet(boolean __value) { + __isset_bit_vector.set(__PART_ISSET_ID, __value); + } + + public int getPart_num() { + return this.part_num; + } + + public AppendLogRequest setPart_num(int part_num) { + this.part_num = part_num; + setPart_numIsSet(true); + return this; + } + + public void unsetPart_num() { + __isset_bit_vector.clear(__PART_NUM_ISSET_ID); + } + + // Returns true if field part_num is set (has been assigned a value) and false otherwise + public boolean isSetPart_num() { + return __isset_bit_vector.get(__PART_NUM_ISSET_ID); + } + + public void setPart_numIsSet(boolean __value) { + __isset_bit_vector.set(__PART_NUM_ISSET_ID, __value); + } + + public long getLast_log_id_to_send() { + return this.last_log_id_to_send; + } + + public AppendLogRequest setLast_log_id_to_send(long last_log_id_to_send) { + this.last_log_id_to_send = last_log_id_to_send; + setLast_log_id_to_sendIsSet(true); + return this; + } + + public void unsetLast_log_id_to_send() { + __isset_bit_vector.clear(__LAST_LOG_ID_TO_SEND_ISSET_ID); + } + + // Returns true if field last_log_id_to_send is set (has been assigned a value) and false otherwise + public boolean isSetLast_log_id_to_send() { + return __isset_bit_vector.get(__LAST_LOG_ID_TO_SEND_ISSET_ID); + } + + public void setLast_log_id_to_sendIsSet(boolean __value) { + __isset_bit_vector.set(__LAST_LOG_ID_TO_SEND_ISSET_ID, __value); + } + + public long getLast_log_id_sent() { + return this.last_log_id_sent; + } + + public AppendLogRequest setLast_log_id_sent(long last_log_id_sent) { + this.last_log_id_sent = last_log_id_sent; + setLast_log_id_sentIsSet(true); + return this; + } + + public void unsetLast_log_id_sent() { + __isset_bit_vector.clear(__LAST_LOG_ID_SENT_ISSET_ID); + } + + // Returns true if field last_log_id_sent is set (has been assigned a value) and false otherwise + public boolean isSetLast_log_id_sent() { + return __isset_bit_vector.get(__LAST_LOG_ID_SENT_ISSET_ID); + } + + public void setLast_log_id_sentIsSet(boolean __value) { + __isset_bit_vector.set(__LAST_LOG_ID_SENT_ISSET_ID, __value); + } + + public long getLog_term() { + return this.log_term; + } + + public AppendLogRequest setLog_term(long log_term) { + this.log_term = log_term; + setLog_termIsSet(true); + return this; + } + + public void unsetLog_term() { + __isset_bit_vector.clear(__LOG_TERM_ISSET_ID); + } + + // Returns true if field log_term is set (has been assigned a value) and false otherwise + public boolean isSetLog_term() { + return __isset_bit_vector.get(__LOG_TERM_ISSET_ID); + } + + public void setLog_termIsSet(boolean __value) { + __isset_bit_vector.set(__LOG_TERM_ISSET_ID, __value); + } + + public List getLog_str_list() { + return this.log_str_list; + } + + public AppendLogRequest setLog_str_list(List log_str_list) { + this.log_str_list = log_str_list; + return this; + } + + public void unsetLog_str_list() { + this.log_str_list = null; + } + + // Returns true if field log_str_list is set (has been assigned a value) and false otherwise + public boolean isSetLog_str_list() { + return this.log_str_list != null; + } + + public void setLog_str_listIsSet(boolean __value) { + if (!__value) { + this.log_str_list = null; + } + } + + public boolean isNeed_cleanup() { + return this.need_cleanup; + } + + public AppendLogRequest setNeed_cleanup(boolean need_cleanup) { + this.need_cleanup = need_cleanup; + setNeed_cleanupIsSet(true); + return this; + } + + public void unsetNeed_cleanup() { + __isset_bit_vector.clear(__NEED_CLEANUP_ISSET_ID); + } + + // Returns true if field need_cleanup is set (has been assigned a value) and false otherwise + public boolean isSetNeed_cleanup() { + return __isset_bit_vector.get(__NEED_CLEANUP_ISSET_ID); + } + + public void setNeed_cleanupIsSet(boolean __value) { + __isset_bit_vector.set(__NEED_CLEANUP_ISSET_ID, __value); + } + + public boolean isIs_snapshot() { + return this.is_snapshot; + } + + public AppendLogRequest setIs_snapshot(boolean is_snapshot) { + this.is_snapshot = is_snapshot; + setIs_snapshotIsSet(true); + return this; + } + + public void unsetIs_snapshot() { + __isset_bit_vector.clear(__IS_SNAPSHOT_ISSET_ID); + } + + // Returns true if field is_snapshot is set (has been assigned a value) and false otherwise + public boolean isSetIs_snapshot() { + return __isset_bit_vector.get(__IS_SNAPSHOT_ISSET_ID); + } + + public void setIs_snapshotIsSet(boolean __value) { + __isset_bit_vector.set(__IS_SNAPSHOT_ISSET_ID, __value); + } + + public boolean isSnapshot_finished() { + return this.snapshot_finished; + } + + public AppendLogRequest setSnapshot_finished(boolean snapshot_finished) { + this.snapshot_finished = snapshot_finished; + setSnapshot_finishedIsSet(true); + return this; + } + + public void unsetSnapshot_finished() { + __isset_bit_vector.clear(__SNAPSHOT_FINISHED_ISSET_ID); + } + + // Returns true if field snapshot_finished is set (has been assigned a value) and false otherwise + public boolean isSetSnapshot_finished() { + return __isset_bit_vector.get(__SNAPSHOT_FINISHED_ISSET_ID); + } + + public void setSnapshot_finishedIsSet(boolean __value) { + __isset_bit_vector.set(__SNAPSHOT_FINISHED_ISSET_ID, __value); + } + + public long getSnapshot_commitLogId() { + return this.snapshot_commitLogId; + } + + public AppendLogRequest setSnapshot_commitLogId(long snapshot_commitLogId) { + this.snapshot_commitLogId = snapshot_commitLogId; + setSnapshot_commitLogIdIsSet(true); + return this; + } + + public void unsetSnapshot_commitLogId() { + __isset_bit_vector.clear(__SNAPSHOT_COMMITLOGID_ISSET_ID); + } + + // Returns true if field snapshot_commitLogId is set (has been assigned a value) and false otherwise + public boolean isSetSnapshot_commitLogId() { + return __isset_bit_vector.get(__SNAPSHOT_COMMITLOGID_ISSET_ID); + } + + public void setSnapshot_commitLogIdIsSet(boolean __value) { + __isset_bit_vector.set(__SNAPSHOT_COMMITLOGID_ISSET_ID, __value); + } + + public byte[] getTo_space_name() { + return this.to_space_name; + } + + public AppendLogRequest setTo_space_name(byte[] to_space_name) { + this.to_space_name = to_space_name; + return this; + } + + public void unsetTo_space_name() { + this.to_space_name = null; + } + + // Returns true if field to_space_name is set (has been assigned a value) and false otherwise + public boolean isSetTo_space_name() { + return this.to_space_name != null; + } + + public void setTo_space_nameIsSet(boolean __value) { + if (!__value) { + this.to_space_name = null; + } + } + + public boolean isSync_meta() { + return this.sync_meta; + } + + public AppendLogRequest setSync_meta(boolean sync_meta) { + this.sync_meta = sync_meta; + setSync_metaIsSet(true); + return this; + } + + public void unsetSync_meta() { + __isset_bit_vector.clear(__SYNC_META_ISSET_ID); + } + + // Returns true if field sync_meta is set (has been assigned a value) and false otherwise + public boolean isSetSync_meta() { + return __isset_bit_vector.get(__SYNC_META_ISSET_ID); + } + + public void setSync_metaIsSet(boolean __value) { + __isset_bit_vector.set(__SYNC_META_ISSET_ID, __value); + } + + /** + * + * @see com.vesoft.nebula.PropertyType + */ + public com.vesoft.nebula.PropertyType getSpace_vid_type() { + return this.space_vid_type; + } + + /** + * + * @see com.vesoft.nebula.PropertyType + */ + public AppendLogRequest setSpace_vid_type(com.vesoft.nebula.PropertyType space_vid_type) { + this.space_vid_type = space_vid_type; + return this; + } + + public void unsetSpace_vid_type() { + this.space_vid_type = null; + } + + // Returns true if field space_vid_type is set (has been assigned a value) and false otherwise + public boolean isSetSpace_vid_type() { + return this.space_vid_type != null; + } + + public void setSpace_vid_typeIsSet(boolean __value) { + if (!__value) { + this.space_vid_type = null; + } + } + + public short getSpace_vid_len() { + return this.space_vid_len; + } + + public AppendLogRequest setSpace_vid_len(short space_vid_len) { + this.space_vid_len = space_vid_len; + setSpace_vid_lenIsSet(true); + return this; + } + + public void unsetSpace_vid_len() { + __isset_bit_vector.clear(__SPACE_VID_LEN_ISSET_ID); + } + + // Returns true if field space_vid_len is set (has been assigned a value) and false otherwise + public boolean isSetSpace_vid_len() { + return __isset_bit_vector.get(__SPACE_VID_LEN_ISSET_ID); + } + + public void setSpace_vid_lenIsSet(boolean __value) { + __isset_bit_vector.set(__SPACE_VID_LEN_ISSET_ID, __value); + } + + @SuppressWarnings("unchecked") + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case CLUSTERID: + if (__value == null) { + unsetClusterId(); + } else { + setClusterId((Long)__value); + } + break; + + case SPACE: + if (__value == null) { + unsetSpace(); + } else { + setSpace((Integer)__value); + } + break; + + case PART: + if (__value == null) { + unsetPart(); + } else { + setPart((Integer)__value); + } + break; + + case PART_NUM: + if (__value == null) { + unsetPart_num(); + } else { + setPart_num((Integer)__value); + } + break; + + case LAST_LOG_ID_TO_SEND: + if (__value == null) { + unsetLast_log_id_to_send(); + } else { + setLast_log_id_to_send((Long)__value); + } + break; + + case LAST_LOG_ID_SENT: + if (__value == null) { + unsetLast_log_id_sent(); + } else { + setLast_log_id_sent((Long)__value); + } + break; + + case LOG_TERM: + if (__value == null) { + unsetLog_term(); + } else { + setLog_term((Long)__value); + } + break; + + case LOG_STR_LIST: + if (__value == null) { + unsetLog_str_list(); + } else { + setLog_str_list((List)__value); + } + break; + + case NEED_CLEANUP: + if (__value == null) { + unsetNeed_cleanup(); + } else { + setNeed_cleanup((Boolean)__value); + } + break; + + case IS_SNAPSHOT: + if (__value == null) { + unsetIs_snapshot(); + } else { + setIs_snapshot((Boolean)__value); + } + break; + + case SNAPSHOT_FINISHED: + if (__value == null) { + unsetSnapshot_finished(); + } else { + setSnapshot_finished((Boolean)__value); + } + break; + + case SNAPSHOT_COMMITLOGID: + if (__value == null) { + unsetSnapshot_commitLogId(); + } else { + setSnapshot_commitLogId((Long)__value); + } + break; + + case TO_SPACE_NAME: + if (__value == null) { + unsetTo_space_name(); + } else { + setTo_space_name((byte[])__value); + } + break; + + case SYNC_META: + if (__value == null) { + unsetSync_meta(); + } else { + setSync_meta((Boolean)__value); + } + break; + + case SPACE_VID_TYPE: + if (__value == null) { + unsetSpace_vid_type(); + } else { + setSpace_vid_type((com.vesoft.nebula.PropertyType)__value); + } + break; + + case SPACE_VID_LEN: + if (__value == null) { + unsetSpace_vid_len(); + } else { + setSpace_vid_len((Short)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case CLUSTERID: + return new Long(getClusterId()); + + case SPACE: + return new Integer(getSpace()); + + case PART: + return new Integer(getPart()); + + case PART_NUM: + return new Integer(getPart_num()); + + case LAST_LOG_ID_TO_SEND: + return new Long(getLast_log_id_to_send()); + + case LAST_LOG_ID_SENT: + return new Long(getLast_log_id_sent()); + + case LOG_TERM: + return new Long(getLog_term()); + + case LOG_STR_LIST: + return getLog_str_list(); + + case NEED_CLEANUP: + return new Boolean(isNeed_cleanup()); + + case IS_SNAPSHOT: + return new Boolean(isIs_snapshot()); + + case SNAPSHOT_FINISHED: + return new Boolean(isSnapshot_finished()); + + case SNAPSHOT_COMMITLOGID: + return new Long(getSnapshot_commitLogId()); + + case TO_SPACE_NAME: + return getTo_space_name(); + + case SYNC_META: + return new Boolean(isSync_meta()); + + case SPACE_VID_TYPE: + return getSpace_vid_type(); + + case SPACE_VID_LEN: + return new Short(getSpace_vid_len()); + + 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 AppendLogRequest)) + return false; + AppendLogRequest that = (AppendLogRequest)_that; + + if (!TBaseHelper.equalsNobinary(this.clusterId, that.clusterId)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.space, that.space)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.part, that.part)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.part_num, that.part_num)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.last_log_id_to_send, that.last_log_id_to_send)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.last_log_id_sent, that.last_log_id_sent)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.log_term, that.log_term)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetLog_str_list(), that.isSetLog_str_list(), this.log_str_list, that.log_str_list)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.need_cleanup, that.need_cleanup)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.is_snapshot, that.is_snapshot)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.snapshot_finished, that.snapshot_finished)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.snapshot_commitLogId, that.snapshot_commitLogId)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetTo_space_name(), that.isSetTo_space_name(), this.to_space_name, that.to_space_name)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.sync_meta, that.sync_meta)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetSpace_vid_type(), that.isSetSpace_vid_type(), this.space_vid_type, that.space_vid_type)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.space_vid_len, that.space_vid_len)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {clusterId, space, part, part_num, last_log_id_to_send, last_log_id_sent, log_term, log_str_list, need_cleanup, is_snapshot, snapshot_finished, snapshot_commitLogId, to_space_name, sync_meta, space_vid_type, space_vid_len}); + } + + @Override + public int compareTo(AppendLogRequest other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetClusterId()).compareTo(other.isSetClusterId()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(clusterId, other.clusterId); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetSpace()).compareTo(other.isSetSpace()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(space, other.space); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetPart()).compareTo(other.isSetPart()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(part, other.part); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetPart_num()).compareTo(other.isSetPart_num()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(part_num, other.part_num); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLast_log_id_to_send()).compareTo(other.isSetLast_log_id_to_send()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(last_log_id_to_send, other.last_log_id_to_send); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLast_log_id_sent()).compareTo(other.isSetLast_log_id_sent()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(last_log_id_sent, other.last_log_id_sent); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLog_term()).compareTo(other.isSetLog_term()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(log_term, other.log_term); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLog_str_list()).compareTo(other.isSetLog_str_list()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(log_str_list, other.log_str_list); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetNeed_cleanup()).compareTo(other.isSetNeed_cleanup()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(need_cleanup, other.need_cleanup); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetIs_snapshot()).compareTo(other.isSetIs_snapshot()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(is_snapshot, other.is_snapshot); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetSnapshot_finished()).compareTo(other.isSetSnapshot_finished()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(snapshot_finished, other.snapshot_finished); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetSnapshot_commitLogId()).compareTo(other.isSetSnapshot_commitLogId()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(snapshot_commitLogId, other.snapshot_commitLogId); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetTo_space_name()).compareTo(other.isSetTo_space_name()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(to_space_name, other.to_space_name); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetSync_meta()).compareTo(other.isSetSync_meta()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(sync_meta, other.sync_meta); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetSpace_vid_type()).compareTo(other.isSetSpace_vid_type()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(space_vid_type, other.space_vid_type); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetSpace_vid_len()).compareTo(other.isSetSpace_vid_len()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(space_vid_len, other.space_vid_len); + 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 CLUSTERID: + if (__field.type == TType.I64) { + this.clusterId = iprot.readI64(); + setClusterIdIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case SPACE: + if (__field.type == TType.I32) { + this.space = iprot.readI32(); + setSpaceIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PART: + if (__field.type == TType.I32) { + this.part = iprot.readI32(); + setPartIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PART_NUM: + if (__field.type == TType.I32) { + this.part_num = iprot.readI32(); + setPart_numIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LAST_LOG_ID_TO_SEND: + if (__field.type == TType.I64) { + this.last_log_id_to_send = iprot.readI64(); + setLast_log_id_to_sendIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LAST_LOG_ID_SENT: + if (__field.type == TType.I64) { + this.last_log_id_sent = iprot.readI64(); + setLast_log_id_sentIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LOG_TERM: + if (__field.type == TType.I64) { + this.log_term = iprot.readI64(); + setLog_termIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LOG_STR_LIST: + if (__field.type == TType.LIST) { + { + TList _list0 = iprot.readListBegin(); + this.log_str_list = new ArrayList(Math.max(0, _list0.size)); + for (int _i1 = 0; + (_list0.size < 0) ? iprot.peekList() : (_i1 < _list0.size); + ++_i1) + { + com.vesoft.nebula.LogEntry _elem2; + _elem2 = new com.vesoft.nebula.LogEntry(); + _elem2.read(iprot); + this.log_str_list.add(_elem2); + } + iprot.readListEnd(); + } + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case NEED_CLEANUP: + if (__field.type == TType.BOOL) { + this.need_cleanup = iprot.readBool(); + setNeed_cleanupIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case IS_SNAPSHOT: + if (__field.type == TType.BOOL) { + this.is_snapshot = iprot.readBool(); + setIs_snapshotIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case SNAPSHOT_FINISHED: + if (__field.type == TType.BOOL) { + this.snapshot_finished = iprot.readBool(); + setSnapshot_finishedIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case SNAPSHOT_COMMITLOGID: + if (__field.type == TType.I64) { + this.snapshot_commitLogId = iprot.readI64(); + setSnapshot_commitLogIdIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case TO_SPACE_NAME: + if (__field.type == TType.STRING) { + this.to_space_name = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case SYNC_META: + if (__field.type == TType.BOOL) { + this.sync_meta = iprot.readBool(); + setSync_metaIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case SPACE_VID_TYPE: + if (__field.type == TType.I32) { + this.space_vid_type = com.vesoft.nebula.PropertyType.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case SPACE_VID_LEN: + if (__field.type == TType.I16) { + this.space_vid_len = iprot.readI16(); + setSpace_vid_lenIsSet(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(CLUSTER_ID_FIELD_DESC); + oprot.writeI64(this.clusterId); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(SPACE_FIELD_DESC); + oprot.writeI32(this.space); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(PART_FIELD_DESC); + oprot.writeI32(this.part); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(PART_NUM_FIELD_DESC); + oprot.writeI32(this.part_num); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(LAST_LOG_ID_TO_SEND_FIELD_DESC); + oprot.writeI64(this.last_log_id_to_send); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(LAST_LOG_ID_SENT_FIELD_DESC); + oprot.writeI64(this.last_log_id_sent); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(LOG_TERM_FIELD_DESC); + oprot.writeI64(this.log_term); + oprot.writeFieldEnd(); + if (this.log_str_list != null) { + oprot.writeFieldBegin(LOG_STR_LIST_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.STRUCT, this.log_str_list.size())); + for (com.vesoft.nebula.LogEntry _iter3 : this.log_str_list) { + _iter3.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(NEED_CLEANUP_FIELD_DESC); + oprot.writeBool(this.need_cleanup); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_SNAPSHOT_FIELD_DESC); + oprot.writeBool(this.is_snapshot); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(SNAPSHOT_FINISHED_FIELD_DESC); + oprot.writeBool(this.snapshot_finished); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(SNAPSHOT_COMMIT_LOG_ID_FIELD_DESC); + oprot.writeI64(this.snapshot_commitLogId); + oprot.writeFieldEnd(); + if (this.to_space_name != null) { + oprot.writeFieldBegin(TO_SPACE_NAME_FIELD_DESC); + oprot.writeBinary(this.to_space_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(SYNC_META_FIELD_DESC); + oprot.writeBool(this.sync_meta); + oprot.writeFieldEnd(); + if (this.space_vid_type != null) { + oprot.writeFieldBegin(SPACE_VID_TYPE_FIELD_DESC); + oprot.writeI32(this.space_vid_type == null ? 0 : this.space_vid_type.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(SPACE_VID_LEN_FIELD_DESC); + oprot.writeI16(this.space_vid_len); + 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("AppendLogRequest"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("clusterId"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getClusterId(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("space"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getSpace(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("part"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getPart(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("part_num"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getPart_num(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("last_log_id_to_send"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getLast_log_id_to_send(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("last_log_id_sent"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getLast_log_id_sent(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("log_term"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getLog_term(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("log_str_list"); + sb.append(space); + sb.append(":").append(space); + if (this.getLog_str_list() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getLog_str_list(), indent + 1, prettyPrint)); + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("need_cleanup"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isNeed_cleanup(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("is_snapshot"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isIs_snapshot(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("snapshot_finished"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isSnapshot_finished(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("snapshot_commitLogId"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getSnapshot_commitLogId(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("to_space_name"); + sb.append(space); + sb.append(":").append(space); + if (this.getTo_space_name() == null) { + sb.append("null"); + } else { + int __to_space_name_size = Math.min(this.getTo_space_name().length, 128); + for (int i = 0; i < __to_space_name_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getTo_space_name()[i]).length() > 1 ? Integer.toHexString(this.getTo_space_name()[i]).substring(Integer.toHexString(this.getTo_space_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getTo_space_name()[i]).toUpperCase()); + } + if (this.getTo_space_name().length > 128) sb.append(" ..."); + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("sync_meta"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isSync_meta(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("space_vid_type"); + sb.append(space); + sb.append(":").append(space); + if (this.getSpace_vid_type() == null) { + sb.append("null"); + } else { + String space_vid_type_name = this.getSpace_vid_type() == null ? "null" : this.getSpace_vid_type().name(); + if (space_vid_type_name != null) { + sb.append(space_vid_type_name); + sb.append(" ("); + } + sb.append(this.getSpace_vid_type()); + if (space_vid_type_name != null) { + sb.append(")"); + } + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("space_vid_len"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getSpace_vid_len(), 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/drainer/AppendLogResponse.java b/client/src/main/generated/com/vesoft/nebula/drainer/AppendLogResponse.java new file mode 100644 index 000000000..95ad12dfe --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/drainer/AppendLogResponse.java @@ -0,0 +1,372 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.drainer; + +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 AppendLogResponse implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("AppendLogResponse"); + private static final TField ERROR_CODE_FIELD_DESC = new TField("error_code", TType.I32, (short)1); + private static final TField LAST_MATCHED_LOG_ID_FIELD_DESC = new TField("last_matched_log_id", TType.I64, (short)2); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode error_code; + public long last_matched_log_id; + public static final int ERROR_CODE = 1; + public static final int LAST_MATCHED_LOG_ID = 2; + + // isset id assignments + private static final int __LAST_MATCHED_LOG_ID_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(ERROR_CODE, new FieldMetaData("error_code", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(LAST_MATCHED_LOG_ID, new FieldMetaData("last_matched_log_id", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(AppendLogResponse.class, metaDataMap); + } + + public AppendLogResponse() { + } + + public AppendLogResponse( + com.vesoft.nebula.ErrorCode error_code, + long last_matched_log_id) { + this(); + this.error_code = error_code; + this.last_matched_log_id = last_matched_log_id; + setLast_matched_log_idIsSet(true); + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode error_code; + private long last_matched_log_id; + + BitSet __optional_isset = new BitSet(1); + + public Builder() { + } + + public Builder setError_code(final com.vesoft.nebula.ErrorCode error_code) { + this.error_code = error_code; + return this; + } + + public Builder setLast_matched_log_id(final long last_matched_log_id) { + this.last_matched_log_id = last_matched_log_id; + __optional_isset.set(__LAST_MATCHED_LOG_ID_ISSET_ID, true); + return this; + } + + public AppendLogResponse build() { + AppendLogResponse result = new AppendLogResponse(); + result.setError_code(this.error_code); + if (__optional_isset.get(__LAST_MATCHED_LOG_ID_ISSET_ID)) { + result.setLast_matched_log_id(this.last_matched_log_id); + } + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public AppendLogResponse(AppendLogResponse other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + if (other.isSetError_code()) { + this.error_code = TBaseHelper.deepCopy(other.error_code); + } + this.last_matched_log_id = TBaseHelper.deepCopy(other.last_matched_log_id); + } + + public AppendLogResponse deepCopy() { + return new AppendLogResponse(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getError_code() { + return this.error_code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public AppendLogResponse setError_code(com.vesoft.nebula.ErrorCode error_code) { + this.error_code = error_code; + return this; + } + + public void unsetError_code() { + this.error_code = null; + } + + // Returns true if field error_code is set (has been assigned a value) and false otherwise + public boolean isSetError_code() { + return this.error_code != null; + } + + public void setError_codeIsSet(boolean __value) { + if (!__value) { + this.error_code = null; + } + } + + public long getLast_matched_log_id() { + return this.last_matched_log_id; + } + + public AppendLogResponse setLast_matched_log_id(long last_matched_log_id) { + this.last_matched_log_id = last_matched_log_id; + setLast_matched_log_idIsSet(true); + return this; + } + + public void unsetLast_matched_log_id() { + __isset_bit_vector.clear(__LAST_MATCHED_LOG_ID_ISSET_ID); + } + + // Returns true if field last_matched_log_id is set (has been assigned a value) and false otherwise + public boolean isSetLast_matched_log_id() { + return __isset_bit_vector.get(__LAST_MATCHED_LOG_ID_ISSET_ID); + } + + public void setLast_matched_log_idIsSet(boolean __value) { + __isset_bit_vector.set(__LAST_MATCHED_LOG_ID_ISSET_ID, __value); + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case ERROR_CODE: + if (__value == null) { + unsetError_code(); + } else { + setError_code((com.vesoft.nebula.ErrorCode)__value); + } + break; + + case LAST_MATCHED_LOG_ID: + if (__value == null) { + unsetLast_matched_log_id(); + } else { + setLast_matched_log_id((Long)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case ERROR_CODE: + return getError_code(); + + case LAST_MATCHED_LOG_ID: + return new Long(getLast_matched_log_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 AppendLogResponse)) + return false; + AppendLogResponse that = (AppendLogResponse)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetError_code(), that.isSetError_code(), this.error_code, that.error_code)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.last_matched_log_id, that.last_matched_log_id)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {error_code, last_matched_log_id}); + } + + @Override + public int compareTo(AppendLogResponse other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetError_code()).compareTo(other.isSetError_code()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(error_code, other.error_code); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLast_matched_log_id()).compareTo(other.isSetLast_matched_log_id()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(last_matched_log_id, other.last_matched_log_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 ERROR_CODE: + if (__field.type == TType.I32) { + this.error_code = com.vesoft.nebula.ErrorCode.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LAST_MATCHED_LOG_ID: + if (__field.type == TType.I64) { + this.last_matched_log_id = iprot.readI64(); + setLast_matched_log_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); + if (this.error_code != null) { + oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC); + oprot.writeI32(this.error_code == null ? 0 : this.error_code.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LAST_MATCHED_LOG_ID_FIELD_DESC); + oprot.writeI64(this.last_matched_log_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("AppendLogResponse"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("error_code"); + sb.append(space); + sb.append(":").append(space); + if (this.getError_code() == null) { + sb.append("null"); + } else { + String error_code_name = this.getError_code() == null ? "null" : this.getError_code().name(); + if (error_code_name != null) { + sb.append(error_code_name); + sb.append(" ("); + } + sb.append(this.getError_code()); + if (error_code_name != null) { + sb.append(")"); + } + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("last_matched_log_id"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getLast_matched_log_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/drainer/DrainerService.java b/client/src/main/generated/com/vesoft/nebula/drainer/DrainerService.java new file mode 100644 index 000000000..1715de7e7 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/drainer/DrainerService.java @@ -0,0 +1,1205 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.drainer; + +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 DrainerService { + + public interface Iface { + + public AppendLogResponse appendLog(AppendLogRequest req) throws TException; + + public GetSyncProgressResp getDrainerSyncProgress(GetSyncProgressReq req) throws TException; + + } + + public interface AsyncIface { + + public void appendLog(AppendLogRequest req, AsyncMethodCallback resultHandler) throws TException; + + public void getDrainerSyncProgress(GetSyncProgressReq 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 AppendLogResponse appendLog(AppendLogRequest req) throws TException + { + ContextStack ctx = getContextStack("DrainerService.appendLog", null); + this.setContextStack(ctx); + send_appendLog(req); + return recv_appendLog(); + } + + public void send_appendLog(AppendLogRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "DrainerService.appendLog", null); + oprot_.writeMessageBegin(new TMessage("appendLog", TMessageType.CALL, seqid_)); + appendLog_args args = new appendLog_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "DrainerService.appendLog", args); + return; + } + + public AppendLogResponse recv_appendLog() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "DrainerService.appendLog"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + appendLog_result result = new appendLog_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "DrainerService.appendLog", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "appendLog failed: unknown result"); + } + + public GetSyncProgressResp getDrainerSyncProgress(GetSyncProgressReq req) throws TException + { + ContextStack ctx = getContextStack("DrainerService.getDrainerSyncProgress", null); + this.setContextStack(ctx); + send_getDrainerSyncProgress(req); + return recv_getDrainerSyncProgress(); + } + + public void send_getDrainerSyncProgress(GetSyncProgressReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "DrainerService.getDrainerSyncProgress", null); + oprot_.writeMessageBegin(new TMessage("getDrainerSyncProgress", TMessageType.CALL, seqid_)); + getDrainerSyncProgress_args args = new getDrainerSyncProgress_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "DrainerService.getDrainerSyncProgress", args); + return; + } + + public GetSyncProgressResp recv_getDrainerSyncProgress() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "DrainerService.getDrainerSyncProgress"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + getDrainerSyncProgress_result result = new getDrainerSyncProgress_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "DrainerService.getDrainerSyncProgress", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "getDrainerSyncProgress 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 appendLog(AppendLogRequest req, AsyncMethodCallback resultHandler14) throws TException { + checkReady(); + appendLog_call method_call = new appendLog_call(req, resultHandler14, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class appendLog_call extends TAsyncMethodCall { + private AppendLogRequest req; + public appendLog_call(AppendLogRequest req, AsyncMethodCallback resultHandler15, TAsyncClient client11, TProtocolFactory protocolFactory12, TNonblockingTransport transport13) throws TException { + super(client11, protocolFactory12, transport13, resultHandler15, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("appendLog", TMessageType.CALL, 0)); + appendLog_args args = new appendLog_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public AppendLogResponse 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_appendLog(); + } + } + + public void getDrainerSyncProgress(GetSyncProgressReq req, AsyncMethodCallback resultHandler19) throws TException { + checkReady(); + getDrainerSyncProgress_call method_call = new getDrainerSyncProgress_call(req, resultHandler19, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getDrainerSyncProgress_call extends TAsyncMethodCall { + private GetSyncProgressReq req; + public getDrainerSyncProgress_call(GetSyncProgressReq req, AsyncMethodCallback resultHandler20, TAsyncClient client16, TProtocolFactory protocolFactory17, TNonblockingTransport transport18) throws TException { + super(client16, protocolFactory17, transport18, resultHandler20, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("getDrainerSyncProgress", TMessageType.CALL, 0)); + getDrainerSyncProgress_args args = new getDrainerSyncProgress_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetSyncProgressResp 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_getDrainerSyncProgress(); + } + } + + } + + 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("appendLog", new appendLog()); + processMap_.put("getDrainerSyncProgress", new getDrainerSyncProgress()); + } + + 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 appendLog implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("DrainerService.appendLog", server_ctx); + appendLog_args args = new appendLog_args(); + event_handler_.preRead(handler_ctx, "DrainerService.appendLog"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "DrainerService.appendLog", args); + appendLog_result result = new appendLog_result(); + result.success = iface_.appendLog(args.req); + event_handler_.preWrite(handler_ctx, "DrainerService.appendLog", result); + oprot.writeMessageBegin(new TMessage("appendLog", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "DrainerService.appendLog", result); + } + + } + + private class getDrainerSyncProgress implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("DrainerService.getDrainerSyncProgress", server_ctx); + getDrainerSyncProgress_args args = new getDrainerSyncProgress_args(); + event_handler_.preRead(handler_ctx, "DrainerService.getDrainerSyncProgress"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "DrainerService.getDrainerSyncProgress", args); + getDrainerSyncProgress_result result = new getDrainerSyncProgress_result(); + result.success = iface_.getDrainerSyncProgress(args.req); + event_handler_.preWrite(handler_ctx, "DrainerService.getDrainerSyncProgress", result); + oprot.writeMessageBegin(new TMessage("getDrainerSyncProgress", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "DrainerService.getDrainerSyncProgress", result); + } + + } + + } + + public static class appendLog_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("appendLog_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public AppendLogRequest 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, AppendLogRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(appendLog_args.class, metaDataMap); + } + + public appendLog_args() { + } + + public appendLog_args( + AppendLogRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public appendLog_args(appendLog_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public appendLog_args deepCopy() { + return new appendLog_args(this); + } + + public AppendLogRequest getReq() { + return this.req; + } + + public appendLog_args setReq(AppendLogRequest 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((AppendLogRequest)__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 appendLog_args)) + return false; + appendLog_args that = (appendLog_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(appendLog_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 AppendLogRequest(); + 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("appendLog_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 appendLog_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("appendLog_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public AppendLogResponse 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, AppendLogResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(appendLog_result.class, metaDataMap); + } + + public appendLog_result() { + } + + public appendLog_result( + AppendLogResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public appendLog_result(appendLog_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public appendLog_result deepCopy() { + return new appendLog_result(this); + } + + public AppendLogResponse getSuccess() { + return this.success; + } + + public appendLog_result setSuccess(AppendLogResponse 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((AppendLogResponse)__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 appendLog_result)) + return false; + appendLog_result that = (appendLog_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(appendLog_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 AppendLogResponse(); + 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("appendLog_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 getDrainerSyncProgress_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getDrainerSyncProgress_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public GetSyncProgressReq 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, GetSyncProgressReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getDrainerSyncProgress_args.class, metaDataMap); + } + + public getDrainerSyncProgress_args() { + } + + public getDrainerSyncProgress_args( + GetSyncProgressReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public getDrainerSyncProgress_args(getDrainerSyncProgress_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public getDrainerSyncProgress_args deepCopy() { + return new getDrainerSyncProgress_args(this); + } + + public GetSyncProgressReq getReq() { + return this.req; + } + + public getDrainerSyncProgress_args setReq(GetSyncProgressReq 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((GetSyncProgressReq)__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 getDrainerSyncProgress_args)) + return false; + getDrainerSyncProgress_args that = (getDrainerSyncProgress_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(getDrainerSyncProgress_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 GetSyncProgressReq(); + 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("getDrainerSyncProgress_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 getDrainerSyncProgress_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getDrainerSyncProgress_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public GetSyncProgressResp 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, GetSyncProgressResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getDrainerSyncProgress_result.class, metaDataMap); + } + + public getDrainerSyncProgress_result() { + } + + public getDrainerSyncProgress_result( + GetSyncProgressResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getDrainerSyncProgress_result(getDrainerSyncProgress_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public getDrainerSyncProgress_result deepCopy() { + return new getDrainerSyncProgress_result(this); + } + + public GetSyncProgressResp getSuccess() { + return this.success; + } + + public getDrainerSyncProgress_result setSuccess(GetSyncProgressResp 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((GetSyncProgressResp)__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 getDrainerSyncProgress_result)) + return false; + getDrainerSyncProgress_result that = (getDrainerSyncProgress_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(getDrainerSyncProgress_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 GetSyncProgressResp(); + 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("getDrainerSyncProgress_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/drainer/GetSyncProgressReq.java b/client/src/main/generated/com/vesoft/nebula/drainer/GetSyncProgressReq.java new file mode 100644 index 000000000..d04eb1d5a --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/drainer/GetSyncProgressReq.java @@ -0,0 +1,267 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.drainer; + +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 GetSyncProgressReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("GetSyncProgressReq"); + 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(GetSyncProgressReq.class, metaDataMap); + } + + public GetSyncProgressReq() { + } + + public GetSyncProgressReq( + 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 GetSyncProgressReq build() { + GetSyncProgressReq result = new GetSyncProgressReq(); + 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 GetSyncProgressReq(GetSyncProgressReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + } + + public GetSyncProgressReq deepCopy() { + return new GetSyncProgressReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public GetSyncProgressReq 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 GetSyncProgressReq)) + return false; + GetSyncProgressReq that = (GetSyncProgressReq)_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(GetSyncProgressReq 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("GetSyncProgressReq"); + 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/drainer/GetSyncProgressResp.java b/client/src/main/generated/com/vesoft/nebula/drainer/GetSyncProgressResp.java new file mode 100644 index 000000000..2833e9e03 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/drainer/GetSyncProgressResp.java @@ -0,0 +1,395 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.drainer; + +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 GetSyncProgressResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("GetSyncProgressResp"); + private static final TField ERROR_CODE_FIELD_DESC = new TField("error_code", TType.I32, (short)1); + private static final TField PROGRESSES_FIELD_DESC = new TField("progresses", TType.MAP, (short)2); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode error_code; + public Map progresses; + public static final int ERROR_CODE = 1; + public static final int PROGRESSES = 2; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(ERROR_CODE, new FieldMetaData("error_code", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(PROGRESSES, new FieldMetaData("progresses", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new StructMetaData(TType.STRUCT, com.vesoft.nebula.SyncInfo.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(GetSyncProgressResp.class, metaDataMap); + } + + public GetSyncProgressResp() { + } + + public GetSyncProgressResp( + com.vesoft.nebula.ErrorCode error_code, + Map progresses) { + this(); + this.error_code = error_code; + this.progresses = progresses; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode error_code; + private Map progresses; + + public Builder() { + } + + public Builder setError_code(final com.vesoft.nebula.ErrorCode error_code) { + this.error_code = error_code; + return this; + } + + public Builder setProgresses(final Map progresses) { + this.progresses = progresses; + return this; + } + + public GetSyncProgressResp build() { + GetSyncProgressResp result = new GetSyncProgressResp(); + result.setError_code(this.error_code); + result.setProgresses(this.progresses); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public GetSyncProgressResp(GetSyncProgressResp other) { + if (other.isSetError_code()) { + this.error_code = TBaseHelper.deepCopy(other.error_code); + } + if (other.isSetProgresses()) { + this.progresses = TBaseHelper.deepCopy(other.progresses); + } + } + + public GetSyncProgressResp deepCopy() { + return new GetSyncProgressResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getError_code() { + return this.error_code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public GetSyncProgressResp setError_code(com.vesoft.nebula.ErrorCode error_code) { + this.error_code = error_code; + return this; + } + + public void unsetError_code() { + this.error_code = null; + } + + // Returns true if field error_code is set (has been assigned a value) and false otherwise + public boolean isSetError_code() { + return this.error_code != null; + } + + public void setError_codeIsSet(boolean __value) { + if (!__value) { + this.error_code = null; + } + } + + public Map getProgresses() { + return this.progresses; + } + + public GetSyncProgressResp setProgresses(Map progresses) { + this.progresses = progresses; + return this; + } + + public void unsetProgresses() { + this.progresses = null; + } + + // Returns true if field progresses is set (has been assigned a value) and false otherwise + public boolean isSetProgresses() { + return this.progresses != null; + } + + public void setProgressesIsSet(boolean __value) { + if (!__value) { + this.progresses = null; + } + } + + @SuppressWarnings("unchecked") + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case ERROR_CODE: + if (__value == null) { + unsetError_code(); + } else { + setError_code((com.vesoft.nebula.ErrorCode)__value); + } + break; + + case PROGRESSES: + if (__value == null) { + unsetProgresses(); + } else { + setProgresses((Map)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case ERROR_CODE: + return getError_code(); + + case PROGRESSES: + return getProgresses(); + + 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 GetSyncProgressResp)) + return false; + GetSyncProgressResp that = (GetSyncProgressResp)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetError_code(), that.isSetError_code(), this.error_code, that.error_code)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetProgresses(), that.isSetProgresses(), this.progresses, that.progresses)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {error_code, progresses}); + } + + @Override + public int compareTo(GetSyncProgressResp other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetError_code()).compareTo(other.isSetError_code()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(error_code, other.error_code); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetProgresses()).compareTo(other.isSetProgresses()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(progresses, other.progresses); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case ERROR_CODE: + if (__field.type == TType.I32) { + this.error_code = com.vesoft.nebula.ErrorCode.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PROGRESSES: + if (__field.type == TType.MAP) { + { + TMap _map4 = iprot.readMapBegin(); + this.progresses = new HashMap(Math.max(0, 2*_map4.size)); + for (int _i5 = 0; + (_map4.size < 0) ? iprot.peekMap() : (_i5 < _map4.size); + ++_i5) + { + int _key6; + com.vesoft.nebula.SyncInfo _val7; + _key6 = iprot.readI32(); + _val7 = new com.vesoft.nebula.SyncInfo(); + _val7.read(iprot); + this.progresses.put(_key6, _val7); + } + 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.error_code != null) { + oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC); + oprot.writeI32(this.error_code == null ? 0 : this.error_code.getValue()); + oprot.writeFieldEnd(); + } + if (this.progresses != null) { + oprot.writeFieldBegin(PROGRESSES_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.progresses.size())); + for (Map.Entry _iter8 : this.progresses.entrySet()) { + oprot.writeI32(_iter8.getKey()); + _iter8.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("GetSyncProgressResp"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("error_code"); + sb.append(space); + sb.append(":").append(space); + if (this.getError_code() == null) { + sb.append("null"); + } else { + String error_code_name = this.getError_code() == null ? "null" : this.getError_code().name(); + if (error_code_name != null) { + sb.append(error_code_name); + sb.append(" ("); + } + sb.append(this.getError_code()); + if (error_code_name != null) { + sb.append(")"); + } + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("progresses"); + sb.append(space); + sb.append(":").append(space); + if (this.getProgresses() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getProgresses(), 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/GraphService.java b/client/src/main/generated/com/vesoft/nebula/graph/GraphService.java index 326abd953..8e9f07426 100644 --- a/client/src/main/generated/com/vesoft/nebula/graph/GraphService.java +++ b/client/src/main/generated/com/vesoft/nebula/graph/GraphService.java @@ -45,6 +45,8 @@ public interface Iface { public VerifyClientVersionResp verifyClientVersion(VerifyClientVersionReq req) throws TException; + public HealthResp health() throws TException; + } public interface AsyncIface { @@ -63,6 +65,8 @@ public interface AsyncIface { public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler) throws TException; + public void health(AsyncMethodCallback resultHandler) throws TException; + } public static class Client extends EventHandlerBase implements Iface, TClientIf { @@ -392,6 +396,50 @@ public VerifyClientVersionResp recv_verifyClientVersion() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "verifyClientVersion failed: unknown result"); } + public HealthResp health() throws TException + { + ContextStack ctx = getContextStack("GraphService.health", null); + this.setContextStack(ctx); + send_health(); + return recv_health(); + } + + public void send_health() throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "GraphService.health", null); + oprot_.writeMessageBegin(new TMessage("health", TMessageType.CALL, seqid_)); + health_args args = new health_args(); + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "GraphService.health", args); + return; + } + + public HealthResp recv_health() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "GraphService.health"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + health_result result = new health_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "GraphService.health", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "health failed: unknown result"); + } + } public static class AsyncClient extends TAsyncClient implements AsyncIface { public static class Factory implements TAsyncClientFactory { @@ -410,9 +458,9 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void authenticate(byte[] username, byte[] password, AsyncMethodCallback resultHandler36) throws TException { + public void authenticate(byte[] username, byte[] password, AsyncMethodCallback resultHandler37) throws TException { checkReady(); - authenticate_call method_call = new authenticate_call(username, password, resultHandler36, this, ___protocolFactory, ___transport); + authenticate_call method_call = new authenticate_call(username, password, resultHandler37, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -420,8 +468,8 @@ public void authenticate(byte[] username, byte[] password, AsyncMethodCallback r public static class authenticate_call extends TAsyncMethodCall { private byte[] username; private byte[] password; - public authenticate_call(byte[] username, byte[] password, AsyncMethodCallback resultHandler37, TAsyncClient client33, TProtocolFactory protocolFactory34, TNonblockingTransport transport35) throws TException { - super(client33, protocolFactory34, transport35, resultHandler37, false); + public authenticate_call(byte[] username, byte[] password, AsyncMethodCallback resultHandler38, TAsyncClient client34, TProtocolFactory protocolFactory35, TNonblockingTransport transport36) throws TException { + super(client34, protocolFactory35, transport36, resultHandler38, false); this.username = username; this.password = password; } @@ -445,17 +493,17 @@ public AuthResponse getResult() throws TException { } } - public void signout(long sessionId, AsyncMethodCallback resultHandler41) throws TException { + public void signout(long sessionId, AsyncMethodCallback resultHandler42) throws TException { checkReady(); - signout_call method_call = new signout_call(sessionId, resultHandler41, this, ___protocolFactory, ___transport); + signout_call method_call = new signout_call(sessionId, resultHandler42, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class signout_call extends TAsyncMethodCall { private long sessionId; - public signout_call(long sessionId, AsyncMethodCallback resultHandler42, TAsyncClient client38, TProtocolFactory protocolFactory39, TNonblockingTransport transport40) throws TException { - super(client38, protocolFactory39, transport40, resultHandler42, true); + public signout_call(long sessionId, AsyncMethodCallback resultHandler43, TAsyncClient client39, TProtocolFactory protocolFactory40, TNonblockingTransport transport41) throws TException { + super(client39, protocolFactory40, transport41, resultHandler43, true); this.sessionId = sessionId; } @@ -476,9 +524,9 @@ public void getResult() throws TException { } } - public void execute(long sessionId, byte[] stmt, AsyncMethodCallback resultHandler46) throws TException { + public void execute(long sessionId, byte[] stmt, AsyncMethodCallback resultHandler47) throws TException { checkReady(); - execute_call method_call = new execute_call(sessionId, stmt, resultHandler46, this, ___protocolFactory, ___transport); + execute_call method_call = new execute_call(sessionId, stmt, resultHandler47, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -486,8 +534,8 @@ public void execute(long sessionId, byte[] stmt, AsyncMethodCallback resultHandl public static class execute_call extends TAsyncMethodCall { private long sessionId; private byte[] stmt; - public execute_call(long sessionId, byte[] stmt, AsyncMethodCallback resultHandler47, TAsyncClient client43, TProtocolFactory protocolFactory44, TNonblockingTransport transport45) throws TException { - super(client43, protocolFactory44, transport45, resultHandler47, false); + public execute_call(long sessionId, byte[] stmt, AsyncMethodCallback resultHandler48, TAsyncClient client44, TProtocolFactory protocolFactory45, TNonblockingTransport transport46) throws TException { + super(client44, protocolFactory45, transport46, resultHandler48, false); this.sessionId = sessionId; this.stmt = stmt; } @@ -511,9 +559,9 @@ public ExecutionResponse getResult() throws TException { } } - public void executeWithParameter(long sessionId, byte[] stmt, Map parameterMap, AsyncMethodCallback resultHandler51) throws TException { + public void executeWithParameter(long sessionId, byte[] stmt, Map parameterMap, AsyncMethodCallback resultHandler52) throws TException { checkReady(); - executeWithParameter_call method_call = new executeWithParameter_call(sessionId, stmt, parameterMap, resultHandler51, this, ___protocolFactory, ___transport); + executeWithParameter_call method_call = new executeWithParameter_call(sessionId, stmt, parameterMap, resultHandler52, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -522,8 +570,8 @@ public static class executeWithParameter_call extends TAsyncMethodCall { private long sessionId; private byte[] stmt; private Map parameterMap; - public executeWithParameter_call(long sessionId, byte[] stmt, Map parameterMap, AsyncMethodCallback resultHandler52, TAsyncClient client48, TProtocolFactory protocolFactory49, TNonblockingTransport transport50) throws TException { - super(client48, protocolFactory49, transport50, resultHandler52, false); + public executeWithParameter_call(long sessionId, byte[] stmt, Map parameterMap, AsyncMethodCallback resultHandler53, TAsyncClient client49, TProtocolFactory protocolFactory50, TNonblockingTransport transport51) throws TException { + super(client49, protocolFactory50, transport51, resultHandler53, false); this.sessionId = sessionId; this.stmt = stmt; this.parameterMap = parameterMap; @@ -549,9 +597,9 @@ public ExecutionResponse getResult() throws TException { } } - public void executeJson(long sessionId, byte[] stmt, AsyncMethodCallback resultHandler56) throws TException { + public void executeJson(long sessionId, byte[] stmt, AsyncMethodCallback resultHandler57) throws TException { checkReady(); - executeJson_call method_call = new executeJson_call(sessionId, stmt, resultHandler56, this, ___protocolFactory, ___transport); + executeJson_call method_call = new executeJson_call(sessionId, stmt, resultHandler57, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -559,8 +607,8 @@ public void executeJson(long sessionId, byte[] stmt, AsyncMethodCallback resultH public static class executeJson_call extends TAsyncMethodCall { private long sessionId; private byte[] stmt; - public executeJson_call(long sessionId, byte[] stmt, AsyncMethodCallback resultHandler57, TAsyncClient client53, TProtocolFactory protocolFactory54, TNonblockingTransport transport55) throws TException { - super(client53, protocolFactory54, transport55, resultHandler57, false); + public executeJson_call(long sessionId, byte[] stmt, AsyncMethodCallback resultHandler58, TAsyncClient client54, TProtocolFactory protocolFactory55, TNonblockingTransport transport56) throws TException { + super(client54, protocolFactory55, transport56, resultHandler58, false); this.sessionId = sessionId; this.stmt = stmt; } @@ -584,9 +632,9 @@ public byte[] getResult() throws TException { } } - public void executeJsonWithParameter(long sessionId, byte[] stmt, Map parameterMap, AsyncMethodCallback resultHandler61) throws TException { + public void executeJsonWithParameter(long sessionId, byte[] stmt, Map parameterMap, AsyncMethodCallback resultHandler62) throws TException { checkReady(); - executeJsonWithParameter_call method_call = new executeJsonWithParameter_call(sessionId, stmt, parameterMap, resultHandler61, this, ___protocolFactory, ___transport); + executeJsonWithParameter_call method_call = new executeJsonWithParameter_call(sessionId, stmt, parameterMap, resultHandler62, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -595,8 +643,8 @@ public static class executeJsonWithParameter_call extends TAsyncMethodCall { private long sessionId; private byte[] stmt; private Map parameterMap; - public executeJsonWithParameter_call(long sessionId, byte[] stmt, Map parameterMap, AsyncMethodCallback resultHandler62, TAsyncClient client58, TProtocolFactory protocolFactory59, TNonblockingTransport transport60) throws TException { - super(client58, protocolFactory59, transport60, resultHandler62, false); + public executeJsonWithParameter_call(long sessionId, byte[] stmt, Map parameterMap, AsyncMethodCallback resultHandler63, TAsyncClient client59, TProtocolFactory protocolFactory60, TNonblockingTransport transport61) throws TException { + super(client59, protocolFactory60, transport61, resultHandler63, false); this.sessionId = sessionId; this.stmt = stmt; this.parameterMap = parameterMap; @@ -622,17 +670,17 @@ public byte[] getResult() throws TException { } } - public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler66) throws TException { + public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler67) throws TException { checkReady(); - verifyClientVersion_call method_call = new verifyClientVersion_call(req, resultHandler66, this, ___protocolFactory, ___transport); + verifyClientVersion_call method_call = new verifyClientVersion_call(req, resultHandler67, 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 resultHandler67, TAsyncClient client63, TProtocolFactory protocolFactory64, TNonblockingTransport transport65) throws TException { - super(client63, protocolFactory64, transport65, resultHandler67, false); + public verifyClientVersion_call(VerifyClientVersionReq req, AsyncMethodCallback resultHandler68, TAsyncClient client64, TProtocolFactory protocolFactory65, TNonblockingTransport transport66) throws TException { + super(client64, protocolFactory65, transport66, resultHandler68, false); this.req = req; } @@ -654,6 +702,35 @@ public VerifyClientVersionResp getResult() throws TException { } } + public void health(AsyncMethodCallback resultHandler72) throws TException { + checkReady(); + health_call method_call = new health_call(resultHandler72, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class health_call extends TAsyncMethodCall { + public health_call(AsyncMethodCallback resultHandler73, TAsyncClient client69, TProtocolFactory protocolFactory70, TNonblockingTransport transport71) throws TException { + super(client69, protocolFactory70, transport71, resultHandler73, false); + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("health", TMessageType.CALL, 0)); + health_args args = new health_args(); + args.write(prot); + prot.writeMessageEnd(); + } + + public HealthResp 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_health(); + } + } + } public static class Processor implements TProcessor { @@ -669,6 +746,7 @@ public Processor(Iface iface) processMap_.put("executeJson", new executeJson()); processMap_.put("executeJsonWithParameter", new executeJsonWithParameter()); processMap_.put("verifyClientVersion", new verifyClientVersion()); + processMap_.put("health", new health()); } protected static interface ProcessFunction { @@ -841,6 +919,27 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class health implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("GraphService.health", server_ctx); + health_args args = new health_args(); + event_handler_.preRead(handler_ctx, "GraphService.health"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "GraphService.health", args); + health_result result = new health_result(); + result.success = iface_.health(); + event_handler_.preWrite(handler_ctx, "GraphService.health", result); + oprot.writeMessageBegin(new TMessage("health", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "GraphService.health", result); + } + + } + } public static class authenticate_args implements TBase, java.io.Serializable, Cloneable, Comparable { @@ -2311,18 +2410,18 @@ public void read(TProtocol iprot) throws TException { case PARAMETERMAP: if (__field.type == TType.MAP) { { - TMap _map68 = iprot.readMapBegin(); - this.parameterMap = new HashMap(Math.max(0, 2*_map68.size)); - for (int _i69 = 0; - (_map68.size < 0) ? iprot.peekMap() : (_i69 < _map68.size); - ++_i69) + TMap _map74 = iprot.readMapBegin(); + this.parameterMap = new HashMap(Math.max(0, 2*_map74.size)); + for (int _i75 = 0; + (_map74.size < 0) ? iprot.peekMap() : (_i75 < _map74.size); + ++_i75) { - byte[] _key70; - com.vesoft.nebula.Value _val71; - _key70 = iprot.readBinary(); - _val71 = new com.vesoft.nebula.Value(); - _val71.read(iprot); - this.parameterMap.put(_key70, _val71); + byte[] _key76; + com.vesoft.nebula.Value _val77; + _key76 = iprot.readBinary(); + _val77 = new com.vesoft.nebula.Value(); + _val77.read(iprot); + this.parameterMap.put(_key76, _val77); } iprot.readMapEnd(); } @@ -2359,9 +2458,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PARAMETER_MAP_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.parameterMap.size())); - for (Map.Entry _iter72 : this.parameterMap.entrySet()) { - oprot.writeBinary(_iter72.getKey()); - _iter72.getValue().write(oprot); + for (Map.Entry _iter78 : this.parameterMap.entrySet()) { + oprot.writeBinary(_iter78.getKey()); + _iter78.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -3384,18 +3483,18 @@ public void read(TProtocol iprot) throws TException { case PARAMETERMAP: if (__field.type == TType.MAP) { { - TMap _map73 = iprot.readMapBegin(); - this.parameterMap = new HashMap(Math.max(0, 2*_map73.size)); - for (int _i74 = 0; - (_map73.size < 0) ? iprot.peekMap() : (_i74 < _map73.size); - ++_i74) + TMap _map79 = iprot.readMapBegin(); + this.parameterMap = new HashMap(Math.max(0, 2*_map79.size)); + for (int _i80 = 0; + (_map79.size < 0) ? iprot.peekMap() : (_i80 < _map79.size); + ++_i80) { - byte[] _key75; - com.vesoft.nebula.Value _val76; - _key75 = iprot.readBinary(); - _val76 = new com.vesoft.nebula.Value(); - _val76.read(iprot); - this.parameterMap.put(_key75, _val76); + byte[] _key81; + com.vesoft.nebula.Value _val82; + _key81 = iprot.readBinary(); + _val82 = new com.vesoft.nebula.Value(); + _val82.read(iprot); + this.parameterMap.put(_key81, _val82); } iprot.readMapEnd(); } @@ -3432,9 +3531,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PARAMETER_MAP_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.parameterMap.size())); - for (Map.Entry _iter77 : this.parameterMap.entrySet()) { - oprot.writeBinary(_iter77.getKey()); - _iter77.getValue().write(oprot); + for (Map.Entry _iter83 : this.parameterMap.entrySet()) { + oprot.writeBinary(_iter83.getKey()); + _iter83.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -4160,4 +4259,354 @@ public void validate() throws TException { } + public static class health_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("health_args"); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(health_args.class, metaDataMap); + } + + public health_args() { + } + + /** + * Performs a deep copy on other. + */ + public health_args(health_args other) { + } + + public health_args deepCopy() { + return new health_args(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 health_args)) + return false; + health_args that = (health_args)_that; + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {}); + } + + @Override + public int compareTo(health_args 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("health_args"); + 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 + } + + } + + public static class health_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("health_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public HealthResp 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, HealthResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(health_result.class, metaDataMap); + } + + public health_result() { + } + + public health_result( + HealthResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public health_result(health_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public health_result deepCopy() { + return new health_result(this); + } + + public HealthResp getSuccess() { + return this.success; + } + + public health_result setSuccess(HealthResp 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((HealthResp)__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 health_result)) + return false; + health_result that = (health_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(health_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 HealthResp(); + 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("health_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/HealthResp.java b/client/src/main/generated/com/vesoft/nebula/graph/HealthResp.java new file mode 100644 index 000000000..9d58d3703 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/graph/HealthResp.java @@ -0,0 +1,271 @@ +/** + * 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 HealthResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("HealthResp"); + private static final TField ERROR_CODE_FIELD_DESC = new TField("error_code", TType.I64, (short)1); + + public long error_code; + public static final int ERROR_CODE = 1; + + // isset id assignments + private static final int __ERROR_CODE_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(ERROR_CODE, new FieldMetaData("error_code", TFieldRequirementType.REQUIRED, + new FieldValueMetaData(TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(HealthResp.class, metaDataMap); + } + + public HealthResp() { + } + + public HealthResp( + long error_code) { + this(); + this.error_code = error_code; + setError_codeIsSet(true); + } + + public static class Builder { + private long error_code; + + BitSet __optional_isset = new BitSet(1); + + public Builder() { + } + + public Builder setError_code(final long error_code) { + this.error_code = error_code; + __optional_isset.set(__ERROR_CODE_ISSET_ID, true); + return this; + } + + public HealthResp build() { + HealthResp result = new HealthResp(); + if (__optional_isset.get(__ERROR_CODE_ISSET_ID)) { + result.setError_code(this.error_code); + } + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public HealthResp(HealthResp other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.error_code = TBaseHelper.deepCopy(other.error_code); + } + + public HealthResp deepCopy() { + return new HealthResp(this); + } + + public long getError_code() { + return this.error_code; + } + + public HealthResp setError_code(long error_code) { + this.error_code = error_code; + setError_codeIsSet(true); + return this; + } + + public void unsetError_code() { + __isset_bit_vector.clear(__ERROR_CODE_ISSET_ID); + } + + // Returns true if field error_code is set (has been assigned a value) and false otherwise + public boolean isSetError_code() { + return __isset_bit_vector.get(__ERROR_CODE_ISSET_ID); + } + + public void setError_codeIsSet(boolean __value) { + __isset_bit_vector.set(__ERROR_CODE_ISSET_ID, __value); + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case ERROR_CODE: + if (__value == null) { + unsetError_code(); + } else { + setError_code((Long)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case ERROR_CODE: + return new Long(getError_code()); + + 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 HealthResp)) + return false; + HealthResp that = (HealthResp)_that; + + if (!TBaseHelper.equalsNobinary(this.error_code, that.error_code)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {error_code}); + } + + @Override + public int compareTo(HealthResp other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetError_code()).compareTo(other.isSetError_code()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(error_code, other.error_code); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case ERROR_CODE: + if (__field.type == TType.I64) { + this.error_code = iprot.readI64(); + setError_codeIsSet(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 + if (!isSetError_code()) { + throw new TProtocolException("Required field 'error_code' was not found in serialized data! Struct: " + toString()); + } + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC); + oprot.writeI64(this.error_code); + 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("HealthResp"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("error_code"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getError_code(), 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 + // alas, we cannot check 'error_code' because it's a primitive and you chose the non-beans generator. + } + +} + diff --git a/client/src/main/generated/com/vesoft/nebula/meta/AddDrainerReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddDrainerReq.java new file mode 100644 index 000000000..9fae7778c --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/AddDrainerReq.java @@ -0,0 +1,373 @@ +/** + * 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 AddDrainerReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("AddDrainerReq"); + private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); + private static final TField HOSTS_FIELD_DESC = new TField("hosts", TType.LIST, (short)2); + + public int space_id; + public List hosts; + public static final int SPACE_ID = 1; + public static final int HOSTS = 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(HOSTS, new FieldMetaData("hosts", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(AddDrainerReq.class, metaDataMap); + } + + public AddDrainerReq() { + } + + public AddDrainerReq( + int space_id, + List hosts) { + this(); + this.space_id = space_id; + setSpace_idIsSet(true); + this.hosts = hosts; + } + + public static class Builder { + private int space_id; + private List hosts; + + 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 Builder setHosts(final List hosts) { + this.hosts = hosts; + return this; + } + + public AddDrainerReq build() { + AddDrainerReq result = new AddDrainerReq(); + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setHosts(this.hosts); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public AddDrainerReq(AddDrainerReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetHosts()) { + this.hosts = TBaseHelper.deepCopy(other.hosts); + } + } + + public AddDrainerReq deepCopy() { + return new AddDrainerReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public AddDrainerReq 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 List getHosts() { + return this.hosts; + } + + public AddDrainerReq setHosts(List hosts) { + this.hosts = hosts; + return this; + } + + public void unsetHosts() { + this.hosts = null; + } + + // Returns true if field hosts is set (has been assigned a value) and false otherwise + public boolean isSetHosts() { + return this.hosts != null; + } + + public void setHostsIsSet(boolean __value) { + if (!__value) { + this.hosts = null; + } + } + + @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 HOSTS: + if (__value == null) { + unsetHosts(); + } else { + setHosts((List)__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 HOSTS: + return getHosts(); + + 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 AddDrainerReq)) + return false; + AddDrainerReq that = (AddDrainerReq)_that; + + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetHosts(), that.isSetHosts(), this.hosts, that.hosts)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space_id, hosts}); + } + + @Override + public int compareTo(AddDrainerReq 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(isSetHosts()).compareTo(other.isSetHosts()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(hosts, other.hosts); + 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 HOSTS: + if (__field.type == TType.LIST) { + { + TList _list280 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list280.size)); + for (int _i281 = 0; + (_list280.size < 0) ? iprot.peekList() : (_i281 < _list280.size); + ++_i281) + { + com.vesoft.nebula.HostAddr _elem282; + _elem282 = new com.vesoft.nebula.HostAddr(); + _elem282.read(iprot); + this.hosts.add(_elem282); + } + 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); + oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); + oprot.writeI32(this.space_id); + oprot.writeFieldEnd(); + if (this.hosts != null) { + oprot.writeFieldBegin(HOSTS_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.STRUCT, this.hosts.size())); + for (com.vesoft.nebula.HostAddr _iter283 : this.hosts) { + _iter283.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("AddDrainerReq"); + 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("hosts"); + sb.append(space); + sb.append(":").append(space); + if (this.getHosts() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getHosts(), 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/AddHostsIntoZoneReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddHostsIntoZoneReq.java index f8b90c575..1d03a6236 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddHostsIntoZoneReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AddHostsIntoZoneReq.java @@ -28,18 +28,13 @@ public class AddHostsIntoZoneReq implements TBase, java.io.Serializable, Cloneab private static final TStruct STRUCT_DESC = new TStruct("AddHostsIntoZoneReq"); private static final TField HOSTS_FIELD_DESC = new TField("hosts", TType.LIST, (short)1); private static final TField ZONE_NAME_FIELD_DESC = new TField("zone_name", TType.STRING, (short)2); - private static final TField IS_NEW_FIELD_DESC = new TField("is_new", TType.BOOL, (short)3); public List hosts; public byte[] zone_name; - public boolean is_new; public static final int HOSTS = 1; public static final int ZONE_NAME = 2; - public static final int IS_NEW = 3; // isset id assignments - private static final int __IS_NEW_ISSET_ID = 0; - private BitSet __isset_bit_vector = new BitSet(1); public static final Map metaDataMap; @@ -50,8 +45,6 @@ public class AddHostsIntoZoneReq implements TBase, java.io.Serializable, Cloneab new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class)))); tmpMetaDataMap.put(ZONE_NAME, new FieldMetaData("zone_name", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(IS_NEW, new FieldMetaData("is_new", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -64,21 +57,15 @@ public AddHostsIntoZoneReq() { public AddHostsIntoZoneReq( List hosts, - byte[] zone_name, - boolean is_new) { + byte[] zone_name) { this(); this.hosts = hosts; this.zone_name = zone_name; - this.is_new = is_new; - setIs_newIsSet(true); } public static class Builder { private List hosts; private byte[] zone_name; - private boolean is_new; - - BitSet __optional_isset = new BitSet(1); public Builder() { } @@ -93,19 +80,10 @@ public Builder setZone_name(final byte[] zone_name) { return this; } - public Builder setIs_new(final boolean is_new) { - this.is_new = is_new; - __optional_isset.set(__IS_NEW_ISSET_ID, true); - return this; - } - public AddHostsIntoZoneReq build() { AddHostsIntoZoneReq result = new AddHostsIntoZoneReq(); result.setHosts(this.hosts); result.setZone_name(this.zone_name); - if (__optional_isset.get(__IS_NEW_ISSET_ID)) { - result.setIs_new(this.is_new); - } return result; } } @@ -118,15 +96,12 @@ public static Builder builder() { * Performs a deep copy on other. */ public AddHostsIntoZoneReq(AddHostsIntoZoneReq other) { - __isset_bit_vector.clear(); - __isset_bit_vector.or(other.__isset_bit_vector); if (other.isSetHosts()) { this.hosts = TBaseHelper.deepCopy(other.hosts); } if (other.isSetZone_name()) { this.zone_name = TBaseHelper.deepCopy(other.zone_name); } - this.is_new = TBaseHelper.deepCopy(other.is_new); } public AddHostsIntoZoneReq deepCopy() { @@ -181,29 +156,6 @@ public void setZone_nameIsSet(boolean __value) { } } - public boolean isIs_new() { - return this.is_new; - } - - public AddHostsIntoZoneReq setIs_new(boolean is_new) { - this.is_new = is_new; - setIs_newIsSet(true); - return this; - } - - public void unsetIs_new() { - __isset_bit_vector.clear(__IS_NEW_ISSET_ID); - } - - // Returns true if field is_new is set (has been assigned a value) and false otherwise - public boolean isSetIs_new() { - return __isset_bit_vector.get(__IS_NEW_ISSET_ID); - } - - public void setIs_newIsSet(boolean __value) { - __isset_bit_vector.set(__IS_NEW_ISSET_ID, __value); - } - @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -223,14 +175,6 @@ public void setFieldValue(int fieldID, Object __value) { } break; - case IS_NEW: - if (__value == null) { - unsetIs_new(); - } else { - setIs_new((Boolean)__value); - } - break; - default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -244,9 +188,6 @@ public Object getFieldValue(int fieldID) { case ZONE_NAME: return getZone_name(); - case IS_NEW: - return new Boolean(isIs_new()); - default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -266,14 +207,12 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetZone_name(), that.isSetZone_name(), this.zone_name, that.zone_name)) { return false; } - if (!TBaseHelper.equalsNobinary(this.is_new, that.is_new)) { return false; } - return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {hosts, zone_name, is_new}); + return Arrays.deepHashCode(new Object[] {hosts, zone_name}); } @Override @@ -304,14 +243,6 @@ public int compareTo(AddHostsIntoZoneReq other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetIs_new()).compareTo(other.isSetIs_new()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(is_new, other.is_new); - if (lastComparison != 0) { - return lastComparison; - } return 0; } @@ -329,16 +260,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - TList _list229 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list229.size)); - for (int _i230 = 0; - (_list229.size < 0) ? iprot.peekList() : (_i230 < _list229.size); - ++_i230) + TList _list246 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list246.size)); + for (int _i247 = 0; + (_list246.size < 0) ? iprot.peekList() : (_i247 < _list246.size); + ++_i247) { - com.vesoft.nebula.HostAddr _elem231; - _elem231 = new com.vesoft.nebula.HostAddr(); - _elem231.read(iprot); - this.hosts.add(_elem231); + com.vesoft.nebula.HostAddr _elem248; + _elem248 = new com.vesoft.nebula.HostAddr(); + _elem248.read(iprot); + this.hosts.add(_elem248); } iprot.readListEnd(); } @@ -353,14 +284,6 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case IS_NEW: - if (__field.type == TType.BOOL) { - this.is_new = iprot.readBool(); - setIs_newIsSet(true); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -382,8 +305,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 _iter232 : this.hosts) { - _iter232.write(oprot); + for (com.vesoft.nebula.HostAddr _iter249 : this.hosts) { + _iter249.write(oprot); } oprot.writeListEnd(); } @@ -394,9 +317,6 @@ public void write(TProtocol oprot) throws TException { oprot.writeBinary(this.zone_name); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(IS_NEW_FIELD_DESC); - oprot.writeBool(this.is_new); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -443,13 +363,6 @@ public String toString(int indent, boolean prettyPrint) { if (this.getZone_name().length > 128) sb.append(" ..."); } first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("is_new"); - sb.append(space); - sb.append(":").append(space); - sb.append(TBaseHelper.toString(this.isIs_new(), 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/AddListenerReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java index 924eb74f0..95dbc8544 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AddListenerReq.java @@ -28,7 +28,9 @@ public class AddListenerReq implements TBase, java.io.Serializable, Cloneable, C private static final TStruct STRUCT_DESC = new TStruct("AddListenerReq"); private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)2); - private static final TField HOSTS_FIELD_DESC = new TField("hosts", TType.LIST, (short)3); + private static final TField STORAGE_HOSTS_FIELD_DESC = new TField("storage_hosts", TType.LIST, (short)3); + private static final TField META_HOST_FIELD_DESC = new TField("meta_host", TType.STRUCT, (short)4); + private static final TField SPACE_NAME_FIELD_DESC = new TField("space_name", TType.STRING, (short)5); public int space_id; /** @@ -36,10 +38,14 @@ public class AddListenerReq implements TBase, java.io.Serializable, Cloneable, C * @see ListenerType */ public ListenerType type; - public List hosts; + public List storage_hosts; + public com.vesoft.nebula.HostAddr meta_host; + public byte[] space_name; public static final int SPACE_ID = 1; public static final int TYPE = 2; - public static final int HOSTS = 3; + public static final int STORAGE_HOSTS = 3; + public static final int META_HOST = 4; + public static final int SPACE_NAME = 5; // isset id assignments private static final int __SPACE_ID_ISSET_ID = 0; @@ -53,9 +59,13 @@ public class AddListenerReq implements TBase, java.io.Serializable, Cloneable, C new FieldValueMetaData(TType.I32))); tmpMetaDataMap.put(TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(HOSTS, new FieldMetaData("hosts", TFieldRequirementType.DEFAULT, + tmpMetaDataMap.put(STORAGE_HOSTS, new FieldMetaData("storage_hosts", TFieldRequirementType.DEFAULT, new ListMetaData(TType.LIST, new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class)))); + tmpMetaDataMap.put(META_HOST, new FieldMetaData("meta_host", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); + tmpMetaDataMap.put(SPACE_NAME, new FieldMetaData("space_name", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -69,18 +79,35 @@ public AddListenerReq() { public AddListenerReq( int space_id, ListenerType type, - List hosts) { + List storage_hosts) { this(); this.space_id = space_id; setSpace_idIsSet(true); this.type = type; - this.hosts = hosts; + this.storage_hosts = storage_hosts; + } + + public AddListenerReq( + int space_id, + ListenerType type, + List storage_hosts, + com.vesoft.nebula.HostAddr meta_host, + byte[] space_name) { + this(); + this.space_id = space_id; + setSpace_idIsSet(true); + this.type = type; + this.storage_hosts = storage_hosts; + this.meta_host = meta_host; + this.space_name = space_name; } public static class Builder { private int space_id; private ListenerType type; - private List hosts; + private List storage_hosts; + private com.vesoft.nebula.HostAddr meta_host; + private byte[] space_name; BitSet __optional_isset = new BitSet(1); @@ -98,8 +125,18 @@ public Builder setType(final ListenerType type) { return this; } - public Builder setHosts(final List hosts) { - this.hosts = hosts; + public Builder setStorage_hosts(final List storage_hosts) { + this.storage_hosts = storage_hosts; + return this; + } + + public Builder setMeta_host(final com.vesoft.nebula.HostAddr meta_host) { + this.meta_host = meta_host; + return this; + } + + public Builder setSpace_name(final byte[] space_name) { + this.space_name = space_name; return this; } @@ -109,7 +146,9 @@ public AddListenerReq build() { result.setSpace_id(this.space_id); } result.setType(this.type); - result.setHosts(this.hosts); + result.setStorage_hosts(this.storage_hosts); + result.setMeta_host(this.meta_host); + result.setSpace_name(this.space_name); return result; } } @@ -128,8 +167,14 @@ public AddListenerReq(AddListenerReq other) { if (other.isSetType()) { this.type = TBaseHelper.deepCopy(other.type); } - if (other.isSetHosts()) { - this.hosts = TBaseHelper.deepCopy(other.hosts); + if (other.isSetStorage_hosts()) { + this.storage_hosts = TBaseHelper.deepCopy(other.storage_hosts); + } + if (other.isSetMeta_host()) { + this.meta_host = TBaseHelper.deepCopy(other.meta_host); + } + if (other.isSetSpace_name()) { + this.space_name = TBaseHelper.deepCopy(other.space_name); } } @@ -192,27 +237,75 @@ public void setTypeIsSet(boolean __value) { } } - public List getHosts() { - return this.hosts; + public List getStorage_hosts() { + return this.storage_hosts; } - public AddListenerReq setHosts(List hosts) { - this.hosts = hosts; + public AddListenerReq setStorage_hosts(List storage_hosts) { + this.storage_hosts = storage_hosts; return this; } - public void unsetHosts() { - this.hosts = null; + public void unsetStorage_hosts() { + this.storage_hosts = null; } - // Returns true if field hosts is set (has been assigned a value) and false otherwise - public boolean isSetHosts() { - return this.hosts != null; + // Returns true if field storage_hosts is set (has been assigned a value) and false otherwise + public boolean isSetStorage_hosts() { + return this.storage_hosts != null; } - public void setHostsIsSet(boolean __value) { + public void setStorage_hostsIsSet(boolean __value) { if (!__value) { - this.hosts = null; + this.storage_hosts = null; + } + } + + public com.vesoft.nebula.HostAddr getMeta_host() { + return this.meta_host; + } + + public AddListenerReq setMeta_host(com.vesoft.nebula.HostAddr meta_host) { + this.meta_host = meta_host; + return this; + } + + public void unsetMeta_host() { + this.meta_host = null; + } + + // Returns true if field meta_host is set (has been assigned a value) and false otherwise + public boolean isSetMeta_host() { + return this.meta_host != null; + } + + public void setMeta_hostIsSet(boolean __value) { + if (!__value) { + this.meta_host = null; + } + } + + public byte[] getSpace_name() { + return this.space_name; + } + + public AddListenerReq 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; } } @@ -235,11 +328,27 @@ public void setFieldValue(int fieldID, Object __value) { } break; - case HOSTS: + case STORAGE_HOSTS: + if (__value == null) { + unsetStorage_hosts(); + } else { + setStorage_hosts((List)__value); + } + break; + + case META_HOST: + if (__value == null) { + unsetMeta_host(); + } else { + setMeta_host((com.vesoft.nebula.HostAddr)__value); + } + break; + + case SPACE_NAME: if (__value == null) { - unsetHosts(); + unsetSpace_name(); } else { - setHosts((List)__value); + setSpace_name((byte[])__value); } break; @@ -256,8 +365,14 @@ public Object getFieldValue(int fieldID) { case TYPE: return getType(); - case HOSTS: - return getHosts(); + case STORAGE_HOSTS: + return getStorage_hosts(); + + case META_HOST: + return getMeta_host(); + + case SPACE_NAME: + return getSpace_name(); default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); @@ -278,14 +393,18 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.isSetType(), that.isSetType(), this.type, that.type)) { return false; } - if (!TBaseHelper.equalsNobinary(this.isSetHosts(), that.isSetHosts(), this.hosts, that.hosts)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetStorage_hosts(), that.isSetStorage_hosts(), this.storage_hosts, that.storage_hosts)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetMeta_host(), that.isSetMeta_host(), this.meta_host, that.meta_host)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetSpace_name(), that.isSetSpace_name(), this.space_name, that.space_name)) { return false; } return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, type, hosts}); + return Arrays.deepHashCode(new Object[] {space_id, type, storage_hosts, meta_host, space_name}); } @Override @@ -316,11 +435,27 @@ public int compareTo(AddListenerReq other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetHosts()).compareTo(other.isSetHosts()); + lastComparison = Boolean.valueOf(isSetStorage_hosts()).compareTo(other.isSetStorage_hosts()); if (lastComparison != 0) { return lastComparison; } - lastComparison = TBaseHelper.compareTo(hosts, other.hosts); + lastComparison = TBaseHelper.compareTo(storage_hosts, other.storage_hosts); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetMeta_host()).compareTo(other.isSetMeta_host()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(meta_host, other.meta_host); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetSpace_name()).compareTo(other.isSetSpace_name()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(space_name, other.space_name); if (lastComparison != 0) { return lastComparison; } @@ -353,19 +488,19 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case HOSTS: + case STORAGE_HOSTS: if (__field.type == TType.LIST) { { - TList _list245 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list245.size)); - for (int _i246 = 0; - (_list245.size < 0) ? iprot.peekList() : (_i246 < _list245.size); - ++_i246) + TList _list262 = iprot.readListBegin(); + this.storage_hosts = new ArrayList(Math.max(0, _list262.size)); + for (int _i263 = 0; + (_list262.size < 0) ? iprot.peekList() : (_i263 < _list262.size); + ++_i263) { - com.vesoft.nebula.HostAddr _elem247; - _elem247 = new com.vesoft.nebula.HostAddr(); - _elem247.read(iprot); - this.hosts.add(_elem247); + com.vesoft.nebula.HostAddr _elem264; + _elem264 = new com.vesoft.nebula.HostAddr(); + _elem264.read(iprot); + this.storage_hosts.add(_elem264); } iprot.readListEnd(); } @@ -373,6 +508,21 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case META_HOST: + if (__field.type == TType.STRUCT) { + this.meta_host = new com.vesoft.nebula.HostAddr(); + this.meta_host.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; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -398,17 +548,31 @@ public void write(TProtocol oprot) throws TException { oprot.writeI32(this.type == null ? 0 : this.type.getValue()); oprot.writeFieldEnd(); } - if (this.hosts != null) { - oprot.writeFieldBegin(HOSTS_FIELD_DESC); + if (this.storage_hosts != null) { + oprot.writeFieldBegin(STORAGE_HOSTS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.hosts.size())); - for (com.vesoft.nebula.HostAddr _iter248 : this.hosts) { - _iter248.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, this.storage_hosts.size())); + for (com.vesoft.nebula.HostAddr _iter265 : this.storage_hosts) { + _iter265.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } + if (this.meta_host != null) { + if (isSetMeta_host()) { + oprot.writeFieldBegin(META_HOST_FIELD_DESC); + this.meta_host.write(oprot); + oprot.writeFieldEnd(); + } + } + if (this.space_name != null) { + if (isSetSpace_name()) { + oprot.writeFieldBegin(SPACE_NAME_FIELD_DESC); + oprot.writeBinary(this.space_name); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -456,15 +620,48 @@ public String toString(int indent, boolean prettyPrint) { first = false; if (!first) sb.append("," + newLine); sb.append(indentStr); - sb.append("hosts"); + sb.append("storage_hosts"); sb.append(space); sb.append(":").append(space); - if (this.getHosts() == null) { + if (this.getStorage_hosts() == null) { sb.append("null"); } else { - sb.append(TBaseHelper.toString(this.getHosts(), indent + 1, prettyPrint)); + sb.append(TBaseHelper.toString(this.getStorage_hosts(), indent + 1, prettyPrint)); } first = false; + if (isSetMeta_host()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("meta_host"); + sb.append(space); + sb.append(":").append(space); + if (this.getMeta_host() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getMeta_host(), indent + 1, prettyPrint)); + } + first = false; + } + if (isSetSpace_name()) + { + 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; + } sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); sb.append(")"); return sb.toString(); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/AlterUserPrivilegeReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AlterUserPrivilegeReq.java new file mode 100644 index 000000000..f763650df --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/AlterUserPrivilegeReq.java @@ -0,0 +1,470 @@ +/** + * 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 AlterUserPrivilegeReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("AlterUserPrivilegeReq"); + private static final TField USER_NAME_FIELD_DESC = new TField("user_name", TType.STRING, (short)1); + private static final TField ACTION_FIELD_DESC = new TField("action", TType.I32, (short)2); + private static final TField PRIVILEGE_FIELD_DESC = new TField("privilege", TType.STRUCT, (short)3); + + public byte[] user_name; + /** + * + * @see AlterSchemaOp + */ + public AlterSchemaOp action; + public Privilege privilege; + public static final int USER_NAME = 1; + public static final int ACTION = 2; + public static final int PRIVILEGE = 3; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(USER_NAME, new FieldMetaData("user_name", TFieldRequirementType.REQUIRED, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(ACTION, new FieldMetaData("action", TFieldRequirementType.REQUIRED, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(PRIVILEGE, new FieldMetaData("privilege", TFieldRequirementType.REQUIRED, + new StructMetaData(TType.STRUCT, Privilege.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(AlterUserPrivilegeReq.class, metaDataMap); + } + + public AlterUserPrivilegeReq() { + } + + public AlterUserPrivilegeReq( + byte[] user_name, + AlterSchemaOp action, + Privilege privilege) { + this(); + this.user_name = user_name; + this.action = action; + this.privilege = privilege; + } + + public static class Builder { + private byte[] user_name; + private AlterSchemaOp action; + private Privilege privilege; + + public Builder() { + } + + public Builder setUser_name(final byte[] user_name) { + this.user_name = user_name; + return this; + } + + public Builder setAction(final AlterSchemaOp action) { + this.action = action; + return this; + } + + public Builder setPrivilege(final Privilege privilege) { + this.privilege = privilege; + return this; + } + + public AlterUserPrivilegeReq build() { + AlterUserPrivilegeReq result = new AlterUserPrivilegeReq(); + result.setUser_name(this.user_name); + result.setAction(this.action); + result.setPrivilege(this.privilege); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public AlterUserPrivilegeReq(AlterUserPrivilegeReq other) { + if (other.isSetUser_name()) { + this.user_name = TBaseHelper.deepCopy(other.user_name); + } + if (other.isSetAction()) { + this.action = TBaseHelper.deepCopy(other.action); + } + if (other.isSetPrivilege()) { + this.privilege = TBaseHelper.deepCopy(other.privilege); + } + } + + public AlterUserPrivilegeReq deepCopy() { + return new AlterUserPrivilegeReq(this); + } + + public byte[] getUser_name() { + return this.user_name; + } + + public AlterUserPrivilegeReq 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; + } + } + + /** + * + * @see AlterSchemaOp + */ + public AlterSchemaOp getAction() { + return this.action; + } + + /** + * + * @see AlterSchemaOp + */ + public AlterUserPrivilegeReq setAction(AlterSchemaOp action) { + this.action = action; + return this; + } + + public void unsetAction() { + this.action = null; + } + + // Returns true if field action is set (has been assigned a value) and false otherwise + public boolean isSetAction() { + return this.action != null; + } + + public void setActionIsSet(boolean __value) { + if (!__value) { + this.action = null; + } + } + + public Privilege getPrivilege() { + return this.privilege; + } + + public AlterUserPrivilegeReq setPrivilege(Privilege privilege) { + this.privilege = privilege; + return this; + } + + public void unsetPrivilege() { + this.privilege = null; + } + + // Returns true if field privilege is set (has been assigned a value) and false otherwise + public boolean isSetPrivilege() { + return this.privilege != null; + } + + public void setPrivilegeIsSet(boolean __value) { + if (!__value) { + this.privilege = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case USER_NAME: + if (__value == null) { + unsetUser_name(); + } else { + setUser_name((byte[])__value); + } + break; + + case ACTION: + if (__value == null) { + unsetAction(); + } else { + setAction((AlterSchemaOp)__value); + } + break; + + case PRIVILEGE: + if (__value == null) { + unsetPrivilege(); + } else { + setPrivilege((Privilege)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case USER_NAME: + return getUser_name(); + + case ACTION: + return getAction(); + + case PRIVILEGE: + return getPrivilege(); + + 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 AlterUserPrivilegeReq)) + return false; + AlterUserPrivilegeReq that = (AlterUserPrivilegeReq)_that; + + if (!TBaseHelper.equalsSlow(this.isSetUser_name(), that.isSetUser_name(), this.user_name, that.user_name)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetAction(), that.isSetAction(), this.action, that.action)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetPrivilege(), that.isSetPrivilege(), this.privilege, that.privilege)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {user_name, action, privilege}); + } + + @Override + public int compareTo(AlterUserPrivilegeReq other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(user_name, other.user_name); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetAction()).compareTo(other.isSetAction()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(action, other.action); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(other.isSetPrivilege()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(privilege, other.privilege); + 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 USER_NAME: + if (__field.type == TType.STRING) { + this.user_name = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case ACTION: + if (__field.type == TType.I32) { + this.action = AlterSchemaOp.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PRIVILEGE: + if (__field.type == TType.STRUCT) { + this.privilege = new Privilege(); + this.privilege.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.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeBinary(this.user_name); + oprot.writeFieldEnd(); + } + if (this.action != null) { + oprot.writeFieldBegin(ACTION_FIELD_DESC); + oprot.writeI32(this.action == null ? 0 : this.action.getValue()); + oprot.writeFieldEnd(); + } + if (this.privilege != null) { + oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); + this.privilege.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("AlterUserPrivilegeReq"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + 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("action"); + sb.append(space); + sb.append(":").append(space); + if (this.getAction() == null) { + sb.append("null"); + } else { + String action_name = this.getAction() == null ? "null" : this.getAction().name(); + if (action_name != null) { + sb.append(action_name); + sb.append(" ("); + } + sb.append(this.getAction()); + if (action_name != null) { + sb.append(")"); + } + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("privilege"); + sb.append(space); + sb.append(":").append(space); + if (this.getPrivilege() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getPrivilege(), 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 (user_name == null) { + throw new TProtocolException(TProtocolException.MISSING_REQUIRED_FIELD, "Required field 'user_name' was not present! Struct: " + toString()); + } + if (action == null) { + throw new TProtocolException(TProtocolException.MISSING_REQUIRED_FIELD, "Required field 'action' was not present! Struct: " + toString()); + } + if (privilege == null) { + throw new TProtocolException(TProtocolException.MISSING_REQUIRED_FIELD, "Required field 'privilege' was not present! Struct: " + toString()); + } + } + +} + diff --git a/client/src/main/generated/com/vesoft/nebula/meta/AlterUserReq.java b/client/src/main/generated/com/vesoft/nebula/meta/AlterUserReq.java index 100e81b91..c23f5aa18 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/AlterUserReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/AlterUserReq.java @@ -28,11 +28,14 @@ public class AlterUserReq implements TBase, java.io.Serializable, Cloneable, Com private static final TStruct STRUCT_DESC = new TStruct("AlterUserReq"); private static final TField ACCOUNT_FIELD_DESC = new TField("account", TType.STRING, (short)1); private static final TField ENCODED_PWD_FIELD_DESC = new TField("encoded_pwd", TType.STRING, (short)2); + private static final TField IP_WHITELIST_FIELD_DESC = new TField("ip_whitelist", TType.SET, (short)3); public byte[] account; public byte[] encoded_pwd; + public Set ip_whitelist; public static final int ACCOUNT = 1; public static final int ENCODED_PWD = 2; + public static final int IP_WHITELIST = 3; // isset id assignments @@ -42,8 +45,11 @@ public class AlterUserReq implements TBase, java.io.Serializable, Cloneable, Com Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(ACCOUNT, new FieldMetaData("account", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING))); - tmpMetaDataMap.put(ENCODED_PWD, new FieldMetaData("encoded_pwd", TFieldRequirementType.DEFAULT, + tmpMetaDataMap.put(ENCODED_PWD, new FieldMetaData("encoded_pwd", TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(IP_WHITELIST, new FieldMetaData("ip_whitelist", TFieldRequirementType.OPTIONAL, + new SetMetaData(TType.SET, + new FieldValueMetaData(TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -54,17 +60,26 @@ public class AlterUserReq implements TBase, java.io.Serializable, Cloneable, Com public AlterUserReq() { } + public AlterUserReq( + byte[] account) { + this(); + this.account = account; + } + public AlterUserReq( byte[] account, - byte[] encoded_pwd) { + byte[] encoded_pwd, + Set ip_whitelist) { this(); this.account = account; this.encoded_pwd = encoded_pwd; + this.ip_whitelist = ip_whitelist; } public static class Builder { private byte[] account; private byte[] encoded_pwd; + private Set ip_whitelist; public Builder() { } @@ -79,10 +94,16 @@ public Builder setEncoded_pwd(final byte[] encoded_pwd) { return this; } + public Builder setIp_whitelist(final Set ip_whitelist) { + this.ip_whitelist = ip_whitelist; + return this; + } + public AlterUserReq build() { AlterUserReq result = new AlterUserReq(); result.setAccount(this.account); result.setEncoded_pwd(this.encoded_pwd); + result.setIp_whitelist(this.ip_whitelist); return result; } } @@ -101,6 +122,9 @@ public AlterUserReq(AlterUserReq other) { if (other.isSetEncoded_pwd()) { this.encoded_pwd = TBaseHelper.deepCopy(other.encoded_pwd); } + if (other.isSetIp_whitelist()) { + this.ip_whitelist = TBaseHelper.deepCopy(other.ip_whitelist); + } } public AlterUserReq deepCopy() { @@ -155,6 +179,31 @@ public void setEncoded_pwdIsSet(boolean __value) { } } + public Set getIp_whitelist() { + return this.ip_whitelist; + } + + public AlterUserReq setIp_whitelist(Set ip_whitelist) { + this.ip_whitelist = ip_whitelist; + return this; + } + + public void unsetIp_whitelist() { + this.ip_whitelist = null; + } + + // Returns true if field ip_whitelist is set (has been assigned a value) and false otherwise + public boolean isSetIp_whitelist() { + return this.ip_whitelist != null; + } + + public void setIp_whitelistIsSet(boolean __value) { + if (!__value) { + this.ip_whitelist = null; + } + } + + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { case ACCOUNT: @@ -173,6 +222,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case IP_WHITELIST: + if (__value == null) { + unsetIp_whitelist(); + } else { + setIp_whitelist((Set)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -186,6 +243,9 @@ public Object getFieldValue(int fieldID) { case ENCODED_PWD: return getEncoded_pwd(); + case IP_WHITELIST: + return getIp_whitelist(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -205,12 +265,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetEncoded_pwd(), that.isSetEncoded_pwd(), this.encoded_pwd, that.encoded_pwd)) { return false; } + if (!TBaseHelper.equalsSlow(this.isSetIp_whitelist(), that.isSetIp_whitelist(), this.ip_whitelist, that.ip_whitelist)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {account, encoded_pwd}); + return Arrays.deepHashCode(new Object[] {account, encoded_pwd, ip_whitelist}); } @Override @@ -241,6 +303,14 @@ public int compareTo(AlterUserReq other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetIp_whitelist()).compareTo(other.isSetIp_whitelist()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(ip_whitelist, other.ip_whitelist); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -269,6 +339,25 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case IP_WHITELIST: + if (__field.type == TType.SET) { + { + TSet _set187 = iprot.readSetBegin(); + this.ip_whitelist = new HashSet(Math.max(0, 2*_set187.size)); + for (int _i188 = 0; + (_set187.size < 0) ? iprot.peekSet() : (_i188 < _set187.size); + ++_i188) + { + byte[] _elem189; + _elem189 = iprot.readBinary(); + this.ip_whitelist.add(_elem189); + } + iprot.readSetEnd(); + } + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -292,9 +381,24 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } if (this.encoded_pwd != null) { - oprot.writeFieldBegin(ENCODED_PWD_FIELD_DESC); - oprot.writeBinary(this.encoded_pwd); - oprot.writeFieldEnd(); + if (isSetEncoded_pwd()) { + oprot.writeFieldBegin(ENCODED_PWD_FIELD_DESC); + oprot.writeBinary(this.encoded_pwd); + oprot.writeFieldEnd(); + } + } + if (this.ip_whitelist != null) { + if (isSetIp_whitelist()) { + oprot.writeFieldBegin(IP_WHITELIST_FIELD_DESC); + { + oprot.writeSetBegin(new TSet(TType.STRING, this.ip_whitelist.size())); + for (byte[] _iter190 : this.ip_whitelist) { + oprot.writeBinary(_iter190); + } + oprot.writeSetEnd(); + } + oprot.writeFieldEnd(); + } } oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -331,22 +435,39 @@ public String toString(int indent, boolean prettyPrint) { if (this.getAccount().length > 128) sb.append(" ..."); } first = false; - if (!first) sb.append("," + newLine); - sb.append(indentStr); - sb.append("encoded_pwd"); - sb.append(space); - sb.append(":").append(space); - if (this.getEncoded_pwd() == null) { - sb.append("null"); - } else { - int __encoded_pwd_size = Math.min(this.getEncoded_pwd().length, 128); - for (int i = 0; i < __encoded_pwd_size; i++) { - if (i != 0) sb.append(" "); - sb.append(Integer.toHexString(this.getEncoded_pwd()[i]).length() > 1 ? Integer.toHexString(this.getEncoded_pwd()[i]).substring(Integer.toHexString(this.getEncoded_pwd()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getEncoded_pwd()[i]).toUpperCase()); - } - if (this.getEncoded_pwd().length > 128) sb.append(" ..."); + if (isSetEncoded_pwd()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("encoded_pwd"); + sb.append(space); + sb.append(":").append(space); + if (this.getEncoded_pwd() == null) { + sb.append("null"); + } else { + int __encoded_pwd_size = Math.min(this.getEncoded_pwd().length, 128); + for (int i = 0; i < __encoded_pwd_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getEncoded_pwd()[i]).length() > 1 ? Integer.toHexString(this.getEncoded_pwd()[i]).substring(Integer.toHexString(this.getEncoded_pwd()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getEncoded_pwd()[i]).toUpperCase()); + } + if (this.getEncoded_pwd().length > 128) sb.append(" ..."); + } + first = false; + } + if (isSetIp_whitelist()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("ip_whitelist"); + sb.append(space); + sb.append(":").append(space); + if (this.getIp_whitelist() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getIp_whitelist(), indent + 1, prettyPrint)); + } + first = false; } - first = false; sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); sb.append(")"); return sb.toString(); 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 095fd5464..3414d08ee 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/BackupMeta.java @@ -710,18 +710,18 @@ public void read(TProtocol iprot) throws TException { case SPACE_BACKUPS: if (__field.type == TType.MAP) { { - TMap _map261 = iprot.readMapBegin(); - this.space_backups = new HashMap(Math.max(0, 2*_map261.size)); - for (int _i262 = 0; - (_map261.size < 0) ? iprot.peekMap() : (_i262 < _map261.size); - ++_i262) + TMap _map301 = iprot.readMapBegin(); + this.space_backups = new HashMap(Math.max(0, 2*_map301.size)); + for (int _i302 = 0; + (_map301.size < 0) ? iprot.peekMap() : (_i302 < _map301.size); + ++_i302) { - int _key263; - SpaceBackupInfo _val264; - _key263 = iprot.readI32(); - _val264 = new SpaceBackupInfo(); - _val264.read(iprot); - this.space_backups.put(_key263, _val264); + int _key303; + SpaceBackupInfo _val304; + _key303 = iprot.readI32(); + _val304 = new SpaceBackupInfo(); + _val304.read(iprot); + this.space_backups.put(_key303, _val304); } iprot.readMapEnd(); } @@ -732,15 +732,15 @@ public void read(TProtocol iprot) throws TException { case META_FILES: if (__field.type == TType.LIST) { { - TList _list265 = iprot.readListBegin(); - this.meta_files = new ArrayList(Math.max(0, _list265.size)); - for (int _i266 = 0; - (_list265.size < 0) ? iprot.peekList() : (_i266 < _list265.size); - ++_i266) + TList _list305 = iprot.readListBegin(); + this.meta_files = new ArrayList(Math.max(0, _list305.size)); + for (int _i306 = 0; + (_list305.size < 0) ? iprot.peekList() : (_i306 < _list305.size); + ++_i306) { - byte[] _elem267; - _elem267 = iprot.readBinary(); - this.meta_files.add(_elem267); + byte[] _elem307; + _elem307 = iprot.readBinary(); + this.meta_files.add(_elem307); } iprot.readListEnd(); } @@ -789,16 +789,16 @@ public void read(TProtocol iprot) throws TException { case STORAGE_HOSTS: if (__field.type == TType.LIST) { { - TList _list268 = iprot.readListBegin(); - this.storage_hosts = new ArrayList(Math.max(0, _list268.size)); - for (int _i269 = 0; - (_list268.size < 0) ? iprot.peekList() : (_i269 < _list268.size); - ++_i269) + TList _list308 = iprot.readListBegin(); + this.storage_hosts = new ArrayList(Math.max(0, _list308.size)); + for (int _i309 = 0; + (_list308.size < 0) ? iprot.peekList() : (_i309 < _list308.size); + ++_i309) { - com.vesoft.nebula.HostAddr _elem270; - _elem270 = new com.vesoft.nebula.HostAddr(); - _elem270.read(iprot); - this.storage_hosts.add(_elem270); + com.vesoft.nebula.HostAddr _elem310; + _elem310 = new com.vesoft.nebula.HostAddr(); + _elem310.read(iprot); + this.storage_hosts.add(_elem310); } iprot.readListEnd(); } @@ -835,9 +835,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SPACE_BACKUPS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.space_backups.size())); - for (Map.Entry _iter271 : this.space_backups.entrySet()) { - oprot.writeI32(_iter271.getKey()); - _iter271.getValue().write(oprot); + for (Map.Entry _iter311 : this.space_backups.entrySet()) { + oprot.writeI32(_iter311.getKey()); + _iter311.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -847,8 +847,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[] _iter272 : this.meta_files) { - oprot.writeBinary(_iter272); + for (byte[] _iter312 : this.meta_files) { + oprot.writeBinary(_iter312); } oprot.writeListEnd(); } @@ -877,8 +877,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(STORAGE_HOSTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.storage_hosts.size())); - for (com.vesoft.nebula.HostAddr _iter273 : this.storage_hosts) { - _iter273.write(oprot); + for (com.vesoft.nebula.HostAddr _iter313 : this.storage_hosts) { + _iter313.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/BalanceTask.java b/client/src/main/generated/com/vesoft/nebula/meta/BalanceTask.java index 1ae5700f3..4d1a36cec 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/BalanceTask.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/BalanceTask.java @@ -31,6 +31,7 @@ public class BalanceTask implements TBase, java.io.Serializable, Cloneable, Comp private static final TField RESULT_FIELD_DESC = new TField("result", TType.I32, (short)3); private static final TField START_TIME_FIELD_DESC = new TField("start_time", TType.I64, (short)4); private static final TField STOP_TIME_FIELD_DESC = new TField("stop_time", TType.I64, (short)5); + private static final TField STATUS_FIELD_DESC = new TField("status", TType.STRING, (short)6); public byte[] id; public byte[] command; @@ -41,11 +42,13 @@ public class BalanceTask implements TBase, java.io.Serializable, Cloneable, Comp public TaskResult result; public long start_time; public long stop_time; + public byte[] status; public static final int ID = 1; public static final int COMMAND = 2; public static final int RESULT = 3; public static final int START_TIME = 4; public static final int STOP_TIME = 5; + public static final int STATUS = 6; // isset id assignments private static final int __START_TIME_ISSET_ID = 0; @@ -66,6 +69,8 @@ public class BalanceTask implements TBase, java.io.Serializable, Cloneable, Comp new FieldValueMetaData(TType.I64))); tmpMetaDataMap.put(STOP_TIME, new FieldMetaData("stop_time", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -81,7 +86,8 @@ public BalanceTask( byte[] command, TaskResult result, long start_time, - long stop_time) { + long stop_time, + byte[] status) { this(); this.id = id; this.command = command; @@ -90,6 +96,7 @@ public BalanceTask( setStart_timeIsSet(true); this.stop_time = stop_time; setStop_timeIsSet(true); + this.status = status; } public static class Builder { @@ -98,6 +105,7 @@ public static class Builder { private TaskResult result; private long start_time; private long stop_time; + private byte[] status; BitSet __optional_isset = new BitSet(2); @@ -131,6 +139,11 @@ public Builder setStop_time(final long stop_time) { return this; } + public Builder setStatus(final byte[] status) { + this.status = status; + return this; + } + public BalanceTask build() { BalanceTask result = new BalanceTask(); result.setId(this.id); @@ -142,6 +155,7 @@ public BalanceTask build() { if (__optional_isset.get(__STOP_TIME_ISSET_ID)) { result.setStop_time(this.stop_time); } + result.setStatus(this.status); return result; } } @@ -167,6 +181,9 @@ public BalanceTask(BalanceTask other) { } this.start_time = TBaseHelper.deepCopy(other.start_time); this.stop_time = TBaseHelper.deepCopy(other.stop_time); + if (other.isSetStatus()) { + this.status = TBaseHelper.deepCopy(other.status); + } } public BalanceTask deepCopy() { @@ -299,6 +316,30 @@ public void setStop_timeIsSet(boolean __value) { __isset_bit_vector.set(__STOP_TIME_ISSET_ID, __value); } + public byte[] getStatus() { + return this.status; + } + + public BalanceTask setStatus(byte[] status) { + this.status = status; + return this; + } + + public void unsetStatus() { + this.status = null; + } + + // Returns true if field status is set (has been assigned a value) and false otherwise + public boolean isSetStatus() { + return this.status != null; + } + + public void setStatusIsSet(boolean __value) { + if (!__value) { + this.status = null; + } + } + public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { case ID: @@ -341,6 +382,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case STATUS: + if (__value == null) { + unsetStatus(); + } else { + setStatus((byte[])__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -363,6 +412,9 @@ public Object getFieldValue(int fieldID) { case STOP_TIME: return new Long(getStop_time()); + case STATUS: + return getStatus(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -388,12 +440,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.stop_time, that.stop_time)) { return false; } + if (!TBaseHelper.equalsSlow(this.isSetStatus(), that.isSetStatus(), this.status, that.status)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {id, command, result, start_time, stop_time}); + return Arrays.deepHashCode(new Object[] {id, command, result, start_time, stop_time, status}); } @Override @@ -448,6 +502,14 @@ public int compareTo(BalanceTask other) { 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; } @@ -499,6 +561,13 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case STATUS: + if (__field.type == TType.STRING) { + this.status = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -537,6 +606,11 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(STOP_TIME_FIELD_DESC); oprot.writeI64(this.stop_time); oprot.writeFieldEnd(); + if (this.status != null) { + oprot.writeFieldBegin(STATUS_FIELD_DESC); + oprot.writeBinary(this.status); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -621,6 +695,22 @@ public String toString(int indent, boolean prettyPrint) { sb.append(":").append(space); sb.append(TBaseHelper.toString(this.getStop_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 { + int __status_size = Math.min(this.getStatus().length, 128); + for (int i = 0; i < __status_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getStatus()[i]).length() > 1 ? Integer.toHexString(this.getStatus()[i]).substring(Integer.toHexString(this.getStatus()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getStatus()[i]).toUpperCase()); + } + if (this.getStatus().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/ChangeMetaReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ChangeMetaReq.java new file mode 100644 index 000000000..ace79eb71 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ChangeMetaReq.java @@ -0,0 +1,352 @@ +/** + * 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 ChangeMetaReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ChangeMetaReq"); + private static final TField ADD_FIELD_DESC = new TField("add", TType.STRUCT, (short)1); + private static final TField REMOVE_FIELD_DESC = new TField("remove", TType.STRUCT, (short)2); + + public com.vesoft.nebula.HostAddr add; + public com.vesoft.nebula.HostAddr remove; + public static final int ADD = 1; + public static final int REMOVE = 2; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(ADD, new FieldMetaData("add", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); + tmpMetaDataMap.put(REMOVE, new FieldMetaData("remove", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ChangeMetaReq.class, metaDataMap); + } + + public ChangeMetaReq() { + } + + public ChangeMetaReq( + com.vesoft.nebula.HostAddr add, + com.vesoft.nebula.HostAddr remove) { + this(); + this.add = add; + this.remove = remove; + } + + public static class Builder { + private com.vesoft.nebula.HostAddr add; + private com.vesoft.nebula.HostAddr remove; + + public Builder() { + } + + public Builder setAdd(final com.vesoft.nebula.HostAddr add) { + this.add = add; + return this; + } + + public Builder setRemove(final com.vesoft.nebula.HostAddr remove) { + this.remove = remove; + return this; + } + + public ChangeMetaReq build() { + ChangeMetaReq result = new ChangeMetaReq(); + result.setAdd(this.add); + result.setRemove(this.remove); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ChangeMetaReq(ChangeMetaReq other) { + if (other.isSetAdd()) { + this.add = TBaseHelper.deepCopy(other.add); + } + if (other.isSetRemove()) { + this.remove = TBaseHelper.deepCopy(other.remove); + } + } + + public ChangeMetaReq deepCopy() { + return new ChangeMetaReq(this); + } + + public com.vesoft.nebula.HostAddr getAdd() { + return this.add; + } + + public ChangeMetaReq setAdd(com.vesoft.nebula.HostAddr add) { + this.add = add; + return this; + } + + public void unsetAdd() { + this.add = null; + } + + // Returns true if field add is set (has been assigned a value) and false otherwise + public boolean isSetAdd() { + return this.add != null; + } + + public void setAddIsSet(boolean __value) { + if (!__value) { + this.add = null; + } + } + + public com.vesoft.nebula.HostAddr getRemove() { + return this.remove; + } + + public ChangeMetaReq setRemove(com.vesoft.nebula.HostAddr remove) { + this.remove = remove; + return this; + } + + public void unsetRemove() { + this.remove = null; + } + + // Returns true if field remove is set (has been assigned a value) and false otherwise + public boolean isSetRemove() { + return this.remove != null; + } + + public void setRemoveIsSet(boolean __value) { + if (!__value) { + this.remove = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case ADD: + if (__value == null) { + unsetAdd(); + } else { + setAdd((com.vesoft.nebula.HostAddr)__value); + } + break; + + case REMOVE: + if (__value == null) { + unsetRemove(); + } else { + setRemove((com.vesoft.nebula.HostAddr)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case ADD: + return getAdd(); + + case REMOVE: + return getRemove(); + + 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 ChangeMetaReq)) + return false; + ChangeMetaReq that = (ChangeMetaReq)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetAdd(), that.isSetAdd(), this.add, that.add)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetRemove(), that.isSetRemove(), this.remove, that.remove)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {add, remove}); + } + + @Override + public int compareTo(ChangeMetaReq other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetAdd()).compareTo(other.isSetAdd()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(add, other.add); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetRemove()).compareTo(other.isSetRemove()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(remove, other.remove); + 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 ADD: + if (__field.type == TType.STRUCT) { + this.add = new com.vesoft.nebula.HostAddr(); + this.add.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case REMOVE: + if (__field.type == TType.STRUCT) { + this.remove = new com.vesoft.nebula.HostAddr(); + this.remove.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.add != null) { + oprot.writeFieldBegin(ADD_FIELD_DESC); + this.add.write(oprot); + oprot.writeFieldEnd(); + } + if (this.remove != null) { + oprot.writeFieldBegin(REMOVE_FIELD_DESC); + this.remove.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("ChangeMetaReq"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("add"); + sb.append(space); + sb.append(":").append(space); + if (this.getAdd() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getAdd(), indent + 1, prettyPrint)); + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("remove"); + sb.append(space); + sb.append(":").append(space); + if (this.getRemove() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getRemove(), 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/ChangeMetaResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ChangeMetaResp.java new file mode 100644 index 000000000..ec7164c97 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ChangeMetaResp.java @@ -0,0 +1,371 @@ +/** + * 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 ChangeMetaResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ChangeMetaResp"); + 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); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public static final int CODE = 1; + public static final int LEADER = 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(LEADER, new FieldMetaData("leader", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ChangeMetaResp.class, metaDataMap); + } + + public ChangeMetaResp() { + } + + public ChangeMetaResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader) { + this(); + this.code = code; + this.leader = leader; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + + 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 ChangeMetaResp build() { + ChangeMetaResp result = new ChangeMetaResp(); + result.setCode(this.code); + result.setLeader(this.leader); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ChangeMetaResp(ChangeMetaResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + } + + public ChangeMetaResp deepCopy() { + return new ChangeMetaResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public ChangeMetaResp 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 ChangeMetaResp 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 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; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case CODE: + return getCode(); + + case LEADER: + return getLeader(); + + 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 ChangeMetaResp)) + return false; + ChangeMetaResp that = (ChangeMetaResp)_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; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader}); + } + + @Override + public int compareTo(ChangeMetaResp 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; + } + 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; + 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(); + } + 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("ChangeMetaResp"); + 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; + 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 3fe521ea4..a368a95db 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/CreateBackupReq.java @@ -329,15 +329,15 @@ public void read(TProtocol iprot) throws TException { case SPACES: if (__field.type == TType.LIST) { { - TList _list274 = iprot.readListBegin(); - this.spaces = new ArrayList(Math.max(0, _list274.size)); - for (int _i275 = 0; - (_list274.size < 0) ? iprot.peekList() : (_i275 < _list274.size); - ++_i275) + TList _list314 = iprot.readListBegin(); + this.spaces = new ArrayList(Math.max(0, _list314.size)); + for (int _i315 = 0; + (_list314.size < 0) ? iprot.peekList() : (_i315 < _list314.size); + ++_i315) { - byte[] _elem276; - _elem276 = iprot.readBinary(); - this.spaces.add(_elem276); + byte[] _elem316; + _elem316 = iprot.readBinary(); + this.spaces.add(_elem316); } iprot.readListEnd(); } @@ -382,8 +382,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SPACES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.spaces.size())); - for (byte[] _iter277 : this.spaces) { - oprot.writeBinary(_iter277); + for (byte[] _iter317 : this.spaces) { + oprot.writeBinary(_iter317); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/CreateSpaceAsReq.java b/client/src/main/generated/com/vesoft/nebula/meta/CreateSpaceAsReq.java index 4392f9e43..fb3f22d27 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/CreateSpaceAsReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/CreateSpaceAsReq.java @@ -28,13 +28,18 @@ public class CreateSpaceAsReq implements TBase, java.io.Serializable, Cloneable, private static final TStruct STRUCT_DESC = new TStruct("CreateSpaceAsReq"); private static final TField OLD_SPACE_NAME_FIELD_DESC = new TField("old_space_name", TType.STRING, (short)1); private static final TField NEW_SPACE_NAME_FIELD_DESC = new TField("new_space_name", TType.STRING, (short)2); + private static final TField IF_NOT_EXISTS_FIELD_DESC = new TField("if_not_exists", TType.BOOL, (short)3); public byte[] old_space_name; public byte[] new_space_name; + public boolean if_not_exists; public static final int OLD_SPACE_NAME = 1; public static final int NEW_SPACE_NAME = 2; + public static final int IF_NOT_EXISTS = 3; // isset id assignments + private static final int __IF_NOT_EXISTS_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); public static final Map metaDataMap; @@ -44,6 +49,8 @@ public class CreateSpaceAsReq implements TBase, java.io.Serializable, Cloneable, new FieldValueMetaData(TType.STRING))); tmpMetaDataMap.put(NEW_SPACE_NAME, new FieldMetaData("new_space_name", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(IF_NOT_EXISTS, new FieldMetaData("if_not_exists", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -56,15 +63,21 @@ public CreateSpaceAsReq() { public CreateSpaceAsReq( byte[] old_space_name, - byte[] new_space_name) { + byte[] new_space_name, + boolean if_not_exists) { this(); this.old_space_name = old_space_name; this.new_space_name = new_space_name; + this.if_not_exists = if_not_exists; + setIf_not_existsIsSet(true); } public static class Builder { private byte[] old_space_name; private byte[] new_space_name; + private boolean if_not_exists; + + BitSet __optional_isset = new BitSet(1); public Builder() { } @@ -79,10 +92,19 @@ public Builder setNew_space_name(final byte[] new_space_name) { return this; } + public Builder setIf_not_exists(final boolean if_not_exists) { + this.if_not_exists = if_not_exists; + __optional_isset.set(__IF_NOT_EXISTS_ISSET_ID, true); + return this; + } + public CreateSpaceAsReq build() { CreateSpaceAsReq result = new CreateSpaceAsReq(); result.setOld_space_name(this.old_space_name); result.setNew_space_name(this.new_space_name); + if (__optional_isset.get(__IF_NOT_EXISTS_ISSET_ID)) { + result.setIf_not_exists(this.if_not_exists); + } return result; } } @@ -95,12 +117,15 @@ public static Builder builder() { * Performs a deep copy on other. */ public CreateSpaceAsReq(CreateSpaceAsReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); if (other.isSetOld_space_name()) { this.old_space_name = TBaseHelper.deepCopy(other.old_space_name); } if (other.isSetNew_space_name()) { this.new_space_name = TBaseHelper.deepCopy(other.new_space_name); } + this.if_not_exists = TBaseHelper.deepCopy(other.if_not_exists); } public CreateSpaceAsReq deepCopy() { @@ -155,6 +180,29 @@ public void setNew_space_nameIsSet(boolean __value) { } } + public boolean isIf_not_exists() { + return this.if_not_exists; + } + + public CreateSpaceAsReq setIf_not_exists(boolean if_not_exists) { + this.if_not_exists = if_not_exists; + setIf_not_existsIsSet(true); + return this; + } + + public void unsetIf_not_exists() { + __isset_bit_vector.clear(__IF_NOT_EXISTS_ISSET_ID); + } + + // Returns true if field if_not_exists is set (has been assigned a value) and false otherwise + public boolean isSetIf_not_exists() { + return __isset_bit_vector.get(__IF_NOT_EXISTS_ISSET_ID); + } + + public void setIf_not_existsIsSet(boolean __value) { + __isset_bit_vector.set(__IF_NOT_EXISTS_ISSET_ID, __value); + } + public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { case OLD_SPACE_NAME: @@ -173,6 +221,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case IF_NOT_EXISTS: + if (__value == null) { + unsetIf_not_exists(); + } else { + setIf_not_exists((Boolean)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -186,6 +242,9 @@ public Object getFieldValue(int fieldID) { case NEW_SPACE_NAME: return getNew_space_name(); + case IF_NOT_EXISTS: + return new Boolean(isIf_not_exists()); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -205,12 +264,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetNew_space_name(), that.isSetNew_space_name(), this.new_space_name, that.new_space_name)) { return false; } + if (!TBaseHelper.equalsNobinary(this.if_not_exists, that.if_not_exists)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {old_space_name, new_space_name}); + return Arrays.deepHashCode(new Object[] {old_space_name, new_space_name, if_not_exists}); } @Override @@ -241,6 +302,14 @@ public int compareTo(CreateSpaceAsReq other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetIf_not_exists()).compareTo(other.isSetIf_not_exists()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(if_not_exists, other.if_not_exists); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -269,6 +338,14 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case IF_NOT_EXISTS: + if (__field.type == TType.BOOL) { + this.if_not_exists = iprot.readBool(); + setIf_not_existsIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -296,6 +373,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeBinary(this.new_space_name); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(IF_NOT_EXISTS_FIELD_DESC); + oprot.writeBool(this.if_not_exists); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -347,6 +427,13 @@ public String toString(int indent, boolean prettyPrint) { if (this.getNew_space_name().length > 128) sb.append(" ..."); } first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("if_not_exists"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isIf_not_exists(), 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/CreateUserReq.java b/client/src/main/generated/com/vesoft/nebula/meta/CreateUserReq.java index 8b4db9947..5ff964962 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/CreateUserReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/CreateUserReq.java @@ -29,13 +29,16 @@ public class CreateUserReq implements TBase, java.io.Serializable, Cloneable, Co private static final TField ACCOUNT_FIELD_DESC = new TField("account", TType.STRING, (short)1); private static final TField ENCODED_PWD_FIELD_DESC = new TField("encoded_pwd", TType.STRING, (short)2); private static final TField IF_NOT_EXISTS_FIELD_DESC = new TField("if_not_exists", TType.BOOL, (short)3); + private static final TField IP_WHITELIST_FIELD_DESC = new TField("ip_whitelist", TType.SET, (short)4); public byte[] account; public byte[] encoded_pwd; public boolean if_not_exists; + public Set ip_whitelist; public static final int ACCOUNT = 1; public static final int ENCODED_PWD = 2; public static final int IF_NOT_EXISTS = 3; + public static final int IP_WHITELIST = 4; // isset id assignments private static final int __IF_NOT_EXISTS_ISSET_ID = 0; @@ -51,6 +54,9 @@ public class CreateUserReq implements TBase, java.io.Serializable, Cloneable, Co new FieldValueMetaData(TType.STRING))); tmpMetaDataMap.put(IF_NOT_EXISTS, new FieldMetaData("if_not_exists", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.BOOL))); + tmpMetaDataMap.put(IP_WHITELIST, new FieldMetaData("ip_whitelist", TFieldRequirementType.OPTIONAL, + new SetMetaData(TType.SET, + new FieldValueMetaData(TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -72,10 +78,24 @@ public CreateUserReq( setIf_not_existsIsSet(true); } + public CreateUserReq( + byte[] account, + byte[] encoded_pwd, + boolean if_not_exists, + Set ip_whitelist) { + this(); + this.account = account; + this.encoded_pwd = encoded_pwd; + this.if_not_exists = if_not_exists; + setIf_not_existsIsSet(true); + this.ip_whitelist = ip_whitelist; + } + public static class Builder { private byte[] account; private byte[] encoded_pwd; private boolean if_not_exists; + private Set ip_whitelist; BitSet __optional_isset = new BitSet(1); @@ -98,6 +118,11 @@ public Builder setIf_not_exists(final boolean if_not_exists) { return this; } + public Builder setIp_whitelist(final Set ip_whitelist) { + this.ip_whitelist = ip_whitelist; + return this; + } + public CreateUserReq build() { CreateUserReq result = new CreateUserReq(); result.setAccount(this.account); @@ -105,6 +130,7 @@ public CreateUserReq build() { if (__optional_isset.get(__IF_NOT_EXISTS_ISSET_ID)) { result.setIf_not_exists(this.if_not_exists); } + result.setIp_whitelist(this.ip_whitelist); return result; } } @@ -126,6 +152,9 @@ public CreateUserReq(CreateUserReq other) { this.encoded_pwd = TBaseHelper.deepCopy(other.encoded_pwd); } this.if_not_exists = TBaseHelper.deepCopy(other.if_not_exists); + if (other.isSetIp_whitelist()) { + this.ip_whitelist = TBaseHelper.deepCopy(other.ip_whitelist); + } } public CreateUserReq deepCopy() { @@ -203,6 +232,31 @@ public void setIf_not_existsIsSet(boolean __value) { __isset_bit_vector.set(__IF_NOT_EXISTS_ISSET_ID, __value); } + public Set getIp_whitelist() { + return this.ip_whitelist; + } + + public CreateUserReq setIp_whitelist(Set ip_whitelist) { + this.ip_whitelist = ip_whitelist; + return this; + } + + public void unsetIp_whitelist() { + this.ip_whitelist = null; + } + + // Returns true if field ip_whitelist is set (has been assigned a value) and false otherwise + public boolean isSetIp_whitelist() { + return this.ip_whitelist != null; + } + + public void setIp_whitelistIsSet(boolean __value) { + if (!__value) { + this.ip_whitelist = null; + } + } + + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { case ACCOUNT: @@ -229,6 +283,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case IP_WHITELIST: + if (__value == null) { + unsetIp_whitelist(); + } else { + setIp_whitelist((Set)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -245,6 +307,9 @@ public Object getFieldValue(int fieldID) { case IF_NOT_EXISTS: return new Boolean(isIf_not_exists()); + case IP_WHITELIST: + return getIp_whitelist(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -266,12 +331,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.if_not_exists, that.if_not_exists)) { return false; } + if (!TBaseHelper.equalsSlow(this.isSetIp_whitelist(), that.isSetIp_whitelist(), this.ip_whitelist, that.ip_whitelist)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {account, encoded_pwd, if_not_exists}); + return Arrays.deepHashCode(new Object[] {account, encoded_pwd, if_not_exists, ip_whitelist}); } @Override @@ -310,6 +377,14 @@ public int compareTo(CreateUserReq other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetIp_whitelist()).compareTo(other.isSetIp_whitelist()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(ip_whitelist, other.ip_whitelist); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -346,6 +421,25 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case IP_WHITELIST: + if (__field.type == TType.SET) { + { + TSet _set183 = iprot.readSetBegin(); + this.ip_whitelist = new HashSet(Math.max(0, 2*_set183.size)); + for (int _i184 = 0; + (_set183.size < 0) ? iprot.peekSet() : (_i184 < _set183.size); + ++_i184) + { + byte[] _elem185; + _elem185 = iprot.readBinary(); + this.ip_whitelist.add(_elem185); + } + iprot.readSetEnd(); + } + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -376,6 +470,19 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(IF_NOT_EXISTS_FIELD_DESC); oprot.writeBool(this.if_not_exists); oprot.writeFieldEnd(); + if (this.ip_whitelist != null) { + if (isSetIp_whitelist()) { + oprot.writeFieldBegin(IP_WHITELIST_FIELD_DESC); + { + oprot.writeSetBegin(new TSet(TType.STRING, this.ip_whitelist.size())); + for (byte[] _iter186 : this.ip_whitelist) { + oprot.writeBinary(_iter186); + } + oprot.writeSetEnd(); + } + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -434,6 +541,20 @@ public String toString(int indent, boolean prettyPrint) { sb.append(":").append(space); sb.append(TBaseHelper.toString(this.isIf_not_exists(), indent + 1, prettyPrint)); first = false; + if (isSetIp_whitelist()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("ip_whitelist"); + sb.append(space); + sb.append(":").append(space); + if (this.getIp_whitelist() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getIp_whitelist(), 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/DivideZoneReq.java b/client/src/main/generated/com/vesoft/nebula/meta/DivideZoneReq.java index 66e7252df..ec7200fd2 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/DivideZoneReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/DivideZoneReq.java @@ -269,30 +269,30 @@ public void read(TProtocol iprot) throws TException { case ZONE_ITEMS: if (__field.type == TType.MAP) { { - TMap _map220 = iprot.readMapBegin(); - this.zone_items = new HashMap>(Math.max(0, 2*_map220.size)); - for (int _i221 = 0; - (_map220.size < 0) ? iprot.peekMap() : (_i221 < _map220.size); - ++_i221) + TMap _map237 = iprot.readMapBegin(); + this.zone_items = new HashMap>(Math.max(0, 2*_map237.size)); + for (int _i238 = 0; + (_map237.size < 0) ? iprot.peekMap() : (_i238 < _map237.size); + ++_i238) { - byte[] _key222; - List _val223; - _key222 = iprot.readBinary(); + byte[] _key239; + List _val240; + _key239 = iprot.readBinary(); { - TList _list224 = iprot.readListBegin(); - _val223 = new ArrayList(Math.max(0, _list224.size)); - for (int _i225 = 0; - (_list224.size < 0) ? iprot.peekList() : (_i225 < _list224.size); - ++_i225) + TList _list241 = iprot.readListBegin(); + _val240 = new ArrayList(Math.max(0, _list241.size)); + for (int _i242 = 0; + (_list241.size < 0) ? iprot.peekList() : (_i242 < _list241.size); + ++_i242) { - com.vesoft.nebula.HostAddr _elem226; - _elem226 = new com.vesoft.nebula.HostAddr(); - _elem226.read(iprot); - _val223.add(_elem226); + com.vesoft.nebula.HostAddr _elem243; + _elem243 = new com.vesoft.nebula.HostAddr(); + _elem243.read(iprot); + _val240.add(_elem243); } iprot.readListEnd(); } - this.zone_items.put(_key222, _val223); + this.zone_items.put(_key239, _val240); } iprot.readMapEnd(); } @@ -326,12 +326,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(ZONE_ITEMS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.LIST, this.zone_items.size())); - for (Map.Entry> _iter227 : this.zone_items.entrySet()) { - oprot.writeBinary(_iter227.getKey()); + for (Map.Entry> _iter244 : this.zone_items.entrySet()) { + oprot.writeBinary(_iter244.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter227.getValue().size())); - for (com.vesoft.nebula.HostAddr _iter228 : _iter227.getValue()) { - _iter228.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, _iter244.getValue().size())); + for (com.vesoft.nebula.HostAddr _iter245 : _iter244.getValue()) { + _iter245.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/DrainerClientInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/DrainerClientInfo.java new file mode 100644 index 000000000..833bb4779 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/DrainerClientInfo.java @@ -0,0 +1,356 @@ +/** + * 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 DrainerClientInfo implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("DrainerClientInfo"); + private static final TField HOST_FIELD_DESC = new TField("host", TType.STRUCT, (short)1); + private static final TField SPACE_NAME_FIELD_DESC = new TField("space_name", TType.STRING, (short)2); + + public com.vesoft.nebula.HostAddr host; + public byte[] space_name; + public static final int HOST = 1; + public static final int SPACE_NAME = 2; + + // 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(SPACE_NAME, new FieldMetaData("space_name", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(DrainerClientInfo.class, metaDataMap); + } + + public DrainerClientInfo() { + } + + public DrainerClientInfo( + com.vesoft.nebula.HostAddr host, + byte[] space_name) { + this(); + this.host = host; + this.space_name = space_name; + } + + public static class Builder { + private com.vesoft.nebula.HostAddr host; + private byte[] space_name; + + public Builder() { + } + + public Builder setHost(final com.vesoft.nebula.HostAddr host) { + this.host = host; + return this; + } + + public Builder setSpace_name(final byte[] space_name) { + this.space_name = space_name; + return this; + } + + public DrainerClientInfo build() { + DrainerClientInfo result = new DrainerClientInfo(); + result.setHost(this.host); + result.setSpace_name(this.space_name); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public DrainerClientInfo(DrainerClientInfo other) { + if (other.isSetHost()) { + this.host = TBaseHelper.deepCopy(other.host); + } + if (other.isSetSpace_name()) { + this.space_name = TBaseHelper.deepCopy(other.space_name); + } + } + + public DrainerClientInfo deepCopy() { + return new DrainerClientInfo(this); + } + + public com.vesoft.nebula.HostAddr getHost() { + return this.host; + } + + public DrainerClientInfo 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[] getSpace_name() { + return this.space_name; + } + + public DrainerClientInfo 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 void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case HOST: + if (__value == null) { + unsetHost(); + } else { + setHost((com.vesoft.nebula.HostAddr)__value); + } + break; + + case SPACE_NAME: + if (__value == null) { + unsetSpace_name(); + } else { + setSpace_name((byte[])__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case HOST: + return getHost(); + + case SPACE_NAME: + return getSpace_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 DrainerClientInfo)) + return false; + DrainerClientInfo that = (DrainerClientInfo)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetHost(), that.isSetHost(), this.host, that.host)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetSpace_name(), that.isSetSpace_name(), this.space_name, that.space_name)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {host, space_name}); + } + + @Override + public int compareTo(DrainerClientInfo 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(isSetSpace_name()).compareTo(other.isSetSpace_name()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(space_name, other.space_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 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 SPACE_NAME: + if (__field.type == TType.STRING) { + this.space_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.host != null) { + oprot.writeFieldBegin(HOST_FIELD_DESC); + this.host.write(oprot); + oprot.writeFieldEnd(); + } + if (this.space_name != null) { + oprot.writeFieldBegin(SPACE_NAME_FIELD_DESC); + oprot.writeBinary(this.space_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("DrainerClientInfo"); + 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("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; + 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/DrainerInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/DrainerInfo.java new file mode 100644 index 000000000..288bee0d0 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/DrainerInfo.java @@ -0,0 +1,371 @@ +/** + * 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 DrainerInfo implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("DrainerInfo"); + private static final TField HOST_FIELD_DESC = new TField("host", TType.STRUCT, (short)1); + private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2); + + public com.vesoft.nebula.HostAddr host; + /** + * + * @see HostStatus + */ + public HostStatus status; + public static final int HOST = 1; + public static final int STATUS = 2; + + // 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(STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(DrainerInfo.class, metaDataMap); + } + + public DrainerInfo() { + } + + public DrainerInfo( + com.vesoft.nebula.HostAddr host, + HostStatus status) { + this(); + this.host = host; + this.status = status; + } + + public static class Builder { + private com.vesoft.nebula.HostAddr host; + private HostStatus status; + + public Builder() { + } + + public Builder setHost(final com.vesoft.nebula.HostAddr host) { + this.host = host; + return this; + } + + public Builder setStatus(final HostStatus status) { + this.status = status; + return this; + } + + public DrainerInfo build() { + DrainerInfo result = new DrainerInfo(); + result.setHost(this.host); + result.setStatus(this.status); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public DrainerInfo(DrainerInfo other) { + if (other.isSetHost()) { + this.host = TBaseHelper.deepCopy(other.host); + } + if (other.isSetStatus()) { + this.status = TBaseHelper.deepCopy(other.status); + } + } + + public DrainerInfo deepCopy() { + return new DrainerInfo(this); + } + + public com.vesoft.nebula.HostAddr getHost() { + return this.host; + } + + public DrainerInfo 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; + } + } + + /** + * + * @see HostStatus + */ + public HostStatus getStatus() { + return this.status; + } + + /** + * + * @see HostStatus + */ + public DrainerInfo setStatus(HostStatus status) { + this.status = status; + return this; + } + + public void unsetStatus() { + this.status = null; + } + + // Returns true if field status is set (has been assigned a value) and false otherwise + public boolean isSetStatus() { + return this.status != null; + } + + public void setStatusIsSet(boolean __value) { + if (!__value) { + this.status = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case HOST: + if (__value == null) { + unsetHost(); + } else { + setHost((com.vesoft.nebula.HostAddr)__value); + } + break; + + case STATUS: + if (__value == null) { + unsetStatus(); + } else { + setStatus((HostStatus)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case HOST: + return getHost(); + + 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 DrainerInfo)) + return false; + DrainerInfo that = (DrainerInfo)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetHost(), that.isSetHost(), this.host, that.host)) { 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[] {host, status}); + } + + @Override + public int compareTo(DrainerInfo 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(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 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 STATUS: + if (__field.type == TType.I32) { + this.status = HostStatus.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.host != null) { + oprot.writeFieldBegin(HOST_FIELD_DESC); + this.host.write(oprot); + 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("DrainerInfo"); + 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("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/DropSnapshotReq.java b/client/src/main/generated/com/vesoft/nebula/meta/DropSnapshotReq.java index afdafe9ef..516effb7f 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/DropSnapshotReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/DropSnapshotReq.java @@ -198,15 +198,15 @@ public void read(TProtocol iprot) throws TException { case NAMES: if (__field.type == TType.LIST) { { - TList _list204 = iprot.readListBegin(); - this.names = new ArrayList(Math.max(0, _list204.size)); - for (int _i205 = 0; - (_list204.size < 0) ? iprot.peekList() : (_i205 < _list204.size); - ++_i205) + TList _list221 = iprot.readListBegin(); + this.names = new ArrayList(Math.max(0, _list221.size)); + for (int _i222 = 0; + (_list221.size < 0) ? iprot.peekList() : (_i222 < _list221.size); + ++_i222) { - byte[] _elem206; - _elem206 = iprot.readBinary(); - this.names.add(_elem206); + byte[] _elem223; + _elem223 = iprot.readBinary(); + this.names.add(_elem223); } iprot.readListEnd(); } @@ -235,8 +235,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.names.size())); - for (byte[] _iter207 : this.names) { - oprot.writeBinary(_iter207); + for (byte[] _iter224 : this.names) { + oprot.writeBinary(_iter224); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ExternalSpaceServiceType.java b/client/src/main/generated/com/vesoft/nebula/meta/ExternalSpaceServiceType.java new file mode 100644 index 000000000..a381acfd5 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ExternalSpaceServiceType.java @@ -0,0 +1,43 @@ +/** + * 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 ExternalSpaceServiceType implements com.facebook.thrift.TEnum { + DRAINER(1); + + private final int value; + + private ExternalSpaceServiceType(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 ExternalSpaceServiceType findByValue(int value) { + switch (value) { + case 1: + return DRAINER; + default: + return null; + } + } +} 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 639953918..ae287e280 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/FTIndex.java @@ -29,13 +29,16 @@ public class FTIndex implements TBase, java.io.Serializable, Cloneable, Comparab private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); private static final TField DEPEND_SCHEMA_FIELD_DESC = new TField("depend_schema", TType.STRUCT, (short)2); private static final TField FIELDS_FIELD_DESC = new TField("fields", TType.LIST, (short)3); + private static final TField ANALYZER_FIELD_DESC = new TField("analyzer", TType.STRING, (short)4); public int space_id; public com.vesoft.nebula.SchemaID depend_schema; public List fields; + public byte[] analyzer; public static final int SPACE_ID = 1; public static final int DEPEND_SCHEMA = 2; public static final int FIELDS = 3; + public static final int ANALYZER = 4; // isset id assignments private static final int __SPACE_ID_ISSET_ID = 0; @@ -52,6 +55,8 @@ public class FTIndex implements TBase, java.io.Serializable, Cloneable, Comparab tmpMetaDataMap.put(FIELDS, new FieldMetaData("fields", TFieldRequirementType.DEFAULT, new ListMetaData(TType.LIST, new FieldValueMetaData(TType.STRING)))); + tmpMetaDataMap.put(ANALYZER, new FieldMetaData("analyzer", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -65,18 +70,21 @@ public FTIndex() { public FTIndex( int space_id, com.vesoft.nebula.SchemaID depend_schema, - List fields) { + List fields, + byte[] analyzer) { this(); this.space_id = space_id; setSpace_idIsSet(true); this.depend_schema = depend_schema; this.fields = fields; + this.analyzer = analyzer; } public static class Builder { private int space_id; private com.vesoft.nebula.SchemaID depend_schema; private List fields; + private byte[] analyzer; BitSet __optional_isset = new BitSet(1); @@ -99,6 +107,11 @@ public Builder setFields(final List fields) { return this; } + public Builder setAnalyzer(final byte[] analyzer) { + this.analyzer = analyzer; + return this; + } + public FTIndex build() { FTIndex result = new FTIndex(); if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { @@ -106,6 +119,7 @@ public FTIndex build() { } result.setDepend_schema(this.depend_schema); result.setFields(this.fields); + result.setAnalyzer(this.analyzer); return result; } } @@ -127,6 +141,9 @@ public FTIndex(FTIndex other) { if (other.isSetFields()) { this.fields = TBaseHelper.deepCopy(other.fields); } + if (other.isSetAnalyzer()) { + this.analyzer = TBaseHelper.deepCopy(other.analyzer); + } } public FTIndex deepCopy() { @@ -204,6 +221,30 @@ public void setFieldsIsSet(boolean __value) { } } + public byte[] getAnalyzer() { + return this.analyzer; + } + + public FTIndex setAnalyzer(byte[] analyzer) { + this.analyzer = analyzer; + return this; + } + + public void unsetAnalyzer() { + this.analyzer = null; + } + + // Returns true if field analyzer is set (has been assigned a value) and false otherwise + public boolean isSetAnalyzer() { + return this.analyzer != null; + } + + public void setAnalyzerIsSet(boolean __value) { + if (!__value) { + this.analyzer = null; + } + } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -231,6 +272,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case ANALYZER: + if (__value == null) { + unsetAnalyzer(); + } else { + setAnalyzer((byte[])__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -247,6 +296,9 @@ public Object getFieldValue(int fieldID) { case FIELDS: return getFields(); + case ANALYZER: + return getAnalyzer(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -268,12 +320,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetFields(), that.isSetFields(), this.fields, that.fields)) { return false; } + if (!TBaseHelper.equalsSlow(this.isSetAnalyzer(), that.isSetAnalyzer(), this.analyzer, that.analyzer)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, depend_schema, fields}); + return Arrays.deepHashCode(new Object[] {space_id, depend_schema, fields, analyzer}); } @Override @@ -312,6 +366,14 @@ public int compareTo(FTIndex other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetAnalyzer()).compareTo(other.isSetAnalyzer()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(analyzer, other.analyzer); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -345,15 +407,15 @@ public void read(TProtocol iprot) throws TException { case FIELDS: if (__field.type == TType.LIST) { { - TList _list312 = iprot.readListBegin(); - this.fields = new ArrayList(Math.max(0, _list312.size)); - for (int _i313 = 0; - (_list312.size < 0) ? iprot.peekList() : (_i313 < _list312.size); - ++_i313) + TList _list365 = iprot.readListBegin(); + this.fields = new ArrayList(Math.max(0, _list365.size)); + for (int _i366 = 0; + (_list365.size < 0) ? iprot.peekList() : (_i366 < _list365.size); + ++_i366) { - byte[] _elem314; - _elem314 = iprot.readBinary(); - this.fields.add(_elem314); + byte[] _elem367; + _elem367 = iprot.readBinary(); + this.fields.add(_elem367); } iprot.readListEnd(); } @@ -361,6 +423,13 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case ANALYZER: + if (__field.type == TType.STRING) { + this.analyzer = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -390,13 +459,18 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(FIELDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.fields.size())); - for (byte[] _iter315 : this.fields) { - oprot.writeBinary(_iter315); + for (byte[] _iter368 : this.fields) { + oprot.writeBinary(_iter368); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } + if (this.analyzer != null) { + oprot.writeFieldBegin(ANALYZER_FIELD_DESC); + oprot.writeBinary(this.analyzer); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -445,6 +519,22 @@ public String toString(int indent, boolean prettyPrint) { sb.append(TBaseHelper.toString(this.getFields(), indent + 1, prettyPrint)); } first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("analyzer"); + sb.append(space); + sb.append(":").append(space); + if (this.getAnalyzer() == null) { + sb.append("null"); + } else { + int __analyzer_size = Math.min(this.getAnalyzer().length, 128); + for (int i = 0; i < __analyzer_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getAnalyzer()[i]).length() > 1 ? Integer.toHexString(this.getAnalyzer()[i]).substring(Integer.toHexString(this.getAnalyzer()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getAnalyzer()[i]).toUpperCase()); + } + if (this.getAnalyzer().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/GetConfigResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetConfigResp.java index 4492222af..1145bcdde 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 _list196 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list196.size)); - for (int _i197 = 0; - (_list196.size < 0) ? iprot.peekList() : (_i197 < _list196.size); - ++_i197) + TList _list213 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list213.size)); + for (int _i214 = 0; + (_list213.size < 0) ? iprot.peekList() : (_i214 < _list213.size); + ++_i214) { - ConfigItem _elem198; - _elem198 = new ConfigItem(); - _elem198.read(iprot); - this.items.add(_elem198); + ConfigItem _elem215; + _elem215 = new ConfigItem(); + _elem215.read(iprot); + this.items.add(_elem215); } 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 _iter199 : this.items) { - _iter199.write(oprot); + for (ConfigItem _iter216 : this.items) { + _iter216.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/GetLicenseReq.java b/client/src/main/generated/com/vesoft/nebula/meta/GetLicenseReq.java new file mode 100644 index 000000000..aa1f0ba57 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetLicenseReq.java @@ -0,0 +1,174 @@ +/** + * 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 GetLicenseReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("GetLicenseReq"); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(GetLicenseReq.class, metaDataMap); + } + + public GetLicenseReq() { + } + + public static class Builder { + + public Builder() { + } + + public GetLicenseReq build() { + GetLicenseReq result = new GetLicenseReq(); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public GetLicenseReq(GetLicenseReq other) { + } + + public GetLicenseReq deepCopy() { + return new GetLicenseReq(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 GetLicenseReq)) + return false; + GetLicenseReq that = (GetLicenseReq)_that; + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {}); + } + + @Override + public int compareTo(GetLicenseReq 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("GetLicenseReq"); + 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/GetLicenseResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetLicenseResp.java new file mode 100644 index 000000000..784e4c087 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetLicenseResp.java @@ -0,0 +1,658 @@ +/** + * 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 GetLicenseResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("GetLicenseResp"); + 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 LICENSE_CONTENT_FIELD_DESC = new TField("licenseContent", TType.STRING, (short)3); + private static final TField LICENSE_KEY_FIELD_DESC = new TField("licenseKey", TType.STRING, (short)4); + private static final TField ERROR_MSG_FIELD_DESC = new TField("error_msg", TType.STRING, (short)5); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public byte[] licenseContent; + public byte[] licenseKey; + public byte[] error_msg; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int LICENSECONTENT = 3; + public static final int LICENSEKEY = 4; + public static final int ERROR_MSG = 5; + + // 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(LICENSECONTENT, new FieldMetaData("licenseContent", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(LICENSEKEY, new FieldMetaData("licenseKey", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(ERROR_MSG, new FieldMetaData("error_msg", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(GetLicenseResp.class, metaDataMap); + } + + public GetLicenseResp() { + } + + public GetLicenseResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + byte[] licenseContent, + byte[] licenseKey) { + this(); + this.code = code; + this.leader = leader; + this.licenseContent = licenseContent; + this.licenseKey = licenseKey; + } + + public GetLicenseResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + byte[] licenseContent, + byte[] licenseKey, + byte[] error_msg) { + this(); + this.code = code; + this.leader = leader; + this.licenseContent = licenseContent; + this.licenseKey = licenseKey; + this.error_msg = error_msg; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private byte[] licenseContent; + private byte[] licenseKey; + private byte[] error_msg; + + 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 setLicenseContent(final byte[] licenseContent) { + this.licenseContent = licenseContent; + return this; + } + + public Builder setLicenseKey(final byte[] licenseKey) { + this.licenseKey = licenseKey; + return this; + } + + public Builder setError_msg(final byte[] error_msg) { + this.error_msg = error_msg; + return this; + } + + public GetLicenseResp build() { + GetLicenseResp result = new GetLicenseResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setLicenseContent(this.licenseContent); + result.setLicenseKey(this.licenseKey); + result.setError_msg(this.error_msg); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public GetLicenseResp(GetLicenseResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetLicenseContent()) { + this.licenseContent = TBaseHelper.deepCopy(other.licenseContent); + } + if (other.isSetLicenseKey()) { + this.licenseKey = TBaseHelper.deepCopy(other.licenseKey); + } + if (other.isSetError_msg()) { + this.error_msg = TBaseHelper.deepCopy(other.error_msg); + } + } + + public GetLicenseResp deepCopy() { + return new GetLicenseResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public GetLicenseResp 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 GetLicenseResp 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 byte[] getLicenseContent() { + return this.licenseContent; + } + + public GetLicenseResp setLicenseContent(byte[] licenseContent) { + this.licenseContent = licenseContent; + return this; + } + + public void unsetLicenseContent() { + this.licenseContent = null; + } + + // Returns true if field licenseContent is set (has been assigned a value) and false otherwise + public boolean isSetLicenseContent() { + return this.licenseContent != null; + } + + public void setLicenseContentIsSet(boolean __value) { + if (!__value) { + this.licenseContent = null; + } + } + + public byte[] getLicenseKey() { + return this.licenseKey; + } + + public GetLicenseResp setLicenseKey(byte[] licenseKey) { + this.licenseKey = licenseKey; + return this; + } + + public void unsetLicenseKey() { + this.licenseKey = null; + } + + // Returns true if field licenseKey is set (has been assigned a value) and false otherwise + public boolean isSetLicenseKey() { + return this.licenseKey != null; + } + + public void setLicenseKeyIsSet(boolean __value) { + if (!__value) { + this.licenseKey = null; + } + } + + public byte[] getError_msg() { + return this.error_msg; + } + + public GetLicenseResp setError_msg(byte[] error_msg) { + this.error_msg = error_msg; + return this; + } + + public void unsetError_msg() { + this.error_msg = null; + } + + // Returns true if field error_msg is set (has been assigned a value) and false otherwise + public boolean isSetError_msg() { + return this.error_msg != null; + } + + public void setError_msgIsSet(boolean __value) { + if (!__value) { + this.error_msg = 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 LICENSECONTENT: + if (__value == null) { + unsetLicenseContent(); + } else { + setLicenseContent((byte[])__value); + } + break; + + case LICENSEKEY: + if (__value == null) { + unsetLicenseKey(); + } else { + setLicenseKey((byte[])__value); + } + break; + + case ERROR_MSG: + if (__value == null) { + unsetError_msg(); + } else { + setError_msg((byte[])__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 LICENSECONTENT: + return getLicenseContent(); + + case LICENSEKEY: + return getLicenseKey(); + + case ERROR_MSG: + return getError_msg(); + + 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 GetLicenseResp)) + return false; + GetLicenseResp that = (GetLicenseResp)_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.isSetLicenseContent(), that.isSetLicenseContent(), this.licenseContent, that.licenseContent)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetLicenseKey(), that.isSetLicenseKey(), this.licenseKey, that.licenseKey)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetError_msg(), that.isSetError_msg(), this.error_msg, that.error_msg)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, licenseContent, licenseKey, error_msg}); + } + + @Override + public int compareTo(GetLicenseResp 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(isSetLicenseContent()).compareTo(other.isSetLicenseContent()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(licenseContent, other.licenseContent); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetLicenseKey()).compareTo(other.isSetLicenseKey()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(licenseKey, other.licenseKey); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetError_msg()).compareTo(other.isSetError_msg()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(error_msg, other.error_msg); + 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 LICENSECONTENT: + if (__field.type == TType.STRING) { + this.licenseContent = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LICENSEKEY: + if (__field.type == TType.STRING) { + this.licenseKey = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case ERROR_MSG: + if (__field.type == TType.STRING) { + this.error_msg = 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.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.licenseContent != null) { + oprot.writeFieldBegin(LICENSE_CONTENT_FIELD_DESC); + oprot.writeBinary(this.licenseContent); + oprot.writeFieldEnd(); + } + if (this.licenseKey != null) { + oprot.writeFieldBegin(LICENSE_KEY_FIELD_DESC); + oprot.writeBinary(this.licenseKey); + oprot.writeFieldEnd(); + } + if (this.error_msg != null) { + if (isSetError_msg()) { + oprot.writeFieldBegin(ERROR_MSG_FIELD_DESC); + oprot.writeBinary(this.error_msg); + 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("GetLicenseResp"); + 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("licenseContent"); + sb.append(space); + sb.append(":").append(space); + if (this.getLicenseContent() == null) { + sb.append("null"); + } else { + int __licenseContent_size = Math.min(this.getLicenseContent().length, 128); + for (int i = 0; i < __licenseContent_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getLicenseContent()[i]).length() > 1 ? Integer.toHexString(this.getLicenseContent()[i]).substring(Integer.toHexString(this.getLicenseContent()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getLicenseContent()[i]).toUpperCase()); + } + if (this.getLicenseContent().length > 128) sb.append(" ..."); + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("licenseKey"); + sb.append(space); + sb.append(":").append(space); + if (this.getLicenseKey() == null) { + sb.append("null"); + } else { + int __licenseKey_size = Math.min(this.getLicenseKey().length, 128); + for (int i = 0; i < __licenseKey_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getLicenseKey()[i]).length() > 1 ? Integer.toHexString(this.getLicenseKey()[i]).substring(Integer.toHexString(this.getLicenseKey()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getLicenseKey()[i]).toUpperCase()); + } + if (this.getLicenseKey().length > 128) sb.append(" ..."); + } + first = false; + if (isSetError_msg()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("error_msg"); + sb.append(space); + sb.append(":").append(space); + if (this.getError_msg() == null) { + sb.append("null"); + } else { + int __error_msg_size = Math.min(this.getError_msg().length, 128); + for (int i = 0; i < __error_msg_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getError_msg()[i]).length() > 1 ? Integer.toHexString(this.getError_msg()[i]).substring(Integer.toHexString(this.getError_msg()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getError_msg()[i]).toUpperCase()); + } + if (this.getError_msg().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/GetSyncProgressReq.java b/client/src/main/generated/com/vesoft/nebula/meta/GetSyncProgressReq.java new file mode 100644 index 000000000..5ed7708a5 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetSyncProgressReq.java @@ -0,0 +1,267 @@ +/** + * 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 GetSyncProgressReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("GetSyncProgressReq"); + 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(GetSyncProgressReq.class, metaDataMap); + } + + public GetSyncProgressReq() { + } + + public GetSyncProgressReq( + 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 GetSyncProgressReq build() { + GetSyncProgressReq result = new GetSyncProgressReq(); + 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 GetSyncProgressReq(GetSyncProgressReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + } + + public GetSyncProgressReq deepCopy() { + return new GetSyncProgressReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public GetSyncProgressReq 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 GetSyncProgressReq)) + return false; + GetSyncProgressReq that = (GetSyncProgressReq)_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(GetSyncProgressReq 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("GetSyncProgressReq"); + 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/GetSyncProgressResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetSyncProgressResp.java new file mode 100644 index 000000000..701776f9f --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetSyncProgressResp.java @@ -0,0 +1,481 @@ +/** + * 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 GetSyncProgressResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("GetSyncProgressResp"); + 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 PROGRESSES_FIELD_DESC = new TField("progresses", TType.MAP, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public Map progresses; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int PROGRESSES = 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(PROGRESSES, new FieldMetaData("progresses", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new StructMetaData(TType.STRUCT, com.vesoft.nebula.SyncInfo.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(GetSyncProgressResp.class, metaDataMap); + } + + public GetSyncProgressResp() { + } + + public GetSyncProgressResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + Map progresses) { + this(); + this.code = code; + this.leader = leader; + this.progresses = progresses; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private Map progresses; + + 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 setProgresses(final Map progresses) { + this.progresses = progresses; + return this; + } + + public GetSyncProgressResp build() { + GetSyncProgressResp result = new GetSyncProgressResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setProgresses(this.progresses); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public GetSyncProgressResp(GetSyncProgressResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetProgresses()) { + this.progresses = TBaseHelper.deepCopy(other.progresses); + } + } + + public GetSyncProgressResp deepCopy() { + return new GetSyncProgressResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public GetSyncProgressResp 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 GetSyncProgressResp 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 Map getProgresses() { + return this.progresses; + } + + public GetSyncProgressResp setProgresses(Map progresses) { + this.progresses = progresses; + return this; + } + + public void unsetProgresses() { + this.progresses = null; + } + + // Returns true if field progresses is set (has been assigned a value) and false otherwise + public boolean isSetProgresses() { + return this.progresses != null; + } + + public void setProgressesIsSet(boolean __value) { + if (!__value) { + this.progresses = 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 PROGRESSES: + if (__value == null) { + unsetProgresses(); + } else { + setProgresses((Map)__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 PROGRESSES: + return getProgresses(); + + 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 GetSyncProgressResp)) + return false; + GetSyncProgressResp that = (GetSyncProgressResp)_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.isSetProgresses(), that.isSetProgresses(), this.progresses, that.progresses)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, progresses}); + } + + @Override + public int compareTo(GetSyncProgressResp 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(isSetProgresses()).compareTo(other.isSetProgresses()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(progresses, other.progresses); + 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 PROGRESSES: + if (__field.type == TType.MAP) { + { + TMap _map458 = iprot.readMapBegin(); + this.progresses = new HashMap(Math.max(0, 2*_map458.size)); + for (int _i459 = 0; + (_map458.size < 0) ? iprot.peekMap() : (_i459 < _map458.size); + ++_i459) + { + int _key460; + com.vesoft.nebula.SyncInfo _val461; + _key460 = iprot.readI32(); + _val461 = new com.vesoft.nebula.SyncInfo(); + _val461.read(iprot); + this.progresses.put(_key460, _val461); + } + 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.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.progresses != null) { + oprot.writeFieldBegin(PROGRESSES_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.progresses.size())); + for (Map.Entry _iter462 : this.progresses.entrySet()) { + oprot.writeI32(_iter462.getKey()); + _iter462.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("GetSyncProgressResp"); + 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("progresses"); + sb.append(space); + sb.append(":").append(space); + if (this.getProgresses() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getProgresses(), 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/GetVariableReq.java b/client/src/main/generated/com/vesoft/nebula/meta/GetVariableReq.java new file mode 100644 index 000000000..0dfd1796b --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetVariableReq.java @@ -0,0 +1,322 @@ +/** + * 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 GetVariableReq implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("GetVariableReq"); + private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); + private static final TField ITEM_FIELD_DESC = new TField("item", TType.STRUCT, (short)2); + + public int space_id; + public VariableItem item; + public static final int SPACE_ID = 1; + public static final int ITEM = 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(ITEM, new FieldMetaData("item", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, VariableItem.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(GetVariableReq.class, metaDataMap); + } + + public GetVariableReq() { + } + + public GetVariableReq( + int space_id, + VariableItem item) { + this(); + this.space_id = space_id; + setSpace_idIsSet(true); + this.item = item; + } + + public static class Builder { + private int space_id; + private VariableItem item; + + 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 Builder setItem(final VariableItem item) { + this.item = item; + return this; + } + + public GetVariableReq build() { + GetVariableReq result = new GetVariableReq(); + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setItem(this.item); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public GetVariableReq(GetVariableReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetItem()) { + this.item = TBaseHelper.deepCopy(other.item); + } + } + + public GetVariableReq deepCopy() { + return new GetVariableReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public GetVariableReq 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 VariableItem getItem() { + return this.item; + } + + public GetVariableReq setItem(VariableItem item) { + this.item = item; + return this; + } + + public void unsetItem() { + this.item = null; + } + + // Returns true if field item is set (has been assigned a value) and false otherwise + public boolean isSetItem() { + return this.item != null; + } + + public void setItemIsSet(boolean __value) { + if (!__value) { + this.item = 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 ITEM: + if (__value == null) { + unsetItem(); + } else { + setItem((VariableItem)__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 ITEM: + return getItem(); + + 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 GetVariableReq)) + return false; + GetVariableReq that = (GetVariableReq)_that; + + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetItem(), that.isSetItem(), this.item, that.item)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space_id, item}); + } + + 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 ITEM: + if (__field.type == TType.STRUCT) { + this.item = new VariableItem(); + this.item.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(SPACE_ID_FIELD_DESC); + oprot.writeI32(this.space_id); + oprot.writeFieldEnd(); + if (this.item != null) { + oprot.writeFieldBegin(ITEM_FIELD_DESC); + this.item.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("GetVariableReq"); + 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("item"); + sb.append(space); + sb.append(":").append(space); + if (this.getItem() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getItem(), 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/GetVariableResp.java b/client/src/main/generated/com/vesoft/nebula/meta/GetVariableResp.java new file mode 100644 index 000000000..ea0093a25 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/GetVariableResp.java @@ -0,0 +1,418 @@ +/** + * 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 GetVariableResp implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("GetVariableResp"); + 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 ITEM_FIELD_DESC = new TField("item", TType.STRUCT, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public VariableItem item; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int ITEM = 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(ITEM, new FieldMetaData("item", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, VariableItem.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(GetVariableResp.class, metaDataMap); + } + + public GetVariableResp() { + } + + public GetVariableResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + VariableItem item) { + this(); + this.code = code; + this.leader = leader; + this.item = item; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private VariableItem item; + + 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 setItem(final VariableItem item) { + this.item = item; + return this; + } + + public GetVariableResp build() { + GetVariableResp result = new GetVariableResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setItem(this.item); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public GetVariableResp(GetVariableResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetItem()) { + this.item = TBaseHelper.deepCopy(other.item); + } + } + + public GetVariableResp deepCopy() { + return new GetVariableResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public GetVariableResp 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 GetVariableResp 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 VariableItem getItem() { + return this.item; + } + + public GetVariableResp setItem(VariableItem item) { + this.item = item; + return this; + } + + public void unsetItem() { + this.item = null; + } + + // Returns true if field item is set (has been assigned a value) and false otherwise + public boolean isSetItem() { + return this.item != null; + } + + public void setItemIsSet(boolean __value) { + if (!__value) { + this.item = 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 ITEM: + if (__value == null) { + unsetItem(); + } else { + setItem((VariableItem)__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 ITEM: + return getItem(); + + 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 GetVariableResp)) + return false; + GetVariableResp that = (GetVariableResp)_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.isSetItem(), that.isSetItem(), this.item, that.item)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, item}); + } + + 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 ITEM: + if (__field.type == TType.STRUCT) { + this.item = new VariableItem(); + this.item.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.item != null) { + oprot.writeFieldBegin(ITEM_FIELD_DESC); + this.item.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("GetVariableResp"); + 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("item"); + sb.append(space); + sb.append(":").append(space); + if (this.getItem() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getItem(), 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 05768da9e..3456ed203 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 _list233 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list233.size)); - for (int _i234 = 0; - (_list233.size < 0) ? iprot.peekList() : (_i234 < _list233.size); - ++_i234) + TList _list250 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list250.size)); + for (int _i251 = 0; + (_list250.size < 0) ? iprot.peekList() : (_i251 < _list250.size); + ++_i251) { - com.vesoft.nebula.HostAddr _elem235; - _elem235 = new com.vesoft.nebula.HostAddr(); - _elem235.read(iprot); - this.hosts.add(_elem235); + com.vesoft.nebula.HostAddr _elem252; + _elem252 = new com.vesoft.nebula.HostAddr(); + _elem252.read(iprot); + this.hosts.add(_elem252); } 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 _iter236 : this.hosts) { - _iter236.write(oprot); + for (com.vesoft.nebula.HostAddr _iter253 : this.hosts) { + _iter253.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java b/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java index 197c949e8..45a800fd9 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/HBReq.java @@ -34,6 +34,8 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable 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); + private static final TField CPU_CORES_FIELD_DESC = new TField("cpu_cores", TType.I32, (short)9); + private static final TField ZONE_FIELD_DESC = new TField("zone", TType.STRING, (short)10); /** * @@ -47,6 +49,8 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable public Map> disk_parts; public com.vesoft.nebula.DirInfo dir; public byte[] version; + public int cpu_cores; + public byte[] zone; public static final int ROLE = 1; public static final int HOST = 2; public static final int CLUSTER_ID = 3; @@ -55,10 +59,13 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable public static final int DISK_PARTS = 6; public static final int DIR = 7; public static final int VERSION = 8; + public static final int CPU_CORES = 9; + public static final int ZONE = 10; // isset id assignments private static final int __CLUSTER_ID_ISSET_ID = 0; - private BitSet __isset_bit_vector = new BitSet(1); + private static final int __CPU_CORES_ISSET_ID = 1; + private BitSet __isset_bit_vector = new BitSet(2); public static final Map metaDataMap; @@ -87,6 +94,10 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable new StructMetaData(TType.STRUCT, com.vesoft.nebula.DirInfo.class))); tmpMetaDataMap.put(VERSION, new FieldMetaData("version", TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(CPU_CORES, new FieldMetaData("cpu_cores", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(ZONE, new FieldMetaData("zone", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -95,6 +106,8 @@ public class HBReq implements TBase, java.io.Serializable, Cloneable, Comparable } public HBReq() { + this.cpu_cores = -1; + } public HBReq( @@ -118,7 +131,9 @@ public HBReq( byte[] git_info_sha, Map> disk_parts, com.vesoft.nebula.DirInfo dir, - byte[] version) { + byte[] version, + int cpu_cores, + byte[] zone) { this(); this.role = role; this.host = host; @@ -129,6 +144,9 @@ public HBReq( this.disk_parts = disk_parts; this.dir = dir; this.version = version; + this.cpu_cores = cpu_cores; + setCpu_coresIsSet(true); + this.zone = zone; } public static class Builder { @@ -140,8 +158,10 @@ public static class Builder { private Map> disk_parts; private com.vesoft.nebula.DirInfo dir; private byte[] version; + private int cpu_cores; + private byte[] zone; - BitSet __optional_isset = new BitSet(1); + BitSet __optional_isset = new BitSet(2); public Builder() { } @@ -187,6 +207,17 @@ public Builder setVersion(final byte[] version) { return this; } + public Builder setCpu_cores(final int cpu_cores) { + this.cpu_cores = cpu_cores; + __optional_isset.set(__CPU_CORES_ISSET_ID, true); + return this; + } + + public Builder setZone(final byte[] zone) { + this.zone = zone; + return this; + } + public HBReq build() { HBReq result = new HBReq(); result.setRole(this.role); @@ -199,6 +230,10 @@ public HBReq build() { result.setDisk_parts(this.disk_parts); result.setDir(this.dir); result.setVersion(this.version); + if (__optional_isset.get(__CPU_CORES_ISSET_ID)) { + result.setCpu_cores(this.cpu_cores); + } + result.setZone(this.zone); return result; } } @@ -235,6 +270,10 @@ public HBReq(HBReq other) { if (other.isSetVersion()) { this.version = TBaseHelper.deepCopy(other.version); } + this.cpu_cores = TBaseHelper.deepCopy(other.cpu_cores); + if (other.isSetZone()) { + this.zone = TBaseHelper.deepCopy(other.zone); + } } public HBReq deepCopy() { @@ -440,6 +479,53 @@ public void setVersionIsSet(boolean __value) { } } + public int getCpu_cores() { + return this.cpu_cores; + } + + public HBReq setCpu_cores(int cpu_cores) { + this.cpu_cores = cpu_cores; + setCpu_coresIsSet(true); + return this; + } + + public void unsetCpu_cores() { + __isset_bit_vector.clear(__CPU_CORES_ISSET_ID); + } + + // Returns true if field cpu_cores is set (has been assigned a value) and false otherwise + public boolean isSetCpu_cores() { + return __isset_bit_vector.get(__CPU_CORES_ISSET_ID); + } + + public void setCpu_coresIsSet(boolean __value) { + __isset_bit_vector.set(__CPU_CORES_ISSET_ID, __value); + } + + public byte[] getZone() { + return this.zone; + } + + public HBReq setZone(byte[] zone) { + this.zone = zone; + return this; + } + + public void unsetZone() { + this.zone = null; + } + + // Returns true if field zone is set (has been assigned a value) and false otherwise + public boolean isSetZone() { + return this.zone != null; + } + + public void setZoneIsSet(boolean __value) { + if (!__value) { + this.zone = null; + } + } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -507,6 +593,22 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case CPU_CORES: + if (__value == null) { + unsetCpu_cores(); + } else { + setCpu_cores((Integer)__value); + } + break; + + case ZONE: + if (__value == null) { + unsetZone(); + } else { + setZone((byte[])__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -538,6 +640,12 @@ public Object getFieldValue(int fieldID) { case VERSION: return getVersion(); + case CPU_CORES: + return new Integer(getCpu_cores()); + + case ZONE: + return getZone(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -569,12 +677,16 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetVersion(), that.isSetVersion(), this.version, that.version)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetCpu_cores(), that.isSetCpu_cores(), this.cpu_cores, that.cpu_cores)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetZone(), that.isSetZone(), this.zone, that.zone)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {role, host, cluster_id, leader_partIds, git_info_sha, disk_parts, dir, version}); + return Arrays.deepHashCode(new Object[] {role, host, cluster_id, leader_partIds, git_info_sha, disk_parts, dir, version, cpu_cores, zone}); } @Override @@ -653,6 +765,22 @@ public int compareTo(HBReq other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetCpu_cores()).compareTo(other.isSetCpu_cores()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(cpu_cores, other.cpu_cores); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetZone()).compareTo(other.isSetZone()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(zone, other.zone); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -782,6 +910,21 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case CPU_CORES: + if (__field.type == TType.I32) { + this.cpu_cores = iprot.readI32(); + setCpu_coresIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case ZONE: + if (__field.type == TType.STRING) { + this.zone = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -872,6 +1015,18 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } } + if (isSetCpu_cores()) { + oprot.writeFieldBegin(CPU_CORES_FIELD_DESC); + oprot.writeI32(this.cpu_cores); + oprot.writeFieldEnd(); + } + if (this.zone != null) { + if (isSetZone()) { + oprot.writeFieldBegin(ZONE_FIELD_DESC); + oprot.writeBinary(this.zone); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1005,6 +1160,35 @@ public String toString(int indent, boolean prettyPrint) { } first = false; } + if (isSetCpu_cores()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("cpu_cores"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getCpu_cores(), indent + 1, prettyPrint)); + first = false; + } + if (isSetZone()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("zone"); + sb.append(space); + sb.append(":").append(space); + if (this.getZone() == null) { + sb.append("null"); + } else { + int __zone_size = Math.min(this.getZone().length, 128); + for (int i = 0; i < __zone_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getZone()[i]).length() > 1 ? Integer.toHexString(this.getZone()[i]).substring(Integer.toHexString(this.getZone()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getZone()[i]).toUpperCase()); + } + if (this.getZone().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/HostBackupInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/HostBackupInfo.java index ad98756d4..dd0506734 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/HostBackupInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/HostBackupInfo.java @@ -268,16 +268,16 @@ public void read(TProtocol iprot) throws TException { case CHECKPOINTS: if (__field.type == TType.LIST) { { - TList _list253 = iprot.readListBegin(); - this.checkpoints = new ArrayList(Math.max(0, _list253.size)); - for (int _i254 = 0; - (_list253.size < 0) ? iprot.peekList() : (_i254 < _list253.size); - ++_i254) + TList _list293 = iprot.readListBegin(); + this.checkpoints = new ArrayList(Math.max(0, _list293.size)); + for (int _i294 = 0; + (_list293.size < 0) ? iprot.peekList() : (_i294 < _list293.size); + ++_i294) { - com.vesoft.nebula.CheckpointInfo _elem255; - _elem255 = new com.vesoft.nebula.CheckpointInfo(); - _elem255.read(iprot); - this.checkpoints.add(_elem255); + com.vesoft.nebula.CheckpointInfo _elem295; + _elem295 = new com.vesoft.nebula.CheckpointInfo(); + _elem295.read(iprot); + this.checkpoints.add(_elem295); } iprot.readListEnd(); } @@ -311,8 +311,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(CHECKPOINTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.checkpoints.size())); - for (com.vesoft.nebula.CheckpointInfo _iter256 : this.checkpoints) { - _iter256.write(oprot); + for (com.vesoft.nebula.CheckpointInfo _iter296 : this.checkpoints) { + _iter296.write(oprot); } oprot.writeListEnd(); } 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 78ee0e2ec..5cf341844 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/HostRole.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/HostRole.java @@ -18,7 +18,9 @@ public enum HostRole implements com.facebook.thrift.TEnum { STORAGE(2), STORAGE_LISTENER(3), AGENT(4), - UNKNOWN(5); + UNKNOWN(5), + DRAINER(6), + META_LISTENER(7); private final int value; @@ -51,6 +53,10 @@ public static HostRole findByValue(int value) { return AGENT; case 5: return UNKNOWN; + case 6: + return DRAINER; + case 7: + return META_LISTENER; default: return null; } 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 aac9c00fb..7841cf4f8 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 _map361 = iprot.readMapBegin(); - this.kill_queries = new HashMap>(Math.max(0, 2*_map361.size)); - for (int _i362 = 0; - (_map361.size < 0) ? iprot.peekMap() : (_i362 < _map361.size); - ++_i362) + TMap _map414 = iprot.readMapBegin(); + this.kill_queries = new HashMap>(Math.max(0, 2*_map414.size)); + for (int _i415 = 0; + (_map414.size < 0) ? iprot.peekMap() : (_i415 < _map414.size); + ++_i415) { - long _key363; - Set _val364; - _key363 = iprot.readI64(); + long _key416; + Set _val417; + _key416 = iprot.readI64(); { - TSet _set365 = iprot.readSetBegin(); - _val364 = new HashSet(Math.max(0, 2*_set365.size)); - for (int _i366 = 0; - (_set365.size < 0) ? iprot.peekSet() : (_i366 < _set365.size); - ++_i366) + TSet _set418 = iprot.readSetBegin(); + _val417 = new HashSet(Math.max(0, 2*_set418.size)); + for (int _i419 = 0; + (_set418.size < 0) ? iprot.peekSet() : (_i419 < _set418.size); + ++_i419) { - long _elem367; - _elem367 = iprot.readI64(); - _val364.add(_elem367); + long _elem420; + _elem420 = iprot.readI64(); + _val417.add(_elem420); } iprot.readSetEnd(); } - this.kill_queries.put(_key363, _val364); + this.kill_queries.put(_key416, _val417); } 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> _iter368 : this.kill_queries.entrySet()) { - oprot.writeI64(_iter368.getKey()); + for (Map.Entry> _iter421 : this.kill_queries.entrySet()) { + oprot.writeI64(_iter421.getKey()); { - oprot.writeSetBegin(new TSet(TType.I64, _iter368.getValue().size())); - for (long _iter369 : _iter368.getValue()) { - oprot.writeI64(_iter369); + oprot.writeSetBegin(new TSet(TType.I64, _iter421.getValue().size())); + for (long _iter422 : _iter421.getValue()) { + oprot.writeI64(_iter422); } oprot.writeSetEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java index b253bc700..d35930733 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListClusterInfoResp.java @@ -351,30 +351,30 @@ public void read(TProtocol iprot) throws TException { case HOST_SERVICES: if (__field.type == TType.MAP) { { - TMap _map370 = iprot.readMapBegin(); - this.host_services = new HashMap>(Math.max(0, 2*_map370.size)); - for (int _i371 = 0; - (_map370.size < 0) ? iprot.peekMap() : (_i371 < _map370.size); - ++_i371) + TMap _map423 = iprot.readMapBegin(); + this.host_services = new HashMap>(Math.max(0, 2*_map423.size)); + for (int _i424 = 0; + (_map423.size < 0) ? iprot.peekMap() : (_i424 < _map423.size); + ++_i424) { - String _key372; - List _val373; - _key372 = iprot.readString(); + String _key425; + List _val426; + _key425 = iprot.readString(); { - TList _list374 = iprot.readListBegin(); - _val373 = new ArrayList(Math.max(0, _list374.size)); - for (int _i375 = 0; - (_list374.size < 0) ? iprot.peekList() : (_i375 < _list374.size); - ++_i375) + TList _list427 = iprot.readListBegin(); + _val426 = new ArrayList(Math.max(0, _list427.size)); + for (int _i428 = 0; + (_list427.size < 0) ? iprot.peekList() : (_i428 < _list427.size); + ++_i428) { - ServiceInfo _elem376; - _elem376 = new ServiceInfo(); - _elem376.read(iprot); - _val373.add(_elem376); + ServiceInfo _elem429; + _elem429 = new ServiceInfo(); + _elem429.read(iprot); + _val426.add(_elem429); } iprot.readListEnd(); } - this.host_services.put(_key372, _val373); + this.host_services.put(_key425, _val426); } iprot.readMapEnd(); } @@ -413,12 +413,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(HOST_SERVICES_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.LIST, this.host_services.size())); - for (Map.Entry> _iter377 : this.host_services.entrySet()) { - oprot.writeString(_iter377.getKey()); + for (Map.Entry> _iter430 : this.host_services.entrySet()) { + oprot.writeString(_iter430.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter377.getValue().size())); - for (ServiceInfo _iter378 : _iter377.getValue()) { - _iter378.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, _iter430.getValue().size())); + for (ServiceInfo _iter431 : _iter430.getValue()) { + _iter431.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListConfigsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListConfigsResp.java index 294bcd5b6..2bcf3e420 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 _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 _list217 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list217.size)); + for (int _i218 = 0; + (_list217.size < 0) ? iprot.peekList() : (_i218 < _list217.size); + ++_i218) { - ConfigItem _elem202; - _elem202 = new ConfigItem(); - _elem202.read(iprot); - this.items.add(_elem202); + ConfigItem _elem219; + _elem219 = new ConfigItem(); + _elem219.read(iprot); + this.items.add(_elem219); } 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 _iter203 : this.items) { - _iter203.write(oprot); + for (ConfigItem _iter220 : this.items) { + _iter220.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListDrainerSyncStatusReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListDrainerSyncStatusReq.java new file mode 100644 index 000000000..d66135791 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListDrainerSyncStatusReq.java @@ -0,0 +1,267 @@ +/** + * 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 ListDrainerSyncStatusReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListDrainerSyncStatusReq"); + 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(ListDrainerSyncStatusReq.class, metaDataMap); + } + + public ListDrainerSyncStatusReq() { + } + + public ListDrainerSyncStatusReq( + 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 ListDrainerSyncStatusReq build() { + ListDrainerSyncStatusReq result = new ListDrainerSyncStatusReq(); + 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 ListDrainerSyncStatusReq(ListDrainerSyncStatusReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + } + + public ListDrainerSyncStatusReq deepCopy() { + return new ListDrainerSyncStatusReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public ListDrainerSyncStatusReq 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 ListDrainerSyncStatusReq)) + return false; + ListDrainerSyncStatusReq that = (ListDrainerSyncStatusReq)_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(ListDrainerSyncStatusReq 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("ListDrainerSyncStatusReq"); + 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/ListDrainerSyncStatusResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListDrainerSyncStatusResp.java new file mode 100644 index 000000000..30c9ffc83 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListDrainerSyncStatusResp.java @@ -0,0 +1,481 @@ +/** + * 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 ListDrainerSyncStatusResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListDrainerSyncStatusResp"); + 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 SYNC_INFOS_FIELD_DESC = new TField("sync_infos", TType.MAP, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public Map sync_infos; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int SYNC_INFOS = 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(SYNC_INFOS, new FieldMetaData("sync_infos", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new StructMetaData(TType.STRUCT, com.vesoft.nebula.SyncInfo.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListDrainerSyncStatusResp.class, metaDataMap); + } + + public ListDrainerSyncStatusResp() { + } + + public ListDrainerSyncStatusResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + Map sync_infos) { + this(); + this.code = code; + this.leader = leader; + this.sync_infos = sync_infos; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private Map sync_infos; + + 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 setSync_infos(final Map sync_infos) { + this.sync_infos = sync_infos; + return this; + } + + public ListDrainerSyncStatusResp build() { + ListDrainerSyncStatusResp result = new ListDrainerSyncStatusResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setSync_infos(this.sync_infos); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListDrainerSyncStatusResp(ListDrainerSyncStatusResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetSync_infos()) { + this.sync_infos = TBaseHelper.deepCopy(other.sync_infos); + } + } + + public ListDrainerSyncStatusResp deepCopy() { + return new ListDrainerSyncStatusResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public ListDrainerSyncStatusResp 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 ListDrainerSyncStatusResp 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 Map getSync_infos() { + return this.sync_infos; + } + + public ListDrainerSyncStatusResp setSync_infos(Map sync_infos) { + this.sync_infos = sync_infos; + return this; + } + + public void unsetSync_infos() { + this.sync_infos = null; + } + + // Returns true if field sync_infos is set (has been assigned a value) and false otherwise + public boolean isSetSync_infos() { + return this.sync_infos != null; + } + + public void setSync_infosIsSet(boolean __value) { + if (!__value) { + this.sync_infos = 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 SYNC_INFOS: + if (__value == null) { + unsetSync_infos(); + } else { + setSync_infos((Map)__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 SYNC_INFOS: + return getSync_infos(); + + 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 ListDrainerSyncStatusResp)) + return false; + ListDrainerSyncStatusResp that = (ListDrainerSyncStatusResp)_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.isSetSync_infos(), that.isSetSync_infos(), this.sync_infos, that.sync_infos)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, sync_infos}); + } + + @Override + public int compareTo(ListDrainerSyncStatusResp 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(isSetSync_infos()).compareTo(other.isSetSync_infos()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(sync_infos, other.sync_infos); + 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 SYNC_INFOS: + if (__field.type == TType.MAP) { + { + TMap _map288 = iprot.readMapBegin(); + this.sync_infos = new HashMap(Math.max(0, 2*_map288.size)); + for (int _i289 = 0; + (_map288.size < 0) ? iprot.peekMap() : (_i289 < _map288.size); + ++_i289) + { + int _key290; + com.vesoft.nebula.SyncInfo _val291; + _key290 = iprot.readI32(); + _val291 = new com.vesoft.nebula.SyncInfo(); + _val291.read(iprot); + this.sync_infos.put(_key290, _val291); + } + 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.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.sync_infos != null) { + oprot.writeFieldBegin(SYNC_INFOS_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.sync_infos.size())); + for (Map.Entry _iter292 : this.sync_infos.entrySet()) { + oprot.writeI32(_iter292.getKey()); + _iter292.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("ListDrainerSyncStatusResp"); + 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("sync_infos"); + sb.append(space); + sb.append(":").append(space); + if (this.getSync_infos() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSync_infos(), 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/ListListenerReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListDrainersReq.java similarity index 88% rename from client/src/main/generated/com/vesoft/nebula/meta/ListListenerReq.java rename to client/src/main/generated/com/vesoft/nebula/meta/ListDrainersReq.java index 42b7b8933..36d355608 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListListenerReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListDrainersReq.java @@ -24,8 +24,8 @@ import com.facebook.thrift.protocol.*; @SuppressWarnings({ "unused", "serial" }) -public class ListListenerReq implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("ListListenerReq"); +public class ListDrainersReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListDrainersReq"); private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); public int space_id; @@ -45,13 +45,13 @@ public class ListListenerReq implements TBase, java.io.Serializable, Cloneable, } static { - FieldMetaData.addStructMetaDataMap(ListListenerReq.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(ListDrainersReq.class, metaDataMap); } - public ListListenerReq() { + public ListDrainersReq() { } - public ListListenerReq( + public ListDrainersReq( int space_id) { this(); this.space_id = space_id; @@ -72,8 +72,8 @@ public Builder setSpace_id(final int space_id) { return this; } - public ListListenerReq build() { - ListListenerReq result = new ListListenerReq(); + public ListDrainersReq build() { + ListDrainersReq result = new ListDrainersReq(); if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { result.setSpace_id(this.space_id); } @@ -88,21 +88,21 @@ public static Builder builder() { /** * Performs a deep copy on other. */ - public ListListenerReq(ListListenerReq other) { + public ListDrainersReq(ListDrainersReq other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.space_id = TBaseHelper.deepCopy(other.space_id); } - public ListListenerReq deepCopy() { - return new ListListenerReq(this); + public ListDrainersReq deepCopy() { + return new ListDrainersReq(this); } public int getSpace_id() { return this.space_id; } - public ListListenerReq setSpace_id(int space_id) { + public ListDrainersReq setSpace_id(int space_id) { this.space_id = space_id; setSpace_idIsSet(true); return this; @@ -152,9 +152,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof ListListenerReq)) + if (!(_that instanceof ListDrainersReq)) return false; - ListListenerReq that = (ListListenerReq)_that; + ListDrainersReq that = (ListDrainersReq)_that; if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } @@ -167,7 +167,7 @@ public int hashCode() { } @Override - public int compareTo(ListListenerReq other) { + public int compareTo(ListDrainersReq other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -242,7 +242,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("ListListenerReq"); + StringBuilder sb = new StringBuilder("ListDrainersReq"); sb.append(space); sb.append("("); sb.append(newLine); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListDrainersResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListDrainersResp.java new file mode 100644 index 000000000..d4d6106c7 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListDrainersResp.java @@ -0,0 +1,477 @@ +/** + * 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 ListDrainersResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListDrainersResp"); + 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 DRAINERS_FIELD_DESC = new TField("drainers", TType.LIST, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public List drainers; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int DRAINERS = 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(DRAINERS, new FieldMetaData("drainers", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, DrainerInfo.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListDrainersResp.class, metaDataMap); + } + + public ListDrainersResp() { + } + + public ListDrainersResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + List drainers) { + this(); + this.code = code; + this.leader = leader; + this.drainers = drainers; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private List drainers; + + 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 setDrainers(final List drainers) { + this.drainers = drainers; + return this; + } + + public ListDrainersResp build() { + ListDrainersResp result = new ListDrainersResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setDrainers(this.drainers); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListDrainersResp(ListDrainersResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetDrainers()) { + this.drainers = TBaseHelper.deepCopy(other.drainers); + } + } + + public ListDrainersResp deepCopy() { + return new ListDrainersResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public ListDrainersResp 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 ListDrainersResp 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 getDrainers() { + return this.drainers; + } + + public ListDrainersResp setDrainers(List drainers) { + this.drainers = drainers; + return this; + } + + public void unsetDrainers() { + this.drainers = null; + } + + // Returns true if field drainers is set (has been assigned a value) and false otherwise + public boolean isSetDrainers() { + return this.drainers != null; + } + + public void setDrainersIsSet(boolean __value) { + if (!__value) { + this.drainers = 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 DRAINERS: + if (__value == null) { + unsetDrainers(); + } else { + setDrainers((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 DRAINERS: + return getDrainers(); + + 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 ListDrainersResp)) + return false; + ListDrainersResp that = (ListDrainersResp)_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.isSetDrainers(), that.isSetDrainers(), this.drainers, that.drainers)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, drainers}); + } + + @Override + public int compareTo(ListDrainersResp 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(isSetDrainers()).compareTo(other.isSetDrainers()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(drainers, other.drainers); + 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 DRAINERS: + if (__field.type == TType.LIST) { + { + TList _list284 = iprot.readListBegin(); + this.drainers = new ArrayList(Math.max(0, _list284.size)); + for (int _i285 = 0; + (_list284.size < 0) ? iprot.peekList() : (_i285 < _list284.size); + ++_i285) + { + DrainerInfo _elem286; + _elem286 = new DrainerInfo(); + _elem286.read(iprot); + this.drainers.add(_elem286); + } + 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.drainers != null) { + oprot.writeFieldBegin(DRAINERS_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.STRUCT, this.drainers.size())); + for (DrainerInfo _iter287 : this.drainers) { + _iter287.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("ListDrainersResp"); + 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("drainers"); + sb.append(space); + sb.append(":").append(space); + if (this.getDrainers() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getDrainers(), 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/ListFTIndexesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListFTIndexesResp.java index ade2334f1..8741e1a5f 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 _map316 = iprot.readMapBegin(); - this.indexes = new HashMap(Math.max(0, 2*_map316.size)); - for (int _i317 = 0; - (_map316.size < 0) ? iprot.peekMap() : (_i317 < _map316.size); - ++_i317) + TMap _map369 = iprot.readMapBegin(); + this.indexes = new HashMap(Math.max(0, 2*_map369.size)); + for (int _i370 = 0; + (_map369.size < 0) ? iprot.peekMap() : (_i370 < _map369.size); + ++_i370) { - byte[] _key318; - FTIndex _val319; - _key318 = iprot.readBinary(); - _val319 = new FTIndex(); - _val319.read(iprot); - this.indexes.put(_key318, _val319); + byte[] _key371; + FTIndex _val372; + _key371 = iprot.readBinary(); + _val372 = new FTIndex(); + _val372.read(iprot); + this.indexes.put(_key371, _val372); } 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 _iter320 : this.indexes.entrySet()) { - oprot.writeBinary(_iter320.getKey()); - _iter320.getValue().write(oprot); + for (Map.Entry _iter373 : this.indexes.entrySet()) { + oprot.writeBinary(_iter373.getKey()); + _iter373.getValue().write(oprot); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListHostType.java b/client/src/main/generated/com/vesoft/nebula/meta/ListHostType.java index f2b3eb769..39651da8e 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListHostType.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListHostType.java @@ -18,7 +18,9 @@ public enum ListHostType implements com.facebook.thrift.TEnum { META(2), STORAGE(3), AGENT(4), - STORAGE_LISTENER(5); + STORAGE_LISTENER(5), + DRAINER(6), + META_LISTENER(7); private final int value; @@ -51,6 +53,10 @@ public static ListHostType findByValue(int value) { return AGENT; case 5: return STORAGE_LISTENER; + case 6: + return DRAINER; + case 7: + return META_LISTENER; default: return null; } 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 a75346c77..7123a18ff 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 _list212 = iprot.readListBegin(); - this.statuses = new ArrayList(Math.max(0, _list212.size)); - for (int _i213 = 0; - (_list212.size < 0) ? iprot.peekList() : (_i213 < _list212.size); - ++_i213) + TList _list229 = iprot.readListBegin(); + this.statuses = new ArrayList(Math.max(0, _list229.size)); + for (int _i230 = 0; + (_list229.size < 0) ? iprot.peekList() : (_i230 < _list229.size); + ++_i230) { - IndexStatus _elem214; - _elem214 = new IndexStatus(); - _elem214.read(iprot); - this.statuses.add(_elem214); + IndexStatus _elem231; + _elem231 = new IndexStatus(); + _elem231.read(iprot); + this.statuses.add(_elem231); } 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 _iter215 : this.statuses) { - _iter215.write(oprot); + for (IndexStatus _iter232 : this.statuses) { + _iter232.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListIpWhitelistsReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListIpWhitelistsReq.java new file mode 100644 index 000000000..47fc7975c --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListIpWhitelistsReq.java @@ -0,0 +1,174 @@ +/** + * 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 ListIpWhitelistsReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListIpWhitelistsReq"); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListIpWhitelistsReq.class, metaDataMap); + } + + public ListIpWhitelistsReq() { + } + + public static class Builder { + + public Builder() { + } + + public ListIpWhitelistsReq build() { + ListIpWhitelistsReq result = new ListIpWhitelistsReq(); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListIpWhitelistsReq(ListIpWhitelistsReq other) { + } + + public ListIpWhitelistsReq deepCopy() { + return new ListIpWhitelistsReq(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 ListIpWhitelistsReq)) + return false; + ListIpWhitelistsReq that = (ListIpWhitelistsReq)_that; + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {}); + } + + @Override + public int compareTo(ListIpWhitelistsReq 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("ListIpWhitelistsReq"); + 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/ListIpWhitelistsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListIpWhitelistsResp.java new file mode 100644 index 000000000..d27450528 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListIpWhitelistsResp.java @@ -0,0 +1,499 @@ +/** + * 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 ListIpWhitelistsResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListIpWhitelistsResp"); + 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 IP_WHITELISTS_FIELD_DESC = new TField("ip_whitelists", TType.MAP, (short)4); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public Map> ip_whitelists; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int IP_WHITELISTS = 4; + + // 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(IP_WHITELISTS, new FieldMetaData("ip_whitelists", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.STRING), + new SetMetaData(TType.SET, + new FieldValueMetaData(TType.STRING))))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListIpWhitelistsResp.class, metaDataMap); + } + + public ListIpWhitelistsResp() { + } + + public ListIpWhitelistsResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + Map> ip_whitelists) { + this(); + this.code = code; + this.leader = leader; + this.ip_whitelists = ip_whitelists; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private Map> ip_whitelists; + + 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 setIp_whitelists(final Map> ip_whitelists) { + this.ip_whitelists = ip_whitelists; + return this; + } + + public ListIpWhitelistsResp build() { + ListIpWhitelistsResp result = new ListIpWhitelistsResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setIp_whitelists(this.ip_whitelists); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListIpWhitelistsResp(ListIpWhitelistsResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetIp_whitelists()) { + this.ip_whitelists = TBaseHelper.deepCopy(other.ip_whitelists); + } + } + + public ListIpWhitelistsResp deepCopy() { + return new ListIpWhitelistsResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public ListIpWhitelistsResp 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 ListIpWhitelistsResp 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 Map> getIp_whitelists() { + return this.ip_whitelists; + } + + public ListIpWhitelistsResp setIp_whitelists(Map> ip_whitelists) { + this.ip_whitelists = ip_whitelists; + return this; + } + + public void unsetIp_whitelists() { + this.ip_whitelists = null; + } + + // Returns true if field ip_whitelists is set (has been assigned a value) and false otherwise + public boolean isSetIp_whitelists() { + return this.ip_whitelists != null; + } + + public void setIp_whitelistsIsSet(boolean __value) { + if (!__value) { + this.ip_whitelists = 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 IP_WHITELISTS: + if (__value == null) { + unsetIp_whitelists(); + } else { + setIp_whitelists((Map>)__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 IP_WHITELISTS: + return getIp_whitelists(); + + 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 ListIpWhitelistsResp)) + return false; + ListIpWhitelistsResp that = (ListIpWhitelistsResp)_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.isSetIp_whitelists(), that.isSetIp_whitelists(), this.ip_whitelists, that.ip_whitelists)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, ip_whitelists}); + } + + @Override + public int compareTo(ListIpWhitelistsResp 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(isSetIp_whitelists()).compareTo(other.isSetIp_whitelists()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(ip_whitelists, other.ip_whitelists); + 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 IP_WHITELISTS: + if (__field.type == TType.MAP) { + { + TMap _map196 = iprot.readMapBegin(); + this.ip_whitelists = new HashMap>(Math.max(0, 2*_map196.size)); + for (int _i197 = 0; + (_map196.size < 0) ? iprot.peekMap() : (_i197 < _map196.size); + ++_i197) + { + byte[] _key198; + Set _val199; + _key198 = iprot.readBinary(); + { + TSet _set200 = iprot.readSetBegin(); + _val199 = new HashSet(Math.max(0, 2*_set200.size)); + for (int _i201 = 0; + (_set200.size < 0) ? iprot.peekSet() : (_i201 < _set200.size); + ++_i201) + { + byte[] _elem202; + _elem202 = iprot.readBinary(); + _val199.add(_elem202); + } + iprot.readSetEnd(); + } + this.ip_whitelists.put(_key198, _val199); + } + 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.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.ip_whitelists != null) { + oprot.writeFieldBegin(IP_WHITELISTS_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.STRING, TType.SET, this.ip_whitelists.size())); + for (Map.Entry> _iter203 : this.ip_whitelists.entrySet()) { + oprot.writeBinary(_iter203.getKey()); + { + oprot.writeSetBegin(new TSet(TType.STRING, _iter203.getValue().size())); + for (byte[] _iter204 : _iter203.getValue()) { + oprot.writeBinary(_iter204); + } + oprot.writeSetEnd(); + } + } + 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("ListIpWhitelistsResp"); + 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("ip_whitelists"); + sb.append(space); + sb.append(":").append(space); + if (this.getIp_whitelists() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getIp_whitelists(), 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/ListListenerDrainersReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListListenerDrainersReq.java new file mode 100644 index 000000000..abd715630 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListListenerDrainersReq.java @@ -0,0 +1,267 @@ +/** + * 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 ListListenerDrainersReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListListenerDrainersReq"); + 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(ListListenerDrainersReq.class, metaDataMap); + } + + public ListListenerDrainersReq() { + } + + public ListListenerDrainersReq( + 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 ListListenerDrainersReq build() { + ListListenerDrainersReq result = new ListListenerDrainersReq(); + 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 ListListenerDrainersReq(ListListenerDrainersReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + } + + public ListListenerDrainersReq deepCopy() { + return new ListListenerDrainersReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public ListListenerDrainersReq 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 ListListenerDrainersReq)) + return false; + ListListenerDrainersReq that = (ListListenerDrainersReq)_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(ListListenerDrainersReq 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("ListListenerDrainersReq"); + 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/ListListenerDrainersResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListListenerDrainersResp.java new file mode 100644 index 000000000..fd14e748e --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListListenerDrainersResp.java @@ -0,0 +1,481 @@ +/** + * 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 ListListenerDrainersResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListListenerDrainersResp"); + 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 DRAINER_CLIENTS_FIELD_DESC = new TField("drainerClients", TType.MAP, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public Map drainerClients; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int DRAINERCLIENTS = 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(DRAINERCLIENTS, new FieldMetaData("drainerClients", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new StructMetaData(TType.STRUCT, DrainerClientInfo.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListListenerDrainersResp.class, metaDataMap); + } + + public ListListenerDrainersResp() { + } + + public ListListenerDrainersResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + Map drainerClients) { + this(); + this.code = code; + this.leader = leader; + this.drainerClients = drainerClients; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private Map drainerClients; + + 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 setDrainerClients(final Map drainerClients) { + this.drainerClients = drainerClients; + return this; + } + + public ListListenerDrainersResp build() { + ListListenerDrainersResp result = new ListListenerDrainersResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setDrainerClients(this.drainerClients); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListListenerDrainersResp(ListListenerDrainersResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetDrainerClients()) { + this.drainerClients = TBaseHelper.deepCopy(other.drainerClients); + } + } + + public ListListenerDrainersResp deepCopy() { + return new ListListenerDrainersResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public ListListenerDrainersResp 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 ListListenerDrainersResp 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 Map getDrainerClients() { + return this.drainerClients; + } + + public ListListenerDrainersResp setDrainerClients(Map drainerClients) { + this.drainerClients = drainerClients; + return this; + } + + public void unsetDrainerClients() { + this.drainerClients = null; + } + + // Returns true if field drainerClients is set (has been assigned a value) and false otherwise + public boolean isSetDrainerClients() { + return this.drainerClients != null; + } + + public void setDrainerClientsIsSet(boolean __value) { + if (!__value) { + this.drainerClients = 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 DRAINERCLIENTS: + if (__value == null) { + unsetDrainerClients(); + } else { + setDrainerClients((Map)__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 DRAINERCLIENTS: + return getDrainerClients(); + + 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 ListListenerDrainersResp)) + return false; + ListListenerDrainersResp that = (ListListenerDrainersResp)_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.isSetDrainerClients(), that.isSetDrainerClients(), this.drainerClients, that.drainerClients)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, drainerClients}); + } + + @Override + public int compareTo(ListListenerDrainersResp 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(isSetDrainerClients()).compareTo(other.isSetDrainerClients()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(drainerClients, other.drainerClients); + 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 DRAINERCLIENTS: + if (__field.type == TType.MAP) { + { + TMap _map275 = iprot.readMapBegin(); + this.drainerClients = new HashMap(Math.max(0, 2*_map275.size)); + for (int _i276 = 0; + (_map275.size < 0) ? iprot.peekMap() : (_i276 < _map275.size); + ++_i276) + { + int _key277; + DrainerClientInfo _val278; + _key277 = iprot.readI32(); + _val278 = new DrainerClientInfo(); + _val278.read(iprot); + this.drainerClients.put(_key277, _val278); + } + 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.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.drainerClients != null) { + oprot.writeFieldBegin(DRAINER_CLIENTS_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.drainerClients.size())); + for (Map.Entry _iter279 : this.drainerClients.entrySet()) { + oprot.writeI32(_iter279.getKey()); + _iter279.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("ListListenerDrainersResp"); + 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("drainerClients"); + sb.append(space); + sb.append(":").append(space); + if (this.getDrainerClients() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getDrainerClients(), 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/ListListenersReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListListenersReq.java new file mode 100644 index 000000000..8a628edb7 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListListenersReq.java @@ -0,0 +1,372 @@ +/** + * 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 ListListenersReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListListenersReq"); + private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); + private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)2); + + public int space_id; + /** + * + * @see ListenerType + */ + public ListenerType type; + public static final int SPACE_ID = 1; + public static final int TYPE = 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(TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListListenersReq.class, metaDataMap); + } + + public ListListenersReq() { + } + + public ListListenersReq( + int space_id, + ListenerType type) { + this(); + this.space_id = space_id; + setSpace_idIsSet(true); + this.type = type; + } + + public static class Builder { + private int space_id; + private ListenerType type; + + 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 Builder setType(final ListenerType type) { + this.type = type; + return this; + } + + public ListListenersReq build() { + ListListenersReq result = new ListListenersReq(); + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setType(this.type); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListListenersReq(ListListenersReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetType()) { + this.type = TBaseHelper.deepCopy(other.type); + } + } + + public ListListenersReq deepCopy() { + return new ListListenersReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public ListListenersReq 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); + } + + /** + * + * @see ListenerType + */ + public ListenerType getType() { + return this.type; + } + + /** + * + * @see ListenerType + */ + public ListListenersReq setType(ListenerType type) { + this.type = type; + return this; + } + + public void unsetType() { + this.type = null; + } + + // Returns true if field type is set (has been assigned a value) and false otherwise + public boolean isSetType() { + return this.type != null; + } + + public void setTypeIsSet(boolean __value) { + if (!__value) { + this.type = 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 TYPE: + if (__value == null) { + unsetType(); + } else { + setType((ListenerType)__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 TYPE: + return getType(); + + 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 ListListenersReq)) + return false; + ListListenersReq that = (ListListenersReq)_that; + + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetType(), that.isSetType(), this.type, that.type)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space_id, type}); + } + + @Override + public int compareTo(ListListenersReq 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(isSetType()).compareTo(other.isSetType()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(type, other.type); + 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 TYPE: + if (__field.type == TType.I32) { + this.type = ListenerType.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); + oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); + oprot.writeI32(this.space_id); + oprot.writeFieldEnd(); + if (this.type != null) { + oprot.writeFieldBegin(TYPE_FIELD_DESC); + oprot.writeI32(this.type == null ? 0 : this.type.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("ListListenersReq"); + 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("type"); + sb.append(space); + sb.append(":").append(space); + if (this.getType() == null) { + sb.append("null"); + } else { + String type_name = this.getType() == null ? "null" : this.getType().name(); + if (type_name != null) { + sb.append(type_name); + sb.append(" ("); + } + sb.append(this.getType()); + if (type_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/ListListenerResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListListenersResp.java similarity index 89% rename from client/src/main/generated/com/vesoft/nebula/meta/ListListenerResp.java rename to client/src/main/generated/com/vesoft/nebula/meta/ListListenersResp.java index 754cc8f3b..f0510a994 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListListenerResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListListenersResp.java @@ -24,8 +24,8 @@ import com.facebook.thrift.protocol.*; @SuppressWarnings({ "unused", "serial" }) -public class ListListenerResp implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("ListListenerResp"); +public class ListListenersResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListListenersResp"); 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 LISTENERS_FIELD_DESC = new TField("listeners", TType.LIST, (short)3); @@ -58,13 +58,13 @@ public class ListListenerResp implements TBase, java.io.Serializable, Cloneable, } static { - FieldMetaData.addStructMetaDataMap(ListListenerResp.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(ListListenersResp.class, metaDataMap); } - public ListListenerResp() { + public ListListenersResp() { } - public ListListenerResp( + public ListListenersResp( com.vesoft.nebula.ErrorCode code, com.vesoft.nebula.HostAddr leader, List listeners) { @@ -97,8 +97,8 @@ public Builder setListeners(final List listeners) { return this; } - public ListListenerResp build() { - ListListenerResp result = new ListListenerResp(); + public ListListenersResp build() { + ListListenersResp result = new ListListenersResp(); result.setCode(this.code); result.setLeader(this.leader); result.setListeners(this.listeners); @@ -113,7 +113,7 @@ public static Builder builder() { /** * Performs a deep copy on other. */ - public ListListenerResp(ListListenerResp other) { + public ListListenersResp(ListListenersResp other) { if (other.isSetCode()) { this.code = TBaseHelper.deepCopy(other.code); } @@ -125,8 +125,8 @@ public ListListenerResp(ListListenerResp other) { } } - public ListListenerResp deepCopy() { - return new ListListenerResp(this); + public ListListenersResp deepCopy() { + return new ListListenersResp(this); } /** @@ -141,7 +141,7 @@ public com.vesoft.nebula.ErrorCode getCode() { * * @see com.vesoft.nebula.ErrorCode */ - public ListListenerResp setCode(com.vesoft.nebula.ErrorCode code) { + public ListListenersResp 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 ListListenerResp setLeader(com.vesoft.nebula.HostAddr leader) { + public ListListenersResp setLeader(com.vesoft.nebula.HostAddr leader) { this.leader = leader; return this; } @@ -189,7 +189,7 @@ public List getListeners() { return this.listeners; } - public ListListenerResp setListeners(List listeners) { + public ListListenersResp setListeners(List listeners) { this.listeners = listeners; return this; } @@ -263,9 +263,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof ListListenerResp)) + if (!(_that instanceof ListListenersResp)) return false; - ListListenerResp that = (ListListenerResp)_that; + ListListenersResp that = (ListListenersResp)_that; if (!TBaseHelper.equalsNobinary(this.isSetCode(), that.isSetCode(), this.code, that.code)) { return false; } @@ -282,7 +282,7 @@ public int hashCode() { } @Override - public int compareTo(ListListenerResp other) { + public int compareTo(ListListenersResp other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -349,16 +349,16 @@ public void read(TProtocol iprot) throws TException { case LISTENERS: if (__field.type == TType.LIST) { { - TList _list249 = iprot.readListBegin(); - this.listeners = new ArrayList(Math.max(0, _list249.size)); - for (int _i250 = 0; - (_list249.size < 0) ? iprot.peekList() : (_i250 < _list249.size); - ++_i250) + TList _list266 = iprot.readListBegin(); + this.listeners = new ArrayList(Math.max(0, _list266.size)); + for (int _i267 = 0; + (_list266.size < 0) ? iprot.peekList() : (_i267 < _list266.size); + ++_i267) { - ListenerInfo _elem251; - _elem251 = new ListenerInfo(); - _elem251.read(iprot); - this.listeners.add(_elem251); + ListenerInfo _elem268; + _elem268 = new ListenerInfo(); + _elem268.read(iprot); + this.listeners.add(_elem268); } 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 _iter252 : this.listeners) { - _iter252.write(oprot); + for (ListenerInfo _iter269 : this.listeners) { + _iter269.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("ListListenerResp"); + StringBuilder sb = new StringBuilder("ListListenersResp"); sb.append(space); sb.append("("); sb.append(newLine); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListMetaReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListMetaReq.java new file mode 100644 index 000000000..3b2bfbf93 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListMetaReq.java @@ -0,0 +1,174 @@ +/** + * 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 ListMetaReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListMetaReq"); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListMetaReq.class, metaDataMap); + } + + public ListMetaReq() { + } + + public static class Builder { + + public Builder() { + } + + public ListMetaReq build() { + ListMetaReq result = new ListMetaReq(); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListMetaReq(ListMetaReq other) { + } + + public ListMetaReq deepCopy() { + return new ListMetaReq(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 ListMetaReq)) + return false; + ListMetaReq that = (ListMetaReq)_that; + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {}); + } + + @Override + public int compareTo(ListMetaReq 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("ListMetaReq"); + 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/ListMetaResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListMetaResp.java new file mode 100644 index 000000000..857a7a54e --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListMetaResp.java @@ -0,0 +1,477 @@ +/** + * 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 ListMetaResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListMetaResp"); + 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 HOSTS_FIELD_DESC = new TField("hosts", TType.SET, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public Set hosts; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int HOSTS = 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(HOSTS, new FieldMetaData("hosts", TFieldRequirementType.DEFAULT, + new SetMetaData(TType.SET, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListMetaResp.class, metaDataMap); + } + + public ListMetaResp() { + } + + public ListMetaResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + Set hosts) { + this(); + this.code = code; + this.leader = leader; + this.hosts = hosts; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private Set hosts; + + 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 setHosts(final Set hosts) { + this.hosts = hosts; + return this; + } + + public ListMetaResp build() { + ListMetaResp result = new ListMetaResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setHosts(this.hosts); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListMetaResp(ListMetaResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetHosts()) { + this.hosts = TBaseHelper.deepCopy(other.hosts); + } + } + + public ListMetaResp deepCopy() { + return new ListMetaResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public ListMetaResp 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 ListMetaResp 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 Set getHosts() { + return this.hosts; + } + + public ListMetaResp setHosts(Set hosts) { + this.hosts = hosts; + return this; + } + + public void unsetHosts() { + this.hosts = null; + } + + // Returns true if field hosts is set (has been assigned a value) and false otherwise + public boolean isSetHosts() { + return this.hosts != null; + } + + public void setHostsIsSet(boolean __value) { + if (!__value) { + this.hosts = 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 HOSTS: + if (__value == null) { + unsetHosts(); + } else { + setHosts((Set)__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 HOSTS: + return getHosts(); + + 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 ListMetaResp)) + return false; + ListMetaResp that = (ListMetaResp)_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.isSetHosts(), that.isSetHosts(), this.hosts, that.hosts)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, hosts}); + } + + @Override + public int compareTo(ListMetaResp 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(isSetHosts()).compareTo(other.isSetHosts()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(hosts, other.hosts); + 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 HOSTS: + if (__field.type == TType.SET) { + { + TSet _set463 = iprot.readSetBegin(); + this.hosts = new HashSet(Math.max(0, 2*_set463.size)); + for (int _i464 = 0; + (_set463.size < 0) ? iprot.peekSet() : (_i464 < _set463.size); + ++_i464) + { + com.vesoft.nebula.HostAddr _elem465; + _elem465 = new com.vesoft.nebula.HostAddr(); + _elem465.read(iprot); + this.hosts.add(_elem465); + } + iprot.readSetEnd(); + } + } 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.hosts != null) { + oprot.writeFieldBegin(HOSTS_FIELD_DESC); + { + oprot.writeSetBegin(new TSet(TType.STRUCT, this.hosts.size())); + for (com.vesoft.nebula.HostAddr _iter466 : this.hosts) { + _iter466.write(oprot); + } + oprot.writeSetEnd(); + } + 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("ListMetaResp"); + 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("hosts"); + sb.append(space); + sb.append(":").append(space); + if (this.getHosts() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getHosts(), 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/ListRolesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListRolesResp.java index 4e74b3694..b8bfa0e36 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 _list188 = iprot.readListBegin(); - this.roles = new ArrayList(Math.max(0, _list188.size)); - for (int _i189 = 0; - (_list188.size < 0) ? iprot.peekList() : (_i189 < _list188.size); - ++_i189) + TList _list205 = iprot.readListBegin(); + this.roles = new ArrayList(Math.max(0, _list205.size)); + for (int _i206 = 0; + (_list205.size < 0) ? iprot.peekList() : (_i206 < _list205.size); + ++_i206) { - RoleItem _elem190; - _elem190 = new RoleItem(); - _elem190.read(iprot); - this.roles.add(_elem190); + RoleItem _elem207; + _elem207 = new RoleItem(); + _elem207.read(iprot); + this.roles.add(_elem207); } 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 _iter191 : this.roles) { - _iter191.write(oprot); + for (RoleItem _iter208 : this.roles) { + _iter208.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListServiceClientsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListServiceClientsResp.java index c2366f10f..7ea5efba0 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListServiceClientsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListServiceClientsResp.java @@ -351,30 +351,30 @@ public void read(TProtocol iprot) throws TException { case CLIENTS: if (__field.type == TType.MAP) { { - TMap _map303 = iprot.readMapBegin(); - this.clients = new HashMap>(Math.max(0, 2*_map303.size)); - for (int _i304 = 0; - (_map303.size < 0) ? iprot.peekMap() : (_i304 < _map303.size); - ++_i304) + TMap _map343 = iprot.readMapBegin(); + this.clients = new HashMap>(Math.max(0, 2*_map343.size)); + for (int _i344 = 0; + (_map343.size < 0) ? iprot.peekMap() : (_i344 < _map343.size); + ++_i344) { - ExternalServiceType _key305; - List _val306; - _key305 = ExternalServiceType.findByValue(iprot.readI32()); + ExternalServiceType _key345; + List _val346; + _key345 = ExternalServiceType.findByValue(iprot.readI32()); { - 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) + TList _list347 = iprot.readListBegin(); + _val346 = new ArrayList(Math.max(0, _list347.size)); + for (int _i348 = 0; + (_list347.size < 0) ? iprot.peekList() : (_i348 < _list347.size); + ++_i348) { - ServiceClient _elem309; - _elem309 = new ServiceClient(); - _elem309.read(iprot); - _val306.add(_elem309); + ServiceClient _elem349; + _elem349 = new ServiceClient(); + _elem349.read(iprot); + _val346.add(_elem349); } iprot.readListEnd(); } - this.clients.put(_key305, _val306); + this.clients.put(_key345, _val346); } iprot.readMapEnd(); } @@ -413,12 +413,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(CLIENTS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.clients.size())); - for (Map.Entry> _iter310 : this.clients.entrySet()) { - oprot.writeI32(_iter310.getKey() == null ? 0 : _iter310.getKey().getValue()); + for (Map.Entry> _iter350 : this.clients.entrySet()) { + oprot.writeI32(_iter350.getKey() == null ? 0 : _iter350.getKey().getValue()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter310.getValue().size())); - for (ServiceClient _iter311 : _iter310.getValue()) { - _iter311.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, _iter350.getValue().size())); + for (ServiceClient _iter351 : _iter350.getValue()) { + _iter351.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 dc649a50b..ea5e95acc 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 _list349 = iprot.readListBegin(); - this.sessions = new ArrayList(Math.max(0, _list349.size)); - for (int _i350 = 0; - (_list349.size < 0) ? iprot.peekList() : (_i350 < _list349.size); - ++_i350) + TList _list402 = iprot.readListBegin(); + this.sessions = new ArrayList(Math.max(0, _list402.size)); + for (int _i403 = 0; + (_list402.size < 0) ? iprot.peekList() : (_i403 < _list402.size); + ++_i403) { - Session _elem351; - _elem351 = new Session(); - _elem351.read(iprot); - this.sessions.add(_elem351); + Session _elem404; + _elem404 = new Session(); + _elem404.read(iprot); + this.sessions.add(_elem404); } 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 _iter352 : this.sessions) { - _iter352.write(oprot); + for (Session _iter405 : this.sessions) { + _iter405.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 0a49b69f1..4cc46cd6c 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 _list208 = iprot.readListBegin(); - this.snapshots = new ArrayList(Math.max(0, _list208.size)); - for (int _i209 = 0; - (_list208.size < 0) ? iprot.peekList() : (_i209 < _list208.size); - ++_i209) + TList _list225 = iprot.readListBegin(); + this.snapshots = new ArrayList(Math.max(0, _list225.size)); + for (int _i226 = 0; + (_list225.size < 0) ? iprot.peekList() : (_i226 < _list225.size); + ++_i226) { - Snapshot _elem210; - _elem210 = new Snapshot(); - _elem210.read(iprot); - this.snapshots.add(_elem210); + Snapshot _elem227; + _elem227 = new Snapshot(); + _elem227.read(iprot); + this.snapshots.add(_elem227); } 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 _iter211 : this.snapshots) { - _iter211.write(oprot); + for (Snapshot _iter228 : this.snapshots) { + _iter228.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListSpaceServiceClientsReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListSpaceServiceClientsReq.java new file mode 100644 index 000000000..dfd55aa10 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListSpaceServiceClientsReq.java @@ -0,0 +1,372 @@ +/** + * 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 ListSpaceServiceClientsReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListSpaceServiceClientsReq"); + private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); + private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)2); + + public int space_id; + /** + * + * @see ExternalSpaceServiceType + */ + public ExternalSpaceServiceType type; + public static final int SPACE_ID = 1; + public static final int TYPE = 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(TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListSpaceServiceClientsReq.class, metaDataMap); + } + + public ListSpaceServiceClientsReq() { + } + + public ListSpaceServiceClientsReq( + int space_id, + ExternalSpaceServiceType type) { + this(); + this.space_id = space_id; + setSpace_idIsSet(true); + this.type = type; + } + + public static class Builder { + private int space_id; + private ExternalSpaceServiceType type; + + 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 Builder setType(final ExternalSpaceServiceType type) { + this.type = type; + return this; + } + + public ListSpaceServiceClientsReq build() { + ListSpaceServiceClientsReq result = new ListSpaceServiceClientsReq(); + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setType(this.type); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListSpaceServiceClientsReq(ListSpaceServiceClientsReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetType()) { + this.type = TBaseHelper.deepCopy(other.type); + } + } + + public ListSpaceServiceClientsReq deepCopy() { + return new ListSpaceServiceClientsReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public ListSpaceServiceClientsReq 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); + } + + /** + * + * @see ExternalSpaceServiceType + */ + public ExternalSpaceServiceType getType() { + return this.type; + } + + /** + * + * @see ExternalSpaceServiceType + */ + public ListSpaceServiceClientsReq setType(ExternalSpaceServiceType type) { + this.type = type; + return this; + } + + public void unsetType() { + this.type = null; + } + + // Returns true if field type is set (has been assigned a value) and false otherwise + public boolean isSetType() { + return this.type != null; + } + + public void setTypeIsSet(boolean __value) { + if (!__value) { + this.type = 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 TYPE: + if (__value == null) { + unsetType(); + } else { + setType((ExternalSpaceServiceType)__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 TYPE: + return getType(); + + 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 ListSpaceServiceClientsReq)) + return false; + ListSpaceServiceClientsReq that = (ListSpaceServiceClientsReq)_that; + + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetType(), that.isSetType(), this.type, that.type)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space_id, type}); + } + + @Override + public int compareTo(ListSpaceServiceClientsReq 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(isSetType()).compareTo(other.isSetType()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(type, other.type); + 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 TYPE: + if (__field.type == TType.I32) { + this.type = ExternalSpaceServiceType.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); + oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); + oprot.writeI32(this.space_id); + oprot.writeFieldEnd(); + if (this.type != null) { + oprot.writeFieldBegin(TYPE_FIELD_DESC); + oprot.writeI32(this.type == null ? 0 : this.type.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("ListSpaceServiceClientsReq"); + 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("type"); + sb.append(space); + sb.append(":").append(space); + if (this.getType() == null) { + sb.append("null"); + } else { + String type_name = this.getType() == null ? "null" : this.getType().name(); + if (type_name != null) { + sb.append(type_name); + sb.append(" ("); + } + sb.append(this.getType()); + if (type_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/ListSpaceServiceClientsResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListSpaceServiceClientsResp.java new file mode 100644 index 000000000..7b8b39b6c --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListSpaceServiceClientsResp.java @@ -0,0 +1,500 @@ +/** + * 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 ListSpaceServiceClientsResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListSpaceServiceClientsResp"); + 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 CLIENTS_FIELD_DESC = new TField("clients", TType.MAP, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public Map> clients; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int CLIENTS = 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(CLIENTS, new FieldMetaData("clients", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, ServiceClient.class))))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListSpaceServiceClientsResp.class, metaDataMap); + } + + public ListSpaceServiceClientsResp() { + } + + public ListSpaceServiceClientsResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + Map> clients) { + this(); + this.code = code; + this.leader = leader; + this.clients = clients; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private Map> clients; + + 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 setClients(final Map> clients) { + this.clients = clients; + return this; + } + + public ListSpaceServiceClientsResp build() { + ListSpaceServiceClientsResp result = new ListSpaceServiceClientsResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setClients(this.clients); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListSpaceServiceClientsResp(ListSpaceServiceClientsResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetClients()) { + this.clients = TBaseHelper.deepCopy(other.clients); + } + } + + public ListSpaceServiceClientsResp deepCopy() { + return new ListSpaceServiceClientsResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public ListSpaceServiceClientsResp 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 ListSpaceServiceClientsResp 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 Map> getClients() { + return this.clients; + } + + public ListSpaceServiceClientsResp setClients(Map> clients) { + this.clients = clients; + return this; + } + + public void unsetClients() { + this.clients = null; + } + + // Returns true if field clients is set (has been assigned a value) and false otherwise + public boolean isSetClients() { + return this.clients != null; + } + + public void setClientsIsSet(boolean __value) { + if (!__value) { + this.clients = 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 CLIENTS: + if (__value == null) { + unsetClients(); + } else { + setClients((Map>)__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 CLIENTS: + return getClients(); + + 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 ListSpaceServiceClientsResp)) + return false; + ListSpaceServiceClientsResp that = (ListSpaceServiceClientsResp)_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.isSetClients(), that.isSetClients(), this.clients, that.clients)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, clients}); + } + + @Override + public int compareTo(ListSpaceServiceClientsResp 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(isSetClients()).compareTo(other.isSetClients()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(clients, other.clients); + 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 CLIENTS: + if (__field.type == TType.MAP) { + { + TMap _map356 = iprot.readMapBegin(); + this.clients = new HashMap>(Math.max(0, 2*_map356.size)); + for (int _i357 = 0; + (_map356.size < 0) ? iprot.peekMap() : (_i357 < _map356.size); + ++_i357) + { + ExternalSpaceServiceType _key358; + List _val359; + _key358 = ExternalSpaceServiceType.findByValue(iprot.readI32()); + { + TList _list360 = iprot.readListBegin(); + _val359 = new ArrayList(Math.max(0, _list360.size)); + for (int _i361 = 0; + (_list360.size < 0) ? iprot.peekList() : (_i361 < _list360.size); + ++_i361) + { + ServiceClient _elem362; + _elem362 = new ServiceClient(); + _elem362.read(iprot); + _val359.add(_elem362); + } + iprot.readListEnd(); + } + this.clients.put(_key358, _val359); + } + 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.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.clients != null) { + oprot.writeFieldBegin(CLIENTS_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.clients.size())); + for (Map.Entry> _iter363 : this.clients.entrySet()) { + oprot.writeI32(_iter363.getKey() == null ? 0 : _iter363.getKey().getValue()); + { + oprot.writeListBegin(new TList(TType.STRUCT, _iter363.getValue().size())); + for (ServiceClient _iter364 : _iter363.getValue()) { + _iter364.write(oprot); + } + oprot.writeListEnd(); + } + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("ListSpaceServiceClientsResp"); + 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("clients"); + sb.append(space); + sb.append(":").append(space); + if (this.getClients() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getClients(), 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/ListSyncStatusReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListSyncStatusReq.java new file mode 100644 index 000000000..65a0eaa91 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListSyncStatusReq.java @@ -0,0 +1,267 @@ +/** + * 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 ListSyncStatusReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListSyncStatusReq"); + 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(ListSyncStatusReq.class, metaDataMap); + } + + public ListSyncStatusReq() { + } + + public ListSyncStatusReq( + 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 ListSyncStatusReq build() { + ListSyncStatusReq result = new ListSyncStatusReq(); + 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 ListSyncStatusReq(ListSyncStatusReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + } + + public ListSyncStatusReq deepCopy() { + return new ListSyncStatusReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public ListSyncStatusReq 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 ListSyncStatusReq)) + return false; + ListSyncStatusReq that = (ListSyncStatusReq)_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(ListSyncStatusReq 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("ListSyncStatusReq"); + 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/ListSyncStatusResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListSyncStatusResp.java new file mode 100644 index 000000000..355b870bc --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListSyncStatusResp.java @@ -0,0 +1,481 @@ +/** + * 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 ListSyncStatusResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListSyncStatusResp"); + 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 SYNC_INFOS_FIELD_DESC = new TField("sync_infos", TType.MAP, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public Map sync_infos; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int SYNC_INFOS = 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(SYNC_INFOS, new FieldMetaData("sync_infos", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new StructMetaData(TType.STRUCT, com.vesoft.nebula.SyncInfo.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListSyncStatusResp.class, metaDataMap); + } + + public ListSyncStatusResp() { + } + + public ListSyncStatusResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + Map sync_infos) { + this(); + this.code = code; + this.leader = leader; + this.sync_infos = sync_infos; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private Map sync_infos; + + 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 setSync_infos(final Map sync_infos) { + this.sync_infos = sync_infos; + return this; + } + + public ListSyncStatusResp build() { + ListSyncStatusResp result = new ListSyncStatusResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setSync_infos(this.sync_infos); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListSyncStatusResp(ListSyncStatusResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetSync_infos()) { + this.sync_infos = TBaseHelper.deepCopy(other.sync_infos); + } + } + + public ListSyncStatusResp deepCopy() { + return new ListSyncStatusResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public ListSyncStatusResp 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 ListSyncStatusResp 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 Map getSync_infos() { + return this.sync_infos; + } + + public ListSyncStatusResp setSync_infos(Map sync_infos) { + this.sync_infos = sync_infos; + return this; + } + + public void unsetSync_infos() { + this.sync_infos = null; + } + + // Returns true if field sync_infos is set (has been assigned a value) and false otherwise + public boolean isSetSync_infos() { + return this.sync_infos != null; + } + + public void setSync_infosIsSet(boolean __value) { + if (!__value) { + this.sync_infos = 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 SYNC_INFOS: + if (__value == null) { + unsetSync_infos(); + } else { + setSync_infos((Map)__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 SYNC_INFOS: + return getSync_infos(); + + 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 ListSyncStatusResp)) + return false; + ListSyncStatusResp that = (ListSyncStatusResp)_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.isSetSync_infos(), that.isSetSync_infos(), this.sync_infos, that.sync_infos)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, sync_infos}); + } + + @Override + public int compareTo(ListSyncStatusResp 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(isSetSync_infos()).compareTo(other.isSetSync_infos()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(sync_infos, other.sync_infos); + 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 SYNC_INFOS: + if (__field.type == TType.MAP) { + { + TMap _map270 = iprot.readMapBegin(); + this.sync_infos = new HashMap(Math.max(0, 2*_map270.size)); + for (int _i271 = 0; + (_map270.size < 0) ? iprot.peekMap() : (_i271 < _map270.size); + ++_i271) + { + int _key272; + com.vesoft.nebula.SyncInfo _val273; + _key272 = iprot.readI32(); + _val273 = new com.vesoft.nebula.SyncInfo(); + _val273.read(iprot); + this.sync_infos.put(_key272, _val273); + } + 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.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.sync_infos != null) { + oprot.writeFieldBegin(SYNC_INFOS_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.sync_infos.size())); + for (Map.Entry _iter274 : this.sync_infos.entrySet()) { + oprot.writeI32(_iter274.getKey()); + _iter274.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("ListSyncStatusResp"); + 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("sync_infos"); + sb.append(space); + sb.append(":").append(space); + if (this.getSync_infos() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSync_infos(), 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/ListUserPrivilegeReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListUserPrivilegeReq.java new file mode 100644 index 000000000..cca268dfb --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListUserPrivilegeReq.java @@ -0,0 +1,275 @@ +/** + * 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 ListUserPrivilegeReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListUserPrivilegeReq"); + private static final TField USER_NAME_FIELD_DESC = new TField("user_name", TType.STRING, (short)1); + + public byte[] user_name; + public static final int USER_NAME = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(USER_NAME, new FieldMetaData("user_name", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListUserPrivilegeReq.class, metaDataMap); + } + + public ListUserPrivilegeReq() { + } + + public ListUserPrivilegeReq( + byte[] user_name) { + this(); + this.user_name = user_name; + } + + public static class Builder { + private byte[] user_name; + + public Builder() { + } + + public Builder setUser_name(final byte[] user_name) { + this.user_name = user_name; + return this; + } + + public ListUserPrivilegeReq build() { + ListUserPrivilegeReq result = new ListUserPrivilegeReq(); + result.setUser_name(this.user_name); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListUserPrivilegeReq(ListUserPrivilegeReq other) { + if (other.isSetUser_name()) { + this.user_name = TBaseHelper.deepCopy(other.user_name); + } + } + + public ListUserPrivilegeReq deepCopy() { + return new ListUserPrivilegeReq(this); + } + + public byte[] getUser_name() { + return this.user_name; + } + + public ListUserPrivilegeReq 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 void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case USER_NAME: + if (__value == null) { + unsetUser_name(); + } else { + setUser_name((byte[])__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case USER_NAME: + return getUser_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 ListUserPrivilegeReq)) + return false; + ListUserPrivilegeReq that = (ListUserPrivilegeReq)_that; + + if (!TBaseHelper.equalsSlow(this.isSetUser_name(), that.isSetUser_name(), this.user_name, that.user_name)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {user_name}); + } + + @Override + public int compareTo(ListUserPrivilegeReq other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(user_name, other.user_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 USER_NAME: + if (__field.type == TType.STRING) { + this.user_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.user_name != null) { + if (isSetUser_name()) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeBinary(this.user_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("ListUserPrivilegeReq"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + if (isSetUser_name()) + { + 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; + } + 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/ListUserPrivilegeResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListUserPrivilegeResp.java new file mode 100644 index 000000000..f00029b03 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListUserPrivilegeResp.java @@ -0,0 +1,500 @@ +/** + * 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 ListUserPrivilegeResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListUserPrivilegeResp"); + 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 PRIVILEGES_FIELD_DESC = new TField("privileges", TType.MAP, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public Map> privileges; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int PRIVILEGES = 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(PRIVILEGES, new FieldMetaData("privileges", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.STRING), + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, Privilege.class))))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListUserPrivilegeResp.class, metaDataMap); + } + + public ListUserPrivilegeResp() { + } + + public ListUserPrivilegeResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + Map> privileges) { + this(); + this.code = code; + this.leader = leader; + this.privileges = privileges; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private Map> privileges; + + 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 setPrivileges(final Map> privileges) { + this.privileges = privileges; + return this; + } + + public ListUserPrivilegeResp build() { + ListUserPrivilegeResp result = new ListUserPrivilegeResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setPrivileges(this.privileges); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListUserPrivilegeResp(ListUserPrivilegeResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetPrivileges()) { + this.privileges = TBaseHelper.deepCopy(other.privileges); + } + } + + public ListUserPrivilegeResp deepCopy() { + return new ListUserPrivilegeResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public ListUserPrivilegeResp 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 ListUserPrivilegeResp 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 Map> getPrivileges() { + return this.privileges; + } + + public ListUserPrivilegeResp setPrivileges(Map> privileges) { + this.privileges = privileges; + return this; + } + + public void unsetPrivileges() { + this.privileges = null; + } + + // Returns true if field privileges is set (has been assigned a value) and false otherwise + public boolean isSetPrivileges() { + return this.privileges != null; + } + + public void setPrivilegesIsSet(boolean __value) { + if (!__value) { + this.privileges = 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 PRIVILEGES: + if (__value == null) { + unsetPrivileges(); + } else { + setPrivileges((Map>)__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 PRIVILEGES: + return getPrivileges(); + + 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 ListUserPrivilegeResp)) + return false; + ListUserPrivilegeResp that = (ListUserPrivilegeResp)_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.isSetPrivileges(), that.isSetPrivileges(), this.privileges, that.privileges)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, privileges}); + } + + @Override + public int compareTo(ListUserPrivilegeResp 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(isSetPrivileges()).compareTo(other.isSetPrivileges()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(privileges, other.privileges); + 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 PRIVILEGES: + if (__field.type == TType.MAP) { + { + TMap _map449 = iprot.readMapBegin(); + this.privileges = new HashMap>(Math.max(0, 2*_map449.size)); + for (int _i450 = 0; + (_map449.size < 0) ? iprot.peekMap() : (_i450 < _map449.size); + ++_i450) + { + byte[] _key451; + List _val452; + _key451 = iprot.readBinary(); + { + TList _list453 = iprot.readListBegin(); + _val452 = new ArrayList(Math.max(0, _list453.size)); + for (int _i454 = 0; + (_list453.size < 0) ? iprot.peekList() : (_i454 < _list453.size); + ++_i454) + { + Privilege _elem455; + _elem455 = new Privilege(); + _elem455.read(iprot); + _val452.add(_elem455); + } + iprot.readListEnd(); + } + this.privileges.put(_key451, _val452); + } + 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.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.privileges != null) { + oprot.writeFieldBegin(PRIVILEGES_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.STRING, TType.LIST, this.privileges.size())); + for (Map.Entry> _iter456 : this.privileges.entrySet()) { + oprot.writeBinary(_iter456.getKey()); + { + oprot.writeListBegin(new TList(TType.STRUCT, _iter456.getValue().size())); + for (Privilege _iter457 : _iter456.getValue()) { + _iter457.write(oprot); + } + oprot.writeListEnd(); + } + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("ListUserPrivilegeResp"); + 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("privileges"); + sb.append(space); + sb.append(":").append(space); + if (this.getPrivileges() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getPrivileges(), 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/ListUsersResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListUsersResp.java index 07fbaaa5a..dbaa37e01 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 _map183 = iprot.readMapBegin(); - this.users = new HashMap(Math.max(0, 2*_map183.size)); - for (int _i184 = 0; - (_map183.size < 0) ? iprot.peekMap() : (_i184 < _map183.size); - ++_i184) + 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) { - byte[] _key185; - byte[] _val186; - _key185 = iprot.readBinary(); - _val186 = iprot.readBinary(); - this.users.put(_key185, _val186); + byte[] _key193; + byte[] _val194; + _key193 = iprot.readBinary(); + _val194 = iprot.readBinary(); + this.users.put(_key193, _val194); } 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 _iter187 : this.users.entrySet()) { - oprot.writeBinary(_iter187.getKey()); - oprot.writeBinary(_iter187.getValue()); + for (Map.Entry _iter195 : this.users.entrySet()) { + oprot.writeBinary(_iter195.getKey()); + oprot.writeBinary(_iter195.getValue()); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListVariablesReq.java b/client/src/main/generated/com/vesoft/nebula/meta/ListVariablesReq.java new file mode 100644 index 000000000..bede7dcee --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListVariablesReq.java @@ -0,0 +1,267 @@ +/** + * 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 ListVariablesReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("ListVariablesReq"); + 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(ListVariablesReq.class, metaDataMap); + } + + public ListVariablesReq() { + } + + public ListVariablesReq( + 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 ListVariablesReq build() { + ListVariablesReq result = new ListVariablesReq(); + 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 ListVariablesReq(ListVariablesReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + } + + public ListVariablesReq deepCopy() { + return new ListVariablesReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public ListVariablesReq 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 ListVariablesReq)) + return false; + ListVariablesReq that = (ListVariablesReq)_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(ListVariablesReq 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("ListVariablesReq"); + 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/ListVariablesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListVariablesResp.java new file mode 100644 index 000000000..e5002aa5c --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListVariablesResp.java @@ -0,0 +1,442 @@ +/** + * 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 ListVariablesResp implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("ListVariablesResp"); + 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 VARIABLES_FIELD_DESC = new TField("variables", TType.MAP, (short)3); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public com.vesoft.nebula.HostAddr leader; + public Map variables; + public static final int CODE = 1; + public static final int LEADER = 2; + public static final int VARIABLES = 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(VARIABLES, new FieldMetaData("variables", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.STRING), + new StructMetaData(TType.STRUCT, com.vesoft.nebula.Value.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(ListVariablesResp.class, metaDataMap); + } + + public ListVariablesResp() { + } + + public ListVariablesResp( + com.vesoft.nebula.ErrorCode code, + com.vesoft.nebula.HostAddr leader, + Map variables) { + this(); + this.code = code; + this.leader = leader; + this.variables = variables; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private com.vesoft.nebula.HostAddr leader; + private Map variables; + + 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 setVariables(final Map variables) { + this.variables = variables; + return this; + } + + public ListVariablesResp build() { + ListVariablesResp result = new ListVariablesResp(); + result.setCode(this.code); + result.setLeader(this.leader); + result.setVariables(this.variables); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public ListVariablesResp(ListVariablesResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetLeader()) { + this.leader = TBaseHelper.deepCopy(other.leader); + } + if (other.isSetVariables()) { + this.variables = TBaseHelper.deepCopy(other.variables); + } + } + + public ListVariablesResp deepCopy() { + return new ListVariablesResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public ListVariablesResp 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 ListVariablesResp 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 Map getVariables() { + return this.variables; + } + + public ListVariablesResp setVariables(Map variables) { + this.variables = variables; + return this; + } + + public void unsetVariables() { + this.variables = null; + } + + // Returns true if field variables is set (has been assigned a value) and false otherwise + public boolean isSetVariables() { + return this.variables != null; + } + + public void setVariablesIsSet(boolean __value) { + if (!__value) { + this.variables = 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 VARIABLES: + if (__value == null) { + unsetVariables(); + } else { + setVariables((Map)__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 VARIABLES: + return getVariables(); + + 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 ListVariablesResp)) + return false; + ListVariablesResp that = (ListVariablesResp)_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.isSetVariables(), that.isSetVariables(), this.variables, that.variables)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, leader, variables}); + } + + 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 VARIABLES: + if (__field.type == TType.MAP) { + { + TMap _map432 = iprot.readMapBegin(); + this.variables = new HashMap(Math.max(0, 2*_map432.size)); + for (int _i433 = 0; + (_map432.size < 0) ? iprot.peekMap() : (_i433 < _map432.size); + ++_i433) + { + byte[] _key434; + com.vesoft.nebula.Value _val435; + _key434 = iprot.readBinary(); + _val435 = new com.vesoft.nebula.Value(); + _val435.read(iprot); + this.variables.put(_key434, _val435); + } + 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.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.variables != null) { + oprot.writeFieldBegin(VARIABLES_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.variables.size())); + for (Map.Entry _iter436 : this.variables.entrySet()) { + oprot.writeBinary(_iter436.getKey()); + _iter436.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("ListVariablesResp"); + 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("variables"); + sb.append(space); + sb.append(":").append(space); + if (this.getVariables() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getVariables(), 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/ListZonesResp.java b/client/src/main/generated/com/vesoft/nebula/meta/ListZonesResp.java index 496bc0204..a45fc94b6 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 _list241 = iprot.readListBegin(); - this.zones = new ArrayList(Math.max(0, _list241.size)); - for (int _i242 = 0; - (_list241.size < 0) ? iprot.peekList() : (_i242 < _list241.size); - ++_i242) + TList _list258 = iprot.readListBegin(); + this.zones = new ArrayList(Math.max(0, _list258.size)); + for (int _i259 = 0; + (_list258.size < 0) ? iprot.peekList() : (_i259 < _list258.size); + ++_i259) { - Zone _elem243; - _elem243 = new Zone(); - _elem243.read(iprot); - this.zones.add(_elem243); + Zone _elem260; + _elem260 = new Zone(); + _elem260.read(iprot); + this.zones.add(_elem260); } 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 _iter244 : this.zones) { - _iter244.write(oprot); + for (Zone _iter261 : this.zones) { + _iter261.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListenerInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/ListenerInfo.java index 0541b654a..241d2a98f 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListenerInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListenerInfo.java @@ -30,6 +30,8 @@ public class ListenerInfo implements TBase, java.io.Serializable, Cloneable, Com private static final TField HOST_FIELD_DESC = new TField("host", TType.STRUCT, (short)2); private static final TField PART_ID_FIELD_DESC = new TField("part_id", TType.I32, (short)3); private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4); + private static final TField SYNC_STATUS_FIELD_DESC = new TField("sync_status", TType.I32, (short)5); + private static final TField SPACE_NAME_FIELD_DESC = new TField("space_name", TType.STRING, (short)6); /** * @@ -43,10 +45,18 @@ public class ListenerInfo implements TBase, java.io.Serializable, Cloneable, Com * @see HostStatus */ public HostStatus status; + /** + * + * @see com.vesoft.nebula.SyncStatus + */ + public com.vesoft.nebula.SyncStatus sync_status; + public byte[] space_name; public static final int TYPE = 1; public static final int HOST = 2; public static final int PART_ID = 3; public static final int STATUS = 4; + public static final int SYNC_STATUS = 5; + public static final int SPACE_NAME = 6; // isset id assignments private static final int __PART_ID_ISSET_ID = 0; @@ -64,6 +74,10 @@ public class ListenerInfo implements TBase, java.io.Serializable, Cloneable, Com new FieldValueMetaData(TType.I32))); tmpMetaDataMap.put(STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(SYNC_STATUS, new FieldMetaData("sync_status", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(SPACE_NAME, new FieldMetaData("space_name", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -87,11 +101,30 @@ public ListenerInfo( this.status = status; } + public ListenerInfo( + ListenerType type, + com.vesoft.nebula.HostAddr host, + int part_id, + HostStatus status, + com.vesoft.nebula.SyncStatus sync_status, + byte[] space_name) { + this(); + this.type = type; + this.host = host; + this.part_id = part_id; + setPart_idIsSet(true); + this.status = status; + this.sync_status = sync_status; + this.space_name = space_name; + } + public static class Builder { private ListenerType type; private com.vesoft.nebula.HostAddr host; private int part_id; private HostStatus status; + private com.vesoft.nebula.SyncStatus sync_status; + private byte[] space_name; BitSet __optional_isset = new BitSet(1); @@ -119,6 +152,16 @@ public Builder setStatus(final HostStatus status) { return this; } + public Builder setSync_status(final com.vesoft.nebula.SyncStatus sync_status) { + this.sync_status = sync_status; + return this; + } + + public Builder setSpace_name(final byte[] space_name) { + this.space_name = space_name; + return this; + } + public ListenerInfo build() { ListenerInfo result = new ListenerInfo(); result.setType(this.type); @@ -127,6 +170,8 @@ public ListenerInfo build() { result.setPart_id(this.part_id); } result.setStatus(this.status); + result.setSync_status(this.sync_status); + result.setSpace_name(this.space_name); return result; } } @@ -151,6 +196,12 @@ public ListenerInfo(ListenerInfo other) { if (other.isSetStatus()) { this.status = TBaseHelper.deepCopy(other.status); } + if (other.isSetSync_status()) { + this.sync_status = TBaseHelper.deepCopy(other.sync_status); + } + if (other.isSetSpace_name()) { + this.space_name = TBaseHelper.deepCopy(other.space_name); + } } public ListenerInfo deepCopy() { @@ -268,6 +319,62 @@ public void setStatusIsSet(boolean __value) { } } + /** + * + * @see com.vesoft.nebula.SyncStatus + */ + public com.vesoft.nebula.SyncStatus getSync_status() { + return this.sync_status; + } + + /** + * + * @see com.vesoft.nebula.SyncStatus + */ + public ListenerInfo setSync_status(com.vesoft.nebula.SyncStatus sync_status) { + this.sync_status = sync_status; + return this; + } + + public void unsetSync_status() { + this.sync_status = null; + } + + // Returns true if field sync_status is set (has been assigned a value) and false otherwise + public boolean isSetSync_status() { + return this.sync_status != null; + } + + public void setSync_statusIsSet(boolean __value) { + if (!__value) { + this.sync_status = null; + } + } + + public byte[] getSpace_name() { + return this.space_name; + } + + public ListenerInfo 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 void setFieldValue(int fieldID, Object __value) { switch (fieldID) { case TYPE: @@ -302,6 +409,22 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case SYNC_STATUS: + if (__value == null) { + unsetSync_status(); + } else { + setSync_status((com.vesoft.nebula.SyncStatus)__value); + } + break; + + case SPACE_NAME: + if (__value == null) { + unsetSpace_name(); + } else { + setSpace_name((byte[])__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -321,6 +444,12 @@ public Object getFieldValue(int fieldID) { case STATUS: return getStatus(); + case SYNC_STATUS: + return getSync_status(); + + case SPACE_NAME: + return getSpace_name(); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -344,12 +473,16 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.isSetStatus(), that.isSetStatus(), this.status, that.status)) { return false; } + if (!TBaseHelper.equalsNobinary(this.isSetSync_status(), that.isSetSync_status(), this.sync_status, that.sync_status)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetSpace_name(), that.isSetSpace_name(), this.space_name, that.space_name)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {type, host, part_id, status}); + return Arrays.deepHashCode(new Object[] {type, host, part_id, status, sync_status, space_name}); } @Override @@ -396,6 +529,22 @@ public int compareTo(ListenerInfo other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetSync_status()).compareTo(other.isSetSync_status()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(sync_status, other.sync_status); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetSpace_name()).compareTo(other.isSetSpace_name()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(space_name, other.space_name); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -440,6 +589,20 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case SYNC_STATUS: + if (__field.type == TType.I32) { + this.sync_status = com.vesoft.nebula.SyncStatus.findByValue(iprot.readI32()); + } 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; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -475,6 +638,20 @@ public void write(TProtocol oprot) throws TException { oprot.writeI32(this.status == null ? 0 : this.status.getValue()); oprot.writeFieldEnd(); } + if (this.sync_status != null) { + if (isSetSync_status()) { + oprot.writeFieldBegin(SYNC_STATUS_FIELD_DESC); + oprot.writeI32(this.sync_status == null ? 0 : this.sync_status.getValue()); + oprot.writeFieldEnd(); + } + } + if (this.space_name != null) { + if (isSetSpace_name()) { + oprot.writeFieldBegin(SPACE_NAME_FIELD_DESC); + oprot.writeBinary(this.space_name); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -550,6 +727,47 @@ public String toString(int indent, boolean prettyPrint) { } } first = false; + if (isSetSync_status()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("sync_status"); + sb.append(space); + sb.append(":").append(space); + if (this.getSync_status() == null) { + sb.append("null"); + } else { + String sync_status_name = this.getSync_status() == null ? "null" : this.getSync_status().name(); + if (sync_status_name != null) { + sb.append(sync_status_name); + sb.append(" ("); + } + sb.append(this.getSync_status()); + if (sync_status_name != null) { + sb.append(")"); + } + } + first = false; + } + if (isSetSpace_name()) + { + 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; + } sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); sb.append(")"); return sb.toString(); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/ListenerType.java b/client/src/main/generated/com/vesoft/nebula/meta/ListenerType.java index cc2c53e09..097980fbf 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/ListenerType.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/ListenerType.java @@ -14,7 +14,9 @@ @SuppressWarnings({ "unused" }) public enum ListenerType implements com.facebook.thrift.TEnum { UNKNOWN(0), - ELASTICSEARCH(1); + ELASTICSEARCH(1), + SYNC(2), + ALL(3); private final int value; @@ -39,6 +41,10 @@ public static ListenerType findByValue(int value) { return UNKNOWN; case 1: return ELASTICSEARCH; + case 2: + return SYNC; + case 3: + return ALL; default: return null; } 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 3a23e0387..ac8bf67e8 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 _list216 = iprot.readListBegin(); - this.zones = new ArrayList(Math.max(0, _list216.size)); - for (int _i217 = 0; - (_list216.size < 0) ? iprot.peekList() : (_i217 < _list216.size); - ++_i217) + TList _list233 = iprot.readListBegin(); + this.zones = new ArrayList(Math.max(0, _list233.size)); + for (int _i234 = 0; + (_list233.size < 0) ? iprot.peekList() : (_i234 < _list233.size); + ++_i234) { - byte[] _elem218; - _elem218 = iprot.readBinary(); - this.zones.add(_elem218); + byte[] _elem235; + _elem235 = iprot.readBinary(); + this.zones.add(_elem235); } 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[] _iter219 : this.zones) { - oprot.writeBinary(_iter219); + for (byte[] _iter236 : this.zones) { + oprot.writeBinary(_iter236); } 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 62f8171e0..fe2e6f801 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/MetaService.java @@ -79,6 +79,8 @@ public interface Iface { public GetWorkerIdResp getWorkerId(GetWorkerIdReq req) throws TException; + public ExecResp syncData(SyncDataReq req) throws TException; + public ExecResp createTagIndex(CreateTagIndexReq req) throws TException; public ExecResp dropTagIndex(DropTagIndexReq req) throws TException; @@ -115,12 +117,18 @@ public interface Iface { public ListUsersResp listUsers(ListUsersReq req) throws TException; + public ListIpWhitelistsResp listIpWhitelists(ListIpWhitelistsReq req) throws TException; + public ListRolesResp listRoles(ListRolesReq req) throws TException; public ListRolesResp getUserRoles(GetUserRolesReq req) throws TException; public ExecResp changePassword(ChangePasswordReq req) throws TException; + public ExecResp alterUserPrivilege(AlterUserPrivilegeReq req) throws TException; + + public ListUserPrivilegeResp listUserPrivilege(ListUserPrivilegeReq req) throws TException; + public HBResp heartBeat(HBReq req) throws TException; public AgentHBResp agentHeartbeat(AgentHBReq req) throws TException; @@ -157,7 +165,23 @@ public interface Iface { public ExecResp removeListener(RemoveListenerReq req) throws TException; - public ListListenerResp listListener(ListListenerReq req) throws TException; + public ListListenersResp listListeners(ListListenersReq req) throws TException; + + public ListListenerDrainersResp listListenerDrainers(ListListenerDrainersReq req) throws TException; + + public ExecResp stopSync(StopSyncReq req) throws TException; + + public ExecResp restartSync(RestartSyncReq req) throws TException; + + public ListSyncStatusResp listSyncStatus(ListSyncStatusReq req) throws TException; + + public ExecResp addDrainer(AddDrainerReq req) throws TException; + + public ExecResp removeDrainer(RemoveDrainerReq req) throws TException; + + public ListDrainersResp listDrainers(ListDrainersReq req) throws TException; + + public ListDrainerSyncStatusResp listDrainerSyncStatus(ListDrainerSyncStatusReq req) throws TException; public GetStatsResp getStats(GetStatsReq req) throws TException; @@ -167,6 +191,12 @@ public interface Iface { public ListServiceClientsResp listServiceClients(ListServiceClientsReq req) throws TException; + public ExecResp signInSpaceService(SignInSpaceServiceReq req) throws TException; + + public ExecResp signOutSpaceService(SignOutSpaceServiceReq req) throws TException; + + public ListSpaceServiceClientsResp listSpaceServiceClients(ListSpaceServiceClientsReq req) throws TException; + public ExecResp createFTIndex(CreateFTIndexReq req) throws TException; public ExecResp dropFTIndex(DropFTIndexReq req) throws TException; @@ -187,6 +217,10 @@ public interface Iface { public ExecResp reportTaskFinish(ReportTaskReq req) throws TException; + public GetLicenseResp getLicense(GetLicenseReq req) throws TException; + + public GetLicenseResp checkLicenseManager(GetLicenseReq req) throws TException; + public CreateBackupResp createBackup(CreateBackupReq req) throws TException; public RestoreMetaResp restoreMeta(RestoreMetaReq req) throws TException; @@ -199,8 +233,20 @@ public interface Iface { public SaveGraphVersionResp saveGraphVersion(SaveGraphVersionReq req) throws TException; + public ExecResp setVariable(SetVariableReq req) throws TException; + + public GetVariableResp getVariable(GetVariableReq req) throws TException; + + public ListVariablesResp listVariables(ListVariablesReq req) throws TException; + public GetSegmentIdResp getSegmentId(GetSegmentIdReq req) throws TException; + public GetSyncProgressResp getMetaSyncProgress(GetSyncProgressReq req) throws TException; + + public ChangeMetaResp changeMeta(ChangeMetaReq req) throws TException; + + public ListMetaResp listMeta(ListMetaReq req) throws TException; + } public interface AsyncIface { @@ -253,6 +299,8 @@ public interface AsyncIface { public void getWorkerId(GetWorkerIdReq req, AsyncMethodCallback resultHandler) throws TException; + public void syncData(SyncDataReq req, AsyncMethodCallback resultHandler) throws TException; + public void createTagIndex(CreateTagIndexReq req, AsyncMethodCallback resultHandler) throws TException; public void dropTagIndex(DropTagIndexReq req, AsyncMethodCallback resultHandler) throws TException; @@ -289,12 +337,18 @@ public interface AsyncIface { public void listUsers(ListUsersReq req, AsyncMethodCallback resultHandler) throws TException; + public void listIpWhitelists(ListIpWhitelistsReq req, AsyncMethodCallback resultHandler) throws TException; + public void listRoles(ListRolesReq req, AsyncMethodCallback resultHandler) throws TException; public void getUserRoles(GetUserRolesReq req, AsyncMethodCallback resultHandler) throws TException; public void changePassword(ChangePasswordReq req, AsyncMethodCallback resultHandler) throws TException; + public void alterUserPrivilege(AlterUserPrivilegeReq req, AsyncMethodCallback resultHandler) throws TException; + + public void listUserPrivilege(ListUserPrivilegeReq req, AsyncMethodCallback resultHandler) throws TException; + public void heartBeat(HBReq req, AsyncMethodCallback resultHandler) throws TException; public void agentHeartbeat(AgentHBReq req, AsyncMethodCallback resultHandler) throws TException; @@ -331,7 +385,23 @@ public interface AsyncIface { public void removeListener(RemoveListenerReq req, AsyncMethodCallback resultHandler) throws TException; - public void listListener(ListListenerReq req, AsyncMethodCallback resultHandler) throws TException; + public void listListeners(ListListenersReq req, AsyncMethodCallback resultHandler) throws TException; + + public void listListenerDrainers(ListListenerDrainersReq req, AsyncMethodCallback resultHandler) throws TException; + + public void stopSync(StopSyncReq req, AsyncMethodCallback resultHandler) throws TException; + + public void restartSync(RestartSyncReq req, AsyncMethodCallback resultHandler) throws TException; + + public void listSyncStatus(ListSyncStatusReq req, AsyncMethodCallback resultHandler) throws TException; + + public void addDrainer(AddDrainerReq req, AsyncMethodCallback resultHandler) throws TException; + + public void removeDrainer(RemoveDrainerReq req, AsyncMethodCallback resultHandler) throws TException; + + public void listDrainers(ListDrainersReq req, AsyncMethodCallback resultHandler) throws TException; + + public void listDrainerSyncStatus(ListDrainerSyncStatusReq req, AsyncMethodCallback resultHandler) throws TException; public void getStats(GetStatsReq req, AsyncMethodCallback resultHandler) throws TException; @@ -341,6 +411,12 @@ public interface AsyncIface { public void listServiceClients(ListServiceClientsReq req, AsyncMethodCallback resultHandler) throws TException; + public void signInSpaceService(SignInSpaceServiceReq req, AsyncMethodCallback resultHandler) throws TException; + + public void signOutSpaceService(SignOutSpaceServiceReq req, AsyncMethodCallback resultHandler) throws TException; + + public void listSpaceServiceClients(ListSpaceServiceClientsReq req, AsyncMethodCallback resultHandler) throws TException; + public void createFTIndex(CreateFTIndexReq req, AsyncMethodCallback resultHandler) throws TException; public void dropFTIndex(DropFTIndexReq req, AsyncMethodCallback resultHandler) throws TException; @@ -361,6 +437,10 @@ public interface AsyncIface { public void reportTaskFinish(ReportTaskReq req, AsyncMethodCallback resultHandler) throws TException; + public void getLicense(GetLicenseReq req, AsyncMethodCallback resultHandler) throws TException; + + public void checkLicenseManager(GetLicenseReq req, AsyncMethodCallback resultHandler) throws TException; + public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler) throws TException; public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler) throws TException; @@ -373,8 +453,20 @@ public interface AsyncIface { public void saveGraphVersion(SaveGraphVersionReq req, AsyncMethodCallback resultHandler) throws TException; + public void setVariable(SetVariableReq req, AsyncMethodCallback resultHandler) throws TException; + + public void getVariable(GetVariableReq req, AsyncMethodCallback resultHandler) throws TException; + + public void listVariables(ListVariablesReq req, AsyncMethodCallback resultHandler) throws TException; + public void getSegmentId(GetSegmentIdReq req, AsyncMethodCallback resultHandler) throws TException; + public void getMetaSyncProgress(GetSyncProgressReq req, AsyncMethodCallback resultHandler) throws TException; + + public void changeMeta(ChangeMetaReq req, AsyncMethodCallback resultHandler) throws TException; + + public void listMeta(ListMetaReq req, AsyncMethodCallback resultHandler) throws TException; + } public static class Client extends EventHandlerBase implements Iface, TClientIf { @@ -1486,6 +1578,51 @@ public GetWorkerIdResp recv_getWorkerId() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "getWorkerId failed: unknown result"); } + public ExecResp syncData(SyncDataReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.syncData", null); + this.setContextStack(ctx); + send_syncData(req); + return recv_syncData(); + } + + public void send_syncData(SyncDataReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.syncData", null); + oprot_.writeMessageBegin(new TMessage("syncData", TMessageType.CALL, seqid_)); + syncData_args args = new syncData_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.syncData", args); + return; + } + + public ExecResp recv_syncData() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.syncData"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + syncData_result result = new syncData_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.syncData", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "syncData failed: unknown result"); + } + public ExecResp createTagIndex(CreateTagIndexReq req) throws TException { ContextStack ctx = getContextStack("MetaService.createTagIndex", null); @@ -2296,6 +2433,51 @@ public ListUsersResp recv_listUsers() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "listUsers failed: unknown result"); } + public ListIpWhitelistsResp listIpWhitelists(ListIpWhitelistsReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.listIpWhitelists", null); + this.setContextStack(ctx); + send_listIpWhitelists(req); + return recv_listIpWhitelists(); + } + + public void send_listIpWhitelists(ListIpWhitelistsReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.listIpWhitelists", null); + oprot_.writeMessageBegin(new TMessage("listIpWhitelists", TMessageType.CALL, seqid_)); + listIpWhitelists_args args = new listIpWhitelists_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.listIpWhitelists", args); + return; + } + + public ListIpWhitelistsResp recv_listIpWhitelists() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.listIpWhitelists"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + listIpWhitelists_result result = new listIpWhitelists_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.listIpWhitelists", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "listIpWhitelists failed: unknown result"); + } + public ListRolesResp listRoles(ListRolesReq req) throws TException { ContextStack ctx = getContextStack("MetaService.listRoles", null); @@ -2431,6 +2613,96 @@ public ExecResp recv_changePassword() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "changePassword failed: unknown result"); } + public ExecResp alterUserPrivilege(AlterUserPrivilegeReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.alterUserPrivilege", null); + this.setContextStack(ctx); + send_alterUserPrivilege(req); + return recv_alterUserPrivilege(); + } + + public void send_alterUserPrivilege(AlterUserPrivilegeReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.alterUserPrivilege", null); + oprot_.writeMessageBegin(new TMessage("alterUserPrivilege", TMessageType.CALL, seqid_)); + alterUserPrivilege_args args = new alterUserPrivilege_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.alterUserPrivilege", args); + return; + } + + public ExecResp recv_alterUserPrivilege() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.alterUserPrivilege"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + alterUserPrivilege_result result = new alterUserPrivilege_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.alterUserPrivilege", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "alterUserPrivilege failed: unknown result"); + } + + public ListUserPrivilegeResp listUserPrivilege(ListUserPrivilegeReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.listUserPrivilege", null); + this.setContextStack(ctx); + send_listUserPrivilege(req); + return recv_listUserPrivilege(); + } + + public void send_listUserPrivilege(ListUserPrivilegeReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.listUserPrivilege", null); + oprot_.writeMessageBegin(new TMessage("listUserPrivilege", TMessageType.CALL, seqid_)); + listUserPrivilege_args args = new listUserPrivilege_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.listUserPrivilege", args); + return; + } + + public ListUserPrivilegeResp recv_listUserPrivilege() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.listUserPrivilege"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + listUserPrivilege_result result = new listUserPrivilege_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.listUserPrivilege", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "listUserPrivilege failed: unknown result"); + } + public HBResp heartBeat(HBReq req) throws TException { ContextStack ctx = getContextStack("MetaService.heartBeat", null); @@ -3241,49 +3513,409 @@ public ExecResp recv_removeListener() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "removeListener failed: unknown result"); } - public ListListenerResp listListener(ListListenerReq req) throws TException + public ListListenersResp listListeners(ListListenersReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.listListeners", null); + this.setContextStack(ctx); + send_listListeners(req); + return recv_listListeners(); + } + + public void send_listListeners(ListListenersReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.listListeners", null); + oprot_.writeMessageBegin(new TMessage("listListeners", TMessageType.CALL, seqid_)); + listListeners_args args = new listListeners_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.listListeners", args); + return; + } + + public ListListenersResp recv_listListeners() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.listListeners"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + listListeners_result result = new listListeners_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.listListeners", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "listListeners failed: unknown result"); + } + + public ListListenerDrainersResp listListenerDrainers(ListListenerDrainersReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.listListenerDrainers", null); + this.setContextStack(ctx); + send_listListenerDrainers(req); + return recv_listListenerDrainers(); + } + + public void send_listListenerDrainers(ListListenerDrainersReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.listListenerDrainers", null); + oprot_.writeMessageBegin(new TMessage("listListenerDrainers", TMessageType.CALL, seqid_)); + listListenerDrainers_args args = new listListenerDrainers_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.listListenerDrainers", args); + return; + } + + public ListListenerDrainersResp recv_listListenerDrainers() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.listListenerDrainers"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + listListenerDrainers_result result = new listListenerDrainers_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.listListenerDrainers", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "listListenerDrainers failed: unknown result"); + } + + public ExecResp stopSync(StopSyncReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.stopSync", null); + this.setContextStack(ctx); + send_stopSync(req); + return recv_stopSync(); + } + + public void send_stopSync(StopSyncReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.stopSync", null); + oprot_.writeMessageBegin(new TMessage("stopSync", TMessageType.CALL, seqid_)); + stopSync_args args = new stopSync_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.stopSync", args); + return; + } + + public ExecResp recv_stopSync() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.stopSync"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + stopSync_result result = new stopSync_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.stopSync", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "stopSync failed: unknown result"); + } + + public ExecResp restartSync(RestartSyncReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.restartSync", null); + this.setContextStack(ctx); + send_restartSync(req); + return recv_restartSync(); + } + + public void send_restartSync(RestartSyncReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.restartSync", null); + oprot_.writeMessageBegin(new TMessage("restartSync", TMessageType.CALL, seqid_)); + restartSync_args args = new restartSync_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.restartSync", args); + return; + } + + public ExecResp recv_restartSync() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.restartSync"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + restartSync_result result = new restartSync_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.restartSync", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "restartSync failed: unknown result"); + } + + public ListSyncStatusResp listSyncStatus(ListSyncStatusReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.listSyncStatus", null); + this.setContextStack(ctx); + send_listSyncStatus(req); + return recv_listSyncStatus(); + } + + public void send_listSyncStatus(ListSyncStatusReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.listSyncStatus", null); + oprot_.writeMessageBegin(new TMessage("listSyncStatus", TMessageType.CALL, seqid_)); + listSyncStatus_args args = new listSyncStatus_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.listSyncStatus", args); + return; + } + + public ListSyncStatusResp recv_listSyncStatus() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.listSyncStatus"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + listSyncStatus_result result = new listSyncStatus_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.listSyncStatus", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "listSyncStatus failed: unknown result"); + } + + public ExecResp addDrainer(AddDrainerReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.addDrainer", null); + this.setContextStack(ctx); + send_addDrainer(req); + return recv_addDrainer(); + } + + public void send_addDrainer(AddDrainerReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.addDrainer", null); + oprot_.writeMessageBegin(new TMessage("addDrainer", TMessageType.CALL, seqid_)); + addDrainer_args args = new addDrainer_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.addDrainer", args); + return; + } + + public ExecResp recv_addDrainer() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.addDrainer"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + addDrainer_result result = new addDrainer_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.addDrainer", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "addDrainer failed: unknown result"); + } + + public ExecResp removeDrainer(RemoveDrainerReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.removeDrainer", null); + this.setContextStack(ctx); + send_removeDrainer(req); + return recv_removeDrainer(); + } + + public void send_removeDrainer(RemoveDrainerReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.removeDrainer", null); + oprot_.writeMessageBegin(new TMessage("removeDrainer", TMessageType.CALL, seqid_)); + removeDrainer_args args = new removeDrainer_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.removeDrainer", args); + return; + } + + public ExecResp recv_removeDrainer() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.removeDrainer"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + removeDrainer_result result = new removeDrainer_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.removeDrainer", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "removeDrainer failed: unknown result"); + } + + public ListDrainersResp listDrainers(ListDrainersReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.listDrainers", null); + this.setContextStack(ctx); + send_listDrainers(req); + return recv_listDrainers(); + } + + public void send_listDrainers(ListDrainersReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.listDrainers", null); + oprot_.writeMessageBegin(new TMessage("listDrainers", TMessageType.CALL, seqid_)); + listDrainers_args args = new listDrainers_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.listDrainers", args); + return; + } + + public ListDrainersResp recv_listDrainers() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.listDrainers"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + listDrainers_result result = new listDrainers_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.listDrainers", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "listDrainers failed: unknown result"); + } + + public ListDrainerSyncStatusResp listDrainerSyncStatus(ListDrainerSyncStatusReq req) throws TException { - ContextStack ctx = getContextStack("MetaService.listListener", null); + ContextStack ctx = getContextStack("MetaService.listDrainerSyncStatus", null); this.setContextStack(ctx); - send_listListener(req); - return recv_listListener(); + send_listDrainerSyncStatus(req); + return recv_listDrainerSyncStatus(); } - public void send_listListener(ListListenerReq req) throws TException + public void send_listDrainerSyncStatus(ListDrainerSyncStatusReq req) throws TException { ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "MetaService.listListener", null); - oprot_.writeMessageBegin(new TMessage("listListener", TMessageType.CALL, seqid_)); - listListener_args args = new listListener_args(); + super.preWrite(ctx, "MetaService.listDrainerSyncStatus", null); + oprot_.writeMessageBegin(new TMessage("listDrainerSyncStatus", TMessageType.CALL, seqid_)); + listDrainerSyncStatus_args args = new listDrainerSyncStatus_args(); args.req = req; args.write(oprot_); oprot_.writeMessageEnd(); oprot_.getTransport().flush(); - super.postWrite(ctx, "MetaService.listListener", args); + super.postWrite(ctx, "MetaService.listDrainerSyncStatus", args); return; } - public ListListenerResp recv_listListener() throws TException + public ListDrainerSyncStatusResp recv_listDrainerSyncStatus() throws TException { ContextStack ctx = super.getContextStack(); long bytes; TMessageType mtype; - super.preRead(ctx, "MetaService.listListener"); + super.preRead(ctx, "MetaService.listDrainerSyncStatus"); TMessage msg = iprot_.readMessageBegin(); if (msg.type == TMessageType.EXCEPTION) { TApplicationException x = TApplicationException.read(iprot_); iprot_.readMessageEnd(); throw x; } - listListener_result result = new listListener_result(); + listDrainerSyncStatus_result result = new listDrainerSyncStatus_result(); result.read(iprot_); iprot_.readMessageEnd(); - super.postRead(ctx, "MetaService.listListener", result); + super.postRead(ctx, "MetaService.listDrainerSyncStatus", result); if (result.isSetSuccess()) { return result.success; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "listListener failed: unknown result"); + throw new TApplicationException(TApplicationException.MISSING_RESULT, "listDrainerSyncStatus failed: unknown result"); } public GetStatsResp getStats(GetStatsReq req) throws TException @@ -3466,6 +4098,141 @@ public ListServiceClientsResp recv_listServiceClients() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "listServiceClients failed: unknown result"); } + public ExecResp signInSpaceService(SignInSpaceServiceReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.signInSpaceService", null); + this.setContextStack(ctx); + send_signInSpaceService(req); + return recv_signInSpaceService(); + } + + public void send_signInSpaceService(SignInSpaceServiceReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.signInSpaceService", null); + oprot_.writeMessageBegin(new TMessage("signInSpaceService", TMessageType.CALL, seqid_)); + signInSpaceService_args args = new signInSpaceService_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.signInSpaceService", args); + return; + } + + public ExecResp recv_signInSpaceService() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.signInSpaceService"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + signInSpaceService_result result = new signInSpaceService_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.signInSpaceService", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "signInSpaceService failed: unknown result"); + } + + public ExecResp signOutSpaceService(SignOutSpaceServiceReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.signOutSpaceService", null); + this.setContextStack(ctx); + send_signOutSpaceService(req); + return recv_signOutSpaceService(); + } + + public void send_signOutSpaceService(SignOutSpaceServiceReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.signOutSpaceService", null); + oprot_.writeMessageBegin(new TMessage("signOutSpaceService", TMessageType.CALL, seqid_)); + signOutSpaceService_args args = new signOutSpaceService_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.signOutSpaceService", args); + return; + } + + public ExecResp recv_signOutSpaceService() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.signOutSpaceService"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + signOutSpaceService_result result = new signOutSpaceService_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.signOutSpaceService", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "signOutSpaceService failed: unknown result"); + } + + public ListSpaceServiceClientsResp listSpaceServiceClients(ListSpaceServiceClientsReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.listSpaceServiceClients", null); + this.setContextStack(ctx); + send_listSpaceServiceClients(req); + return recv_listSpaceServiceClients(); + } + + public void send_listSpaceServiceClients(ListSpaceServiceClientsReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.listSpaceServiceClients", null); + oprot_.writeMessageBegin(new TMessage("listSpaceServiceClients", TMessageType.CALL, seqid_)); + listSpaceServiceClients_args args = new listSpaceServiceClients_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.listSpaceServiceClients", args); + return; + } + + public ListSpaceServiceClientsResp recv_listSpaceServiceClients() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.listSpaceServiceClients"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + listSpaceServiceClients_result result = new listSpaceServiceClients_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.listSpaceServiceClients", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "listSpaceServiceClients failed: unknown result"); + } + public ExecResp createFTIndex(CreateFTIndexReq req) throws TException { ContextStack ctx = getContextStack("MetaService.createFTIndex", null); @@ -3916,6 +4683,96 @@ public ExecResp recv_reportTaskFinish() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "reportTaskFinish failed: unknown result"); } + public GetLicenseResp getLicense(GetLicenseReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.getLicense", null); + this.setContextStack(ctx); + send_getLicense(req); + return recv_getLicense(); + } + + public void send_getLicense(GetLicenseReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.getLicense", null); + oprot_.writeMessageBegin(new TMessage("getLicense", TMessageType.CALL, seqid_)); + getLicense_args args = new getLicense_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.getLicense", args); + return; + } + + public GetLicenseResp recv_getLicense() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.getLicense"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + getLicense_result result = new getLicense_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.getLicense", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLicense failed: unknown result"); + } + + public GetLicenseResp checkLicenseManager(GetLicenseReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.checkLicenseManager", null); + this.setContextStack(ctx); + send_checkLicenseManager(req); + return recv_checkLicenseManager(); + } + + public void send_checkLicenseManager(GetLicenseReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.checkLicenseManager", null); + oprot_.writeMessageBegin(new TMessage("checkLicenseManager", TMessageType.CALL, seqid_)); + checkLicenseManager_args args = new checkLicenseManager_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.checkLicenseManager", args); + return; + } + + public GetLicenseResp recv_checkLicenseManager() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.checkLicenseManager"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + checkLicenseManager_result result = new checkLicenseManager_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.checkLicenseManager", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "checkLicenseManager failed: unknown result"); + } + public CreateBackupResp createBackup(CreateBackupReq req) throws TException { ContextStack ctx = getContextStack("MetaService.createBackup", null); @@ -4186,6 +5043,141 @@ public SaveGraphVersionResp recv_saveGraphVersion() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "saveGraphVersion failed: unknown result"); } + public ExecResp setVariable(SetVariableReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.setVariable", null); + this.setContextStack(ctx); + send_setVariable(req); + return recv_setVariable(); + } + + public void send_setVariable(SetVariableReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.setVariable", null); + oprot_.writeMessageBegin(new TMessage("setVariable", TMessageType.CALL, seqid_)); + setVariable_args args = new setVariable_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.setVariable", args); + return; + } + + public ExecResp recv_setVariable() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.setVariable"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + setVariable_result result = new setVariable_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.setVariable", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "setVariable failed: unknown result"); + } + + public GetVariableResp getVariable(GetVariableReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.getVariable", null); + this.setContextStack(ctx); + send_getVariable(req); + return recv_getVariable(); + } + + public void send_getVariable(GetVariableReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.getVariable", null); + oprot_.writeMessageBegin(new TMessage("getVariable", TMessageType.CALL, seqid_)); + getVariable_args args = new getVariable_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.getVariable", args); + return; + } + + public GetVariableResp recv_getVariable() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.getVariable"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + getVariable_result result = new getVariable_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.getVariable", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "getVariable failed: unknown result"); + } + + public ListVariablesResp listVariables(ListVariablesReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.listVariables", null); + this.setContextStack(ctx); + send_listVariables(req); + return recv_listVariables(); + } + + public void send_listVariables(ListVariablesReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.listVariables", null); + oprot_.writeMessageBegin(new TMessage("listVariables", TMessageType.CALL, seqid_)); + listVariables_args args = new listVariables_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.listVariables", args); + return; + } + + public ListVariablesResp recv_listVariables() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.listVariables"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + listVariables_result result = new listVariables_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.listVariables", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "listVariables failed: unknown result"); + } + public GetSegmentIdResp getSegmentId(GetSegmentIdReq req) throws TException { ContextStack ctx = getContextStack("MetaService.getSegmentId", null); @@ -4231,6 +5223,141 @@ public GetSegmentIdResp recv_getSegmentId() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSegmentId failed: unknown result"); } + public GetSyncProgressResp getMetaSyncProgress(GetSyncProgressReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.getMetaSyncProgress", null); + this.setContextStack(ctx); + send_getMetaSyncProgress(req); + return recv_getMetaSyncProgress(); + } + + public void send_getMetaSyncProgress(GetSyncProgressReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.getMetaSyncProgress", null); + oprot_.writeMessageBegin(new TMessage("getMetaSyncProgress", TMessageType.CALL, seqid_)); + getMetaSyncProgress_args args = new getMetaSyncProgress_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.getMetaSyncProgress", args); + return; + } + + public GetSyncProgressResp recv_getMetaSyncProgress() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.getMetaSyncProgress"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + getMetaSyncProgress_result result = new getMetaSyncProgress_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.getMetaSyncProgress", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMetaSyncProgress failed: unknown result"); + } + + public ChangeMetaResp changeMeta(ChangeMetaReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.changeMeta", null); + this.setContextStack(ctx); + send_changeMeta(req); + return recv_changeMeta(); + } + + public void send_changeMeta(ChangeMetaReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.changeMeta", null); + oprot_.writeMessageBegin(new TMessage("changeMeta", TMessageType.CALL, seqid_)); + changeMeta_args args = new changeMeta_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.changeMeta", args); + return; + } + + public ChangeMetaResp recv_changeMeta() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.changeMeta"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + changeMeta_result result = new changeMeta_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.changeMeta", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeMeta failed: unknown result"); + } + + public ListMetaResp listMeta(ListMetaReq req) throws TException + { + ContextStack ctx = getContextStack("MetaService.listMeta", null); + this.setContextStack(ctx); + send_listMeta(req); + return recv_listMeta(); + } + + public void send_listMeta(ListMetaReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "MetaService.listMeta", null); + oprot_.writeMessageBegin(new TMessage("listMeta", TMessageType.CALL, seqid_)); + listMeta_args args = new listMeta_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "MetaService.listMeta", args); + return; + } + + public ListMetaResp recv_listMeta() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "MetaService.listMeta"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + listMeta_result result = new listMeta_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "MetaService.listMeta", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "listMeta failed: unknown result"); + } + } public static class AsyncClient extends TAsyncClient implements AsyncIface { public static class Factory implements TAsyncClientFactory { @@ -4249,17 +5376,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void createSpace(CreateSpaceReq req, AsyncMethodCallback resultHandler467) throws TException { + public void createSpace(CreateSpaceReq req, AsyncMethodCallback resultHandler578) throws TException { checkReady(); - createSpace_call method_call = new createSpace_call(req, resultHandler467, this, ___protocolFactory, ___transport); + createSpace_call method_call = new createSpace_call(req, resultHandler578, 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 resultHandler468, TAsyncClient client464, TProtocolFactory protocolFactory465, TNonblockingTransport transport466) throws TException { - super(client464, protocolFactory465, transport466, resultHandler468, false); + public createSpace_call(CreateSpaceReq req, AsyncMethodCallback resultHandler579, TAsyncClient client575, TProtocolFactory protocolFactory576, TNonblockingTransport transport577) throws TException { + super(client575, protocolFactory576, transport577, resultHandler579, false); this.req = req; } @@ -4281,17 +5408,17 @@ public ExecResp getResult() throws TException { } } - public void dropSpace(DropSpaceReq req, AsyncMethodCallback resultHandler472) throws TException { + public void dropSpace(DropSpaceReq req, AsyncMethodCallback resultHandler583) throws TException { checkReady(); - dropSpace_call method_call = new dropSpace_call(req, resultHandler472, this, ___protocolFactory, ___transport); + dropSpace_call method_call = new dropSpace_call(req, resultHandler583, 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 resultHandler473, TAsyncClient client469, TProtocolFactory protocolFactory470, TNonblockingTransport transport471) throws TException { - super(client469, protocolFactory470, transport471, resultHandler473, false); + public dropSpace_call(DropSpaceReq req, AsyncMethodCallback resultHandler584, TAsyncClient client580, TProtocolFactory protocolFactory581, TNonblockingTransport transport582) throws TException { + super(client580, protocolFactory581, transport582, resultHandler584, false); this.req = req; } @@ -4313,17 +5440,17 @@ public ExecResp getResult() throws TException { } } - public void clearSpace(ClearSpaceReq req, AsyncMethodCallback resultHandler477) throws TException { + public void clearSpace(ClearSpaceReq req, AsyncMethodCallback resultHandler588) throws TException { checkReady(); - clearSpace_call method_call = new clearSpace_call(req, resultHandler477, this, ___protocolFactory, ___transport); + clearSpace_call method_call = new clearSpace_call(req, resultHandler588, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearSpace_call extends TAsyncMethodCall { private ClearSpaceReq req; - public clearSpace_call(ClearSpaceReq req, AsyncMethodCallback resultHandler478, TAsyncClient client474, TProtocolFactory protocolFactory475, TNonblockingTransport transport476) throws TException { - super(client474, protocolFactory475, transport476, resultHandler478, false); + public clearSpace_call(ClearSpaceReq req, AsyncMethodCallback resultHandler589, TAsyncClient client585, TProtocolFactory protocolFactory586, TNonblockingTransport transport587) throws TException { + super(client585, protocolFactory586, transport587, resultHandler589, false); this.req = req; } @@ -4345,17 +5472,17 @@ public ExecResp getResult() throws TException { } } - public void getSpace(GetSpaceReq req, AsyncMethodCallback resultHandler482) throws TException { + public void getSpace(GetSpaceReq req, AsyncMethodCallback resultHandler593) throws TException { checkReady(); - getSpace_call method_call = new getSpace_call(req, resultHandler482, this, ___protocolFactory, ___transport); + getSpace_call method_call = new getSpace_call(req, resultHandler593, 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 resultHandler483, TAsyncClient client479, TProtocolFactory protocolFactory480, TNonblockingTransport transport481) throws TException { - super(client479, protocolFactory480, transport481, resultHandler483, false); + public getSpace_call(GetSpaceReq req, AsyncMethodCallback resultHandler594, TAsyncClient client590, TProtocolFactory protocolFactory591, TNonblockingTransport transport592) throws TException { + super(client590, protocolFactory591, transport592, resultHandler594, false); this.req = req; } @@ -4377,17 +5504,17 @@ public GetSpaceResp getResult() throws TException { } } - public void listSpaces(ListSpacesReq req, AsyncMethodCallback resultHandler487) throws TException { + public void listSpaces(ListSpacesReq req, AsyncMethodCallback resultHandler598) throws TException { checkReady(); - listSpaces_call method_call = new listSpaces_call(req, resultHandler487, this, ___protocolFactory, ___transport); + listSpaces_call method_call = new listSpaces_call(req, resultHandler598, 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 resultHandler488, TAsyncClient client484, TProtocolFactory protocolFactory485, TNonblockingTransport transport486) throws TException { - super(client484, protocolFactory485, transport486, resultHandler488, false); + public listSpaces_call(ListSpacesReq req, AsyncMethodCallback resultHandler599, TAsyncClient client595, TProtocolFactory protocolFactory596, TNonblockingTransport transport597) throws TException { + super(client595, protocolFactory596, transport597, resultHandler599, false); this.req = req; } @@ -4409,17 +5536,17 @@ public ListSpacesResp getResult() throws TException { } } - public void alterSpace(AlterSpaceReq req, AsyncMethodCallback resultHandler492) throws TException { + public void alterSpace(AlterSpaceReq req, AsyncMethodCallback resultHandler603) throws TException { checkReady(); - alterSpace_call method_call = new alterSpace_call(req, resultHandler492, this, ___protocolFactory, ___transport); + alterSpace_call method_call = new alterSpace_call(req, resultHandler603, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class alterSpace_call extends TAsyncMethodCall { private AlterSpaceReq req; - public alterSpace_call(AlterSpaceReq req, AsyncMethodCallback resultHandler493, TAsyncClient client489, TProtocolFactory protocolFactory490, TNonblockingTransport transport491) throws TException { - super(client489, protocolFactory490, transport491, resultHandler493, false); + public alterSpace_call(AlterSpaceReq req, AsyncMethodCallback resultHandler604, TAsyncClient client600, TProtocolFactory protocolFactory601, TNonblockingTransport transport602) throws TException { + super(client600, protocolFactory601, transport602, resultHandler604, false); this.req = req; } @@ -4441,17 +5568,17 @@ public ExecResp getResult() throws TException { } } - public void createSpaceAs(CreateSpaceAsReq req, AsyncMethodCallback resultHandler497) throws TException { + public void createSpaceAs(CreateSpaceAsReq req, AsyncMethodCallback resultHandler608) throws TException { checkReady(); - createSpaceAs_call method_call = new createSpaceAs_call(req, resultHandler497, this, ___protocolFactory, ___transport); + createSpaceAs_call method_call = new createSpaceAs_call(req, resultHandler608, 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 resultHandler498, TAsyncClient client494, TProtocolFactory protocolFactory495, TNonblockingTransport transport496) throws TException { - super(client494, protocolFactory495, transport496, resultHandler498, false); + public createSpaceAs_call(CreateSpaceAsReq req, AsyncMethodCallback resultHandler609, TAsyncClient client605, TProtocolFactory protocolFactory606, TNonblockingTransport transport607) throws TException { + super(client605, protocolFactory606, transport607, resultHandler609, false); this.req = req; } @@ -4473,17 +5600,17 @@ public ExecResp getResult() throws TException { } } - public void createTag(CreateTagReq req, AsyncMethodCallback resultHandler502) throws TException { + public void createTag(CreateTagReq req, AsyncMethodCallback resultHandler613) throws TException { checkReady(); - createTag_call method_call = new createTag_call(req, resultHandler502, this, ___protocolFactory, ___transport); + createTag_call method_call = new createTag_call(req, resultHandler613, 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 resultHandler503, TAsyncClient client499, TProtocolFactory protocolFactory500, TNonblockingTransport transport501) throws TException { - super(client499, protocolFactory500, transport501, resultHandler503, false); + public createTag_call(CreateTagReq req, AsyncMethodCallback resultHandler614, TAsyncClient client610, TProtocolFactory protocolFactory611, TNonblockingTransport transport612) throws TException { + super(client610, protocolFactory611, transport612, resultHandler614, false); this.req = req; } @@ -4505,17 +5632,17 @@ public ExecResp getResult() throws TException { } } - public void alterTag(AlterTagReq req, AsyncMethodCallback resultHandler507) throws TException { + public void alterTag(AlterTagReq req, AsyncMethodCallback resultHandler618) throws TException { checkReady(); - alterTag_call method_call = new alterTag_call(req, resultHandler507, this, ___protocolFactory, ___transport); + alterTag_call method_call = new alterTag_call(req, resultHandler618, 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 resultHandler508, TAsyncClient client504, TProtocolFactory protocolFactory505, TNonblockingTransport transport506) throws TException { - super(client504, protocolFactory505, transport506, resultHandler508, false); + public alterTag_call(AlterTagReq req, AsyncMethodCallback resultHandler619, TAsyncClient client615, TProtocolFactory protocolFactory616, TNonblockingTransport transport617) throws TException { + super(client615, protocolFactory616, transport617, resultHandler619, false); this.req = req; } @@ -4537,17 +5664,17 @@ public ExecResp getResult() throws TException { } } - public void dropTag(DropTagReq req, AsyncMethodCallback resultHandler512) throws TException { + public void dropTag(DropTagReq req, AsyncMethodCallback resultHandler623) throws TException { checkReady(); - dropTag_call method_call = new dropTag_call(req, resultHandler512, this, ___protocolFactory, ___transport); + dropTag_call method_call = new dropTag_call(req, resultHandler623, 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 resultHandler513, TAsyncClient client509, TProtocolFactory protocolFactory510, TNonblockingTransport transport511) throws TException { - super(client509, protocolFactory510, transport511, resultHandler513, false); + public dropTag_call(DropTagReq req, AsyncMethodCallback resultHandler624, TAsyncClient client620, TProtocolFactory protocolFactory621, TNonblockingTransport transport622) throws TException { + super(client620, protocolFactory621, transport622, resultHandler624, false); this.req = req; } @@ -4569,17 +5696,17 @@ public ExecResp getResult() throws TException { } } - public void getTag(GetTagReq req, AsyncMethodCallback resultHandler517) throws TException { + public void getTag(GetTagReq req, AsyncMethodCallback resultHandler628) throws TException { checkReady(); - getTag_call method_call = new getTag_call(req, resultHandler517, this, ___protocolFactory, ___transport); + getTag_call method_call = new getTag_call(req, resultHandler628, 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 resultHandler518, TAsyncClient client514, TProtocolFactory protocolFactory515, TNonblockingTransport transport516) throws TException { - super(client514, protocolFactory515, transport516, resultHandler518, false); + public getTag_call(GetTagReq req, AsyncMethodCallback resultHandler629, TAsyncClient client625, TProtocolFactory protocolFactory626, TNonblockingTransport transport627) throws TException { + super(client625, protocolFactory626, transport627, resultHandler629, false); this.req = req; } @@ -4601,17 +5728,17 @@ public GetTagResp getResult() throws TException { } } - public void listTags(ListTagsReq req, AsyncMethodCallback resultHandler522) throws TException { + public void listTags(ListTagsReq req, AsyncMethodCallback resultHandler633) throws TException { checkReady(); - listTags_call method_call = new listTags_call(req, resultHandler522, this, ___protocolFactory, ___transport); + listTags_call method_call = new listTags_call(req, resultHandler633, 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 resultHandler523, TAsyncClient client519, TProtocolFactory protocolFactory520, TNonblockingTransport transport521) throws TException { - super(client519, protocolFactory520, transport521, resultHandler523, false); + public listTags_call(ListTagsReq req, AsyncMethodCallback resultHandler634, TAsyncClient client630, TProtocolFactory protocolFactory631, TNonblockingTransport transport632) throws TException { + super(client630, protocolFactory631, transport632, resultHandler634, false); this.req = req; } @@ -4633,17 +5760,17 @@ public ListTagsResp getResult() throws TException { } } - public void createEdge(CreateEdgeReq req, AsyncMethodCallback resultHandler527) throws TException { + public void createEdge(CreateEdgeReq req, AsyncMethodCallback resultHandler638) throws TException { checkReady(); - createEdge_call method_call = new createEdge_call(req, resultHandler527, this, ___protocolFactory, ___transport); + createEdge_call method_call = new createEdge_call(req, resultHandler638, 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 resultHandler528, TAsyncClient client524, TProtocolFactory protocolFactory525, TNonblockingTransport transport526) throws TException { - super(client524, protocolFactory525, transport526, resultHandler528, false); + public createEdge_call(CreateEdgeReq req, AsyncMethodCallback resultHandler639, TAsyncClient client635, TProtocolFactory protocolFactory636, TNonblockingTransport transport637) throws TException { + super(client635, protocolFactory636, transport637, resultHandler639, false); this.req = req; } @@ -4665,17 +5792,17 @@ public ExecResp getResult() throws TException { } } - public void alterEdge(AlterEdgeReq req, AsyncMethodCallback resultHandler532) throws TException { + public void alterEdge(AlterEdgeReq req, AsyncMethodCallback resultHandler643) throws TException { checkReady(); - alterEdge_call method_call = new alterEdge_call(req, resultHandler532, this, ___protocolFactory, ___transport); + alterEdge_call method_call = new alterEdge_call(req, resultHandler643, 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 resultHandler533, TAsyncClient client529, TProtocolFactory protocolFactory530, TNonblockingTransport transport531) throws TException { - super(client529, protocolFactory530, transport531, resultHandler533, false); + public alterEdge_call(AlterEdgeReq req, AsyncMethodCallback resultHandler644, TAsyncClient client640, TProtocolFactory protocolFactory641, TNonblockingTransport transport642) throws TException { + super(client640, protocolFactory641, transport642, resultHandler644, false); this.req = req; } @@ -4697,17 +5824,17 @@ public ExecResp getResult() throws TException { } } - public void dropEdge(DropEdgeReq req, AsyncMethodCallback resultHandler537) throws TException { + public void dropEdge(DropEdgeReq req, AsyncMethodCallback resultHandler648) throws TException { checkReady(); - dropEdge_call method_call = new dropEdge_call(req, resultHandler537, this, ___protocolFactory, ___transport); + dropEdge_call method_call = new dropEdge_call(req, resultHandler648, 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 resultHandler538, TAsyncClient client534, TProtocolFactory protocolFactory535, TNonblockingTransport transport536) throws TException { - super(client534, protocolFactory535, transport536, resultHandler538, false); + public dropEdge_call(DropEdgeReq req, AsyncMethodCallback resultHandler649, TAsyncClient client645, TProtocolFactory protocolFactory646, TNonblockingTransport transport647) throws TException { + super(client645, protocolFactory646, transport647, resultHandler649, false); this.req = req; } @@ -4729,17 +5856,17 @@ public ExecResp getResult() throws TException { } } - public void getEdge(GetEdgeReq req, AsyncMethodCallback resultHandler542) throws TException { + public void getEdge(GetEdgeReq req, AsyncMethodCallback resultHandler653) throws TException { checkReady(); - getEdge_call method_call = new getEdge_call(req, resultHandler542, this, ___protocolFactory, ___transport); + getEdge_call method_call = new getEdge_call(req, resultHandler653, 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 resultHandler543, TAsyncClient client539, TProtocolFactory protocolFactory540, TNonblockingTransport transport541) throws TException { - super(client539, protocolFactory540, transport541, resultHandler543, false); + public getEdge_call(GetEdgeReq req, AsyncMethodCallback resultHandler654, TAsyncClient client650, TProtocolFactory protocolFactory651, TNonblockingTransport transport652) throws TException { + super(client650, protocolFactory651, transport652, resultHandler654, false); this.req = req; } @@ -4761,17 +5888,17 @@ public GetEdgeResp getResult() throws TException { } } - public void listEdges(ListEdgesReq req, AsyncMethodCallback resultHandler547) throws TException { + public void listEdges(ListEdgesReq req, AsyncMethodCallback resultHandler658) throws TException { checkReady(); - listEdges_call method_call = new listEdges_call(req, resultHandler547, this, ___protocolFactory, ___transport); + listEdges_call method_call = new listEdges_call(req, resultHandler658, 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 resultHandler548, TAsyncClient client544, TProtocolFactory protocolFactory545, TNonblockingTransport transport546) throws TException { - super(client544, protocolFactory545, transport546, resultHandler548, false); + public listEdges_call(ListEdgesReq req, AsyncMethodCallback resultHandler659, TAsyncClient client655, TProtocolFactory protocolFactory656, TNonblockingTransport transport657) throws TException { + super(client655, protocolFactory656, transport657, resultHandler659, false); this.req = req; } @@ -4793,17 +5920,17 @@ public ListEdgesResp getResult() throws TException { } } - public void addHosts(AddHostsReq req, AsyncMethodCallback resultHandler552) throws TException { + public void addHosts(AddHostsReq req, AsyncMethodCallback resultHandler663) throws TException { checkReady(); - addHosts_call method_call = new addHosts_call(req, resultHandler552, this, ___protocolFactory, ___transport); + addHosts_call method_call = new addHosts_call(req, resultHandler663, 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 resultHandler553, TAsyncClient client549, TProtocolFactory protocolFactory550, TNonblockingTransport transport551) throws TException { - super(client549, protocolFactory550, transport551, resultHandler553, false); + public addHosts_call(AddHostsReq req, AsyncMethodCallback resultHandler664, TAsyncClient client660, TProtocolFactory protocolFactory661, TNonblockingTransport transport662) throws TException { + super(client660, protocolFactory661, transport662, resultHandler664, false); this.req = req; } @@ -4825,17 +5952,17 @@ public ExecResp getResult() throws TException { } } - public void addHostsIntoZone(AddHostsIntoZoneReq req, AsyncMethodCallback resultHandler557) throws TException { + public void addHostsIntoZone(AddHostsIntoZoneReq req, AsyncMethodCallback resultHandler668) throws TException { checkReady(); - addHostsIntoZone_call method_call = new addHostsIntoZone_call(req, resultHandler557, this, ___protocolFactory, ___transport); + addHostsIntoZone_call method_call = new addHostsIntoZone_call(req, resultHandler668, 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 resultHandler558, TAsyncClient client554, TProtocolFactory protocolFactory555, TNonblockingTransport transport556) throws TException { - super(client554, protocolFactory555, transport556, resultHandler558, false); + public addHostsIntoZone_call(AddHostsIntoZoneReq req, AsyncMethodCallback resultHandler669, TAsyncClient client665, TProtocolFactory protocolFactory666, TNonblockingTransport transport667) throws TException { + super(client665, protocolFactory666, transport667, resultHandler669, false); this.req = req; } @@ -4857,17 +5984,17 @@ public ExecResp getResult() throws TException { } } - public void dropHosts(DropHostsReq req, AsyncMethodCallback resultHandler562) throws TException { + public void dropHosts(DropHostsReq req, AsyncMethodCallback resultHandler673) throws TException { checkReady(); - dropHosts_call method_call = new dropHosts_call(req, resultHandler562, this, ___protocolFactory, ___transport); + dropHosts_call method_call = new dropHosts_call(req, resultHandler673, 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 resultHandler563, TAsyncClient client559, TProtocolFactory protocolFactory560, TNonblockingTransport transport561) throws TException { - super(client559, protocolFactory560, transport561, resultHandler563, false); + public dropHosts_call(DropHostsReq req, AsyncMethodCallback resultHandler674, TAsyncClient client670, TProtocolFactory protocolFactory671, TNonblockingTransport transport672) throws TException { + super(client670, protocolFactory671, transport672, resultHandler674, false); this.req = req; } @@ -4889,17 +6016,17 @@ public ExecResp getResult() throws TException { } } - public void listHosts(ListHostsReq req, AsyncMethodCallback resultHandler567) throws TException { + public void listHosts(ListHostsReq req, AsyncMethodCallback resultHandler678) throws TException { checkReady(); - listHosts_call method_call = new listHosts_call(req, resultHandler567, this, ___protocolFactory, ___transport); + listHosts_call method_call = new listHosts_call(req, resultHandler678, 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 resultHandler568, TAsyncClient client564, TProtocolFactory protocolFactory565, TNonblockingTransport transport566) throws TException { - super(client564, protocolFactory565, transport566, resultHandler568, false); + public listHosts_call(ListHostsReq req, AsyncMethodCallback resultHandler679, TAsyncClient client675, TProtocolFactory protocolFactory676, TNonblockingTransport transport677) throws TException { + super(client675, protocolFactory676, transport677, resultHandler679, false); this.req = req; } @@ -4921,17 +6048,17 @@ public ListHostsResp getResult() throws TException { } } - public void getPartsAlloc(GetPartsAllocReq req, AsyncMethodCallback resultHandler572) throws TException { + public void getPartsAlloc(GetPartsAllocReq req, AsyncMethodCallback resultHandler683) throws TException { checkReady(); - getPartsAlloc_call method_call = new getPartsAlloc_call(req, resultHandler572, this, ___protocolFactory, ___transport); + getPartsAlloc_call method_call = new getPartsAlloc_call(req, resultHandler683, 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 resultHandler573, TAsyncClient client569, TProtocolFactory protocolFactory570, TNonblockingTransport transport571) throws TException { - super(client569, protocolFactory570, transport571, resultHandler573, false); + public getPartsAlloc_call(GetPartsAllocReq req, AsyncMethodCallback resultHandler684, TAsyncClient client680, TProtocolFactory protocolFactory681, TNonblockingTransport transport682) throws TException { + super(client680, protocolFactory681, transport682, resultHandler684, false); this.req = req; } @@ -4953,17 +6080,17 @@ public GetPartsAllocResp getResult() throws TException { } } - public void listParts(ListPartsReq req, AsyncMethodCallback resultHandler577) throws TException { + public void listParts(ListPartsReq req, AsyncMethodCallback resultHandler688) throws TException { checkReady(); - listParts_call method_call = new listParts_call(req, resultHandler577, this, ___protocolFactory, ___transport); + listParts_call method_call = new listParts_call(req, resultHandler688, 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 resultHandler578, TAsyncClient client574, TProtocolFactory protocolFactory575, TNonblockingTransport transport576) throws TException { - super(client574, protocolFactory575, transport576, resultHandler578, false); + public listParts_call(ListPartsReq req, AsyncMethodCallback resultHandler689, TAsyncClient client685, TProtocolFactory protocolFactory686, TNonblockingTransport transport687) throws TException { + super(client685, protocolFactory686, transport687, resultHandler689, false); this.req = req; } @@ -4985,17 +6112,17 @@ public ListPartsResp getResult() throws TException { } } - public void getWorkerId(GetWorkerIdReq req, AsyncMethodCallback resultHandler582) throws TException { + public void getWorkerId(GetWorkerIdReq req, AsyncMethodCallback resultHandler693) throws TException { checkReady(); - getWorkerId_call method_call = new getWorkerId_call(req, resultHandler582, this, ___protocolFactory, ___transport); + getWorkerId_call method_call = new getWorkerId_call(req, resultHandler693, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getWorkerId_call extends TAsyncMethodCall { private GetWorkerIdReq req; - public getWorkerId_call(GetWorkerIdReq req, AsyncMethodCallback resultHandler583, TAsyncClient client579, TProtocolFactory protocolFactory580, TNonblockingTransport transport581) throws TException { - super(client579, protocolFactory580, transport581, resultHandler583, false); + public getWorkerId_call(GetWorkerIdReq req, AsyncMethodCallback resultHandler694, TAsyncClient client690, TProtocolFactory protocolFactory691, TNonblockingTransport transport692) throws TException { + super(client690, protocolFactory691, transport692, resultHandler694, false); this.req = req; } @@ -5017,17 +6144,49 @@ public GetWorkerIdResp getResult() throws TException { } } - public void createTagIndex(CreateTagIndexReq req, AsyncMethodCallback resultHandler587) throws TException { + public void syncData(SyncDataReq req, AsyncMethodCallback resultHandler698) throws TException { checkReady(); - createTagIndex_call method_call = new createTagIndex_call(req, resultHandler587, this, ___protocolFactory, ___transport); + syncData_call method_call = new syncData_call(req, resultHandler698, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class syncData_call extends TAsyncMethodCall { + private SyncDataReq req; + public syncData_call(SyncDataReq req, AsyncMethodCallback resultHandler699, TAsyncClient client695, TProtocolFactory protocolFactory696, TNonblockingTransport transport697) throws TException { + super(client695, protocolFactory696, transport697, resultHandler699, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("syncData", TMessageType.CALL, 0)); + syncData_args args = new syncData_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_syncData(); + } + } + + public void createTagIndex(CreateTagIndexReq req, AsyncMethodCallback resultHandler703) throws TException { + checkReady(); + createTagIndex_call method_call = new createTagIndex_call(req, resultHandler703, 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 resultHandler588, TAsyncClient client584, TProtocolFactory protocolFactory585, TNonblockingTransport transport586) throws TException { - super(client584, protocolFactory585, transport586, resultHandler588, false); + public createTagIndex_call(CreateTagIndexReq req, AsyncMethodCallback resultHandler704, TAsyncClient client700, TProtocolFactory protocolFactory701, TNonblockingTransport transport702) throws TException { + super(client700, protocolFactory701, transport702, resultHandler704, false); this.req = req; } @@ -5049,17 +6208,17 @@ public ExecResp getResult() throws TException { } } - public void dropTagIndex(DropTagIndexReq req, AsyncMethodCallback resultHandler592) throws TException { + public void dropTagIndex(DropTagIndexReq req, AsyncMethodCallback resultHandler708) throws TException { checkReady(); - dropTagIndex_call method_call = new dropTagIndex_call(req, resultHandler592, this, ___protocolFactory, ___transport); + dropTagIndex_call method_call = new dropTagIndex_call(req, resultHandler708, 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 resultHandler593, TAsyncClient client589, TProtocolFactory protocolFactory590, TNonblockingTransport transport591) throws TException { - super(client589, protocolFactory590, transport591, resultHandler593, false); + public dropTagIndex_call(DropTagIndexReq req, AsyncMethodCallback resultHandler709, TAsyncClient client705, TProtocolFactory protocolFactory706, TNonblockingTransport transport707) throws TException { + super(client705, protocolFactory706, transport707, resultHandler709, false); this.req = req; } @@ -5081,17 +6240,17 @@ public ExecResp getResult() throws TException { } } - public void getTagIndex(GetTagIndexReq req, AsyncMethodCallback resultHandler597) throws TException { + public void getTagIndex(GetTagIndexReq req, AsyncMethodCallback resultHandler713) throws TException { checkReady(); - getTagIndex_call method_call = new getTagIndex_call(req, resultHandler597, this, ___protocolFactory, ___transport); + getTagIndex_call method_call = new getTagIndex_call(req, resultHandler713, 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 resultHandler598, TAsyncClient client594, TProtocolFactory protocolFactory595, TNonblockingTransport transport596) throws TException { - super(client594, protocolFactory595, transport596, resultHandler598, false); + public getTagIndex_call(GetTagIndexReq req, AsyncMethodCallback resultHandler714, TAsyncClient client710, TProtocolFactory protocolFactory711, TNonblockingTransport transport712) throws TException { + super(client710, protocolFactory711, transport712, resultHandler714, false); this.req = req; } @@ -5113,17 +6272,17 @@ public GetTagIndexResp getResult() throws TException { } } - public void listTagIndexes(ListTagIndexesReq req, AsyncMethodCallback resultHandler602) throws TException { + public void listTagIndexes(ListTagIndexesReq req, AsyncMethodCallback resultHandler718) throws TException { checkReady(); - listTagIndexes_call method_call = new listTagIndexes_call(req, resultHandler602, this, ___protocolFactory, ___transport); + listTagIndexes_call method_call = new listTagIndexes_call(req, resultHandler718, 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 resultHandler603, TAsyncClient client599, TProtocolFactory protocolFactory600, TNonblockingTransport transport601) throws TException { - super(client599, protocolFactory600, transport601, resultHandler603, false); + public listTagIndexes_call(ListTagIndexesReq req, AsyncMethodCallback resultHandler719, TAsyncClient client715, TProtocolFactory protocolFactory716, TNonblockingTransport transport717) throws TException { + super(client715, protocolFactory716, transport717, resultHandler719, false); this.req = req; } @@ -5145,17 +6304,17 @@ public ListTagIndexesResp getResult() throws TException { } } - public void rebuildTagIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler607) throws TException { + public void rebuildTagIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler723) throws TException { checkReady(); - rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler607, this, ___protocolFactory, ___transport); + rebuildTagIndex_call method_call = new rebuildTagIndex_call(req, resultHandler723, 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 resultHandler608, TAsyncClient client604, TProtocolFactory protocolFactory605, TNonblockingTransport transport606) throws TException { - super(client604, protocolFactory605, transport606, resultHandler608, false); + public rebuildTagIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler724, TAsyncClient client720, TProtocolFactory protocolFactory721, TNonblockingTransport transport722) throws TException { + super(client720, protocolFactory721, transport722, resultHandler724, false); this.req = req; } @@ -5177,17 +6336,17 @@ public ExecResp getResult() throws TException { } } - public void listTagIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler612) throws TException { + public void listTagIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler728) throws TException { checkReady(); - listTagIndexStatus_call method_call = new listTagIndexStatus_call(req, resultHandler612, this, ___protocolFactory, ___transport); + listTagIndexStatus_call method_call = new listTagIndexStatus_call(req, resultHandler728, 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 resultHandler613, TAsyncClient client609, TProtocolFactory protocolFactory610, TNonblockingTransport transport611) throws TException { - super(client609, protocolFactory610, transport611, resultHandler613, false); + public listTagIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler729, TAsyncClient client725, TProtocolFactory protocolFactory726, TNonblockingTransport transport727) throws TException { + super(client725, protocolFactory726, transport727, resultHandler729, false); this.req = req; } @@ -5209,17 +6368,17 @@ public ListIndexStatusResp getResult() throws TException { } } - public void createEdgeIndex(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler617) throws TException { + public void createEdgeIndex(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler733) throws TException { checkReady(); - createEdgeIndex_call method_call = new createEdgeIndex_call(req, resultHandler617, this, ___protocolFactory, ___transport); + createEdgeIndex_call method_call = new createEdgeIndex_call(req, resultHandler733, 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 resultHandler618, TAsyncClient client614, TProtocolFactory protocolFactory615, TNonblockingTransport transport616) throws TException { - super(client614, protocolFactory615, transport616, resultHandler618, false); + public createEdgeIndex_call(CreateEdgeIndexReq req, AsyncMethodCallback resultHandler734, TAsyncClient client730, TProtocolFactory protocolFactory731, TNonblockingTransport transport732) throws TException { + super(client730, protocolFactory731, transport732, resultHandler734, false); this.req = req; } @@ -5241,17 +6400,17 @@ public ExecResp getResult() throws TException { } } - public void dropEdgeIndex(DropEdgeIndexReq req, AsyncMethodCallback resultHandler622) throws TException { + public void dropEdgeIndex(DropEdgeIndexReq req, AsyncMethodCallback resultHandler738) throws TException { checkReady(); - dropEdgeIndex_call method_call = new dropEdgeIndex_call(req, resultHandler622, this, ___protocolFactory, ___transport); + dropEdgeIndex_call method_call = new dropEdgeIndex_call(req, resultHandler738, 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 resultHandler623, TAsyncClient client619, TProtocolFactory protocolFactory620, TNonblockingTransport transport621) throws TException { - super(client619, protocolFactory620, transport621, resultHandler623, false); + public dropEdgeIndex_call(DropEdgeIndexReq req, AsyncMethodCallback resultHandler739, TAsyncClient client735, TProtocolFactory protocolFactory736, TNonblockingTransport transport737) throws TException { + super(client735, protocolFactory736, transport737, resultHandler739, false); this.req = req; } @@ -5273,17 +6432,17 @@ public ExecResp getResult() throws TException { } } - public void getEdgeIndex(GetEdgeIndexReq req, AsyncMethodCallback resultHandler627) throws TException { + public void getEdgeIndex(GetEdgeIndexReq req, AsyncMethodCallback resultHandler743) throws TException { checkReady(); - getEdgeIndex_call method_call = new getEdgeIndex_call(req, resultHandler627, this, ___protocolFactory, ___transport); + getEdgeIndex_call method_call = new getEdgeIndex_call(req, resultHandler743, 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 resultHandler628, TAsyncClient client624, TProtocolFactory protocolFactory625, TNonblockingTransport transport626) throws TException { - super(client624, protocolFactory625, transport626, resultHandler628, false); + public getEdgeIndex_call(GetEdgeIndexReq req, AsyncMethodCallback resultHandler744, TAsyncClient client740, TProtocolFactory protocolFactory741, TNonblockingTransport transport742) throws TException { + super(client740, protocolFactory741, transport742, resultHandler744, false); this.req = req; } @@ -5305,17 +6464,17 @@ public GetEdgeIndexResp getResult() throws TException { } } - public void listEdgeIndexes(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler632) throws TException { + public void listEdgeIndexes(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler748) throws TException { checkReady(); - listEdgeIndexes_call method_call = new listEdgeIndexes_call(req, resultHandler632, this, ___protocolFactory, ___transport); + listEdgeIndexes_call method_call = new listEdgeIndexes_call(req, resultHandler748, 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 resultHandler633, TAsyncClient client629, TProtocolFactory protocolFactory630, TNonblockingTransport transport631) throws TException { - super(client629, protocolFactory630, transport631, resultHandler633, false); + public listEdgeIndexes_call(ListEdgeIndexesReq req, AsyncMethodCallback resultHandler749, TAsyncClient client745, TProtocolFactory protocolFactory746, TNonblockingTransport transport747) throws TException { + super(client745, protocolFactory746, transport747, resultHandler749, false); this.req = req; } @@ -5337,17 +6496,17 @@ public ListEdgeIndexesResp getResult() throws TException { } } - public void rebuildEdgeIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler637) throws TException { + public void rebuildEdgeIndex(RebuildIndexReq req, AsyncMethodCallback resultHandler753) throws TException { checkReady(); - rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler637, this, ___protocolFactory, ___transport); + rebuildEdgeIndex_call method_call = new rebuildEdgeIndex_call(req, resultHandler753, 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 resultHandler638, TAsyncClient client634, TProtocolFactory protocolFactory635, TNonblockingTransport transport636) throws TException { - super(client634, protocolFactory635, transport636, resultHandler638, false); + public rebuildEdgeIndex_call(RebuildIndexReq req, AsyncMethodCallback resultHandler754, TAsyncClient client750, TProtocolFactory protocolFactory751, TNonblockingTransport transport752) throws TException { + super(client750, protocolFactory751, transport752, resultHandler754, false); this.req = req; } @@ -5369,17 +6528,17 @@ public ExecResp getResult() throws TException { } } - public void listEdgeIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler642) throws TException { + public void listEdgeIndexStatus(ListIndexStatusReq req, AsyncMethodCallback resultHandler758) throws TException { checkReady(); - listEdgeIndexStatus_call method_call = new listEdgeIndexStatus_call(req, resultHandler642, this, ___protocolFactory, ___transport); + listEdgeIndexStatus_call method_call = new listEdgeIndexStatus_call(req, resultHandler758, 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 resultHandler643, TAsyncClient client639, TProtocolFactory protocolFactory640, TNonblockingTransport transport641) throws TException { - super(client639, protocolFactory640, transport641, resultHandler643, false); + public listEdgeIndexStatus_call(ListIndexStatusReq req, AsyncMethodCallback resultHandler759, TAsyncClient client755, TProtocolFactory protocolFactory756, TNonblockingTransport transport757) throws TException { + super(client755, protocolFactory756, transport757, resultHandler759, false); this.req = req; } @@ -5401,17 +6560,17 @@ public ListIndexStatusResp getResult() throws TException { } } - public void createUser(CreateUserReq req, AsyncMethodCallback resultHandler647) throws TException { + public void createUser(CreateUserReq req, AsyncMethodCallback resultHandler763) throws TException { checkReady(); - createUser_call method_call = new createUser_call(req, resultHandler647, this, ___protocolFactory, ___transport); + createUser_call method_call = new createUser_call(req, resultHandler763, 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 resultHandler648, TAsyncClient client644, TProtocolFactory protocolFactory645, TNonblockingTransport transport646) throws TException { - super(client644, protocolFactory645, transport646, resultHandler648, false); + public createUser_call(CreateUserReq req, AsyncMethodCallback resultHandler764, TAsyncClient client760, TProtocolFactory protocolFactory761, TNonblockingTransport transport762) throws TException { + super(client760, protocolFactory761, transport762, resultHandler764, false); this.req = req; } @@ -5433,17 +6592,17 @@ public ExecResp getResult() throws TException { } } - public void dropUser(DropUserReq req, AsyncMethodCallback resultHandler652) throws TException { + public void dropUser(DropUserReq req, AsyncMethodCallback resultHandler768) throws TException { checkReady(); - dropUser_call method_call = new dropUser_call(req, resultHandler652, this, ___protocolFactory, ___transport); + dropUser_call method_call = new dropUser_call(req, resultHandler768, 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 resultHandler653, TAsyncClient client649, TProtocolFactory protocolFactory650, TNonblockingTransport transport651) throws TException { - super(client649, protocolFactory650, transport651, resultHandler653, false); + public dropUser_call(DropUserReq req, AsyncMethodCallback resultHandler769, TAsyncClient client765, TProtocolFactory protocolFactory766, TNonblockingTransport transport767) throws TException { + super(client765, protocolFactory766, transport767, resultHandler769, false); this.req = req; } @@ -5465,17 +6624,17 @@ public ExecResp getResult() throws TException { } } - public void alterUser(AlterUserReq req, AsyncMethodCallback resultHandler657) throws TException { + public void alterUser(AlterUserReq req, AsyncMethodCallback resultHandler773) throws TException { checkReady(); - alterUser_call method_call = new alterUser_call(req, resultHandler657, this, ___protocolFactory, ___transport); + alterUser_call method_call = new alterUser_call(req, resultHandler773, 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 resultHandler658, TAsyncClient client654, TProtocolFactory protocolFactory655, TNonblockingTransport transport656) throws TException { - super(client654, protocolFactory655, transport656, resultHandler658, false); + public alterUser_call(AlterUserReq req, AsyncMethodCallback resultHandler774, TAsyncClient client770, TProtocolFactory protocolFactory771, TNonblockingTransport transport772) throws TException { + super(client770, protocolFactory771, transport772, resultHandler774, false); this.req = req; } @@ -5497,17 +6656,17 @@ public ExecResp getResult() throws TException { } } - public void grantRole(GrantRoleReq req, AsyncMethodCallback resultHandler662) throws TException { + public void grantRole(GrantRoleReq req, AsyncMethodCallback resultHandler778) throws TException { checkReady(); - grantRole_call method_call = new grantRole_call(req, resultHandler662, this, ___protocolFactory, ___transport); + grantRole_call method_call = new grantRole_call(req, resultHandler778, 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 resultHandler663, TAsyncClient client659, TProtocolFactory protocolFactory660, TNonblockingTransport transport661) throws TException { - super(client659, protocolFactory660, transport661, resultHandler663, false); + public grantRole_call(GrantRoleReq req, AsyncMethodCallback resultHandler779, TAsyncClient client775, TProtocolFactory protocolFactory776, TNonblockingTransport transport777) throws TException { + super(client775, protocolFactory776, transport777, resultHandler779, false); this.req = req; } @@ -5529,17 +6688,17 @@ public ExecResp getResult() throws TException { } } - public void revokeRole(RevokeRoleReq req, AsyncMethodCallback resultHandler667) throws TException { + public void revokeRole(RevokeRoleReq req, AsyncMethodCallback resultHandler783) throws TException { checkReady(); - revokeRole_call method_call = new revokeRole_call(req, resultHandler667, this, ___protocolFactory, ___transport); + revokeRole_call method_call = new revokeRole_call(req, resultHandler783, 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 resultHandler668, TAsyncClient client664, TProtocolFactory protocolFactory665, TNonblockingTransport transport666) throws TException { - super(client664, protocolFactory665, transport666, resultHandler668, false); + public revokeRole_call(RevokeRoleReq req, AsyncMethodCallback resultHandler784, TAsyncClient client780, TProtocolFactory protocolFactory781, TNonblockingTransport transport782) throws TException { + super(client780, protocolFactory781, transport782, resultHandler784, false); this.req = req; } @@ -5561,17 +6720,17 @@ public ExecResp getResult() throws TException { } } - public void listUsers(ListUsersReq req, AsyncMethodCallback resultHandler672) throws TException { + public void listUsers(ListUsersReq req, AsyncMethodCallback resultHandler788) throws TException { checkReady(); - listUsers_call method_call = new listUsers_call(req, resultHandler672, this, ___protocolFactory, ___transport); + listUsers_call method_call = new listUsers_call(req, resultHandler788, 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 resultHandler673, TAsyncClient client669, TProtocolFactory protocolFactory670, TNonblockingTransport transport671) throws TException { - super(client669, protocolFactory670, transport671, resultHandler673, false); + public listUsers_call(ListUsersReq req, AsyncMethodCallback resultHandler789, TAsyncClient client785, TProtocolFactory protocolFactory786, TNonblockingTransport transport787) throws TException { + super(client785, protocolFactory786, transport787, resultHandler789, false); this.req = req; } @@ -5593,17 +6752,49 @@ public ListUsersResp getResult() throws TException { } } - public void listRoles(ListRolesReq req, AsyncMethodCallback resultHandler677) throws TException { + public void listIpWhitelists(ListIpWhitelistsReq req, AsyncMethodCallback resultHandler793) throws TException { + checkReady(); + listIpWhitelists_call method_call = new listIpWhitelists_call(req, resultHandler793, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class listIpWhitelists_call extends TAsyncMethodCall { + private ListIpWhitelistsReq req; + public listIpWhitelists_call(ListIpWhitelistsReq req, AsyncMethodCallback resultHandler794, TAsyncClient client790, TProtocolFactory protocolFactory791, TNonblockingTransport transport792) throws TException { + super(client790, protocolFactory791, transport792, resultHandler794, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("listIpWhitelists", TMessageType.CALL, 0)); + listIpWhitelists_args args = new listIpWhitelists_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ListIpWhitelistsResp 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_listIpWhitelists(); + } + } + + public void listRoles(ListRolesReq req, AsyncMethodCallback resultHandler798) throws TException { checkReady(); - listRoles_call method_call = new listRoles_call(req, resultHandler677, this, ___protocolFactory, ___transport); + listRoles_call method_call = new listRoles_call(req, resultHandler798, 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 resultHandler678, TAsyncClient client674, TProtocolFactory protocolFactory675, TNonblockingTransport transport676) throws TException { - super(client674, protocolFactory675, transport676, resultHandler678, false); + public listRoles_call(ListRolesReq req, AsyncMethodCallback resultHandler799, TAsyncClient client795, TProtocolFactory protocolFactory796, TNonblockingTransport transport797) throws TException { + super(client795, protocolFactory796, transport797, resultHandler799, false); this.req = req; } @@ -5625,17 +6816,17 @@ public ListRolesResp getResult() throws TException { } } - public void getUserRoles(GetUserRolesReq req, AsyncMethodCallback resultHandler682) throws TException { + public void getUserRoles(GetUserRolesReq req, AsyncMethodCallback resultHandler803) throws TException { checkReady(); - getUserRoles_call method_call = new getUserRoles_call(req, resultHandler682, this, ___protocolFactory, ___transport); + getUserRoles_call method_call = new getUserRoles_call(req, resultHandler803, 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 resultHandler683, TAsyncClient client679, TProtocolFactory protocolFactory680, TNonblockingTransport transport681) throws TException { - super(client679, protocolFactory680, transport681, resultHandler683, false); + public getUserRoles_call(GetUserRolesReq req, AsyncMethodCallback resultHandler804, TAsyncClient client800, TProtocolFactory protocolFactory801, TNonblockingTransport transport802) throws TException { + super(client800, protocolFactory801, transport802, resultHandler804, false); this.req = req; } @@ -5657,17 +6848,17 @@ public ListRolesResp getResult() throws TException { } } - public void changePassword(ChangePasswordReq req, AsyncMethodCallback resultHandler687) throws TException { + public void changePassword(ChangePasswordReq req, AsyncMethodCallback resultHandler808) throws TException { checkReady(); - changePassword_call method_call = new changePassword_call(req, resultHandler687, this, ___protocolFactory, ___transport); + changePassword_call method_call = new changePassword_call(req, resultHandler808, 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 resultHandler688, TAsyncClient client684, TProtocolFactory protocolFactory685, TNonblockingTransport transport686) throws TException { - super(client684, protocolFactory685, transport686, resultHandler688, false); + public changePassword_call(ChangePasswordReq req, AsyncMethodCallback resultHandler809, TAsyncClient client805, TProtocolFactory protocolFactory806, TNonblockingTransport transport807) throws TException { + super(client805, protocolFactory806, transport807, resultHandler809, false); this.req = req; } @@ -5689,17 +6880,81 @@ public ExecResp getResult() throws TException { } } - public void heartBeat(HBReq req, AsyncMethodCallback resultHandler692) throws TException { + public void alterUserPrivilege(AlterUserPrivilegeReq req, AsyncMethodCallback resultHandler813) throws TException { + checkReady(); + alterUserPrivilege_call method_call = new alterUserPrivilege_call(req, resultHandler813, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class alterUserPrivilege_call extends TAsyncMethodCall { + private AlterUserPrivilegeReq req; + public alterUserPrivilege_call(AlterUserPrivilegeReq req, AsyncMethodCallback resultHandler814, TAsyncClient client810, TProtocolFactory protocolFactory811, TNonblockingTransport transport812) throws TException { + super(client810, protocolFactory811, transport812, resultHandler814, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("alterUserPrivilege", TMessageType.CALL, 0)); + alterUserPrivilege_args args = new alterUserPrivilege_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_alterUserPrivilege(); + } + } + + public void listUserPrivilege(ListUserPrivilegeReq req, AsyncMethodCallback resultHandler818) throws TException { checkReady(); - heartBeat_call method_call = new heartBeat_call(req, resultHandler692, this, ___protocolFactory, ___transport); + listUserPrivilege_call method_call = new listUserPrivilege_call(req, resultHandler818, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class listUserPrivilege_call extends TAsyncMethodCall { + private ListUserPrivilegeReq req; + public listUserPrivilege_call(ListUserPrivilegeReq req, AsyncMethodCallback resultHandler819, TAsyncClient client815, TProtocolFactory protocolFactory816, TNonblockingTransport transport817) throws TException { + super(client815, protocolFactory816, transport817, resultHandler819, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("listUserPrivilege", TMessageType.CALL, 0)); + listUserPrivilege_args args = new listUserPrivilege_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ListUserPrivilegeResp 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_listUserPrivilege(); + } + } + + public void heartBeat(HBReq req, AsyncMethodCallback resultHandler823) throws TException { + checkReady(); + heartBeat_call method_call = new heartBeat_call(req, resultHandler823, 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 resultHandler693, TAsyncClient client689, TProtocolFactory protocolFactory690, TNonblockingTransport transport691) throws TException { - super(client689, protocolFactory690, transport691, resultHandler693, false); + public heartBeat_call(HBReq req, AsyncMethodCallback resultHandler824, TAsyncClient client820, TProtocolFactory protocolFactory821, TNonblockingTransport transport822) throws TException { + super(client820, protocolFactory821, transport822, resultHandler824, false); this.req = req; } @@ -5721,17 +6976,17 @@ public HBResp getResult() throws TException { } } - public void agentHeartbeat(AgentHBReq req, AsyncMethodCallback resultHandler697) throws TException { + public void agentHeartbeat(AgentHBReq req, AsyncMethodCallback resultHandler828) throws TException { checkReady(); - agentHeartbeat_call method_call = new agentHeartbeat_call(req, resultHandler697, this, ___protocolFactory, ___transport); + agentHeartbeat_call method_call = new agentHeartbeat_call(req, resultHandler828, 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 resultHandler698, TAsyncClient client694, TProtocolFactory protocolFactory695, TNonblockingTransport transport696) throws TException { - super(client694, protocolFactory695, transport696, resultHandler698, false); + public agentHeartbeat_call(AgentHBReq req, AsyncMethodCallback resultHandler829, TAsyncClient client825, TProtocolFactory protocolFactory826, TNonblockingTransport transport827) throws TException { + super(client825, protocolFactory826, transport827, resultHandler829, false); this.req = req; } @@ -5753,17 +7008,17 @@ public AgentHBResp getResult() throws TException { } } - public void regConfig(RegConfigReq req, AsyncMethodCallback resultHandler702) throws TException { + public void regConfig(RegConfigReq req, AsyncMethodCallback resultHandler833) throws TException { checkReady(); - regConfig_call method_call = new regConfig_call(req, resultHandler702, this, ___protocolFactory, ___transport); + regConfig_call method_call = new regConfig_call(req, resultHandler833, 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 resultHandler703, TAsyncClient client699, TProtocolFactory protocolFactory700, TNonblockingTransport transport701) throws TException { - super(client699, protocolFactory700, transport701, resultHandler703, false); + public regConfig_call(RegConfigReq req, AsyncMethodCallback resultHandler834, TAsyncClient client830, TProtocolFactory protocolFactory831, TNonblockingTransport transport832) throws TException { + super(client830, protocolFactory831, transport832, resultHandler834, false); this.req = req; } @@ -5785,17 +7040,17 @@ public ExecResp getResult() throws TException { } } - public void getConfig(GetConfigReq req, AsyncMethodCallback resultHandler707) throws TException { + public void getConfig(GetConfigReq req, AsyncMethodCallback resultHandler838) throws TException { checkReady(); - getConfig_call method_call = new getConfig_call(req, resultHandler707, this, ___protocolFactory, ___transport); + getConfig_call method_call = new getConfig_call(req, resultHandler838, 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 resultHandler708, TAsyncClient client704, TProtocolFactory protocolFactory705, TNonblockingTransport transport706) throws TException { - super(client704, protocolFactory705, transport706, resultHandler708, false); + public getConfig_call(GetConfigReq req, AsyncMethodCallback resultHandler839, TAsyncClient client835, TProtocolFactory protocolFactory836, TNonblockingTransport transport837) throws TException { + super(client835, protocolFactory836, transport837, resultHandler839, false); this.req = req; } @@ -5817,17 +7072,17 @@ public GetConfigResp getResult() throws TException { } } - public void setConfig(SetConfigReq req, AsyncMethodCallback resultHandler712) throws TException { + public void setConfig(SetConfigReq req, AsyncMethodCallback resultHandler843) throws TException { checkReady(); - setConfig_call method_call = new setConfig_call(req, resultHandler712, this, ___protocolFactory, ___transport); + setConfig_call method_call = new setConfig_call(req, resultHandler843, 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 resultHandler713, TAsyncClient client709, TProtocolFactory protocolFactory710, TNonblockingTransport transport711) throws TException { - super(client709, protocolFactory710, transport711, resultHandler713, false); + public setConfig_call(SetConfigReq req, AsyncMethodCallback resultHandler844, TAsyncClient client840, TProtocolFactory protocolFactory841, TNonblockingTransport transport842) throws TException { + super(client840, protocolFactory841, transport842, resultHandler844, false); this.req = req; } @@ -5849,17 +7104,17 @@ public ExecResp getResult() throws TException { } } - public void listConfigs(ListConfigsReq req, AsyncMethodCallback resultHandler717) throws TException { + public void listConfigs(ListConfigsReq req, AsyncMethodCallback resultHandler848) throws TException { checkReady(); - listConfigs_call method_call = new listConfigs_call(req, resultHandler717, this, ___protocolFactory, ___transport); + listConfigs_call method_call = new listConfigs_call(req, resultHandler848, 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 resultHandler718, TAsyncClient client714, TProtocolFactory protocolFactory715, TNonblockingTransport transport716) throws TException { - super(client714, protocolFactory715, transport716, resultHandler718, false); + public listConfigs_call(ListConfigsReq req, AsyncMethodCallback resultHandler849, TAsyncClient client845, TProtocolFactory protocolFactory846, TNonblockingTransport transport847) throws TException { + super(client845, protocolFactory846, transport847, resultHandler849, false); this.req = req; } @@ -5881,17 +7136,17 @@ public ListConfigsResp getResult() throws TException { } } - public void createSnapshot(CreateSnapshotReq req, AsyncMethodCallback resultHandler722) throws TException { + public void createSnapshot(CreateSnapshotReq req, AsyncMethodCallback resultHandler853) throws TException { checkReady(); - createSnapshot_call method_call = new createSnapshot_call(req, resultHandler722, this, ___protocolFactory, ___transport); + createSnapshot_call method_call = new createSnapshot_call(req, resultHandler853, 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 resultHandler723, TAsyncClient client719, TProtocolFactory protocolFactory720, TNonblockingTransport transport721) throws TException { - super(client719, protocolFactory720, transport721, resultHandler723, false); + public createSnapshot_call(CreateSnapshotReq req, AsyncMethodCallback resultHandler854, TAsyncClient client850, TProtocolFactory protocolFactory851, TNonblockingTransport transport852) throws TException { + super(client850, protocolFactory851, transport852, resultHandler854, false); this.req = req; } @@ -5913,17 +7168,17 @@ public ExecResp getResult() throws TException { } } - public void dropSnapshot(DropSnapshotReq req, AsyncMethodCallback resultHandler727) throws TException { + public void dropSnapshot(DropSnapshotReq req, AsyncMethodCallback resultHandler858) throws TException { checkReady(); - dropSnapshot_call method_call = new dropSnapshot_call(req, resultHandler727, this, ___protocolFactory, ___transport); + dropSnapshot_call method_call = new dropSnapshot_call(req, resultHandler858, 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 resultHandler728, TAsyncClient client724, TProtocolFactory protocolFactory725, TNonblockingTransport transport726) throws TException { - super(client724, protocolFactory725, transport726, resultHandler728, false); + public dropSnapshot_call(DropSnapshotReq req, AsyncMethodCallback resultHandler859, TAsyncClient client855, TProtocolFactory protocolFactory856, TNonblockingTransport transport857) throws TException { + super(client855, protocolFactory856, transport857, resultHandler859, false); this.req = req; } @@ -5945,17 +7200,17 @@ public ExecResp getResult() throws TException { } } - public void listSnapshots(ListSnapshotsReq req, AsyncMethodCallback resultHandler732) throws TException { + public void listSnapshots(ListSnapshotsReq req, AsyncMethodCallback resultHandler863) throws TException { checkReady(); - listSnapshots_call method_call = new listSnapshots_call(req, resultHandler732, this, ___protocolFactory, ___transport); + listSnapshots_call method_call = new listSnapshots_call(req, resultHandler863, 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 resultHandler733, TAsyncClient client729, TProtocolFactory protocolFactory730, TNonblockingTransport transport731) throws TException { - super(client729, protocolFactory730, transport731, resultHandler733, false); + public listSnapshots_call(ListSnapshotsReq req, AsyncMethodCallback resultHandler864, TAsyncClient client860, TProtocolFactory protocolFactory861, TNonblockingTransport transport862) throws TException { + super(client860, protocolFactory861, transport862, resultHandler864, false); this.req = req; } @@ -5977,17 +7232,17 @@ public ListSnapshotsResp getResult() throws TException { } } - public void runAdminJob(AdminJobReq req, AsyncMethodCallback resultHandler737) throws TException { + public void runAdminJob(AdminJobReq req, AsyncMethodCallback resultHandler868) throws TException { checkReady(); - runAdminJob_call method_call = new runAdminJob_call(req, resultHandler737, this, ___protocolFactory, ___transport); + runAdminJob_call method_call = new runAdminJob_call(req, resultHandler868, 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 resultHandler738, TAsyncClient client734, TProtocolFactory protocolFactory735, TNonblockingTransport transport736) throws TException { - super(client734, protocolFactory735, transport736, resultHandler738, false); + public runAdminJob_call(AdminJobReq req, AsyncMethodCallback resultHandler869, TAsyncClient client865, TProtocolFactory protocolFactory866, TNonblockingTransport transport867) throws TException { + super(client865, protocolFactory866, transport867, resultHandler869, false); this.req = req; } @@ -6009,17 +7264,17 @@ public AdminJobResp getResult() throws TException { } } - public void mergeZone(MergeZoneReq req, AsyncMethodCallback resultHandler742) throws TException { + public void mergeZone(MergeZoneReq req, AsyncMethodCallback resultHandler873) throws TException { checkReady(); - mergeZone_call method_call = new mergeZone_call(req, resultHandler742, this, ___protocolFactory, ___transport); + mergeZone_call method_call = new mergeZone_call(req, resultHandler873, 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 resultHandler743, TAsyncClient client739, TProtocolFactory protocolFactory740, TNonblockingTransport transport741) throws TException { - super(client739, protocolFactory740, transport741, resultHandler743, false); + public mergeZone_call(MergeZoneReq req, AsyncMethodCallback resultHandler874, TAsyncClient client870, TProtocolFactory protocolFactory871, TNonblockingTransport transport872) throws TException { + super(client870, protocolFactory871, transport872, resultHandler874, false); this.req = req; } @@ -6041,17 +7296,17 @@ public ExecResp getResult() throws TException { } } - public void dropZone(DropZoneReq req, AsyncMethodCallback resultHandler747) throws TException { + public void dropZone(DropZoneReq req, AsyncMethodCallback resultHandler878) throws TException { checkReady(); - dropZone_call method_call = new dropZone_call(req, resultHandler747, this, ___protocolFactory, ___transport); + dropZone_call method_call = new dropZone_call(req, resultHandler878, 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 resultHandler748, TAsyncClient client744, TProtocolFactory protocolFactory745, TNonblockingTransport transport746) throws TException { - super(client744, protocolFactory745, transport746, resultHandler748, false); + public dropZone_call(DropZoneReq req, AsyncMethodCallback resultHandler879, TAsyncClient client875, TProtocolFactory protocolFactory876, TNonblockingTransport transport877) throws TException { + super(client875, protocolFactory876, transport877, resultHandler879, false); this.req = req; } @@ -6073,17 +7328,17 @@ public ExecResp getResult() throws TException { } } - public void divideZone(DivideZoneReq req, AsyncMethodCallback resultHandler752) throws TException { + public void divideZone(DivideZoneReq req, AsyncMethodCallback resultHandler883) throws TException { checkReady(); - divideZone_call method_call = new divideZone_call(req, resultHandler752, this, ___protocolFactory, ___transport); + divideZone_call method_call = new divideZone_call(req, resultHandler883, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class divideZone_call extends TAsyncMethodCall { private DivideZoneReq req; - public divideZone_call(DivideZoneReq req, AsyncMethodCallback resultHandler753, TAsyncClient client749, TProtocolFactory protocolFactory750, TNonblockingTransport transport751) throws TException { - super(client749, protocolFactory750, transport751, resultHandler753, false); + public divideZone_call(DivideZoneReq req, AsyncMethodCallback resultHandler884, TAsyncClient client880, TProtocolFactory protocolFactory881, TNonblockingTransport transport882) throws TException { + super(client880, protocolFactory881, transport882, resultHandler884, false); this.req = req; } @@ -6105,17 +7360,17 @@ public ExecResp getResult() throws TException { } } - public void renameZone(RenameZoneReq req, AsyncMethodCallback resultHandler757) throws TException { + public void renameZone(RenameZoneReq req, AsyncMethodCallback resultHandler888) throws TException { checkReady(); - renameZone_call method_call = new renameZone_call(req, resultHandler757, this, ___protocolFactory, ___transport); + renameZone_call method_call = new renameZone_call(req, resultHandler888, 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 resultHandler758, TAsyncClient client754, TProtocolFactory protocolFactory755, TNonblockingTransport transport756) throws TException { - super(client754, protocolFactory755, transport756, resultHandler758, false); + public renameZone_call(RenameZoneReq req, AsyncMethodCallback resultHandler889, TAsyncClient client885, TProtocolFactory protocolFactory886, TNonblockingTransport transport887) throws TException { + super(client885, protocolFactory886, transport887, resultHandler889, false); this.req = req; } @@ -6137,17 +7392,17 @@ public ExecResp getResult() throws TException { } } - public void getZone(GetZoneReq req, AsyncMethodCallback resultHandler762) throws TException { + public void getZone(GetZoneReq req, AsyncMethodCallback resultHandler893) throws TException { checkReady(); - getZone_call method_call = new getZone_call(req, resultHandler762, this, ___protocolFactory, ___transport); + getZone_call method_call = new getZone_call(req, resultHandler893, 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 resultHandler763, TAsyncClient client759, TProtocolFactory protocolFactory760, TNonblockingTransport transport761) throws TException { - super(client759, protocolFactory760, transport761, resultHandler763, false); + public getZone_call(GetZoneReq req, AsyncMethodCallback resultHandler894, TAsyncClient client890, TProtocolFactory protocolFactory891, TNonblockingTransport transport892) throws TException { + super(client890, protocolFactory891, transport892, resultHandler894, false); this.req = req; } @@ -6169,17 +7424,17 @@ public GetZoneResp getResult() throws TException { } } - public void listZones(ListZonesReq req, AsyncMethodCallback resultHandler767) throws TException { + public void listZones(ListZonesReq req, AsyncMethodCallback resultHandler898) throws TException { checkReady(); - listZones_call method_call = new listZones_call(req, resultHandler767, this, ___protocolFactory, ___transport); + listZones_call method_call = new listZones_call(req, resultHandler898, 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 resultHandler768, TAsyncClient client764, TProtocolFactory protocolFactory765, TNonblockingTransport transport766) throws TException { - super(client764, protocolFactory765, transport766, resultHandler768, false); + public listZones_call(ListZonesReq req, AsyncMethodCallback resultHandler899, TAsyncClient client895, TProtocolFactory protocolFactory896, TNonblockingTransport transport897) throws TException { + super(client895, protocolFactory896, transport897, resultHandler899, false); this.req = req; } @@ -6201,17 +7456,17 @@ public ListZonesResp getResult() throws TException { } } - public void addListener(AddListenerReq req, AsyncMethodCallback resultHandler772) throws TException { + public void addListener(AddListenerReq req, AsyncMethodCallback resultHandler903) throws TException { checkReady(); - addListener_call method_call = new addListener_call(req, resultHandler772, this, ___protocolFactory, ___transport); + addListener_call method_call = new addListener_call(req, resultHandler903, 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 resultHandler773, TAsyncClient client769, TProtocolFactory protocolFactory770, TNonblockingTransport transport771) throws TException { - super(client769, protocolFactory770, transport771, resultHandler773, false); + public addListener_call(AddListenerReq req, AsyncMethodCallback resultHandler904, TAsyncClient client900, TProtocolFactory protocolFactory901, TNonblockingTransport transport902) throws TException { + super(client900, protocolFactory901, transport902, resultHandler904, false); this.req = req; } @@ -6233,17 +7488,17 @@ public ExecResp getResult() throws TException { } } - public void removeListener(RemoveListenerReq req, AsyncMethodCallback resultHandler777) throws TException { + public void removeListener(RemoveListenerReq req, AsyncMethodCallback resultHandler908) throws TException { checkReady(); - removeListener_call method_call = new removeListener_call(req, resultHandler777, this, ___protocolFactory, ___transport); + removeListener_call method_call = new removeListener_call(req, resultHandler908, 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 resultHandler778, TAsyncClient client774, TProtocolFactory protocolFactory775, TNonblockingTransport transport776) throws TException { - super(client774, protocolFactory775, transport776, resultHandler778, false); + public removeListener_call(RemoveListenerReq req, AsyncMethodCallback resultHandler909, TAsyncClient client905, TProtocolFactory protocolFactory906, TNonblockingTransport transport907) throws TException { + super(client905, protocolFactory906, transport907, resultHandler909, false); this.req = req; } @@ -6265,49 +7520,305 @@ public ExecResp getResult() throws TException { } } - public void listListener(ListListenerReq req, AsyncMethodCallback resultHandler782) throws TException { + public void listListeners(ListListenersReq req, AsyncMethodCallback resultHandler913) throws TException { + checkReady(); + listListeners_call method_call = new listListeners_call(req, resultHandler913, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class listListeners_call extends TAsyncMethodCall { + private ListListenersReq req; + public listListeners_call(ListListenersReq req, AsyncMethodCallback resultHandler914, TAsyncClient client910, TProtocolFactory protocolFactory911, TNonblockingTransport transport912) throws TException { + super(client910, protocolFactory911, transport912, resultHandler914, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("listListeners", TMessageType.CALL, 0)); + listListeners_args args = new listListeners_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ListListenersResp 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_listListeners(); + } + } + + public void listListenerDrainers(ListListenerDrainersReq req, AsyncMethodCallback resultHandler918) throws TException { + checkReady(); + listListenerDrainers_call method_call = new listListenerDrainers_call(req, resultHandler918, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class listListenerDrainers_call extends TAsyncMethodCall { + private ListListenerDrainersReq req; + public listListenerDrainers_call(ListListenerDrainersReq req, AsyncMethodCallback resultHandler919, TAsyncClient client915, TProtocolFactory protocolFactory916, TNonblockingTransport transport917) throws TException { + super(client915, protocolFactory916, transport917, resultHandler919, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("listListenerDrainers", TMessageType.CALL, 0)); + listListenerDrainers_args args = new listListenerDrainers_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ListListenerDrainersResp 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_listListenerDrainers(); + } + } + + public void stopSync(StopSyncReq req, AsyncMethodCallback resultHandler923) throws TException { + checkReady(); + stopSync_call method_call = new stopSync_call(req, resultHandler923, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class stopSync_call extends TAsyncMethodCall { + private StopSyncReq req; + public stopSync_call(StopSyncReq req, AsyncMethodCallback resultHandler924, TAsyncClient client920, TProtocolFactory protocolFactory921, TNonblockingTransport transport922) throws TException { + super(client920, protocolFactory921, transport922, resultHandler924, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("stopSync", TMessageType.CALL, 0)); + stopSync_args args = new stopSync_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_stopSync(); + } + } + + public void restartSync(RestartSyncReq req, AsyncMethodCallback resultHandler928) throws TException { + checkReady(); + restartSync_call method_call = new restartSync_call(req, resultHandler928, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class restartSync_call extends TAsyncMethodCall { + private RestartSyncReq req; + public restartSync_call(RestartSyncReq req, AsyncMethodCallback resultHandler929, TAsyncClient client925, TProtocolFactory protocolFactory926, TNonblockingTransport transport927) throws TException { + super(client925, protocolFactory926, transport927, resultHandler929, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("restartSync", TMessageType.CALL, 0)); + restartSync_args args = new restartSync_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_restartSync(); + } + } + + public void listSyncStatus(ListSyncStatusReq req, AsyncMethodCallback resultHandler933) throws TException { + checkReady(); + listSyncStatus_call method_call = new listSyncStatus_call(req, resultHandler933, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class listSyncStatus_call extends TAsyncMethodCall { + private ListSyncStatusReq req; + public listSyncStatus_call(ListSyncStatusReq req, AsyncMethodCallback resultHandler934, TAsyncClient client930, TProtocolFactory protocolFactory931, TNonblockingTransport transport932) throws TException { + super(client930, protocolFactory931, transport932, resultHandler934, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("listSyncStatus", TMessageType.CALL, 0)); + listSyncStatus_args args = new listSyncStatus_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ListSyncStatusResp 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_listSyncStatus(); + } + } + + public void addDrainer(AddDrainerReq req, AsyncMethodCallback resultHandler938) throws TException { + checkReady(); + addDrainer_call method_call = new addDrainer_call(req, resultHandler938, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class addDrainer_call extends TAsyncMethodCall { + private AddDrainerReq req; + public addDrainer_call(AddDrainerReq req, AsyncMethodCallback resultHandler939, TAsyncClient client935, TProtocolFactory protocolFactory936, TNonblockingTransport transport937) throws TException { + super(client935, protocolFactory936, transport937, resultHandler939, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("addDrainer", TMessageType.CALL, 0)); + addDrainer_args args = new addDrainer_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_addDrainer(); + } + } + + public void removeDrainer(RemoveDrainerReq req, AsyncMethodCallback resultHandler943) throws TException { + checkReady(); + removeDrainer_call method_call = new removeDrainer_call(req, resultHandler943, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class removeDrainer_call extends TAsyncMethodCall { + private RemoveDrainerReq req; + public removeDrainer_call(RemoveDrainerReq req, AsyncMethodCallback resultHandler944, TAsyncClient client940, TProtocolFactory protocolFactory941, TNonblockingTransport transport942) throws TException { + super(client940, protocolFactory941, transport942, resultHandler944, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("removeDrainer", TMessageType.CALL, 0)); + removeDrainer_args args = new removeDrainer_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_removeDrainer(); + } + } + + public void listDrainers(ListDrainersReq req, AsyncMethodCallback resultHandler948) throws TException { + checkReady(); + listDrainers_call method_call = new listDrainers_call(req, resultHandler948, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class listDrainers_call extends TAsyncMethodCall { + private ListDrainersReq req; + public listDrainers_call(ListDrainersReq req, AsyncMethodCallback resultHandler949, TAsyncClient client945, TProtocolFactory protocolFactory946, TNonblockingTransport transport947) throws TException { + super(client945, protocolFactory946, transport947, resultHandler949, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("listDrainers", TMessageType.CALL, 0)); + listDrainers_args args = new listDrainers_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ListDrainersResp 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_listDrainers(); + } + } + + public void listDrainerSyncStatus(ListDrainerSyncStatusReq req, AsyncMethodCallback resultHandler953) throws TException { checkReady(); - listListener_call method_call = new listListener_call(req, resultHandler782, this, ___protocolFactory, ___transport); + listDrainerSyncStatus_call method_call = new listDrainerSyncStatus_call(req, resultHandler953, 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 resultHandler783, TAsyncClient client779, TProtocolFactory protocolFactory780, TNonblockingTransport transport781) throws TException { - super(client779, protocolFactory780, transport781, resultHandler783, false); + public static class listDrainerSyncStatus_call extends TAsyncMethodCall { + private ListDrainerSyncStatusReq req; + public listDrainerSyncStatus_call(ListDrainerSyncStatusReq req, AsyncMethodCallback resultHandler954, TAsyncClient client950, TProtocolFactory protocolFactory951, TNonblockingTransport transport952) throws TException { + super(client950, protocolFactory951, transport952, resultHandler954, false); this.req = req; } public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("listListener", TMessageType.CALL, 0)); - listListener_args args = new listListener_args(); + prot.writeMessageBegin(new TMessage("listDrainerSyncStatus", TMessageType.CALL, 0)); + listDrainerSyncStatus_args args = new listDrainerSyncStatus_args(); args.setReq(req); args.write(prot); prot.writeMessageEnd(); } - public ListListenerResp getResult() throws TException { + public ListDrainerSyncStatusResp 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_listListener(); + return (new Client(prot)).recv_listDrainerSyncStatus(); } } - public void getStats(GetStatsReq req, AsyncMethodCallback resultHandler787) throws TException { + public void getStats(GetStatsReq req, AsyncMethodCallback resultHandler958) throws TException { checkReady(); - getStats_call method_call = new getStats_call(req, resultHandler787, this, ___protocolFactory, ___transport); + getStats_call method_call = new getStats_call(req, resultHandler958, 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 resultHandler788, TAsyncClient client784, TProtocolFactory protocolFactory785, TNonblockingTransport transport786) throws TException { - super(client784, protocolFactory785, transport786, resultHandler788, false); + public getStats_call(GetStatsReq req, AsyncMethodCallback resultHandler959, TAsyncClient client955, TProtocolFactory protocolFactory956, TNonblockingTransport transport957) throws TException { + super(client955, protocolFactory956, transport957, resultHandler959, false); this.req = req; } @@ -6329,17 +7840,17 @@ public GetStatsResp getResult() throws TException { } } - public void signInService(SignInServiceReq req, AsyncMethodCallback resultHandler792) throws TException { + public void signInService(SignInServiceReq req, AsyncMethodCallback resultHandler963) throws TException { checkReady(); - signInService_call method_call = new signInService_call(req, resultHandler792, this, ___protocolFactory, ___transport); + signInService_call method_call = new signInService_call(req, resultHandler963, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class signInService_call extends TAsyncMethodCall { private SignInServiceReq req; - public signInService_call(SignInServiceReq req, AsyncMethodCallback resultHandler793, TAsyncClient client789, TProtocolFactory protocolFactory790, TNonblockingTransport transport791) throws TException { - super(client789, protocolFactory790, transport791, resultHandler793, false); + public signInService_call(SignInServiceReq req, AsyncMethodCallback resultHandler964, TAsyncClient client960, TProtocolFactory protocolFactory961, TNonblockingTransport transport962) throws TException { + super(client960, protocolFactory961, transport962, resultHandler964, false); this.req = req; } @@ -6361,17 +7872,17 @@ public ExecResp getResult() throws TException { } } - public void signOutService(SignOutServiceReq req, AsyncMethodCallback resultHandler797) throws TException { + public void signOutService(SignOutServiceReq req, AsyncMethodCallback resultHandler968) throws TException { checkReady(); - signOutService_call method_call = new signOutService_call(req, resultHandler797, this, ___protocolFactory, ___transport); + signOutService_call method_call = new signOutService_call(req, resultHandler968, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class signOutService_call extends TAsyncMethodCall { private SignOutServiceReq req; - public signOutService_call(SignOutServiceReq req, AsyncMethodCallback resultHandler798, TAsyncClient client794, TProtocolFactory protocolFactory795, TNonblockingTransport transport796) throws TException { - super(client794, protocolFactory795, transport796, resultHandler798, false); + public signOutService_call(SignOutServiceReq req, AsyncMethodCallback resultHandler969, TAsyncClient client965, TProtocolFactory protocolFactory966, TNonblockingTransport transport967) throws TException { + super(client965, protocolFactory966, transport967, resultHandler969, false); this.req = req; } @@ -6393,17 +7904,17 @@ public ExecResp getResult() throws TException { } } - public void listServiceClients(ListServiceClientsReq req, AsyncMethodCallback resultHandler802) throws TException { + public void listServiceClients(ListServiceClientsReq req, AsyncMethodCallback resultHandler973) throws TException { checkReady(); - listServiceClients_call method_call = new listServiceClients_call(req, resultHandler802, this, ___protocolFactory, ___transport); + listServiceClients_call method_call = new listServiceClients_call(req, resultHandler973, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listServiceClients_call extends TAsyncMethodCall { private ListServiceClientsReq req; - public listServiceClients_call(ListServiceClientsReq req, AsyncMethodCallback resultHandler803, TAsyncClient client799, TProtocolFactory protocolFactory800, TNonblockingTransport transport801) throws TException { - super(client799, protocolFactory800, transport801, resultHandler803, false); + public listServiceClients_call(ListServiceClientsReq req, AsyncMethodCallback resultHandler974, TAsyncClient client970, TProtocolFactory protocolFactory971, TNonblockingTransport transport972) throws TException { + super(client970, protocolFactory971, transport972, resultHandler974, false); this.req = req; } @@ -6425,17 +7936,113 @@ public ListServiceClientsResp getResult() throws TException { } } - public void createFTIndex(CreateFTIndexReq req, AsyncMethodCallback resultHandler807) throws TException { + public void signInSpaceService(SignInSpaceServiceReq req, AsyncMethodCallback resultHandler978) throws TException { checkReady(); - createFTIndex_call method_call = new createFTIndex_call(req, resultHandler807, this, ___protocolFactory, ___transport); + signInSpaceService_call method_call = new signInSpaceService_call(req, resultHandler978, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class signInSpaceService_call extends TAsyncMethodCall { + private SignInSpaceServiceReq req; + public signInSpaceService_call(SignInSpaceServiceReq req, AsyncMethodCallback resultHandler979, TAsyncClient client975, TProtocolFactory protocolFactory976, TNonblockingTransport transport977) throws TException { + super(client975, protocolFactory976, transport977, resultHandler979, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("signInSpaceService", TMessageType.CALL, 0)); + signInSpaceService_args args = new signInSpaceService_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_signInSpaceService(); + } + } + + public void signOutSpaceService(SignOutSpaceServiceReq req, AsyncMethodCallback resultHandler983) throws TException { + checkReady(); + signOutSpaceService_call method_call = new signOutSpaceService_call(req, resultHandler983, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class signOutSpaceService_call extends TAsyncMethodCall { + private SignOutSpaceServiceReq req; + public signOutSpaceService_call(SignOutSpaceServiceReq req, AsyncMethodCallback resultHandler984, TAsyncClient client980, TProtocolFactory protocolFactory981, TNonblockingTransport transport982) throws TException { + super(client980, protocolFactory981, transport982, resultHandler984, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("signOutSpaceService", TMessageType.CALL, 0)); + signOutSpaceService_args args = new signOutSpaceService_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_signOutSpaceService(); + } + } + + public void listSpaceServiceClients(ListSpaceServiceClientsReq req, AsyncMethodCallback resultHandler988) throws TException { + checkReady(); + listSpaceServiceClients_call method_call = new listSpaceServiceClients_call(req, resultHandler988, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class listSpaceServiceClients_call extends TAsyncMethodCall { + private ListSpaceServiceClientsReq req; + public listSpaceServiceClients_call(ListSpaceServiceClientsReq req, AsyncMethodCallback resultHandler989, TAsyncClient client985, TProtocolFactory protocolFactory986, TNonblockingTransport transport987) throws TException { + super(client985, protocolFactory986, transport987, resultHandler989, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("listSpaceServiceClients", TMessageType.CALL, 0)); + listSpaceServiceClients_args args = new listSpaceServiceClients_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ListSpaceServiceClientsResp 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_listSpaceServiceClients(); + } + } + + public void createFTIndex(CreateFTIndexReq req, AsyncMethodCallback resultHandler993) throws TException { + checkReady(); + createFTIndex_call method_call = new createFTIndex_call(req, resultHandler993, 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 resultHandler808, TAsyncClient client804, TProtocolFactory protocolFactory805, TNonblockingTransport transport806) throws TException { - super(client804, protocolFactory805, transport806, resultHandler808, false); + public createFTIndex_call(CreateFTIndexReq req, AsyncMethodCallback resultHandler994, TAsyncClient client990, TProtocolFactory protocolFactory991, TNonblockingTransport transport992) throws TException { + super(client990, protocolFactory991, transport992, resultHandler994, false); this.req = req; } @@ -6457,17 +8064,17 @@ public ExecResp getResult() throws TException { } } - public void dropFTIndex(DropFTIndexReq req, AsyncMethodCallback resultHandler812) throws TException { + public void dropFTIndex(DropFTIndexReq req, AsyncMethodCallback resultHandler998) throws TException { checkReady(); - dropFTIndex_call method_call = new dropFTIndex_call(req, resultHandler812, this, ___protocolFactory, ___transport); + dropFTIndex_call method_call = new dropFTIndex_call(req, resultHandler998, 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 resultHandler813, TAsyncClient client809, TProtocolFactory protocolFactory810, TNonblockingTransport transport811) throws TException { - super(client809, protocolFactory810, transport811, resultHandler813, false); + public dropFTIndex_call(DropFTIndexReq req, AsyncMethodCallback resultHandler999, TAsyncClient client995, TProtocolFactory protocolFactory996, TNonblockingTransport transport997) throws TException { + super(client995, protocolFactory996, transport997, resultHandler999, false); this.req = req; } @@ -6489,17 +8096,17 @@ public ExecResp getResult() throws TException { } } - public void listFTIndexes(ListFTIndexesReq req, AsyncMethodCallback resultHandler817) throws TException { + public void listFTIndexes(ListFTIndexesReq req, AsyncMethodCallback resultHandler1003) throws TException { checkReady(); - listFTIndexes_call method_call = new listFTIndexes_call(req, resultHandler817, this, ___protocolFactory, ___transport); + listFTIndexes_call method_call = new listFTIndexes_call(req, resultHandler1003, 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 resultHandler818, TAsyncClient client814, TProtocolFactory protocolFactory815, TNonblockingTransport transport816) throws TException { - super(client814, protocolFactory815, transport816, resultHandler818, false); + public listFTIndexes_call(ListFTIndexesReq req, AsyncMethodCallback resultHandler1004, TAsyncClient client1000, TProtocolFactory protocolFactory1001, TNonblockingTransport transport1002) throws TException { + super(client1000, protocolFactory1001, transport1002, resultHandler1004, false); this.req = req; } @@ -6521,17 +8128,17 @@ public ListFTIndexesResp getResult() throws TException { } } - public void createSession(CreateSessionReq req, AsyncMethodCallback resultHandler822) throws TException { + public void createSession(CreateSessionReq req, AsyncMethodCallback resultHandler1008) throws TException { checkReady(); - createSession_call method_call = new createSession_call(req, resultHandler822, this, ___protocolFactory, ___transport); + createSession_call method_call = new createSession_call(req, resultHandler1008, 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 resultHandler823, TAsyncClient client819, TProtocolFactory protocolFactory820, TNonblockingTransport transport821) throws TException { - super(client819, protocolFactory820, transport821, resultHandler823, false); + public createSession_call(CreateSessionReq req, AsyncMethodCallback resultHandler1009, TAsyncClient client1005, TProtocolFactory protocolFactory1006, TNonblockingTransport transport1007) throws TException { + super(client1005, protocolFactory1006, transport1007, resultHandler1009, false); this.req = req; } @@ -6553,17 +8160,17 @@ public CreateSessionResp getResult() throws TException { } } - public void updateSessions(UpdateSessionsReq req, AsyncMethodCallback resultHandler827) throws TException { + public void updateSessions(UpdateSessionsReq req, AsyncMethodCallback resultHandler1013) throws TException { checkReady(); - updateSessions_call method_call = new updateSessions_call(req, resultHandler827, this, ___protocolFactory, ___transport); + updateSessions_call method_call = new updateSessions_call(req, resultHandler1013, 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 resultHandler828, TAsyncClient client824, TProtocolFactory protocolFactory825, TNonblockingTransport transport826) throws TException { - super(client824, protocolFactory825, transport826, resultHandler828, false); + public updateSessions_call(UpdateSessionsReq req, AsyncMethodCallback resultHandler1014, TAsyncClient client1010, TProtocolFactory protocolFactory1011, TNonblockingTransport transport1012) throws TException { + super(client1010, protocolFactory1011, transport1012, resultHandler1014, false); this.req = req; } @@ -6585,17 +8192,17 @@ public UpdateSessionsResp getResult() throws TException { } } - public void listSessions(ListSessionsReq req, AsyncMethodCallback resultHandler832) throws TException { + public void listSessions(ListSessionsReq req, AsyncMethodCallback resultHandler1018) throws TException { checkReady(); - listSessions_call method_call = new listSessions_call(req, resultHandler832, this, ___protocolFactory, ___transport); + listSessions_call method_call = new listSessions_call(req, resultHandler1018, 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 resultHandler833, TAsyncClient client829, TProtocolFactory protocolFactory830, TNonblockingTransport transport831) throws TException { - super(client829, protocolFactory830, transport831, resultHandler833, false); + public listSessions_call(ListSessionsReq req, AsyncMethodCallback resultHandler1019, TAsyncClient client1015, TProtocolFactory protocolFactory1016, TNonblockingTransport transport1017) throws TException { + super(client1015, protocolFactory1016, transport1017, resultHandler1019, false); this.req = req; } @@ -6617,17 +8224,17 @@ public ListSessionsResp getResult() throws TException { } } - public void getSession(GetSessionReq req, AsyncMethodCallback resultHandler837) throws TException { + public void getSession(GetSessionReq req, AsyncMethodCallback resultHandler1023) throws TException { checkReady(); - getSession_call method_call = new getSession_call(req, resultHandler837, this, ___protocolFactory, ___transport); + getSession_call method_call = new getSession_call(req, resultHandler1023, 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 resultHandler838, TAsyncClient client834, TProtocolFactory protocolFactory835, TNonblockingTransport transport836) throws TException { - super(client834, protocolFactory835, transport836, resultHandler838, false); + public getSession_call(GetSessionReq req, AsyncMethodCallback resultHandler1024, TAsyncClient client1020, TProtocolFactory protocolFactory1021, TNonblockingTransport transport1022) throws TException { + super(client1020, protocolFactory1021, transport1022, resultHandler1024, false); this.req = req; } @@ -6649,17 +8256,17 @@ public GetSessionResp getResult() throws TException { } } - public void removeSession(RemoveSessionReq req, AsyncMethodCallback resultHandler842) throws TException { + public void removeSession(RemoveSessionReq req, AsyncMethodCallback resultHandler1028) throws TException { checkReady(); - removeSession_call method_call = new removeSession_call(req, resultHandler842, this, ___protocolFactory, ___transport); + removeSession_call method_call = new removeSession_call(req, resultHandler1028, 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 resultHandler843, TAsyncClient client839, TProtocolFactory protocolFactory840, TNonblockingTransport transport841) throws TException { - super(client839, protocolFactory840, transport841, resultHandler843, false); + public removeSession_call(RemoveSessionReq req, AsyncMethodCallback resultHandler1029, TAsyncClient client1025, TProtocolFactory protocolFactory1026, TNonblockingTransport transport1027) throws TException { + super(client1025, protocolFactory1026, transport1027, resultHandler1029, false); this.req = req; } @@ -6681,17 +8288,17 @@ public RemoveSessionResp getResult() throws TException { } } - public void killQuery(KillQueryReq req, AsyncMethodCallback resultHandler847) throws TException { + public void killQuery(KillQueryReq req, AsyncMethodCallback resultHandler1033) throws TException { checkReady(); - killQuery_call method_call = new killQuery_call(req, resultHandler847, this, ___protocolFactory, ___transport); + killQuery_call method_call = new killQuery_call(req, resultHandler1033, 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 resultHandler848, TAsyncClient client844, TProtocolFactory protocolFactory845, TNonblockingTransport transport846) throws TException { - super(client844, protocolFactory845, transport846, resultHandler848, false); + public killQuery_call(KillQueryReq req, AsyncMethodCallback resultHandler1034, TAsyncClient client1030, TProtocolFactory protocolFactory1031, TNonblockingTransport transport1032) throws TException { + super(client1030, protocolFactory1031, transport1032, resultHandler1034, false); this.req = req; } @@ -6713,17 +8320,17 @@ public ExecResp getResult() throws TException { } } - public void reportTaskFinish(ReportTaskReq req, AsyncMethodCallback resultHandler852) throws TException { + public void reportTaskFinish(ReportTaskReq req, AsyncMethodCallback resultHandler1038) throws TException { checkReady(); - reportTaskFinish_call method_call = new reportTaskFinish_call(req, resultHandler852, this, ___protocolFactory, ___transport); + reportTaskFinish_call method_call = new reportTaskFinish_call(req, resultHandler1038, 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 resultHandler853, TAsyncClient client849, TProtocolFactory protocolFactory850, TNonblockingTransport transport851) throws TException { - super(client849, protocolFactory850, transport851, resultHandler853, false); + public reportTaskFinish_call(ReportTaskReq req, AsyncMethodCallback resultHandler1039, TAsyncClient client1035, TProtocolFactory protocolFactory1036, TNonblockingTransport transport1037) throws TException { + super(client1035, protocolFactory1036, transport1037, resultHandler1039, false); this.req = req; } @@ -6745,17 +8352,81 @@ public ExecResp getResult() throws TException { } } - public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler857) throws TException { + public void getLicense(GetLicenseReq req, AsyncMethodCallback resultHandler1043) throws TException { + checkReady(); + getLicense_call method_call = new getLicense_call(req, resultHandler1043, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getLicense_call extends TAsyncMethodCall { + private GetLicenseReq req; + public getLicense_call(GetLicenseReq req, AsyncMethodCallback resultHandler1044, TAsyncClient client1040, TProtocolFactory protocolFactory1041, TNonblockingTransport transport1042) throws TException { + super(client1040, protocolFactory1041, transport1042, resultHandler1044, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("getLicense", TMessageType.CALL, 0)); + getLicense_args args = new getLicense_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetLicenseResp 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_getLicense(); + } + } + + public void checkLicenseManager(GetLicenseReq req, AsyncMethodCallback resultHandler1048) throws TException { checkReady(); - createBackup_call method_call = new createBackup_call(req, resultHandler857, this, ___protocolFactory, ___transport); + checkLicenseManager_call method_call = new checkLicenseManager_call(req, resultHandler1048, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class checkLicenseManager_call extends TAsyncMethodCall { + private GetLicenseReq req; + public checkLicenseManager_call(GetLicenseReq req, AsyncMethodCallback resultHandler1049, TAsyncClient client1045, TProtocolFactory protocolFactory1046, TNonblockingTransport transport1047) throws TException { + super(client1045, protocolFactory1046, transport1047, resultHandler1049, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("checkLicenseManager", TMessageType.CALL, 0)); + checkLicenseManager_args args = new checkLicenseManager_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetLicenseResp 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_checkLicenseManager(); + } + } + + public void createBackup(CreateBackupReq req, AsyncMethodCallback resultHandler1053) throws TException { + checkReady(); + createBackup_call method_call = new createBackup_call(req, resultHandler1053, 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 resultHandler858, TAsyncClient client854, TProtocolFactory protocolFactory855, TNonblockingTransport transport856) throws TException { - super(client854, protocolFactory855, transport856, resultHandler858, false); + public createBackup_call(CreateBackupReq req, AsyncMethodCallback resultHandler1054, TAsyncClient client1050, TProtocolFactory protocolFactory1051, TNonblockingTransport transport1052) throws TException { + super(client1050, protocolFactory1051, transport1052, resultHandler1054, false); this.req = req; } @@ -6777,17 +8448,17 @@ public CreateBackupResp getResult() throws TException { } } - public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler862) throws TException { + public void restoreMeta(RestoreMetaReq req, AsyncMethodCallback resultHandler1058) throws TException { checkReady(); - restoreMeta_call method_call = new restoreMeta_call(req, resultHandler862, this, ___protocolFactory, ___transport); + restoreMeta_call method_call = new restoreMeta_call(req, resultHandler1058, 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 resultHandler863, TAsyncClient client859, TProtocolFactory protocolFactory860, TNonblockingTransport transport861) throws TException { - super(client859, protocolFactory860, transport861, resultHandler863, false); + public restoreMeta_call(RestoreMetaReq req, AsyncMethodCallback resultHandler1059, TAsyncClient client1055, TProtocolFactory protocolFactory1056, TNonblockingTransport transport1057) throws TException { + super(client1055, protocolFactory1056, transport1057, resultHandler1059, false); this.req = req; } @@ -6809,17 +8480,17 @@ public RestoreMetaResp getResult() throws TException { } } - public void listCluster(ListClusterInfoReq req, AsyncMethodCallback resultHandler867) throws TException { + public void listCluster(ListClusterInfoReq req, AsyncMethodCallback resultHandler1063) throws TException { checkReady(); - listCluster_call method_call = new listCluster_call(req, resultHandler867, this, ___protocolFactory, ___transport); + listCluster_call method_call = new listCluster_call(req, resultHandler1063, 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 resultHandler868, TAsyncClient client864, TProtocolFactory protocolFactory865, TNonblockingTransport transport866) throws TException { - super(client864, protocolFactory865, transport866, resultHandler868, false); + public listCluster_call(ListClusterInfoReq req, AsyncMethodCallback resultHandler1064, TAsyncClient client1060, TProtocolFactory protocolFactory1061, TNonblockingTransport transport1062) throws TException { + super(client1060, protocolFactory1061, transport1062, resultHandler1064, false); this.req = req; } @@ -6841,17 +8512,17 @@ public ListClusterInfoResp getResult() throws TException { } } - public void getMetaDirInfo(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler872) throws TException { + public void getMetaDirInfo(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler1068) throws TException { checkReady(); - getMetaDirInfo_call method_call = new getMetaDirInfo_call(req, resultHandler872, this, ___protocolFactory, ___transport); + getMetaDirInfo_call method_call = new getMetaDirInfo_call(req, resultHandler1068, 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 resultHandler873, TAsyncClient client869, TProtocolFactory protocolFactory870, TNonblockingTransport transport871) throws TException { - super(client869, protocolFactory870, transport871, resultHandler873, false); + public getMetaDirInfo_call(GetMetaDirInfoReq req, AsyncMethodCallback resultHandler1069, TAsyncClient client1065, TProtocolFactory protocolFactory1066, TNonblockingTransport transport1067) throws TException { + super(client1065, protocolFactory1066, transport1067, resultHandler1069, false); this.req = req; } @@ -6873,17 +8544,17 @@ public GetMetaDirInfoResp getResult() throws TException { } } - public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler877) throws TException { + public void verifyClientVersion(VerifyClientVersionReq req, AsyncMethodCallback resultHandler1073) throws TException { checkReady(); - verifyClientVersion_call method_call = new verifyClientVersion_call(req, resultHandler877, this, ___protocolFactory, ___transport); + verifyClientVersion_call method_call = new verifyClientVersion_call(req, resultHandler1073, 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 resultHandler878, TAsyncClient client874, TProtocolFactory protocolFactory875, TNonblockingTransport transport876) throws TException { - super(client874, protocolFactory875, transport876, resultHandler878, false); + public verifyClientVersion_call(VerifyClientVersionReq req, AsyncMethodCallback resultHandler1074, TAsyncClient client1070, TProtocolFactory protocolFactory1071, TNonblockingTransport transport1072) throws TException { + super(client1070, protocolFactory1071, transport1072, resultHandler1074, false); this.req = req; } @@ -6905,17 +8576,17 @@ public VerifyClientVersionResp getResult() throws TException { } } - public void saveGraphVersion(SaveGraphVersionReq req, AsyncMethodCallback resultHandler882) throws TException { + public void saveGraphVersion(SaveGraphVersionReq req, AsyncMethodCallback resultHandler1078) throws TException { checkReady(); - saveGraphVersion_call method_call = new saveGraphVersion_call(req, resultHandler882, this, ___protocolFactory, ___transport); + saveGraphVersion_call method_call = new saveGraphVersion_call(req, resultHandler1078, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class saveGraphVersion_call extends TAsyncMethodCall { private SaveGraphVersionReq req; - public saveGraphVersion_call(SaveGraphVersionReq req, AsyncMethodCallback resultHandler883, TAsyncClient client879, TProtocolFactory protocolFactory880, TNonblockingTransport transport881) throws TException { - super(client879, protocolFactory880, transport881, resultHandler883, false); + public saveGraphVersion_call(SaveGraphVersionReq req, AsyncMethodCallback resultHandler1079, TAsyncClient client1075, TProtocolFactory protocolFactory1076, TNonblockingTransport transport1077) throws TException { + super(client1075, protocolFactory1076, transport1077, resultHandler1079, false); this.req = req; } @@ -6937,17 +8608,113 @@ public SaveGraphVersionResp getResult() throws TException { } } - public void getSegmentId(GetSegmentIdReq req, AsyncMethodCallback resultHandler887) throws TException { + public void setVariable(SetVariableReq req, AsyncMethodCallback resultHandler1083) throws TException { checkReady(); - getSegmentId_call method_call = new getSegmentId_call(req, resultHandler887, this, ___protocolFactory, ___transport); + setVariable_call method_call = new setVariable_call(req, resultHandler1083, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class setVariable_call extends TAsyncMethodCall { + private SetVariableReq req; + public setVariable_call(SetVariableReq req, AsyncMethodCallback resultHandler1084, TAsyncClient client1080, TProtocolFactory protocolFactory1081, TNonblockingTransport transport1082) throws TException { + super(client1080, protocolFactory1081, transport1082, resultHandler1084, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("setVariable", TMessageType.CALL, 0)); + setVariable_args args = new setVariable_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_setVariable(); + } + } + + public void getVariable(GetVariableReq req, AsyncMethodCallback resultHandler1088) throws TException { + checkReady(); + getVariable_call method_call = new getVariable_call(req, resultHandler1088, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getVariable_call extends TAsyncMethodCall { + private GetVariableReq req; + public getVariable_call(GetVariableReq req, AsyncMethodCallback resultHandler1089, TAsyncClient client1085, TProtocolFactory protocolFactory1086, TNonblockingTransport transport1087) throws TException { + super(client1085, protocolFactory1086, transport1087, resultHandler1089, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("getVariable", TMessageType.CALL, 0)); + getVariable_args args = new getVariable_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetVariableResp 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_getVariable(); + } + } + + public void listVariables(ListVariablesReq req, AsyncMethodCallback resultHandler1093) throws TException { + checkReady(); + listVariables_call method_call = new listVariables_call(req, resultHandler1093, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class listVariables_call extends TAsyncMethodCall { + private ListVariablesReq req; + public listVariables_call(ListVariablesReq req, AsyncMethodCallback resultHandler1094, TAsyncClient client1090, TProtocolFactory protocolFactory1091, TNonblockingTransport transport1092) throws TException { + super(client1090, protocolFactory1091, transport1092, resultHandler1094, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("listVariables", TMessageType.CALL, 0)); + listVariables_args args = new listVariables_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ListVariablesResp 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_listVariables(); + } + } + + public void getSegmentId(GetSegmentIdReq req, AsyncMethodCallback resultHandler1098) throws TException { + checkReady(); + getSegmentId_call method_call = new getSegmentId_call(req, resultHandler1098, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getSegmentId_call extends TAsyncMethodCall { private GetSegmentIdReq req; - public getSegmentId_call(GetSegmentIdReq req, AsyncMethodCallback resultHandler888, TAsyncClient client884, TProtocolFactory protocolFactory885, TNonblockingTransport transport886) throws TException { - super(client884, protocolFactory885, transport886, resultHandler888, false); + public getSegmentId_call(GetSegmentIdReq req, AsyncMethodCallback resultHandler1099, TAsyncClient client1095, TProtocolFactory protocolFactory1096, TNonblockingTransport transport1097) throws TException { + super(client1095, protocolFactory1096, transport1097, resultHandler1099, false); this.req = req; } @@ -6969,6 +8736,102 @@ public GetSegmentIdResp getResult() throws TException { } } + public void getMetaSyncProgress(GetSyncProgressReq req, AsyncMethodCallback resultHandler1103) throws TException { + checkReady(); + getMetaSyncProgress_call method_call = new getMetaSyncProgress_call(req, resultHandler1103, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getMetaSyncProgress_call extends TAsyncMethodCall { + private GetSyncProgressReq req; + public getMetaSyncProgress_call(GetSyncProgressReq req, AsyncMethodCallback resultHandler1104, TAsyncClient client1100, TProtocolFactory protocolFactory1101, TNonblockingTransport transport1102) throws TException { + super(client1100, protocolFactory1101, transport1102, resultHandler1104, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("getMetaSyncProgress", TMessageType.CALL, 0)); + getMetaSyncProgress_args args = new getMetaSyncProgress_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetSyncProgressResp 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_getMetaSyncProgress(); + } + } + + public void changeMeta(ChangeMetaReq req, AsyncMethodCallback resultHandler1108) throws TException { + checkReady(); + changeMeta_call method_call = new changeMeta_call(req, resultHandler1108, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class changeMeta_call extends TAsyncMethodCall { + private ChangeMetaReq req; + public changeMeta_call(ChangeMetaReq req, AsyncMethodCallback resultHandler1109, TAsyncClient client1105, TProtocolFactory protocolFactory1106, TNonblockingTransport transport1107) throws TException { + super(client1105, protocolFactory1106, transport1107, resultHandler1109, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("changeMeta", TMessageType.CALL, 0)); + changeMeta_args args = new changeMeta_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ChangeMetaResp 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_changeMeta(); + } + } + + public void listMeta(ListMetaReq req, AsyncMethodCallback resultHandler1113) throws TException { + checkReady(); + listMeta_call method_call = new listMeta_call(req, resultHandler1113, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class listMeta_call extends TAsyncMethodCall { + private ListMetaReq req; + public listMeta_call(ListMetaReq req, AsyncMethodCallback resultHandler1114, TAsyncClient client1110, TProtocolFactory protocolFactory1111, TNonblockingTransport transport1112) throws TException { + super(client1110, protocolFactory1111, transport1112, resultHandler1114, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("listMeta", TMessageType.CALL, 0)); + listMeta_args args = new listMeta_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public ListMetaResp 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_listMeta(); + } + } + } public static class Processor implements TProcessor { @@ -7001,6 +8864,7 @@ public Processor(Iface iface) processMap_.put("getPartsAlloc", new getPartsAlloc()); processMap_.put("listParts", new listParts()); processMap_.put("getWorkerId", new getWorkerId()); + processMap_.put("syncData", new syncData()); processMap_.put("createTagIndex", new createTagIndex()); processMap_.put("dropTagIndex", new dropTagIndex()); processMap_.put("getTagIndex", new getTagIndex()); @@ -7019,9 +8883,12 @@ public Processor(Iface iface) processMap_.put("grantRole", new grantRole()); processMap_.put("revokeRole", new revokeRole()); processMap_.put("listUsers", new listUsers()); + processMap_.put("listIpWhitelists", new listIpWhitelists()); processMap_.put("listRoles", new listRoles()); processMap_.put("getUserRoles", new getUserRoles()); processMap_.put("changePassword", new changePassword()); + processMap_.put("alterUserPrivilege", new alterUserPrivilege()); + processMap_.put("listUserPrivilege", new listUserPrivilege()); processMap_.put("heartBeat", new heartBeat()); processMap_.put("agentHeartbeat", new agentHeartbeat()); processMap_.put("regConfig", new regConfig()); @@ -7040,11 +8907,22 @@ public Processor(Iface iface) processMap_.put("listZones", new listZones()); processMap_.put("addListener", new addListener()); processMap_.put("removeListener", new removeListener()); - processMap_.put("listListener", new listListener()); + processMap_.put("listListeners", new listListeners()); + processMap_.put("listListenerDrainers", new listListenerDrainers()); + processMap_.put("stopSync", new stopSync()); + processMap_.put("restartSync", new restartSync()); + processMap_.put("listSyncStatus", new listSyncStatus()); + processMap_.put("addDrainer", new addDrainer()); + processMap_.put("removeDrainer", new removeDrainer()); + processMap_.put("listDrainers", new listDrainers()); + processMap_.put("listDrainerSyncStatus", new listDrainerSyncStatus()); processMap_.put("getStats", new getStats()); processMap_.put("signInService", new signInService()); processMap_.put("signOutService", new signOutService()); processMap_.put("listServiceClients", new listServiceClients()); + processMap_.put("signInSpaceService", new signInSpaceService()); + processMap_.put("signOutSpaceService", new signOutSpaceService()); + processMap_.put("listSpaceServiceClients", new listSpaceServiceClients()); processMap_.put("createFTIndex", new createFTIndex()); processMap_.put("dropFTIndex", new dropFTIndex()); processMap_.put("listFTIndexes", new listFTIndexes()); @@ -7055,13 +8933,21 @@ public Processor(Iface iface) processMap_.put("removeSession", new removeSession()); processMap_.put("killQuery", new killQuery()); processMap_.put("reportTaskFinish", new reportTaskFinish()); + processMap_.put("getLicense", new getLicense()); + processMap_.put("checkLicenseManager", new checkLicenseManager()); 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()); processMap_.put("saveGraphVersion", new saveGraphVersion()); + processMap_.put("setVariable", new setVariable()); + processMap_.put("getVariable", new getVariable()); + processMap_.put("listVariables", new listVariables()); processMap_.put("getSegmentId", new getSegmentId()); + processMap_.put("getMetaSyncProgress", new getMetaSyncProgress()); + processMap_.put("changeMeta", new changeMeta()); + processMap_.put("listMeta", new listMeta()); } protected static interface ProcessFunction { @@ -7598,6 +9484,27 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class syncData implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.syncData", server_ctx); + syncData_args args = new syncData_args(); + event_handler_.preRead(handler_ctx, "MetaService.syncData"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.syncData", args); + syncData_result result = new syncData_result(); + result.success = iface_.syncData(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.syncData", result); + oprot.writeMessageBegin(new TMessage("syncData", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.syncData", result); + } + + } + private class createTagIndex implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -7976,6 +9883,27 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class listIpWhitelists implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.listIpWhitelists", server_ctx); + listIpWhitelists_args args = new listIpWhitelists_args(); + event_handler_.preRead(handler_ctx, "MetaService.listIpWhitelists"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.listIpWhitelists", args); + listIpWhitelists_result result = new listIpWhitelists_result(); + result.success = iface_.listIpWhitelists(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.listIpWhitelists", result); + oprot.writeMessageBegin(new TMessage("listIpWhitelists", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.listIpWhitelists", result); + } + + } + private class listRoles implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -8039,6 +9967,48 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class alterUserPrivilege implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.alterUserPrivilege", server_ctx); + alterUserPrivilege_args args = new alterUserPrivilege_args(); + event_handler_.preRead(handler_ctx, "MetaService.alterUserPrivilege"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.alterUserPrivilege", args); + alterUserPrivilege_result result = new alterUserPrivilege_result(); + result.success = iface_.alterUserPrivilege(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.alterUserPrivilege", result); + oprot.writeMessageBegin(new TMessage("alterUserPrivilege", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.alterUserPrivilege", result); + } + + } + + private class listUserPrivilege implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.listUserPrivilege", server_ctx); + listUserPrivilege_args args = new listUserPrivilege_args(); + event_handler_.preRead(handler_ctx, "MetaService.listUserPrivilege"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.listUserPrivilege", args); + listUserPrivilege_result result = new listUserPrivilege_result(); + result.success = iface_.listUserPrivilege(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.listUserPrivilege", result); + oprot.writeMessageBegin(new TMessage("listUserPrivilege", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.listUserPrivilege", result); + } + + } + private class heartBeat implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -8417,23 +10387,191 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } - private class listListener implements ProcessFunction { + private class listListeners implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.listListeners", server_ctx); + listListeners_args args = new listListeners_args(); + event_handler_.preRead(handler_ctx, "MetaService.listListeners"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.listListeners", args); + listListeners_result result = new listListeners_result(); + result.success = iface_.listListeners(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.listListeners", result); + oprot.writeMessageBegin(new TMessage("listListeners", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.listListeners", result); + } + + } + + private class listListenerDrainers implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.listListenerDrainers", server_ctx); + listListenerDrainers_args args = new listListenerDrainers_args(); + event_handler_.preRead(handler_ctx, "MetaService.listListenerDrainers"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.listListenerDrainers", args); + listListenerDrainers_result result = new listListenerDrainers_result(); + result.success = iface_.listListenerDrainers(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.listListenerDrainers", result); + oprot.writeMessageBegin(new TMessage("listListenerDrainers", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.listListenerDrainers", result); + } + + } + + private class stopSync implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.stopSync", server_ctx); + stopSync_args args = new stopSync_args(); + event_handler_.preRead(handler_ctx, "MetaService.stopSync"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.stopSync", args); + stopSync_result result = new stopSync_result(); + result.success = iface_.stopSync(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.stopSync", result); + oprot.writeMessageBegin(new TMessage("stopSync", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.stopSync", result); + } + + } + + private class restartSync implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.restartSync", server_ctx); + restartSync_args args = new restartSync_args(); + event_handler_.preRead(handler_ctx, "MetaService.restartSync"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.restartSync", args); + restartSync_result result = new restartSync_result(); + result.success = iface_.restartSync(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.restartSync", result); + oprot.writeMessageBegin(new TMessage("restartSync", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.restartSync", result); + } + + } + + private class listSyncStatus implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.listSyncStatus", server_ctx); + listSyncStatus_args args = new listSyncStatus_args(); + event_handler_.preRead(handler_ctx, "MetaService.listSyncStatus"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.listSyncStatus", args); + listSyncStatus_result result = new listSyncStatus_result(); + result.success = iface_.listSyncStatus(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.listSyncStatus", result); + oprot.writeMessageBegin(new TMessage("listSyncStatus", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.listSyncStatus", result); + } + + } + + private class addDrainer implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.addDrainer", server_ctx); + addDrainer_args args = new addDrainer_args(); + event_handler_.preRead(handler_ctx, "MetaService.addDrainer"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.addDrainer", args); + addDrainer_result result = new addDrainer_result(); + result.success = iface_.addDrainer(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.addDrainer", result); + oprot.writeMessageBegin(new TMessage("addDrainer", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.addDrainer", result); + } + + } + + private class removeDrainer implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.removeDrainer", server_ctx); + removeDrainer_args args = new removeDrainer_args(); + event_handler_.preRead(handler_ctx, "MetaService.removeDrainer"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.removeDrainer", args); + removeDrainer_result result = new removeDrainer_result(); + result.success = iface_.removeDrainer(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.removeDrainer", result); + oprot.writeMessageBegin(new TMessage("removeDrainer", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.removeDrainer", result); + } + + } + + private class listDrainers implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.listDrainers", server_ctx); + listDrainers_args args = new listDrainers_args(); + event_handler_.preRead(handler_ctx, "MetaService.listDrainers"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.listDrainers", args); + listDrainers_result result = new listDrainers_result(); + result.success = iface_.listDrainers(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.listDrainers", result); + oprot.writeMessageBegin(new TMessage("listDrainers", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.listDrainers", result); + } + + } + + private class listDrainerSyncStatus implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { - Object handler_ctx = event_handler_.getContext("MetaService.listListener", server_ctx); - listListener_args args = new listListener_args(); - event_handler_.preRead(handler_ctx, "MetaService.listListener"); + Object handler_ctx = event_handler_.getContext("MetaService.listDrainerSyncStatus", server_ctx); + listDrainerSyncStatus_args args = new listDrainerSyncStatus_args(); + event_handler_.preRead(handler_ctx, "MetaService.listDrainerSyncStatus"); args.read(iprot); iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "MetaService.listListener", args); - listListener_result result = new listListener_result(); - result.success = iface_.listListener(args.req); - event_handler_.preWrite(handler_ctx, "MetaService.listListener", result); - oprot.writeMessageBegin(new TMessage("listListener", TMessageType.REPLY, seqid)); + event_handler_.postRead(handler_ctx, "MetaService.listDrainerSyncStatus", args); + listDrainerSyncStatus_result result = new listDrainerSyncStatus_result(); + result.success = iface_.listDrainerSyncStatus(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.listDrainerSyncStatus", result); + oprot.writeMessageBegin(new TMessage("listDrainerSyncStatus", TMessageType.REPLY, seqid)); result.write(oprot); oprot.writeMessageEnd(); oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "MetaService.listListener", result); + event_handler_.postWrite(handler_ctx, "MetaService.listDrainerSyncStatus", result); } } @@ -8522,6 +10660,69 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class signInSpaceService implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.signInSpaceService", server_ctx); + signInSpaceService_args args = new signInSpaceService_args(); + event_handler_.preRead(handler_ctx, "MetaService.signInSpaceService"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.signInSpaceService", args); + signInSpaceService_result result = new signInSpaceService_result(); + result.success = iface_.signInSpaceService(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.signInSpaceService", result); + oprot.writeMessageBegin(new TMessage("signInSpaceService", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.signInSpaceService", result); + } + + } + + private class signOutSpaceService implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.signOutSpaceService", server_ctx); + signOutSpaceService_args args = new signOutSpaceService_args(); + event_handler_.preRead(handler_ctx, "MetaService.signOutSpaceService"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.signOutSpaceService", args); + signOutSpaceService_result result = new signOutSpaceService_result(); + result.success = iface_.signOutSpaceService(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.signOutSpaceService", result); + oprot.writeMessageBegin(new TMessage("signOutSpaceService", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.signOutSpaceService", result); + } + + } + + private class listSpaceServiceClients implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.listSpaceServiceClients", server_ctx); + listSpaceServiceClients_args args = new listSpaceServiceClients_args(); + event_handler_.preRead(handler_ctx, "MetaService.listSpaceServiceClients"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.listSpaceServiceClients", args); + listSpaceServiceClients_result result = new listSpaceServiceClients_result(); + result.success = iface_.listSpaceServiceClients(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.listSpaceServiceClients", result); + oprot.writeMessageBegin(new TMessage("listSpaceServiceClients", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.listSpaceServiceClients", result); + } + + } + private class createFTIndex implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -8732,6 +10933,48 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class getLicense implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.getLicense", server_ctx); + getLicense_args args = new getLicense_args(); + event_handler_.preRead(handler_ctx, "MetaService.getLicense"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.getLicense", args); + getLicense_result result = new getLicense_result(); + result.success = iface_.getLicense(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.getLicense", result); + oprot.writeMessageBegin(new TMessage("getLicense", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.getLicense", result); + } + + } + + private class checkLicenseManager implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.checkLicenseManager", server_ctx); + checkLicenseManager_args args = new checkLicenseManager_args(); + event_handler_.preRead(handler_ctx, "MetaService.checkLicenseManager"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.checkLicenseManager", args); + checkLicenseManager_result result = new checkLicenseManager_result(); + result.success = iface_.checkLicenseManager(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.checkLicenseManager", result); + oprot.writeMessageBegin(new TMessage("checkLicenseManager", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.checkLicenseManager", result); + } + + } + private class createBackup implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -8858,6 +11101,69 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class setVariable implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.setVariable", server_ctx); + setVariable_args args = new setVariable_args(); + event_handler_.preRead(handler_ctx, "MetaService.setVariable"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.setVariable", args); + setVariable_result result = new setVariable_result(); + result.success = iface_.setVariable(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.setVariable", result); + oprot.writeMessageBegin(new TMessage("setVariable", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.setVariable", result); + } + + } + + private class getVariable implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.getVariable", server_ctx); + getVariable_args args = new getVariable_args(); + event_handler_.preRead(handler_ctx, "MetaService.getVariable"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.getVariable", args); + getVariable_result result = new getVariable_result(); + result.success = iface_.getVariable(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.getVariable", result); + oprot.writeMessageBegin(new TMessage("getVariable", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.getVariable", result); + } + + } + + private class listVariables implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.listVariables", server_ctx); + listVariables_args args = new listVariables_args(); + event_handler_.preRead(handler_ctx, "MetaService.listVariables"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.listVariables", args); + listVariables_result result = new listVariables_result(); + result.success = iface_.listVariables(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.listVariables", result); + oprot.writeMessageBegin(new TMessage("listVariables", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.listVariables", result); + } + + } + private class getSegmentId implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -8879,6 +11185,69 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class getMetaSyncProgress implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.getMetaSyncProgress", server_ctx); + getMetaSyncProgress_args args = new getMetaSyncProgress_args(); + event_handler_.preRead(handler_ctx, "MetaService.getMetaSyncProgress"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.getMetaSyncProgress", args); + getMetaSyncProgress_result result = new getMetaSyncProgress_result(); + result.success = iface_.getMetaSyncProgress(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.getMetaSyncProgress", result); + oprot.writeMessageBegin(new TMessage("getMetaSyncProgress", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.getMetaSyncProgress", result); + } + + } + + private class changeMeta implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.changeMeta", server_ctx); + changeMeta_args args = new changeMeta_args(); + event_handler_.preRead(handler_ctx, "MetaService.changeMeta"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.changeMeta", args); + changeMeta_result result = new changeMeta_result(); + result.success = iface_.changeMeta(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.changeMeta", result); + oprot.writeMessageBegin(new TMessage("changeMeta", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.changeMeta", result); + } + + } + + private class listMeta implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("MetaService.listMeta", server_ctx); + listMeta_args args = new listMeta_args(); + event_handler_.preRead(handler_ctx, "MetaService.listMeta"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "MetaService.listMeta", args); + listMeta_result result = new listMeta_result(); + result.success = iface_.listMeta(args.req); + event_handler_.preWrite(handler_ctx, "MetaService.listMeta", result); + oprot.writeMessageBegin(new TMessage("listMeta", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "MetaService.listMeta", result); + } + + } + } public static class createSpace_args implements TBase, java.io.Serializable, Cloneable, Comparable { @@ -10186,11 +12555,10016 @@ 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 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 GetSpaceReq 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, GetSpaceReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getSpace_args.class, metaDataMap); + } + + public getSpace_args() { + } + + public getSpace_args( + GetSpaceReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public getSpace_args(getSpace_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public getSpace_args deepCopy() { + return new getSpace_args(this); + } + + public GetSpaceReq getReq() { + return this.req; + } + + public getSpace_args setReq(GetSpaceReq 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((GetSpaceReq)__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 getSpace_args)) + return false; + getSpace_args that = (getSpace_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(getSpace_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 GetSpaceReq(); + 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("getSpace_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 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 GetSpaceResp 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, GetSpaceResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getSpace_result.class, metaDataMap); + } + + public getSpace_result() { + } + + public getSpace_result( + GetSpaceResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getSpace_result(getSpace_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public getSpace_result deepCopy() { + return new getSpace_result(this); + } + + public GetSpaceResp getSuccess() { + return this.success; + } + + public getSpace_result setSuccess(GetSpaceResp 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((GetSpaceResp)__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 getSpace_result)) + return false; + getSpace_result that = (getSpace_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(getSpace_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 GetSpaceResp(); + 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("getSpace_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 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 ListSpacesReq 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, ListSpacesReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(listSpaces_args.class, metaDataMap); + } + + public listSpaces_args() { + } + + public listSpaces_args( + ListSpacesReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public listSpaces_args(listSpaces_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public listSpaces_args deepCopy() { + return new listSpaces_args(this); + } + + public ListSpacesReq getReq() { + return this.req; + } + + public listSpaces_args setReq(ListSpacesReq 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((ListSpacesReq)__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 listSpaces_args)) + return false; + listSpaces_args that = (listSpaces_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(listSpaces_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 ListSpacesReq(); + 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("listSpaces_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 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 ListSpacesResp 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, ListSpacesResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(listSpaces_result.class, metaDataMap); + } + + public listSpaces_result() { + } + + public listSpaces_result( + ListSpacesResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public listSpaces_result(listSpaces_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public listSpaces_result deepCopy() { + return new listSpaces_result(this); + } + + public ListSpacesResp getSuccess() { + return this.success; + } + + public listSpaces_result setSuccess(ListSpacesResp 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((ListSpacesResp)__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 listSpaces_result)) + return false; + listSpaces_result that = (listSpaces_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(listSpaces_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 ListSpacesResp(); + 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("listSpaces_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 alterSpace_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterSpace_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public AlterSpaceReq 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, AlterSpaceReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(alterSpace_args.class, metaDataMap); + } + + public alterSpace_args() { + } + + public alterSpace_args( + AlterSpaceReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public alterSpace_args(alterSpace_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public alterSpace_args deepCopy() { + return new alterSpace_args(this); + } + + public AlterSpaceReq getReq() { + return this.req; + } + + public alterSpace_args setReq(AlterSpaceReq 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((AlterSpaceReq)__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 alterSpace_args)) + return false; + alterSpace_args that = (alterSpace_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(alterSpace_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 AlterSpaceReq(); + 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("alterSpace_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 alterSpace_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterSpace_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(alterSpace_result.class, metaDataMap); + } + + public alterSpace_result() { + } + + public alterSpace_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public alterSpace_result(alterSpace_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public alterSpace_result deepCopy() { + return new alterSpace_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public alterSpace_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 alterSpace_result)) + return false; + alterSpace_result that = (alterSpace_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(alterSpace_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("alterSpace_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 createSpaceAs_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createSpaceAs_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public CreateSpaceAsReq req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, CreateSpaceAsReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(createSpaceAs_args.class, metaDataMap); + } + + public createSpaceAs_args() { + } + + public createSpaceAs_args( + CreateSpaceAsReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public createSpaceAs_args(createSpaceAs_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public createSpaceAs_args deepCopy() { + return new createSpaceAs_args(this); + } + + public CreateSpaceAsReq getReq() { + return this.req; + } + + public createSpaceAs_args setReq(CreateSpaceAsReq req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((CreateSpaceAsReq)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof createSpaceAs_args)) + return false; + createSpaceAs_args that = (createSpaceAs_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + @Override + public int compareTo(createSpaceAs_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new CreateSpaceAsReq(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("createSpaceAs_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class createSpaceAs_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createSpaceAs_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public ExecResp success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ExecResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(createSpaceAs_result.class, metaDataMap); + } + + public createSpaceAs_result() { + } + + public createSpaceAs_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public createSpaceAs_result(createSpaceAs_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public createSpaceAs_result deepCopy() { + return new createSpaceAs_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public createSpaceAs_result setSuccess(ExecResp success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((ExecResp)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof createSpaceAs_result)) + return false; + createSpaceAs_result that = (createSpaceAs_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(createSpaceAs_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new ExecResp(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("createSpaceAs_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class createTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createTag_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public CreateTagReq req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, CreateTagReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(createTag_args.class, metaDataMap); + } + + public createTag_args() { + } + + public createTag_args( + CreateTagReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public createTag_args(createTag_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public createTag_args deepCopy() { + return new createTag_args(this); + } + + public CreateTagReq getReq() { + return this.req; + } + + public createTag_args setReq(CreateTagReq req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((CreateTagReq)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof createTag_args)) + return false; + createTag_args that = (createTag_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + @Override + public int compareTo(createTag_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new CreateTagReq(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("createTag_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class createTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createTag_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public ExecResp success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ExecResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(createTag_result.class, metaDataMap); + } + + public createTag_result() { + } + + public createTag_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public createTag_result(createTag_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public createTag_result deepCopy() { + return new createTag_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public createTag_result setSuccess(ExecResp success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((ExecResp)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof createTag_result)) + return false; + createTag_result that = (createTag_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(createTag_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new ExecResp(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("createTag_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class alterTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterTag_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public AlterTagReq req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, AlterTagReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(alterTag_args.class, metaDataMap); + } + + public alterTag_args() { + } + + public alterTag_args( + AlterTagReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public alterTag_args(alterTag_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public alterTag_args deepCopy() { + return new alterTag_args(this); + } + + public AlterTagReq getReq() { + return this.req; + } + + public alterTag_args setReq(AlterTagReq req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((AlterTagReq)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof alterTag_args)) + return false; + alterTag_args that = (alterTag_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + @Override + public int compareTo(alterTag_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new AlterTagReq(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("alterTag_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class alterTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterTag_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public ExecResp success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ExecResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(alterTag_result.class, metaDataMap); + } + + public alterTag_result() { + } + + public alterTag_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public alterTag_result(alterTag_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public alterTag_result deepCopy() { + return new alterTag_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public alterTag_result setSuccess(ExecResp success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((ExecResp)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof alterTag_result)) + return false; + alterTag_result that = (alterTag_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(alterTag_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new ExecResp(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("alterTag_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class dropTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropTag_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public DropTagReq req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, DropTagReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(dropTag_args.class, metaDataMap); + } + + public dropTag_args() { + } + + public dropTag_args( + DropTagReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public dropTag_args(dropTag_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public dropTag_args deepCopy() { + return new dropTag_args(this); + } + + public DropTagReq getReq() { + return this.req; + } + + public dropTag_args setReq(DropTagReq req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((DropTagReq)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof dropTag_args)) + return false; + dropTag_args that = (dropTag_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + @Override + public int compareTo(dropTag_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new DropTagReq(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("dropTag_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class dropTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropTag_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public ExecResp success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ExecResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(dropTag_result.class, metaDataMap); + } + + public dropTag_result() { + } + + public dropTag_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public dropTag_result(dropTag_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public dropTag_result deepCopy() { + return new dropTag_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public dropTag_result setSuccess(ExecResp success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((ExecResp)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof dropTag_result)) + return false; + dropTag_result that = (dropTag_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(dropTag_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new ExecResp(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("dropTag_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class getTag_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getTag_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public GetTagReq req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, GetTagReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getTag_args.class, metaDataMap); + } + + public getTag_args() { + } + + public getTag_args( + GetTagReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public getTag_args(getTag_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public getTag_args deepCopy() { + return new getTag_args(this); + } + + public GetTagReq getReq() { + return this.req; + } + + public getTag_args setReq(GetTagReq req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((GetTagReq)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof getTag_args)) + return false; + getTag_args that = (getTag_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + @Override + public int compareTo(getTag_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new GetTagReq(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("getTag_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class getTag_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getTag_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public GetTagResp success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, GetTagResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getTag_result.class, metaDataMap); + } + + public getTag_result() { + } + + public getTag_result( + GetTagResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getTag_result(getTag_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public getTag_result deepCopy() { + return new getTag_result(this); + } + + public GetTagResp getSuccess() { + return this.success; + } + + public getTag_result setSuccess(GetTagResp success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((GetTagResp)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof getTag_result)) + return false; + getTag_result that = (getTag_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(getTag_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new GetTagResp(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("getTag_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class listTags_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listTags_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public ListTagsReq req; + public static final int REQ = 1; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ListTagsReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(listTags_args.class, metaDataMap); + } + + public listTags_args() { + } + + public listTags_args( + ListTagsReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public listTags_args(listTags_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public listTags_args deepCopy() { + return new listTags_args(this); + } + + public ListTagsReq getReq() { + return this.req; + } + + public listTags_args setReq(ListTagsReq req) { + this.req = req; + return this; + } + + public void unsetReq() { + this.req = null; + } + + // Returns true if field req is set (has been assigned a value) and false otherwise + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean __value) { + if (!__value) { + this.req = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case REQ: + if (__value == null) { + unsetReq(); + } else { + setReq((ListTagsReq)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case REQ: + return getReq(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof listTags_args)) + return false; + listTags_args that = (listTags_args)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {req}); + } + + @Override + public int compareTo(listTags_args other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(req, other.req); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case REQ: + if (__field.type == TType.STRUCT) { + this.req = new ListTagsReq(); + this.req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + this.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("listTags_args"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("req"); + sb.append(space); + sb.append(":").append(space); + if (this.getReq() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getReq(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class listTags_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listTags_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public ListTagsResp success; + public static final int SUCCESS = 0; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ListTagsResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(listTags_result.class, metaDataMap); + } + + public listTags_result() { + } + + public listTags_result( + ListTagsResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public listTags_result(listTags_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public listTags_result deepCopy() { + return new listTags_result(this); + } + + public ListTagsResp getSuccess() { + return this.success; + } + + public listTags_result setSuccess(ListTagsResp success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + // Returns true if field success is set (has been assigned a value) and false otherwise + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean __value) { + if (!__value) { + this.success = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SUCCESS: + if (__value == null) { + unsetSuccess(); + } else { + setSuccess((ListTagsResp)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SUCCESS: + return getSuccess(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof listTags_result)) + return false; + listTags_result that = (listTags_result)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {success}); + } + + @Override + public int compareTo(listTags_result other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SUCCESS: + if (__field.type == TType.STRUCT) { + this.success = new ListTagsResp(); + this.success.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("listTags_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + + public static class createEdge_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createEdge_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public CreateEdgeReq 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, CreateEdgeReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(createEdge_args.class, metaDataMap); + } + + public createEdge_args() { + } + + public createEdge_args( + CreateEdgeReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public createEdge_args(createEdge_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public createEdge_args deepCopy() { + return new createEdge_args(this); + } + + public CreateEdgeReq getReq() { + return this.req; + } + + public createEdge_args setReq(CreateEdgeReq 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((CreateEdgeReq)__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 createEdge_args)) + return false; + createEdge_args that = (createEdge_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(createEdge_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 CreateEdgeReq(); + 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("createEdge_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 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 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(createEdge_result.class, metaDataMap); + } + + public createEdge_result() { + } + + public createEdge_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public createEdge_result(createEdge_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public createEdge_result deepCopy() { + return new createEdge_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public createEdge_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 createEdge_result)) + return false; + createEdge_result that = (createEdge_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(createEdge_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("createEdge_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 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 AlterEdgeReq 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, AlterEdgeReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(alterEdge_args.class, metaDataMap); + } + + public alterEdge_args() { + } + + public alterEdge_args( + AlterEdgeReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public alterEdge_args(alterEdge_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public alterEdge_args deepCopy() { + return new alterEdge_args(this); + } + + public AlterEdgeReq getReq() { + return this.req; + } + + public alterEdge_args setReq(AlterEdgeReq 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((AlterEdgeReq)__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 alterEdge_args)) + return false; + alterEdge_args that = (alterEdge_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(alterEdge_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 AlterEdgeReq(); + 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("alterEdge_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 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; + 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(alterEdge_result.class, metaDataMap); + } + + public alterEdge_result() { + } + + public alterEdge_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public alterEdge_result(alterEdge_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public alterEdge_result deepCopy() { + return new alterEdge_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public alterEdge_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 alterEdge_result)) + return false; + alterEdge_result that = (alterEdge_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(alterEdge_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("alterEdge_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 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 DropEdgeReq 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, DropEdgeReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(dropEdge_args.class, metaDataMap); + } + + public dropEdge_args() { + } + + public dropEdge_args( + DropEdgeReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public dropEdge_args(dropEdge_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public dropEdge_args deepCopy() { + return new dropEdge_args(this); + } + + public DropEdgeReq getReq() { + return this.req; + } + + public dropEdge_args setReq(DropEdgeReq 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((DropEdgeReq)__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 dropEdge_args)) + return false; + dropEdge_args that = (dropEdge_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(dropEdge_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 DropEdgeReq(); + 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("dropEdge_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 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; + 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(dropEdge_result.class, metaDataMap); + } + + public dropEdge_result() { + } + + public dropEdge_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public dropEdge_result(dropEdge_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public dropEdge_result deepCopy() { + return new dropEdge_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public dropEdge_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 dropEdge_result)) + return false; + dropEdge_result that = (dropEdge_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(dropEdge_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("dropEdge_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 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 GetEdgeReq 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, GetEdgeReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getEdge_args.class, metaDataMap); + } + + public getEdge_args() { + } + + public getEdge_args( + GetEdgeReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public getEdge_args(getEdge_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public getEdge_args deepCopy() { + return new getEdge_args(this); + } + + public GetEdgeReq getReq() { + return this.req; + } + + public getEdge_args setReq(GetEdgeReq 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((GetEdgeReq)__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 getEdge_args)) + return false; + getEdge_args that = (getEdge_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(getEdge_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 GetEdgeReq(); + 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("getEdge_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 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 GetEdgeResp 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, GetEdgeResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getEdge_result.class, metaDataMap); + } + + public getEdge_result() { + } + + public getEdge_result( + GetEdgeResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getEdge_result(getEdge_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public getEdge_result deepCopy() { + return new getEdge_result(this); + } + + public GetEdgeResp getSuccess() { + return this.success; + } + + public getEdge_result setSuccess(GetEdgeResp 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((GetEdgeResp)__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 getEdge_result)) + return false; + getEdge_result that = (getEdge_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(getEdge_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 GetEdgeResp(); + 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("getEdge_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 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 ListEdgesReq 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, ListEdgesReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(listEdges_args.class, metaDataMap); + } + + public listEdges_args() { + } + + public listEdges_args( + ListEdgesReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public listEdges_args(listEdges_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public listEdges_args deepCopy() { + return new listEdges_args(this); + } + + public ListEdgesReq getReq() { + return this.req; + } + + public listEdges_args setReq(ListEdgesReq 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((ListEdgesReq)__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 listEdges_args)) + return false; + listEdges_args that = (listEdges_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(listEdges_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 ListEdgesReq(); + 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("listEdges_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 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 ListEdgesResp 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, ListEdgesResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(listEdges_result.class, metaDataMap); + } + + public listEdges_result() { + } + + public listEdges_result( + ListEdgesResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public listEdges_result(listEdges_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public listEdges_result deepCopy() { + return new listEdges_result(this); + } + + public ListEdgesResp getSuccess() { + return this.success; + } + + public listEdges_result setSuccess(ListEdgesResp 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((ListEdgesResp)__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 listEdges_result)) + return false; + listEdges_result that = (listEdges_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(listEdges_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 ListEdgesResp(); + 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("listEdges_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 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 AddHostsReq 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, AddHostsReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(addHosts_args.class, metaDataMap); + } + + public addHosts_args() { + } + + public addHosts_args( + AddHostsReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public addHosts_args(addHosts_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public addHosts_args deepCopy() { + return new addHosts_args(this); + } + + public AddHostsReq getReq() { + return this.req; + } + + public addHosts_args setReq(AddHostsReq 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((AddHostsReq)__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 addHosts_args)) + return false; + addHosts_args that = (addHosts_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(addHosts_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 AddHostsReq(); + 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("addHosts_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 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 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(addHosts_result.class, metaDataMap); + } + + public addHosts_result() { + } + + public addHosts_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public addHosts_result(addHosts_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public addHosts_result deepCopy() { + return new addHosts_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public addHosts_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 addHosts_result)) + return false; + addHosts_result that = (addHosts_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(addHosts_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("addHosts_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 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 AddHostsIntoZoneReq 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, AddHostsIntoZoneReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(addHostsIntoZone_args.class, metaDataMap); + } + + public addHostsIntoZone_args() { + } + + public addHostsIntoZone_args( + AddHostsIntoZoneReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public addHostsIntoZone_args(addHostsIntoZone_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public addHostsIntoZone_args deepCopy() { + return new addHostsIntoZone_args(this); + } + + public AddHostsIntoZoneReq getReq() { + return this.req; + } + + public addHostsIntoZone_args setReq(AddHostsIntoZoneReq 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((AddHostsIntoZoneReq)__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 addHostsIntoZone_args)) + return false; + addHostsIntoZone_args that = (addHostsIntoZone_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(addHostsIntoZone_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 AddHostsIntoZoneReq(); + 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("addHostsIntoZone_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 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; + 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(addHostsIntoZone_result.class, metaDataMap); + } + + public addHostsIntoZone_result() { + } + + public addHostsIntoZone_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public addHostsIntoZone_result(addHostsIntoZone_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public addHostsIntoZone_result deepCopy() { + return new addHostsIntoZone_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public addHostsIntoZone_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 addHostsIntoZone_result)) + return false; + addHostsIntoZone_result that = (addHostsIntoZone_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(addHostsIntoZone_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("addHostsIntoZone_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 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 DropHostsReq 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, DropHostsReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(dropHosts_args.class, metaDataMap); + } + + public dropHosts_args() { + } + + public dropHosts_args( + DropHostsReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public dropHosts_args(dropHosts_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public dropHosts_args deepCopy() { + return new dropHosts_args(this); + } + + public DropHostsReq getReq() { + return this.req; + } + + public dropHosts_args setReq(DropHostsReq 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((DropHostsReq)__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 dropHosts_args)) + return false; + dropHosts_args that = (dropHosts_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(dropHosts_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 DropHostsReq(); + 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("dropHosts_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 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; + 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(dropHosts_result.class, metaDataMap); + } + + public dropHosts_result() { + } + + public dropHosts_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public dropHosts_result(dropHosts_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public dropHosts_result deepCopy() { + return new dropHosts_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public dropHosts_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 dropHosts_result)) + return false; + dropHosts_result that = (dropHosts_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(dropHosts_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("dropHosts_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 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 ListHostsReq 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, ListHostsReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(listHosts_args.class, metaDataMap); + } + + public listHosts_args() { + } + + public listHosts_args( + ListHostsReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public listHosts_args(listHosts_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public listHosts_args deepCopy() { + return new listHosts_args(this); + } + + public ListHostsReq getReq() { + return this.req; + } + + public listHosts_args setReq(ListHostsReq 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((ListHostsReq)__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 listHosts_args)) + return false; + listHosts_args that = (listHosts_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(listHosts_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 ListHostsReq(); + 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("listHosts_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 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 ListHostsResp 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, ListHostsResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(listHosts_result.class, metaDataMap); + } + + public listHosts_result() { + } + + public listHosts_result( + ListHostsResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public listHosts_result(listHosts_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public listHosts_result deepCopy() { + return new listHosts_result(this); + } + + public ListHostsResp getSuccess() { + return this.success; + } + + public listHosts_result setSuccess(ListHostsResp 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((ListHostsResp)__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 listHosts_result)) + return false; + listHosts_result that = (listHosts_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(listHosts_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 ListHostsResp(); + 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("listHosts_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 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 GetPartsAllocReq 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, GetPartsAllocReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getPartsAlloc_args.class, metaDataMap); + } + + public getPartsAlloc_args() { + } + + public getPartsAlloc_args( + GetPartsAllocReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public getPartsAlloc_args(getPartsAlloc_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public getPartsAlloc_args deepCopy() { + return new getPartsAlloc_args(this); + } + + public GetPartsAllocReq getReq() { + return this.req; + } + + public getPartsAlloc_args setReq(GetPartsAllocReq 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((GetPartsAllocReq)__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 getPartsAlloc_args)) + return false; + getPartsAlloc_args that = (getPartsAlloc_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(getPartsAlloc_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 GetPartsAllocReq(); + 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("getPartsAlloc_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 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 GetPartsAllocResp 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, GetPartsAllocResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getPartsAlloc_result.class, metaDataMap); + } + + public getPartsAlloc_result() { + } + + public getPartsAlloc_result( + GetPartsAllocResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getPartsAlloc_result(getPartsAlloc_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public getPartsAlloc_result deepCopy() { + return new getPartsAlloc_result(this); + } + + public GetPartsAllocResp getSuccess() { + return this.success; + } + + public getPartsAlloc_result setSuccess(GetPartsAllocResp 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((GetPartsAllocResp)__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 getPartsAlloc_result)) + return false; + getPartsAlloc_result that = (getPartsAlloc_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(getPartsAlloc_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 GetPartsAllocResp(); + 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("getPartsAlloc_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 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 ListPartsReq 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, ListPartsReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(listParts_args.class, metaDataMap); + } + + public listParts_args() { + } + + public listParts_args( + ListPartsReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public listParts_args(listParts_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public listParts_args deepCopy() { + return new listParts_args(this); + } + + public ListPartsReq getReq() { + return this.req; + } + + public listParts_args setReq(ListPartsReq 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((ListPartsReq)__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 listParts_args)) + return false; + listParts_args that = (listParts_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(listParts_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 ListPartsReq(); + 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("listParts_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 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 ListPartsResp 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, ListPartsResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(listParts_result.class, metaDataMap); + } + + public listParts_result() { + } + + public listParts_result( + ListPartsResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public listParts_result(listParts_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public listParts_result deepCopy() { + return new listParts_result(this); + } + + public ListPartsResp getSuccess() { + return this.success; + } + + public listParts_result setSuccess(ListPartsResp 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((ListPartsResp)__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 listParts_result)) + return false; + listParts_result that = (listParts_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(listParts_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 ListPartsResp(); + 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("listParts_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 getWorkerId_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getWorkerId_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public GetWorkerIdReq 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, GetWorkerIdReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getWorkerId_args.class, metaDataMap); + } + + public getWorkerId_args() { + } + + public getWorkerId_args( + GetWorkerIdReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public getWorkerId_args(getWorkerId_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public getWorkerId_args deepCopy() { + return new getWorkerId_args(this); + } + + public GetWorkerIdReq getReq() { + return this.req; + } + + public getWorkerId_args setReq(GetWorkerIdReq 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((GetWorkerIdReq)__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 getWorkerId_args)) + return false; + getWorkerId_args that = (getWorkerId_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(getWorkerId_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 GetWorkerIdReq(); + 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("getWorkerId_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 getWorkerId_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getWorkerId_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public GetWorkerIdResp 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, GetWorkerIdResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getWorkerId_result.class, metaDataMap); + } + + public getWorkerId_result() { + } + + public getWorkerId_result( + GetWorkerIdResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getWorkerId_result(getWorkerId_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public getWorkerId_result deepCopy() { + return new getWorkerId_result(this); + } + + public GetWorkerIdResp getSuccess() { + return this.success; + } + + public getWorkerId_result setSuccess(GetWorkerIdResp 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((GetWorkerIdResp)__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 getWorkerId_result)) + return false; + getWorkerId_result that = (getWorkerId_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(getWorkerId_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 GetWorkerIdResp(); + 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("getWorkerId_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 syncData_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("syncData_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public SyncDataReq 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, SyncDataReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(syncData_args.class, metaDataMap); + } + + public syncData_args() { + } + + public syncData_args( + SyncDataReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public syncData_args(syncData_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public syncData_args deepCopy() { + return new syncData_args(this); + } + + public SyncDataReq getReq() { + return this.req; + } + + public syncData_args setReq(SyncDataReq 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((SyncDataReq)__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 syncData_args)) + return false; + syncData_args that = (syncData_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(syncData_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 SyncDataReq(); + 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("syncData_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 syncData_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("syncData_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(syncData_result.class, metaDataMap); + } + + public syncData_result() { + } + + public syncData_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public syncData_result(syncData_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public syncData_result deepCopy() { + return new syncData_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public syncData_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 syncData_result)) + return false; + syncData_result that = (syncData_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(syncData_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("syncData_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 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 CreateTagIndexReq 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, CreateTagIndexReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(createTagIndex_args.class, metaDataMap); + } + + public createTagIndex_args() { + } + + public createTagIndex_args( + CreateTagIndexReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public createTagIndex_args(createTagIndex_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public createTagIndex_args deepCopy() { + return new createTagIndex_args(this); + } + + public CreateTagIndexReq getReq() { + return this.req; + } + + public createTagIndex_args setReq(CreateTagIndexReq 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((CreateTagIndexReq)__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 createTagIndex_args)) + return false; + createTagIndex_args that = (createTagIndex_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(createTagIndex_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 CreateTagIndexReq(); + 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("createTagIndex_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 createTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createTagIndex_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public ExecResp success; + 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(createTagIndex_result.class, metaDataMap); + } + + public createTagIndex_result() { + } + + public createTagIndex_result( + ExecResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public createTagIndex_result(createTagIndex_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public createTagIndex_result deepCopy() { + return new createTagIndex_result(this); + } + + public ExecResp getSuccess() { + return this.success; + } + + public createTagIndex_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 createTagIndex_result)) + return false; + createTagIndex_result that = (createTagIndex_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(createTagIndex_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("createTagIndex_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 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 GetSpaceReq req; + public DropTagIndexReq req; public static final int REQ = 1; // isset id assignments @@ -10200,19 +22574,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, DropTagIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getSpace_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropTagIndex_args.class, metaDataMap); } - public getSpace_args() { + public dropTagIndex_args() { } - public getSpace_args( - GetSpaceReq req) { + public dropTagIndex_args( + DropTagIndexReq req) { this(); this.req = req; } @@ -10220,21 +22594,21 @@ public getSpace_args( /** * Performs a deep copy on other. */ - public getSpace_args(getSpace_args other) { + public dropTagIndex_args(dropTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getSpace_args deepCopy() { - return new getSpace_args(this); + public dropTagIndex_args deepCopy() { + return new dropTagIndex_args(this); } - public GetSpaceReq getReq() { + public DropTagIndexReq getReq() { return this.req; } - public getSpace_args setReq(GetSpaceReq req) { + public dropTagIndex_args setReq(DropTagIndexReq req) { this.req = req; return this; } @@ -10260,7 +22634,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetSpaceReq)__value); + setReq((DropTagIndexReq)__value); } break; @@ -10285,9 +22659,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getSpace_args)) + if (!(_that instanceof dropTagIndex_args)) return false; - getSpace_args that = (getSpace_args)_that; + dropTagIndex_args that = (dropTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -10300,7 +22674,7 @@ public int hashCode() { } @Override - public int compareTo(getSpace_args other) { + public int compareTo(dropTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -10335,7 +22709,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetSpaceReq(); + this.req = new DropTagIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -10377,7 +22751,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("dropTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -10404,11 +22778,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 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 GetSpaceResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -10418,19 +22792,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, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getSpace_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropTagIndex_result.class, metaDataMap); } - public getSpace_result() { + public dropTagIndex_result() { } - public getSpace_result( - GetSpaceResp success) { + public dropTagIndex_result( + ExecResp success) { this(); this.success = success; } @@ -10438,21 +22812,21 @@ public getSpace_result( /** * Performs a deep copy on other. */ - public getSpace_result(getSpace_result other) { + public dropTagIndex_result(dropTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getSpace_result deepCopy() { - return new getSpace_result(this); + public dropTagIndex_result deepCopy() { + return new dropTagIndex_result(this); } - public GetSpaceResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getSpace_result setSuccess(GetSpaceResp success) { + public dropTagIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -10478,7 +22852,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetSpaceResp)__value); + setSuccess((ExecResp)__value); } break; @@ -10503,9 +22877,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getSpace_result)) + if (!(_that instanceof dropTagIndex_result)) return false; - getSpace_result that = (getSpace_result)_that; + dropTagIndex_result that = (dropTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -10518,7 +22892,7 @@ public int hashCode() { } @Override - public int compareTo(getSpace_result other) { + public int compareTo(dropTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -10553,7 +22927,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetSpaceResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -10594,7 +22968,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("dropTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -10621,11 +22995,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 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 ListSpacesReq req; + public GetTagIndexReq req; public static final int REQ = 1; // isset id assignments @@ -10635,19 +23009,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, GetTagIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSpaces_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getTagIndex_args.class, metaDataMap); } - public listSpaces_args() { + public getTagIndex_args() { } - public listSpaces_args( - ListSpacesReq req) { + public getTagIndex_args( + GetTagIndexReq req) { this(); this.req = req; } @@ -10655,21 +23029,21 @@ public listSpaces_args( /** * Performs a deep copy on other. */ - public listSpaces_args(listSpaces_args other) { + public getTagIndex_args(getTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listSpaces_args deepCopy() { - return new listSpaces_args(this); + public getTagIndex_args deepCopy() { + return new getTagIndex_args(this); } - public ListSpacesReq getReq() { + public GetTagIndexReq getReq() { return this.req; } - public listSpaces_args setReq(ListSpacesReq req) { + public getTagIndex_args setReq(GetTagIndexReq req) { this.req = req; return this; } @@ -10695,7 +23069,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListSpacesReq)__value); + setReq((GetTagIndexReq)__value); } break; @@ -10720,9 +23094,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSpaces_args)) + if (!(_that instanceof getTagIndex_args)) return false; - listSpaces_args that = (listSpaces_args)_that; + getTagIndex_args that = (getTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -10735,7 +23109,7 @@ public int hashCode() { } @Override - public int compareTo(listSpaces_args other) { + public int compareTo(getTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -10770,7 +23144,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListSpacesReq(); + this.req = new GetTagIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -10812,7 +23186,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("getTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -10839,11 +23213,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 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 ListSpacesResp success; + public GetTagIndexResp success; public static final int SUCCESS = 0; // isset id assignments @@ -10853,19 +23227,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, GetTagIndexResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSpaces_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getTagIndex_result.class, metaDataMap); } - public listSpaces_result() { + public getTagIndex_result() { } - public listSpaces_result( - ListSpacesResp success) { + public getTagIndex_result( + GetTagIndexResp success) { this(); this.success = success; } @@ -10873,21 +23247,21 @@ public listSpaces_result( /** * Performs a deep copy on other. */ - public listSpaces_result(listSpaces_result other) { + public getTagIndex_result(getTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listSpaces_result deepCopy() { - return new listSpaces_result(this); + public getTagIndex_result deepCopy() { + return new getTagIndex_result(this); } - public ListSpacesResp getSuccess() { + public GetTagIndexResp getSuccess() { return this.success; } - public listSpaces_result setSuccess(ListSpacesResp success) { + public getTagIndex_result setSuccess(GetTagIndexResp success) { this.success = success; return this; } @@ -10913,7 +23287,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListSpacesResp)__value); + setSuccess((GetTagIndexResp)__value); } break; @@ -10938,9 +23312,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSpaces_result)) + if (!(_that instanceof getTagIndex_result)) return false; - listSpaces_result that = (listSpaces_result)_that; + getTagIndex_result that = (getTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -10953,7 +23327,7 @@ public int hashCode() { } @Override - public int compareTo(listSpaces_result other) { + public int compareTo(getTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -10988,7 +23362,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListSpacesResp(); + this.success = new GetTagIndexResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -11029,7 +23403,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("getTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -11056,11 +23430,11 @@ public void validate() throws TException { } - public static class alterSpace_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("alterSpace_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 AlterSpaceReq req; + public ListTagIndexesReq req; public static final int REQ = 1; // isset id assignments @@ -11070,19 +23444,19 @@ public static class alterSpace_args implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AlterSpaceReq.class))); + new StructMetaData(TType.STRUCT, ListTagIndexesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterSpace_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexes_args.class, metaDataMap); } - public alterSpace_args() { + public listTagIndexes_args() { } - public alterSpace_args( - AlterSpaceReq req) { + public listTagIndexes_args( + ListTagIndexesReq req) { this(); this.req = req; } @@ -11090,21 +23464,21 @@ public alterSpace_args( /** * Performs a deep copy on other. */ - public alterSpace_args(alterSpace_args other) { + public listTagIndexes_args(listTagIndexes_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public alterSpace_args deepCopy() { - return new alterSpace_args(this); + public listTagIndexes_args deepCopy() { + return new listTagIndexes_args(this); } - public AlterSpaceReq getReq() { + public ListTagIndexesReq getReq() { return this.req; } - public alterSpace_args setReq(AlterSpaceReq req) { + public listTagIndexes_args setReq(ListTagIndexesReq req) { this.req = req; return this; } @@ -11130,7 +23504,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AlterSpaceReq)__value); + setReq((ListTagIndexesReq)__value); } break; @@ -11155,9 +23529,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterSpace_args)) + if (!(_that instanceof listTagIndexes_args)) return false; - alterSpace_args that = (alterSpace_args)_that; + listTagIndexes_args that = (listTagIndexes_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -11170,7 +23544,7 @@ public int hashCode() { } @Override - public int compareTo(alterSpace_args other) { + public int compareTo(listTagIndexes_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -11205,7 +23579,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AlterSpaceReq(); + this.req = new ListTagIndexesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -11247,7 +23621,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("alterSpace_args"); + StringBuilder sb = new StringBuilder("listTagIndexes_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -11274,11 +23648,11 @@ public void validate() throws TException { } - public static class alterSpace_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("alterSpace_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 ExecResp success; + public ListTagIndexesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -11288,19 +23662,19 @@ public static class alterSpace_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, ListTagIndexesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterSpace_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexes_result.class, metaDataMap); } - public alterSpace_result() { + public listTagIndexes_result() { } - public alterSpace_result( - ExecResp success) { + public listTagIndexes_result( + ListTagIndexesResp success) { this(); this.success = success; } @@ -11308,21 +23682,21 @@ public alterSpace_result( /** * Performs a deep copy on other. */ - public alterSpace_result(alterSpace_result other) { + public listTagIndexes_result(listTagIndexes_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public alterSpace_result deepCopy() { - return new alterSpace_result(this); + public listTagIndexes_result deepCopy() { + return new listTagIndexes_result(this); } - public ExecResp getSuccess() { + public ListTagIndexesResp getSuccess() { return this.success; } - public alterSpace_result setSuccess(ExecResp success) { + public listTagIndexes_result setSuccess(ListTagIndexesResp success) { this.success = success; return this; } @@ -11348,7 +23722,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListTagIndexesResp)__value); } break; @@ -11373,9 +23747,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterSpace_result)) + if (!(_that instanceof listTagIndexes_result)) return false; - alterSpace_result that = (alterSpace_result)_that; + listTagIndexes_result that = (listTagIndexes_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -11388,7 +23762,7 @@ public int hashCode() { } @Override - public int compareTo(alterSpace_result other) { + public int compareTo(listTagIndexes_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -11423,7 +23797,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListTagIndexesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -11464,7 +23838,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("alterSpace_result"); + StringBuilder sb = new StringBuilder("listTagIndexes_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -11491,11 +23865,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 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 CreateSpaceAsReq req; + public RebuildIndexReq req; public static final int REQ = 1; // isset id assignments @@ -11505,19 +23879,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, RebuildIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createSpaceAs_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildTagIndex_args.class, metaDataMap); } - public createSpaceAs_args() { + public rebuildTagIndex_args() { } - public createSpaceAs_args( - CreateSpaceAsReq req) { + public rebuildTagIndex_args( + RebuildIndexReq req) { this(); this.req = req; } @@ -11525,21 +23899,21 @@ public createSpaceAs_args( /** * Performs a deep copy on other. */ - public createSpaceAs_args(createSpaceAs_args other) { + public rebuildTagIndex_args(rebuildTagIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createSpaceAs_args deepCopy() { - return new createSpaceAs_args(this); + public rebuildTagIndex_args deepCopy() { + return new rebuildTagIndex_args(this); } - public CreateSpaceAsReq getReq() { + public RebuildIndexReq getReq() { return this.req; } - public createSpaceAs_args setReq(CreateSpaceAsReq req) { + public rebuildTagIndex_args setReq(RebuildIndexReq req) { this.req = req; return this; } @@ -11565,7 +23939,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateSpaceAsReq)__value); + setReq((RebuildIndexReq)__value); } break; @@ -11590,9 +23964,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSpaceAs_args)) + if (!(_that instanceof rebuildTagIndex_args)) return false; - createSpaceAs_args that = (createSpaceAs_args)_that; + rebuildTagIndex_args that = (rebuildTagIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -11605,7 +23979,7 @@ public int hashCode() { } @Override - public int compareTo(createSpaceAs_args other) { + public int compareTo(rebuildTagIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -11640,7 +24014,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateSpaceAsReq(); + this.req = new RebuildIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -11682,7 +24056,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("rebuildTagIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -11709,8 +24083,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 rebuildTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("rebuildTagIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -11728,13 +24102,13 @@ public static class createSpaceAs_result implements TBase, java.io.Serializable, } static { - FieldMetaData.addStructMetaDataMap(createSpaceAs_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildTagIndex_result.class, metaDataMap); } - public createSpaceAs_result() { + public rebuildTagIndex_result() { } - public createSpaceAs_result( + public rebuildTagIndex_result( ExecResp success) { this(); this.success = success; @@ -11743,21 +24117,21 @@ public createSpaceAs_result( /** * Performs a deep copy on other. */ - public createSpaceAs_result(createSpaceAs_result other) { + public rebuildTagIndex_result(rebuildTagIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createSpaceAs_result deepCopy() { - return new createSpaceAs_result(this); + public rebuildTagIndex_result deepCopy() { + return new rebuildTagIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public createSpaceAs_result setSuccess(ExecResp success) { + public rebuildTagIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -11808,9 +24182,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSpaceAs_result)) + if (!(_that instanceof rebuildTagIndex_result)) return false; - createSpaceAs_result that = (createSpaceAs_result)_that; + rebuildTagIndex_result that = (rebuildTagIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -11823,7 +24197,7 @@ public int hashCode() { } @Override - public int compareTo(createSpaceAs_result other) { + public int compareTo(rebuildTagIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -11899,7 +24273,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("rebuildTagIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -11926,11 +24300,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 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 CreateTagReq req; + public ListIndexStatusReq req; public static final int REQ = 1; // isset id assignments @@ -11940,19 +24314,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, ListIndexStatusReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createTag_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexStatus_args.class, metaDataMap); } - public createTag_args() { + public listTagIndexStatus_args() { } - public createTag_args( - CreateTagReq req) { + public listTagIndexStatus_args( + ListIndexStatusReq req) { this(); this.req = req; } @@ -11960,21 +24334,21 @@ public createTag_args( /** * Performs a deep copy on other. */ - public createTag_args(createTag_args other) { + public listTagIndexStatus_args(listTagIndexStatus_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createTag_args deepCopy() { - return new createTag_args(this); + public listTagIndexStatus_args deepCopy() { + return new listTagIndexStatus_args(this); } - public CreateTagReq getReq() { + public ListIndexStatusReq getReq() { return this.req; } - public createTag_args setReq(CreateTagReq req) { + public listTagIndexStatus_args setReq(ListIndexStatusReq req) { this.req = req; return this; } @@ -12000,7 +24374,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateTagReq)__value); + setReq((ListIndexStatusReq)__value); } break; @@ -12025,9 +24399,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createTag_args)) + if (!(_that instanceof listTagIndexStatus_args)) return false; - createTag_args that = (createTag_args)_that; + listTagIndexStatus_args that = (listTagIndexStatus_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -12040,7 +24414,7 @@ public int hashCode() { } @Override - public int compareTo(createTag_args other) { + public int compareTo(listTagIndexStatus_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -12075,7 +24449,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateTagReq(); + this.req = new ListIndexStatusReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -12117,7 +24491,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("listTagIndexStatus_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -12144,11 +24518,11 @@ 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 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 @@ -12158,19 +24532,19 @@ public static class createTag_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, ListIndexStatusResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createTag_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listTagIndexStatus_result.class, metaDataMap); } - public createTag_result() { + public listTagIndexStatus_result() { } - public createTag_result( - ExecResp success) { + public listTagIndexStatus_result( + ListIndexStatusResp success) { this(); this.success = success; } @@ -12178,21 +24552,21 @@ public createTag_result( /** * Performs a deep copy on other. */ - public createTag_result(createTag_result other) { + public listTagIndexStatus_result(listTagIndexStatus_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createTag_result deepCopy() { - return new createTag_result(this); + public listTagIndexStatus_result deepCopy() { + return new listTagIndexStatus_result(this); } - public ExecResp getSuccess() { + public ListIndexStatusResp getSuccess() { return this.success; } - public createTag_result setSuccess(ExecResp success) { + public listTagIndexStatus_result setSuccess(ListIndexStatusResp success) { this.success = success; return this; } @@ -12218,7 +24592,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListIndexStatusResp)__value); } break; @@ -12243,9 +24617,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createTag_result)) + if (!(_that instanceof listTagIndexStatus_result)) return false; - createTag_result that = (createTag_result)_that; + listTagIndexStatus_result that = (listTagIndexStatus_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -12258,7 +24632,7 @@ public int hashCode() { } @Override - public int compareTo(createTag_result other) { + public int compareTo(listTagIndexStatus_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -12293,7 +24667,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); @@ -12334,7 +24708,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("listTagIndexStatus_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -12361,11 +24735,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 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 AlterTagReq req; + public CreateEdgeIndexReq req; public static final int REQ = 1; // isset id assignments @@ -12375,19 +24749,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, CreateEdgeIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterTag_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createEdgeIndex_args.class, metaDataMap); } - public alterTag_args() { + public createEdgeIndex_args() { } - public alterTag_args( - AlterTagReq req) { + public createEdgeIndex_args( + CreateEdgeIndexReq req) { this(); this.req = req; } @@ -12395,21 +24769,21 @@ public alterTag_args( /** * Performs a deep copy on other. */ - public alterTag_args(alterTag_args other) { + public createEdgeIndex_args(createEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public alterTag_args deepCopy() { - return new alterTag_args(this); + public createEdgeIndex_args deepCopy() { + return new createEdgeIndex_args(this); } - public AlterTagReq getReq() { + public CreateEdgeIndexReq getReq() { return this.req; } - public alterTag_args setReq(AlterTagReq req) { + public createEdgeIndex_args setReq(CreateEdgeIndexReq req) { this.req = req; return this; } @@ -12435,7 +24809,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AlterTagReq)__value); + setReq((CreateEdgeIndexReq)__value); } break; @@ -12460,9 +24834,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterTag_args)) + if (!(_that instanceof createEdgeIndex_args)) return false; - alterTag_args that = (alterTag_args)_that; + createEdgeIndex_args that = (createEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -12475,7 +24849,7 @@ public int hashCode() { } @Override - public int compareTo(alterTag_args other) { + public int compareTo(createEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -12510,7 +24884,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AlterTagReq(); + this.req = new CreateEdgeIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -12552,7 +24926,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("createEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -12579,8 +24953,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 createEdgeIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createEdgeIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -12598,13 +24972,13 @@ public static class alterTag_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(alterTag_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createEdgeIndex_result.class, metaDataMap); } - public alterTag_result() { + public createEdgeIndex_result() { } - public alterTag_result( + public createEdgeIndex_result( ExecResp success) { this(); this.success = success; @@ -12613,21 +24987,21 @@ public alterTag_result( /** * Performs a deep copy on other. */ - public alterTag_result(alterTag_result other) { + public createEdgeIndex_result(createEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public alterTag_result deepCopy() { - return new alterTag_result(this); + public createEdgeIndex_result deepCopy() { + return new createEdgeIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public alterTag_result setSuccess(ExecResp success) { + public createEdgeIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -12678,9 +25052,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterTag_result)) + if (!(_that instanceof createEdgeIndex_result)) return false; - alterTag_result that = (alterTag_result)_that; + createEdgeIndex_result that = (createEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -12693,7 +25067,7 @@ public int hashCode() { } @Override - public int compareTo(alterTag_result other) { + public int compareTo(createEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -12769,7 +25143,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("createEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -12796,11 +25170,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 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 DropTagReq req; + public DropEdgeIndexReq req; public static final int REQ = 1; // isset id assignments @@ -12810,19 +25184,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, DropEdgeIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropTag_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropEdgeIndex_args.class, metaDataMap); } - public dropTag_args() { + public dropEdgeIndex_args() { } - public dropTag_args( - DropTagReq req) { + public dropEdgeIndex_args( + DropEdgeIndexReq req) { this(); this.req = req; } @@ -12830,21 +25204,21 @@ public dropTag_args( /** * Performs a deep copy on other. */ - public dropTag_args(dropTag_args other) { + public dropEdgeIndex_args(dropEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropTag_args deepCopy() { - return new dropTag_args(this); + public dropEdgeIndex_args deepCopy() { + return new dropEdgeIndex_args(this); } - public DropTagReq getReq() { + public DropEdgeIndexReq getReq() { return this.req; } - public dropTag_args setReq(DropTagReq req) { + public dropEdgeIndex_args setReq(DropEdgeIndexReq req) { this.req = req; return this; } @@ -12870,7 +25244,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropTagReq)__value); + setReq((DropEdgeIndexReq)__value); } break; @@ -12895,9 +25269,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropTag_args)) + if (!(_that instanceof dropEdgeIndex_args)) return false; - dropTag_args that = (dropTag_args)_that; + dropEdgeIndex_args that = (dropEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -12910,7 +25284,7 @@ public int hashCode() { } @Override - public int compareTo(dropTag_args other) { + public int compareTo(dropEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -12945,7 +25319,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropTagReq(); + this.req = new DropEdgeIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -12987,7 +25361,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("dropEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13014,8 +25388,8 @@ 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 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; @@ -13033,13 +25407,13 @@ public static class dropTag_result implements TBase, java.io.Serializable, Clone } static { - FieldMetaData.addStructMetaDataMap(dropTag_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropEdgeIndex_result.class, metaDataMap); } - public dropTag_result() { + public dropEdgeIndex_result() { } - public dropTag_result( + public dropEdgeIndex_result( ExecResp success) { this(); this.success = success; @@ -13048,21 +25422,21 @@ public dropTag_result( /** * Performs a deep copy on other. */ - public dropTag_result(dropTag_result other) { + public dropEdgeIndex_result(dropEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropTag_result deepCopy() { - return new dropTag_result(this); + public dropEdgeIndex_result deepCopy() { + return new dropEdgeIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public dropTag_result setSuccess(ExecResp success) { + public dropEdgeIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -13113,9 +25487,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropTag_result)) + if (!(_that instanceof dropEdgeIndex_result)) return false; - dropTag_result that = (dropTag_result)_that; + dropEdgeIndex_result that = (dropEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -13128,7 +25502,7 @@ public int hashCode() { } @Override - public int compareTo(dropTag_result other) { + public int compareTo(dropEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -13204,7 +25578,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("dropEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13231,11 +25605,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 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 GetTagReq req; + public GetEdgeIndexReq req; public static final int REQ = 1; // isset id assignments @@ -13245,19 +25619,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, GetEdgeIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getTag_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getEdgeIndex_args.class, metaDataMap); } - public getTag_args() { + public getEdgeIndex_args() { } - public getTag_args( - GetTagReq req) { + public getEdgeIndex_args( + GetEdgeIndexReq req) { this(); this.req = req; } @@ -13265,21 +25639,21 @@ public getTag_args( /** * Performs a deep copy on other. */ - public getTag_args(getTag_args other) { + public getEdgeIndex_args(getEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getTag_args deepCopy() { - return new getTag_args(this); + public getEdgeIndex_args deepCopy() { + return new getEdgeIndex_args(this); } - public GetTagReq getReq() { + public GetEdgeIndexReq getReq() { return this.req; } - public getTag_args setReq(GetTagReq req) { + public getEdgeIndex_args setReq(GetEdgeIndexReq req) { this.req = req; return this; } @@ -13305,7 +25679,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetTagReq)__value); + setReq((GetEdgeIndexReq)__value); } break; @@ -13330,9 +25704,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getTag_args)) + if (!(_that instanceof getEdgeIndex_args)) return false; - getTag_args that = (getTag_args)_that; + getEdgeIndex_args that = (getEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -13345,7 +25719,7 @@ public int hashCode() { } @Override - public int compareTo(getTag_args other) { + public int compareTo(getEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -13380,7 +25754,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetTagReq(); + this.req = new GetEdgeIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -13422,7 +25796,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("getEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13449,11 +25823,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 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 GetTagResp success; + public GetEdgeIndexResp success; public static final int SUCCESS = 0; // isset id assignments @@ -13463,19 +25837,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, GetEdgeIndexResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getTag_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getEdgeIndex_result.class, metaDataMap); } - public getTag_result() { + public getEdgeIndex_result() { } - public getTag_result( - GetTagResp success) { + public getEdgeIndex_result( + GetEdgeIndexResp success) { this(); this.success = success; } @@ -13483,21 +25857,21 @@ public getTag_result( /** * Performs a deep copy on other. */ - public getTag_result(getTag_result other) { + public getEdgeIndex_result(getEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getTag_result deepCopy() { - return new getTag_result(this); + public getEdgeIndex_result deepCopy() { + return new getEdgeIndex_result(this); } - public GetTagResp getSuccess() { + public GetEdgeIndexResp getSuccess() { return this.success; } - public getTag_result setSuccess(GetTagResp success) { + public getEdgeIndex_result setSuccess(GetEdgeIndexResp success) { this.success = success; return this; } @@ -13523,7 +25897,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetTagResp)__value); + setSuccess((GetEdgeIndexResp)__value); } break; @@ -13548,9 +25922,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getTag_result)) + if (!(_that instanceof getEdgeIndex_result)) return false; - getTag_result that = (getTag_result)_that; + getEdgeIndex_result that = (getEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -13563,7 +25937,7 @@ public int hashCode() { } @Override - public int compareTo(getTag_result other) { + public int compareTo(getEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -13598,7 +25972,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetTagResp(); + this.success = new GetEdgeIndexResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -13639,7 +26013,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("getEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13666,11 +26040,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 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 ListTagsReq req; + public ListEdgeIndexesReq req; public static final int REQ = 1; // isset id assignments @@ -13680,19 +26054,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, ListEdgeIndexesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTags_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexes_args.class, metaDataMap); } - public listTags_args() { + public listEdgeIndexes_args() { } - public listTags_args( - ListTagsReq req) { + public listEdgeIndexes_args( + ListEdgeIndexesReq req) { this(); this.req = req; } @@ -13700,21 +26074,21 @@ public listTags_args( /** * Performs a deep copy on other. */ - public listTags_args(listTags_args other) { + public listEdgeIndexes_args(listEdgeIndexes_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listTags_args deepCopy() { - return new listTags_args(this); + public listEdgeIndexes_args deepCopy() { + return new listEdgeIndexes_args(this); } - public ListTagsReq getReq() { + public ListEdgeIndexesReq getReq() { return this.req; } - public listTags_args setReq(ListTagsReq req) { + public listEdgeIndexes_args setReq(ListEdgeIndexesReq req) { this.req = req; return this; } @@ -13740,7 +26114,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListTagsReq)__value); + setReq((ListEdgeIndexesReq)__value); } break; @@ -13765,9 +26139,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTags_args)) + if (!(_that instanceof listEdgeIndexes_args)) return false; - listTags_args that = (listTags_args)_that; + listEdgeIndexes_args that = (listEdgeIndexes_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -13780,7 +26154,7 @@ public int hashCode() { } @Override - public int compareTo(listTags_args other) { + public int compareTo(listEdgeIndexes_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -13815,7 +26189,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListTagsReq(); + this.req = new ListEdgeIndexesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -13857,7 +26231,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("listEdgeIndexes_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -13884,11 +26258,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 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 ListTagsResp success; + public ListEdgeIndexesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -13898,19 +26272,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, ListEdgeIndexesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTags_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexes_result.class, metaDataMap); } - public listTags_result() { + public listEdgeIndexes_result() { } - public listTags_result( - ListTagsResp success) { + public listEdgeIndexes_result( + ListEdgeIndexesResp success) { this(); this.success = success; } @@ -13918,21 +26292,21 @@ public listTags_result( /** * Performs a deep copy on other. */ - public listTags_result(listTags_result other) { + public listEdgeIndexes_result(listEdgeIndexes_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listTags_result deepCopy() { - return new listTags_result(this); + public listEdgeIndexes_result deepCopy() { + return new listEdgeIndexes_result(this); } - public ListTagsResp getSuccess() { + public ListEdgeIndexesResp getSuccess() { return this.success; } - public listTags_result setSuccess(ListTagsResp success) { + public listEdgeIndexes_result setSuccess(ListEdgeIndexesResp success) { this.success = success; return this; } @@ -13958,7 +26332,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListTagsResp)__value); + setSuccess((ListEdgeIndexesResp)__value); } break; @@ -13983,9 +26357,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTags_result)) + if (!(_that instanceof listEdgeIndexes_result)) return false; - listTags_result that = (listTags_result)_that; + listEdgeIndexes_result that = (listEdgeIndexes_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -13998,7 +26372,7 @@ public int hashCode() { } @Override - public int compareTo(listTags_result other) { + public int compareTo(listEdgeIndexes_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14033,7 +26407,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListTagsResp(); + this.success = new ListEdgeIndexesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -14074,7 +26448,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("listEdgeIndexes_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14101,11 +26475,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 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 CreateEdgeReq req; + public RebuildIndexReq req; public static final int REQ = 1; // isset id assignments @@ -14115,19 +26489,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, RebuildIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_args.class, metaDataMap); } - public createEdge_args() { + public rebuildEdgeIndex_args() { } - public createEdge_args( - CreateEdgeReq req) { + public rebuildEdgeIndex_args( + RebuildIndexReq req) { this(); this.req = req; } @@ -14135,21 +26509,21 @@ public createEdge_args( /** * Performs a deep copy on other. */ - public createEdge_args(createEdge_args other) { + public rebuildEdgeIndex_args(rebuildEdgeIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createEdge_args deepCopy() { - return new createEdge_args(this); + public rebuildEdgeIndex_args deepCopy() { + return new rebuildEdgeIndex_args(this); } - public CreateEdgeReq getReq() { + public RebuildIndexReq getReq() { return this.req; } - public createEdge_args setReq(CreateEdgeReq req) { + public rebuildEdgeIndex_args setReq(RebuildIndexReq req) { this.req = req; return this; } @@ -14175,7 +26549,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateEdgeReq)__value); + setReq((RebuildIndexReq)__value); } break; @@ -14200,9 +26574,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdge_args)) + if (!(_that instanceof rebuildEdgeIndex_args)) return false; - createEdge_args that = (createEdge_args)_that; + rebuildEdgeIndex_args that = (rebuildEdgeIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -14215,7 +26589,7 @@ public int hashCode() { } @Override - public int compareTo(createEdge_args other) { + public int compareTo(rebuildEdgeIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14250,7 +26624,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateEdgeReq(); + this.req = new RebuildIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -14292,7 +26666,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("rebuildEdgeIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14319,8 +26693,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 rebuildEdgeIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("rebuildEdgeIndex_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -14338,13 +26712,13 @@ public static class createEdge_result implements TBase, java.io.Serializable, Cl } static { - FieldMetaData.addStructMetaDataMap(createEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_result.class, metaDataMap); } - public createEdge_result() { + public rebuildEdgeIndex_result() { } - public createEdge_result( + public rebuildEdgeIndex_result( ExecResp success) { this(); this.success = success; @@ -14353,21 +26727,21 @@ public createEdge_result( /** * Performs a deep copy on other. */ - public createEdge_result(createEdge_result other) { + public rebuildEdgeIndex_result(rebuildEdgeIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createEdge_result deepCopy() { - return new createEdge_result(this); + public rebuildEdgeIndex_result deepCopy() { + return new rebuildEdgeIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public createEdge_result setSuccess(ExecResp success) { + public rebuildEdgeIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -14418,9 +26792,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdge_result)) + if (!(_that instanceof rebuildEdgeIndex_result)) return false; - createEdge_result that = (createEdge_result)_that; + rebuildEdgeIndex_result that = (rebuildEdgeIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -14433,7 +26807,7 @@ public int hashCode() { } @Override - public int compareTo(createEdge_result other) { + public int compareTo(rebuildEdgeIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14509,7 +26883,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("rebuildEdgeIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14536,11 +26910,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 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 AlterEdgeReq req; + public ListIndexStatusReq req; public static final int REQ = 1; // isset id assignments @@ -14550,19 +26924,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, ListIndexStatusReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_args.class, metaDataMap); } - public alterEdge_args() { + public listEdgeIndexStatus_args() { } - public alterEdge_args( - AlterEdgeReq req) { + public listEdgeIndexStatus_args( + ListIndexStatusReq req) { this(); this.req = req; } @@ -14570,21 +26944,21 @@ public alterEdge_args( /** * Performs a deep copy on other. */ - public alterEdge_args(alterEdge_args other) { + public listEdgeIndexStatus_args(listEdgeIndexStatus_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public alterEdge_args deepCopy() { - return new alterEdge_args(this); + public listEdgeIndexStatus_args deepCopy() { + return new listEdgeIndexStatus_args(this); } - public AlterEdgeReq getReq() { + public ListIndexStatusReq getReq() { return this.req; } - public alterEdge_args setReq(AlterEdgeReq req) { + public listEdgeIndexStatus_args setReq(ListIndexStatusReq req) { this.req = req; return this; } @@ -14610,7 +26984,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AlterEdgeReq)__value); + setReq((ListIndexStatusReq)__value); } break; @@ -14635,9 +27009,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterEdge_args)) + if (!(_that instanceof listEdgeIndexStatus_args)) return false; - alterEdge_args that = (alterEdge_args)_that; + listEdgeIndexStatus_args that = (listEdgeIndexStatus_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -14650,7 +27024,7 @@ public int hashCode() { } @Override - public int compareTo(alterEdge_args other) { + public int compareTo(listEdgeIndexStatus_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14685,7 +27059,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AlterEdgeReq(); + this.req = new ListIndexStatusReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -14727,7 +27101,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("listEdgeIndexStatus_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14754,11 +27128,11 @@ 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 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 @@ -14768,19 +27142,19 @@ public static class alterEdge_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, ListIndexStatusResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_result.class, metaDataMap); } - public alterEdge_result() { + public listEdgeIndexStatus_result() { } - public alterEdge_result( - ExecResp success) { + public listEdgeIndexStatus_result( + ListIndexStatusResp success) { this(); this.success = success; } @@ -14788,21 +27162,21 @@ public alterEdge_result( /** * Performs a deep copy on other. */ - public alterEdge_result(alterEdge_result other) { + public listEdgeIndexStatus_result(listEdgeIndexStatus_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public alterEdge_result deepCopy() { - return new alterEdge_result(this); + public listEdgeIndexStatus_result deepCopy() { + return new listEdgeIndexStatus_result(this); } - public ExecResp getSuccess() { + public ListIndexStatusResp getSuccess() { return this.success; } - public alterEdge_result setSuccess(ExecResp success) { + public listEdgeIndexStatus_result setSuccess(ListIndexStatusResp success) { this.success = success; return this; } @@ -14828,7 +27202,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListIndexStatusResp)__value); } break; @@ -14853,9 +27227,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterEdge_result)) + if (!(_that instanceof listEdgeIndexStatus_result)) return false; - alterEdge_result that = (alterEdge_result)_that; + listEdgeIndexStatus_result that = (listEdgeIndexStatus_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -14868,7 +27242,7 @@ public int hashCode() { } @Override - public int compareTo(alterEdge_result other) { + public int compareTo(listEdgeIndexStatus_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -14903,7 +27277,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); @@ -14944,7 +27318,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("listEdgeIndexStatus_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -14971,11 +27345,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 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 DropEdgeReq req; + public CreateUserReq req; public static final int REQ = 1; // isset id assignments @@ -14985,19 +27359,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, CreateUserReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap); } - public dropEdge_args() { + public createUser_args() { } - public dropEdge_args( - DropEdgeReq req) { + public createUser_args( + CreateUserReq req) { this(); this.req = req; } @@ -15005,21 +27379,21 @@ public dropEdge_args( /** * Performs a deep copy on other. */ - public dropEdge_args(dropEdge_args other) { + public createUser_args(createUser_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropEdge_args deepCopy() { - return new dropEdge_args(this); + public createUser_args deepCopy() { + return new createUser_args(this); } - public DropEdgeReq getReq() { + public CreateUserReq getReq() { return this.req; } - public dropEdge_args setReq(DropEdgeReq req) { + public createUser_args setReq(CreateUserReq req) { this.req = req; return this; } @@ -15045,7 +27419,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropEdgeReq)__value); + setReq((CreateUserReq)__value); } break; @@ -15070,9 +27444,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdge_args)) + if (!(_that instanceof createUser_args)) return false; - dropEdge_args that = (dropEdge_args)_that; + createUser_args that = (createUser_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -15085,7 +27459,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdge_args other) { + public int compareTo(createUser_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15120,7 +27494,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropEdgeReq(); + this.req = new CreateUserReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15162,7 +27536,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("createUser_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15189,8 +27563,8 @@ public void validate() throws TException { } - public static class dropEdge_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropEdge_result"); + public static class 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 ExecResp success; @@ -15208,13 +27582,13 @@ public static class dropEdge_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(dropEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap); } - public dropEdge_result() { + public createUser_result() { } - public dropEdge_result( + public createUser_result( ExecResp success) { this(); this.success = success; @@ -15223,21 +27597,21 @@ public dropEdge_result( /** * Performs a deep copy on other. */ - public dropEdge_result(dropEdge_result other) { + public createUser_result(createUser_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropEdge_result deepCopy() { - return new dropEdge_result(this); + public createUser_result deepCopy() { + return new createUser_result(this); } public ExecResp getSuccess() { return this.success; } - public dropEdge_result setSuccess(ExecResp success) { + public createUser_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -15288,9 +27662,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdge_result)) + if (!(_that instanceof createUser_result)) return false; - dropEdge_result that = (dropEdge_result)_that; + createUser_result that = (createUser_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -15303,7 +27677,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdge_result other) { + public int compareTo(createUser_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15379,7 +27753,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("createUser_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15406,11 +27780,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 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 GetEdgeReq req; + public DropUserReq req; public static final int REQ = 1; // isset id assignments @@ -15420,19 +27794,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, DropUserReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdge_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropUser_args.class, metaDataMap); } - public getEdge_args() { + public dropUser_args() { } - public getEdge_args( - GetEdgeReq req) { + public dropUser_args( + DropUserReq req) { this(); this.req = req; } @@ -15440,21 +27814,21 @@ public getEdge_args( /** * Performs a deep copy on other. */ - public getEdge_args(getEdge_args other) { + public dropUser_args(dropUser_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getEdge_args deepCopy() { - return new getEdge_args(this); + public dropUser_args deepCopy() { + return new dropUser_args(this); } - public GetEdgeReq getReq() { + public DropUserReq getReq() { return this.req; } - public getEdge_args setReq(GetEdgeReq req) { + public dropUser_args setReq(DropUserReq req) { this.req = req; return this; } @@ -15480,7 +27854,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetEdgeReq)__value); + setReq((DropUserReq)__value); } break; @@ -15505,9 +27879,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdge_args)) + if (!(_that instanceof dropUser_args)) return false; - getEdge_args that = (getEdge_args)_that; + dropUser_args that = (dropUser_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -15520,7 +27894,7 @@ public int hashCode() { } @Override - public int compareTo(getEdge_args other) { + public int compareTo(dropUser_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15555,7 +27929,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetEdgeReq(); + this.req = new DropUserReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15597,7 +27971,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("dropUser_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15624,11 +27998,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 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 GetEdgeResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -15638,19 +28012,19 @@ public static class getEdge_result implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetEdgeResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdge_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropUser_result.class, metaDataMap); } - public getEdge_result() { + public dropUser_result() { } - public getEdge_result( - GetEdgeResp success) { + public dropUser_result( + ExecResp success) { this(); this.success = success; } @@ -15658,21 +28032,21 @@ public getEdge_result( /** * Performs a deep copy on other. */ - public getEdge_result(getEdge_result other) { + public dropUser_result(dropUser_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getEdge_result deepCopy() { - return new getEdge_result(this); + public dropUser_result deepCopy() { + return new dropUser_result(this); } - public GetEdgeResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getEdge_result setSuccess(GetEdgeResp success) { + public dropUser_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -15698,7 +28072,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetEdgeResp)__value); + setSuccess((ExecResp)__value); } break; @@ -15723,9 +28097,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdge_result)) + if (!(_that instanceof dropUser_result)) return false; - getEdge_result that = (getEdge_result)_that; + dropUser_result that = (dropUser_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -15738,7 +28112,7 @@ public int hashCode() { } @Override - public int compareTo(getEdge_result other) { + public int compareTo(dropUser_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15773,7 +28147,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetEdgeResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -15814,7 +28188,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("dropUser_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -15841,11 +28215,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 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 ListEdgesReq req; + public AlterUserReq req; public static final int REQ = 1; // isset id assignments @@ -15855,19 +28229,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, AlterUserReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdges_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterUser_args.class, metaDataMap); } - public listEdges_args() { + public alterUser_args() { } - public listEdges_args( - ListEdgesReq req) { + public alterUser_args( + AlterUserReq req) { this(); this.req = req; } @@ -15875,21 +28249,21 @@ public listEdges_args( /** * Performs a deep copy on other. */ - public listEdges_args(listEdges_args other) { + public alterUser_args(alterUser_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listEdges_args deepCopy() { - return new listEdges_args(this); + public alterUser_args deepCopy() { + return new alterUser_args(this); } - public ListEdgesReq getReq() { + public AlterUserReq getReq() { return this.req; } - public listEdges_args setReq(ListEdgesReq req) { + public alterUser_args setReq(AlterUserReq req) { this.req = req; return this; } @@ -15915,7 +28289,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListEdgesReq)__value); + setReq((AlterUserReq)__value); } break; @@ -15940,9 +28314,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdges_args)) + if (!(_that instanceof alterUser_args)) return false; - listEdges_args that = (listEdges_args)_that; + alterUser_args that = (alterUser_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -15955,7 +28329,7 @@ public int hashCode() { } @Override - public int compareTo(listEdges_args other) { + public int compareTo(alterUser_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -15990,7 +28364,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListEdgesReq(); + this.req = new AlterUserReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16032,7 +28406,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("alterUser_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16059,11 +28433,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 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 ListEdgesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -16073,19 +28447,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(alterUser_result.class, metaDataMap); } - public listEdges_result() { + public alterUser_result() { } - public listEdges_result( - ListEdgesResp success) { + public alterUser_result( + ExecResp success) { this(); this.success = success; } @@ -16093,21 +28467,21 @@ public listEdges_result( /** * Performs a deep copy on other. */ - public listEdges_result(listEdges_result other) { + public alterUser_result(alterUser_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listEdges_result deepCopy() { - return new listEdges_result(this); + public alterUser_result deepCopy() { + return new alterUser_result(this); } - public ListEdgesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listEdges_result setSuccess(ListEdgesResp success) { + public alterUser_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -16133,7 +28507,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListEdgesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -16158,9 +28532,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdges_result)) + if (!(_that instanceof alterUser_result)) return false; - listEdges_result that = (listEdges_result)_that; + alterUser_result that = (alterUser_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -16173,7 +28547,7 @@ public int hashCode() { } @Override - public int compareTo(listEdges_result other) { + public int compareTo(alterUser_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16208,7 +28582,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); @@ -16249,7 +28623,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("alterUser_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16276,11 +28650,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 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 AddHostsReq req; + public GrantRoleReq req; public static final int REQ = 1; // isset id assignments @@ -16290,19 +28664,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, GrantRoleReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addHosts_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(grantRole_args.class, metaDataMap); } - public addHosts_args() { + public grantRole_args() { } - public addHosts_args( - AddHostsReq req) { + public grantRole_args( + GrantRoleReq req) { this(); this.req = req; } @@ -16310,21 +28684,21 @@ public addHosts_args( /** * Performs a deep copy on other. */ - public addHosts_args(addHosts_args other) { + public grantRole_args(grantRole_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public addHosts_args deepCopy() { - return new addHosts_args(this); + public grantRole_args deepCopy() { + return new grantRole_args(this); } - public AddHostsReq getReq() { + public GrantRoleReq getReq() { return this.req; } - public addHosts_args setReq(AddHostsReq req) { + public grantRole_args setReq(GrantRoleReq req) { this.req = req; return this; } @@ -16350,7 +28724,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AddHostsReq)__value); + setReq((GrantRoleReq)__value); } break; @@ -16375,9 +28749,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addHosts_args)) + if (!(_that instanceof grantRole_args)) return false; - addHosts_args that = (addHosts_args)_that; + grantRole_args that = (grantRole_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -16390,7 +28764,7 @@ public int hashCode() { } @Override - public int compareTo(addHosts_args other) { + public int compareTo(grantRole_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16425,7 +28799,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AddHostsReq(); + this.req = new GrantRoleReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16467,7 +28841,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("grantRole_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16494,8 +28868,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 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; @@ -16513,13 +28887,13 @@ public static class addHosts_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(addHosts_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(grantRole_result.class, metaDataMap); } - public addHosts_result() { + public grantRole_result() { } - public addHosts_result( + public grantRole_result( ExecResp success) { this(); this.success = success; @@ -16528,21 +28902,21 @@ public addHosts_result( /** * Performs a deep copy on other. */ - public addHosts_result(addHosts_result other) { + public grantRole_result(grantRole_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public addHosts_result deepCopy() { - return new addHosts_result(this); + public grantRole_result deepCopy() { + return new grantRole_result(this); } public ExecResp getSuccess() { return this.success; } - public addHosts_result setSuccess(ExecResp success) { + public grantRole_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -16593,9 +28967,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addHosts_result)) + if (!(_that instanceof grantRole_result)) return false; - addHosts_result that = (addHosts_result)_that; + grantRole_result that = (grantRole_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -16608,7 +28982,7 @@ public int hashCode() { } @Override - public int compareTo(addHosts_result other) { + public int compareTo(grantRole_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16684,7 +29058,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("grantRole_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16711,11 +29085,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 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 AddHostsIntoZoneReq req; + public RevokeRoleReq req; public static final int REQ = 1; // isset id assignments @@ -16725,19 +29099,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, RevokeRoleReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addHostsIntoZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(revokeRole_args.class, metaDataMap); } - public addHostsIntoZone_args() { + public revokeRole_args() { } - public addHostsIntoZone_args( - AddHostsIntoZoneReq req) { + public revokeRole_args( + RevokeRoleReq req) { this(); this.req = req; } @@ -16745,21 +29119,21 @@ public addHostsIntoZone_args( /** * Performs a deep copy on other. */ - public addHostsIntoZone_args(addHostsIntoZone_args other) { + public revokeRole_args(revokeRole_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public addHostsIntoZone_args deepCopy() { - return new addHostsIntoZone_args(this); + public revokeRole_args deepCopy() { + return new revokeRole_args(this); } - public AddHostsIntoZoneReq getReq() { + public RevokeRoleReq getReq() { return this.req; } - public addHostsIntoZone_args setReq(AddHostsIntoZoneReq req) { + public revokeRole_args setReq(RevokeRoleReq req) { this.req = req; return this; } @@ -16785,7 +29159,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AddHostsIntoZoneReq)__value); + setReq((RevokeRoleReq)__value); } break; @@ -16810,9 +29184,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addHostsIntoZone_args)) + if (!(_that instanceof revokeRole_args)) return false; - addHostsIntoZone_args that = (addHostsIntoZone_args)_that; + revokeRole_args that = (revokeRole_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -16825,7 +29199,7 @@ public int hashCode() { } @Override - public int compareTo(addHostsIntoZone_args other) { + public int compareTo(revokeRole_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -16860,7 +29234,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AddHostsIntoZoneReq(); + this.req = new RevokeRoleReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -16902,7 +29276,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("revokeRole_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -16929,8 +29303,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 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; @@ -16948,13 +29322,13 @@ public static class addHostsIntoZone_result implements TBase, java.io.Serializab } static { - FieldMetaData.addStructMetaDataMap(addHostsIntoZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(revokeRole_result.class, metaDataMap); } - public addHostsIntoZone_result() { + public revokeRole_result() { } - public addHostsIntoZone_result( + public revokeRole_result( ExecResp success) { this(); this.success = success; @@ -16963,21 +29337,21 @@ public addHostsIntoZone_result( /** * Performs a deep copy on other. */ - public addHostsIntoZone_result(addHostsIntoZone_result other) { + public revokeRole_result(revokeRole_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public addHostsIntoZone_result deepCopy() { - return new addHostsIntoZone_result(this); + public revokeRole_result deepCopy() { + return new revokeRole_result(this); } public ExecResp getSuccess() { return this.success; } - public addHostsIntoZone_result setSuccess(ExecResp success) { + public revokeRole_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -17028,9 +29402,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addHostsIntoZone_result)) + if (!(_that instanceof revokeRole_result)) return false; - addHostsIntoZone_result that = (addHostsIntoZone_result)_that; + revokeRole_result that = (revokeRole_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -17043,7 +29417,7 @@ public int hashCode() { } @Override - public int compareTo(addHostsIntoZone_result other) { + public int compareTo(revokeRole_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17119,7 +29493,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("revokeRole_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17146,11 +29520,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 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 DropHostsReq req; + public ListUsersReq req; public static final int REQ = 1; // isset id assignments @@ -17160,19 +29534,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, ListUsersReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropHosts_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listUsers_args.class, metaDataMap); } - public dropHosts_args() { + public listUsers_args() { } - public dropHosts_args( - DropHostsReq req) { + public listUsers_args( + ListUsersReq req) { this(); this.req = req; } @@ -17180,21 +29554,21 @@ public dropHosts_args( /** * Performs a deep copy on other. */ - public dropHosts_args(dropHosts_args other) { + public listUsers_args(listUsers_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropHosts_args deepCopy() { - return new dropHosts_args(this); + public listUsers_args deepCopy() { + return new listUsers_args(this); } - public DropHostsReq getReq() { + public ListUsersReq getReq() { return this.req; } - public dropHosts_args setReq(DropHostsReq req) { + public listUsers_args setReq(ListUsersReq req) { this.req = req; return this; } @@ -17220,7 +29594,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropHostsReq)__value); + setReq((ListUsersReq)__value); } break; @@ -17245,9 +29619,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropHosts_args)) + if (!(_that instanceof listUsers_args)) return false; - dropHosts_args that = (dropHosts_args)_that; + listUsers_args that = (listUsers_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -17260,7 +29634,7 @@ public int hashCode() { } @Override - public int compareTo(dropHosts_args other) { + public int compareTo(listUsers_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17295,7 +29669,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropHostsReq(); + this.req = new ListUsersReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -17337,7 +29711,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("listUsers_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17364,11 +29738,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 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 @@ -17378,19 +29752,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, ListUsersResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropHosts_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listUsers_result.class, metaDataMap); } - public dropHosts_result() { + public listUsers_result() { } - public dropHosts_result( - ExecResp success) { + public listUsers_result( + ListUsersResp success) { this(); this.success = success; } @@ -17398,21 +29772,21 @@ public dropHosts_result( /** * Performs a deep copy on other. */ - public dropHosts_result(dropHosts_result other) { + public listUsers_result(listUsers_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropHosts_result deepCopy() { - return new dropHosts_result(this); + public listUsers_result deepCopy() { + return new listUsers_result(this); } - public ExecResp getSuccess() { + public ListUsersResp getSuccess() { return this.success; } - public dropHosts_result setSuccess(ExecResp success) { + public listUsers_result setSuccess(ListUsersResp success) { this.success = success; return this; } @@ -17438,7 +29812,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListUsersResp)__value); } break; @@ -17463,9 +29837,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropHosts_result)) + if (!(_that instanceof listUsers_result)) return false; - dropHosts_result that = (dropHosts_result)_that; + listUsers_result that = (listUsers_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -17478,7 +29852,7 @@ public int hashCode() { } @Override - public int compareTo(dropHosts_result other) { + public int compareTo(listUsers_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17513,7 +29887,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); @@ -17554,7 +29928,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("listUsers_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17581,11 +29955,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 listIpWhitelists_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listIpWhitelists_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListHostsReq req; + public ListIpWhitelistsReq req; public static final int REQ = 1; // isset id assignments @@ -17595,19 +29969,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, ListIpWhitelistsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listHosts_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listIpWhitelists_args.class, metaDataMap); } - public listHosts_args() { + public listIpWhitelists_args() { } - public listHosts_args( - ListHostsReq req) { + public listIpWhitelists_args( + ListIpWhitelistsReq req) { this(); this.req = req; } @@ -17615,21 +29989,21 @@ public listHosts_args( /** * Performs a deep copy on other. */ - public listHosts_args(listHosts_args other) { + public listIpWhitelists_args(listIpWhitelists_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listHosts_args deepCopy() { - return new listHosts_args(this); + public listIpWhitelists_args deepCopy() { + return new listIpWhitelists_args(this); } - public ListHostsReq getReq() { + public ListIpWhitelistsReq getReq() { return this.req; } - public listHosts_args setReq(ListHostsReq req) { + public listIpWhitelists_args setReq(ListIpWhitelistsReq req) { this.req = req; return this; } @@ -17655,7 +30029,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListHostsReq)__value); + setReq((ListIpWhitelistsReq)__value); } break; @@ -17680,9 +30054,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listHosts_args)) + if (!(_that instanceof listIpWhitelists_args)) return false; - listHosts_args that = (listHosts_args)_that; + listIpWhitelists_args that = (listIpWhitelists_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -17695,7 +30069,7 @@ public int hashCode() { } @Override - public int compareTo(listHosts_args other) { + public int compareTo(listIpWhitelists_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17730,7 +30104,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListHostsReq(); + this.req = new ListIpWhitelistsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -17772,7 +30146,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("listIpWhitelists_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -17799,11 +30173,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 listIpWhitelists_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listIpWhitelists_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListHostsResp success; + public ListIpWhitelistsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -17813,19 +30187,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, ListIpWhitelistsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listHosts_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listIpWhitelists_result.class, metaDataMap); } - public listHosts_result() { + public listIpWhitelists_result() { } - public listHosts_result( - ListHostsResp success) { + public listIpWhitelists_result( + ListIpWhitelistsResp success) { this(); this.success = success; } @@ -17833,21 +30207,21 @@ public listHosts_result( /** * Performs a deep copy on other. */ - public listHosts_result(listHosts_result other) { + public listIpWhitelists_result(listIpWhitelists_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listHosts_result deepCopy() { - return new listHosts_result(this); + public listIpWhitelists_result deepCopy() { + return new listIpWhitelists_result(this); } - public ListHostsResp getSuccess() { + public ListIpWhitelistsResp getSuccess() { return this.success; } - public listHosts_result setSuccess(ListHostsResp success) { + public listIpWhitelists_result setSuccess(ListIpWhitelistsResp success) { this.success = success; return this; } @@ -17873,7 +30247,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListHostsResp)__value); + setSuccess((ListIpWhitelistsResp)__value); } break; @@ -17898,9 +30272,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listHosts_result)) + if (!(_that instanceof listIpWhitelists_result)) return false; - listHosts_result that = (listHosts_result)_that; + listIpWhitelists_result that = (listIpWhitelists_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -17913,7 +30287,7 @@ public int hashCode() { } @Override - public int compareTo(listHosts_result other) { + public int compareTo(listIpWhitelists_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -17948,7 +30322,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListHostsResp(); + this.success = new ListIpWhitelistsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -17989,7 +30363,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("listIpWhitelists_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18016,11 +30390,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 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 GetPartsAllocReq req; + public ListRolesReq req; public static final int REQ = 1; // isset id assignments @@ -18030,19 +30404,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, ListRolesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getPartsAlloc_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listRoles_args.class, metaDataMap); } - public getPartsAlloc_args() { + public listRoles_args() { } - public getPartsAlloc_args( - GetPartsAllocReq req) { + public listRoles_args( + ListRolesReq req) { this(); this.req = req; } @@ -18050,21 +30424,21 @@ public getPartsAlloc_args( /** * Performs a deep copy on other. */ - public getPartsAlloc_args(getPartsAlloc_args other) { + public listRoles_args(listRoles_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getPartsAlloc_args deepCopy() { - return new getPartsAlloc_args(this); + public listRoles_args deepCopy() { + return new listRoles_args(this); } - public GetPartsAllocReq getReq() { + public ListRolesReq getReq() { return this.req; } - public getPartsAlloc_args setReq(GetPartsAllocReq req) { + public listRoles_args setReq(ListRolesReq req) { this.req = req; return this; } @@ -18090,7 +30464,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetPartsAllocReq)__value); + setReq((ListRolesReq)__value); } break; @@ -18115,9 +30489,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getPartsAlloc_args)) + if (!(_that instanceof listRoles_args)) return false; - getPartsAlloc_args that = (getPartsAlloc_args)_that; + listRoles_args that = (listRoles_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -18130,7 +30504,7 @@ public int hashCode() { } @Override - public int compareTo(getPartsAlloc_args other) { + public int compareTo(listRoles_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18165,7 +30539,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetPartsAllocReq(); + this.req = new ListRolesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18207,7 +30581,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("listRoles_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18234,11 +30608,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 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 GetPartsAllocResp success; + public ListRolesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -18248,19 +30622,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, ListRolesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getPartsAlloc_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listRoles_result.class, metaDataMap); } - public getPartsAlloc_result() { + public listRoles_result() { } - public getPartsAlloc_result( - GetPartsAllocResp success) { + public listRoles_result( + ListRolesResp success) { this(); this.success = success; } @@ -18268,21 +30642,21 @@ public getPartsAlloc_result( /** * Performs a deep copy on other. */ - public getPartsAlloc_result(getPartsAlloc_result other) { + public listRoles_result(listRoles_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getPartsAlloc_result deepCopy() { - return new getPartsAlloc_result(this); + public listRoles_result deepCopy() { + return new listRoles_result(this); } - public GetPartsAllocResp getSuccess() { + public ListRolesResp getSuccess() { return this.success; } - public getPartsAlloc_result setSuccess(GetPartsAllocResp success) { + public listRoles_result setSuccess(ListRolesResp success) { this.success = success; return this; } @@ -18308,7 +30682,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetPartsAllocResp)__value); + setSuccess((ListRolesResp)__value); } break; @@ -18333,9 +30707,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getPartsAlloc_result)) + if (!(_that instanceof listRoles_result)) return false; - getPartsAlloc_result that = (getPartsAlloc_result)_that; + listRoles_result that = (listRoles_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -18348,7 +30722,7 @@ public int hashCode() { } @Override - public int compareTo(getPartsAlloc_result other) { + public int compareTo(listRoles_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18383,7 +30757,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetPartsAllocResp(); + this.success = new ListRolesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18424,7 +30798,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("listRoles_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18451,11 +30825,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 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 ListPartsReq req; + public GetUserRolesReq req; public static final int REQ = 1; // isset id assignments @@ -18465,19 +30839,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, GetUserRolesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listParts_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getUserRoles_args.class, metaDataMap); } - public listParts_args() { + public getUserRoles_args() { } - public listParts_args( - ListPartsReq req) { + public getUserRoles_args( + GetUserRolesReq req) { this(); this.req = req; } @@ -18485,21 +30859,21 @@ public listParts_args( /** * Performs a deep copy on other. */ - public listParts_args(listParts_args other) { + public getUserRoles_args(getUserRoles_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listParts_args deepCopy() { - return new listParts_args(this); + public getUserRoles_args deepCopy() { + return new getUserRoles_args(this); } - public ListPartsReq getReq() { + public GetUserRolesReq getReq() { return this.req; } - public listParts_args setReq(ListPartsReq req) { + public getUserRoles_args setReq(GetUserRolesReq req) { this.req = req; return this; } @@ -18525,7 +30899,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListPartsReq)__value); + setReq((GetUserRolesReq)__value); } break; @@ -18550,9 +30924,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listParts_args)) + if (!(_that instanceof getUserRoles_args)) return false; - listParts_args that = (listParts_args)_that; + getUserRoles_args that = (getUserRoles_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -18565,7 +30939,7 @@ public int hashCode() { } @Override - public int compareTo(listParts_args other) { + public int compareTo(getUserRoles_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18600,7 +30974,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListPartsReq(); + this.req = new GetUserRolesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18642,7 +31016,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("getUserRoles_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18669,11 +31043,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 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 ListPartsResp success; + public ListRolesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -18683,19 +31057,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, ListRolesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listParts_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getUserRoles_result.class, metaDataMap); } - public listParts_result() { + public getUserRoles_result() { } - public listParts_result( - ListPartsResp success) { + public getUserRoles_result( + ListRolesResp success) { this(); this.success = success; } @@ -18703,21 +31077,21 @@ public listParts_result( /** * Performs a deep copy on other. */ - public listParts_result(listParts_result other) { + public getUserRoles_result(getUserRoles_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listParts_result deepCopy() { - return new listParts_result(this); + public getUserRoles_result deepCopy() { + return new getUserRoles_result(this); } - public ListPartsResp getSuccess() { + public ListRolesResp getSuccess() { return this.success; } - public listParts_result setSuccess(ListPartsResp success) { + public getUserRoles_result setSuccess(ListRolesResp success) { this.success = success; return this; } @@ -18743,7 +31117,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListPartsResp)__value); + setSuccess((ListRolesResp)__value); } break; @@ -18768,9 +31142,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listParts_result)) + if (!(_that instanceof getUserRoles_result)) return false; - listParts_result that = (listParts_result)_that; + getUserRoles_result that = (getUserRoles_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -18783,7 +31157,7 @@ public int hashCode() { } @Override - public int compareTo(listParts_result other) { + public int compareTo(getUserRoles_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -18818,7 +31192,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListPartsResp(); + this.success = new ListRolesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -18859,7 +31233,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("getUserRoles_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -18886,11 +31260,11 @@ public void validate() throws TException { } - public static class getWorkerId_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getWorkerId_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 GetWorkerIdReq req; + public ChangePasswordReq req; public static final int REQ = 1; // isset id assignments @@ -18900,19 +31274,19 @@ public static class getWorkerId_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetWorkerIdReq.class))); + new StructMetaData(TType.STRUCT, ChangePasswordReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getWorkerId_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(changePassword_args.class, metaDataMap); } - public getWorkerId_args() { + public changePassword_args() { } - public getWorkerId_args( - GetWorkerIdReq req) { + public changePassword_args( + ChangePasswordReq req) { this(); this.req = req; } @@ -18920,21 +31294,21 @@ public getWorkerId_args( /** * Performs a deep copy on other. */ - public getWorkerId_args(getWorkerId_args other) { + public changePassword_args(changePassword_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getWorkerId_args deepCopy() { - return new getWorkerId_args(this); + public changePassword_args deepCopy() { + return new changePassword_args(this); } - public GetWorkerIdReq getReq() { + public ChangePasswordReq getReq() { return this.req; } - public getWorkerId_args setReq(GetWorkerIdReq req) { + public changePassword_args setReq(ChangePasswordReq req) { this.req = req; return this; } @@ -18960,7 +31334,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetWorkerIdReq)__value); + setReq((ChangePasswordReq)__value); } break; @@ -18985,9 +31359,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getWorkerId_args)) + if (!(_that instanceof changePassword_args)) return false; - getWorkerId_args that = (getWorkerId_args)_that; + changePassword_args that = (changePassword_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -19000,7 +31374,7 @@ public int hashCode() { } @Override - public int compareTo(getWorkerId_args other) { + public int compareTo(changePassword_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19035,7 +31409,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetWorkerIdReq(); + this.req = new ChangePasswordReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19077,7 +31451,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("getWorkerId_args"); + StringBuilder sb = new StringBuilder("changePassword_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19104,11 +31478,11 @@ public void validate() throws TException { } - public static class getWorkerId_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getWorkerId_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 GetWorkerIdResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -19118,19 +31492,19 @@ public static class getWorkerId_result implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetWorkerIdResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getWorkerId_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(changePassword_result.class, metaDataMap); } - public getWorkerId_result() { + public changePassword_result() { } - public getWorkerId_result( - GetWorkerIdResp success) { + public changePassword_result( + ExecResp success) { this(); this.success = success; } @@ -19138,21 +31512,21 @@ public getWorkerId_result( /** * Performs a deep copy on other. */ - public getWorkerId_result(getWorkerId_result other) { + public changePassword_result(changePassword_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getWorkerId_result deepCopy() { - return new getWorkerId_result(this); + public changePassword_result deepCopy() { + return new changePassword_result(this); } - public GetWorkerIdResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getWorkerId_result setSuccess(GetWorkerIdResp success) { + public changePassword_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -19178,7 +31552,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetWorkerIdResp)__value); + setSuccess((ExecResp)__value); } break; @@ -19203,9 +31577,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getWorkerId_result)) + if (!(_that instanceof changePassword_result)) return false; - getWorkerId_result that = (getWorkerId_result)_that; + changePassword_result that = (changePassword_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -19218,7 +31592,7 @@ public int hashCode() { } @Override - public int compareTo(getWorkerId_result other) { + public int compareTo(changePassword_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19253,7 +31627,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetWorkerIdResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19294,7 +31668,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("getWorkerId_result"); + StringBuilder sb = new StringBuilder("changePassword_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19321,11 +31695,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 alterUserPrivilege_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterUserPrivilege_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateTagIndexReq req; + public AlterUserPrivilegeReq req; public static final int REQ = 1; // isset id assignments @@ -19335,19 +31709,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, AlterUserPrivilegeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterUserPrivilege_args.class, metaDataMap); } - public createTagIndex_args() { + public alterUserPrivilege_args() { } - public createTagIndex_args( - CreateTagIndexReq req) { + public alterUserPrivilege_args( + AlterUserPrivilegeReq req) { this(); this.req = req; } @@ -19355,21 +31729,21 @@ public createTagIndex_args( /** * Performs a deep copy on other. */ - public createTagIndex_args(createTagIndex_args other) { + public alterUserPrivilege_args(alterUserPrivilege_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createTagIndex_args deepCopy() { - return new createTagIndex_args(this); + public alterUserPrivilege_args deepCopy() { + return new alterUserPrivilege_args(this); } - public CreateTagIndexReq getReq() { + public AlterUserPrivilegeReq getReq() { return this.req; } - public createTagIndex_args setReq(CreateTagIndexReq req) { + public alterUserPrivilege_args setReq(AlterUserPrivilegeReq req) { this.req = req; return this; } @@ -19395,7 +31769,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateTagIndexReq)__value); + setReq((AlterUserPrivilegeReq)__value); } break; @@ -19420,9 +31794,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createTagIndex_args)) + if (!(_that instanceof alterUserPrivilege_args)) return false; - createTagIndex_args that = (createTagIndex_args)_that; + alterUserPrivilege_args that = (alterUserPrivilege_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -19435,7 +31809,7 @@ public int hashCode() { } @Override - public int compareTo(createTagIndex_args other) { + public int compareTo(alterUserPrivilege_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19470,7 +31844,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateTagIndexReq(); + this.req = new AlterUserPrivilegeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19512,7 +31886,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("alterUserPrivilege_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19539,8 +31913,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 alterUserPrivilege_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("alterUserPrivilege_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -19558,13 +31932,13 @@ public static class createTagIndex_result implements TBase, java.io.Serializable } static { - FieldMetaData.addStructMetaDataMap(createTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(alterUserPrivilege_result.class, metaDataMap); } - public createTagIndex_result() { + public alterUserPrivilege_result() { } - public createTagIndex_result( + public alterUserPrivilege_result( ExecResp success) { this(); this.success = success; @@ -19573,21 +31947,21 @@ public createTagIndex_result( /** * Performs a deep copy on other. */ - public createTagIndex_result(createTagIndex_result other) { + public alterUserPrivilege_result(alterUserPrivilege_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createTagIndex_result deepCopy() { - return new createTagIndex_result(this); + public alterUserPrivilege_result deepCopy() { + return new alterUserPrivilege_result(this); } public ExecResp getSuccess() { return this.success; } - public createTagIndex_result setSuccess(ExecResp success) { + public alterUserPrivilege_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -19638,9 +32012,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createTagIndex_result)) + if (!(_that instanceof alterUserPrivilege_result)) return false; - createTagIndex_result that = (createTagIndex_result)_that; + alterUserPrivilege_result that = (alterUserPrivilege_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -19653,7 +32027,7 @@ public int hashCode() { } @Override - public int compareTo(createTagIndex_result other) { + public int compareTo(alterUserPrivilege_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19729,7 +32103,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("alterUserPrivilege_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19756,11 +32130,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 listUserPrivilege_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listUserPrivilege_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropTagIndexReq req; + public ListUserPrivilegeReq req; public static final int REQ = 1; // isset id assignments @@ -19770,19 +32144,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, ListUserPrivilegeReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listUserPrivilege_args.class, metaDataMap); } - public dropTagIndex_args() { + public listUserPrivilege_args() { } - public dropTagIndex_args( - DropTagIndexReq req) { + public listUserPrivilege_args( + ListUserPrivilegeReq req) { this(); this.req = req; } @@ -19790,21 +32164,21 @@ public dropTagIndex_args( /** * Performs a deep copy on other. */ - public dropTagIndex_args(dropTagIndex_args other) { + public listUserPrivilege_args(listUserPrivilege_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropTagIndex_args deepCopy() { - return new dropTagIndex_args(this); + public listUserPrivilege_args deepCopy() { + return new listUserPrivilege_args(this); } - public DropTagIndexReq getReq() { + public ListUserPrivilegeReq getReq() { return this.req; } - public dropTagIndex_args setReq(DropTagIndexReq req) { + public listUserPrivilege_args setReq(ListUserPrivilegeReq req) { this.req = req; return this; } @@ -19830,7 +32204,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropTagIndexReq)__value); + setReq((ListUserPrivilegeReq)__value); } break; @@ -19855,9 +32229,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropTagIndex_args)) + if (!(_that instanceof listUserPrivilege_args)) return false; - dropTagIndex_args that = (dropTagIndex_args)_that; + listUserPrivilege_args that = (listUserPrivilege_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -19870,7 +32244,7 @@ public int hashCode() { } @Override - public int compareTo(dropTagIndex_args other) { + public int compareTo(listUserPrivilege_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -19905,7 +32279,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropTagIndexReq(); + this.req = new ListUserPrivilegeReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -19947,7 +32321,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("listUserPrivilege_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -19974,11 +32348,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 listUserPrivilege_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listUserPrivilege_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListUserPrivilegeResp success; public static final int SUCCESS = 0; // isset id assignments @@ -19988,19 +32362,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, ListUserPrivilegeResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listUserPrivilege_result.class, metaDataMap); } - public dropTagIndex_result() { + public listUserPrivilege_result() { } - public dropTagIndex_result( - ExecResp success) { + public listUserPrivilege_result( + ListUserPrivilegeResp success) { this(); this.success = success; } @@ -20008,21 +32382,21 @@ public dropTagIndex_result( /** * Performs a deep copy on other. */ - public dropTagIndex_result(dropTagIndex_result other) { + public listUserPrivilege_result(listUserPrivilege_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropTagIndex_result deepCopy() { - return new dropTagIndex_result(this); + public listUserPrivilege_result deepCopy() { + return new listUserPrivilege_result(this); } - public ExecResp getSuccess() { + public ListUserPrivilegeResp getSuccess() { return this.success; } - public dropTagIndex_result setSuccess(ExecResp success) { + public listUserPrivilege_result setSuccess(ListUserPrivilegeResp success) { this.success = success; return this; } @@ -20048,7 +32422,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListUserPrivilegeResp)__value); } break; @@ -20073,9 +32447,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropTagIndex_result)) + if (!(_that instanceof listUserPrivilege_result)) return false; - dropTagIndex_result that = (dropTagIndex_result)_that; + listUserPrivilege_result that = (listUserPrivilege_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -20088,7 +32462,7 @@ public int hashCode() { } @Override - public int compareTo(dropTagIndex_result other) { + public int compareTo(listUserPrivilege_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20123,7 +32497,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListUserPrivilegeResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20164,7 +32538,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("listUserPrivilege_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20191,11 +32565,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 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 GetTagIndexReq req; + public HBReq req; public static final int REQ = 1; // isset id assignments @@ -20205,19 +32579,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, HBReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(heartBeat_args.class, metaDataMap); } - public getTagIndex_args() { + public heartBeat_args() { } - public getTagIndex_args( - GetTagIndexReq req) { + public heartBeat_args( + HBReq req) { this(); this.req = req; } @@ -20225,21 +32599,21 @@ public getTagIndex_args( /** * Performs a deep copy on other. */ - public getTagIndex_args(getTagIndex_args other) { + public heartBeat_args(heartBeat_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getTagIndex_args deepCopy() { - return new getTagIndex_args(this); + public heartBeat_args deepCopy() { + return new heartBeat_args(this); } - public GetTagIndexReq getReq() { + public HBReq getReq() { return this.req; } - public getTagIndex_args setReq(GetTagIndexReq req) { + public heartBeat_args setReq(HBReq req) { this.req = req; return this; } @@ -20265,7 +32639,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetTagIndexReq)__value); + setReq((HBReq)__value); } break; @@ -20290,9 +32664,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getTagIndex_args)) + if (!(_that instanceof heartBeat_args)) return false; - getTagIndex_args that = (getTagIndex_args)_that; + heartBeat_args that = (heartBeat_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -20305,7 +32679,7 @@ public int hashCode() { } @Override - public int compareTo(getTagIndex_args other) { + public int compareTo(heartBeat_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20340,7 +32714,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetTagIndexReq(); + this.req = new HBReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20382,7 +32756,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("heartBeat_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20409,11 +32783,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 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 GetTagIndexResp success; + public HBResp success; public static final int SUCCESS = 0; // isset id assignments @@ -20423,19 +32797,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, HBResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(heartBeat_result.class, metaDataMap); } - public getTagIndex_result() { + public heartBeat_result() { } - public getTagIndex_result( - GetTagIndexResp success) { + public heartBeat_result( + HBResp success) { this(); this.success = success; } @@ -20443,21 +32817,21 @@ public getTagIndex_result( /** * Performs a deep copy on other. */ - public getTagIndex_result(getTagIndex_result other) { + public heartBeat_result(heartBeat_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getTagIndex_result deepCopy() { - return new getTagIndex_result(this); + public heartBeat_result deepCopy() { + return new heartBeat_result(this); } - public GetTagIndexResp getSuccess() { + public HBResp getSuccess() { return this.success; } - public getTagIndex_result setSuccess(GetTagIndexResp success) { + public heartBeat_result setSuccess(HBResp success) { this.success = success; return this; } @@ -20483,7 +32857,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetTagIndexResp)__value); + setSuccess((HBResp)__value); } break; @@ -20508,9 +32882,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getTagIndex_result)) + if (!(_that instanceof heartBeat_result)) return false; - getTagIndex_result that = (getTagIndex_result)_that; + heartBeat_result that = (heartBeat_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -20523,7 +32897,7 @@ public int hashCode() { } @Override - public int compareTo(getTagIndex_result other) { + public int compareTo(heartBeat_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20558,7 +32932,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetTagIndexResp(); + this.success = new HBResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20599,7 +32973,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("heartBeat_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20626,11 +33000,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 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 ListTagIndexesReq req; + public AgentHBReq req; public static final int REQ = 1; // isset id assignments @@ -20640,19 +33014,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, AgentHBReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexes_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(agentHeartbeat_args.class, metaDataMap); } - public listTagIndexes_args() { + public agentHeartbeat_args() { } - public listTagIndexes_args( - ListTagIndexesReq req) { + public agentHeartbeat_args( + AgentHBReq req) { this(); this.req = req; } @@ -20660,21 +33034,21 @@ public listTagIndexes_args( /** * Performs a deep copy on other. */ - public listTagIndexes_args(listTagIndexes_args other) { + public agentHeartbeat_args(agentHeartbeat_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listTagIndexes_args deepCopy() { - return new listTagIndexes_args(this); + public agentHeartbeat_args deepCopy() { + return new agentHeartbeat_args(this); } - public ListTagIndexesReq getReq() { + public AgentHBReq getReq() { return this.req; } - public listTagIndexes_args setReq(ListTagIndexesReq req) { + public agentHeartbeat_args setReq(AgentHBReq req) { this.req = req; return this; } @@ -20700,7 +33074,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListTagIndexesReq)__value); + setReq((AgentHBReq)__value); } break; @@ -20725,9 +33099,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexes_args)) + if (!(_that instanceof agentHeartbeat_args)) return false; - listTagIndexes_args that = (listTagIndexes_args)_that; + agentHeartbeat_args that = (agentHeartbeat_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -20740,7 +33114,7 @@ public int hashCode() { } @Override - public int compareTo(listTagIndexes_args other) { + public int compareTo(agentHeartbeat_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20775,7 +33149,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListTagIndexesReq(); + this.req = new AgentHBReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -20817,7 +33191,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("agentHeartbeat_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -20844,11 +33218,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 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 ListTagIndexesResp success; + public AgentHBResp success; public static final int SUCCESS = 0; // isset id assignments @@ -20858,19 +33232,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, AgentHBResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexes_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(agentHeartbeat_result.class, metaDataMap); } - public listTagIndexes_result() { + public agentHeartbeat_result() { } - public listTagIndexes_result( - ListTagIndexesResp success) { + public agentHeartbeat_result( + AgentHBResp success) { this(); this.success = success; } @@ -20878,21 +33252,21 @@ public listTagIndexes_result( /** * Performs a deep copy on other. */ - public listTagIndexes_result(listTagIndexes_result other) { + public agentHeartbeat_result(agentHeartbeat_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listTagIndexes_result deepCopy() { - return new listTagIndexes_result(this); + public agentHeartbeat_result deepCopy() { + return new agentHeartbeat_result(this); } - public ListTagIndexesResp getSuccess() { + public AgentHBResp getSuccess() { return this.success; } - public listTagIndexes_result setSuccess(ListTagIndexesResp success) { + public agentHeartbeat_result setSuccess(AgentHBResp success) { this.success = success; return this; } @@ -20918,7 +33292,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListTagIndexesResp)__value); + setSuccess((AgentHBResp)__value); } break; @@ -20943,9 +33317,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexes_result)) + if (!(_that instanceof agentHeartbeat_result)) return false; - listTagIndexes_result that = (listTagIndexes_result)_that; + agentHeartbeat_result that = (agentHeartbeat_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -20958,7 +33332,7 @@ public int hashCode() { } @Override - public int compareTo(listTagIndexes_result other) { + public int compareTo(agentHeartbeat_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -20993,7 +33367,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListTagIndexesResp(); + this.success = new AgentHBResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21034,7 +33408,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("agentHeartbeat_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21061,11 +33435,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 regConfig_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("regConfig_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RebuildIndexReq req; + public RegConfigReq req; public static final int REQ = 1; // isset id assignments @@ -21075,19 +33449,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, RegConfigReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(rebuildTagIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(regConfig_args.class, metaDataMap); } - public rebuildTagIndex_args() { + public regConfig_args() { } - public rebuildTagIndex_args( - RebuildIndexReq req) { + public regConfig_args( + RegConfigReq req) { this(); this.req = req; } @@ -21095,21 +33469,21 @@ public rebuildTagIndex_args( /** * Performs a deep copy on other. */ - public rebuildTagIndex_args(rebuildTagIndex_args other) { + public regConfig_args(regConfig_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public rebuildTagIndex_args deepCopy() { - return new rebuildTagIndex_args(this); + public regConfig_args deepCopy() { + return new regConfig_args(this); } - public RebuildIndexReq getReq() { + public RegConfigReq getReq() { return this.req; } - public rebuildTagIndex_args setReq(RebuildIndexReq req) { + public regConfig_args setReq(RegConfigReq req) { this.req = req; return this; } @@ -21135,7 +33509,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RebuildIndexReq)__value); + setReq((RegConfigReq)__value); } break; @@ -21160,9 +33534,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildTagIndex_args)) + if (!(_that instanceof regConfig_args)) return false; - rebuildTagIndex_args that = (rebuildTagIndex_args)_that; + regConfig_args that = (regConfig_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -21174,29 +33548,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } - @Override - public int compareTo(rebuildTagIndex_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); @@ -21210,7 +33561,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RebuildIndexReq(); + this.req = new RegConfigReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21252,7 +33603,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("regConfig_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21279,8 +33630,8 @@ public void validate() throws TException { } - public static class rebuildTagIndex_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("rebuildTagIndex_result"); + public static class regConfig_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("regConfig_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -21298,13 +33649,13 @@ public static class rebuildTagIndex_result implements TBase, java.io.Serializabl } static { - FieldMetaData.addStructMetaDataMap(rebuildTagIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(regConfig_result.class, metaDataMap); } - public rebuildTagIndex_result() { + public regConfig_result() { } - public rebuildTagIndex_result( + public regConfig_result( ExecResp success) { this(); this.success = success; @@ -21313,21 +33664,21 @@ public rebuildTagIndex_result( /** * Performs a deep copy on other. */ - public rebuildTagIndex_result(rebuildTagIndex_result other) { + public regConfig_result(regConfig_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public rebuildTagIndex_result deepCopy() { - return new rebuildTagIndex_result(this); + public regConfig_result deepCopy() { + return new regConfig_result(this); } public ExecResp getSuccess() { return this.success; } - public rebuildTagIndex_result setSuccess(ExecResp success) { + public regConfig_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -21378,9 +33729,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildTagIndex_result)) + if (!(_that instanceof regConfig_result)) return false; - rebuildTagIndex_result that = (rebuildTagIndex_result)_that; + regConfig_result that = (regConfig_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -21393,7 +33744,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildTagIndex_result other) { + public int compareTo(regConfig_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -21469,7 +33820,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("regConfig_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21496,11 +33847,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 getConfig_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("getConfig_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListIndexStatusReq req; + public GetConfigReq req; public static final int REQ = 1; // isset id assignments @@ -21510,19 +33861,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, GetConfigReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexStatus_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getConfig_args.class, metaDataMap); } - public listTagIndexStatus_args() { + public getConfig_args() { } - public listTagIndexStatus_args( - ListIndexStatusReq req) { + public getConfig_args( + GetConfigReq req) { this(); this.req = req; } @@ -21530,21 +33881,21 @@ public listTagIndexStatus_args( /** * Performs a deep copy on other. */ - public listTagIndexStatus_args(listTagIndexStatus_args other) { + public getConfig_args(getConfig_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listTagIndexStatus_args deepCopy() { - return new listTagIndexStatus_args(this); + public getConfig_args deepCopy() { + return new getConfig_args(this); } - public ListIndexStatusReq getReq() { + public GetConfigReq getReq() { return this.req; } - public listTagIndexStatus_args setReq(ListIndexStatusReq req) { + public getConfig_args setReq(GetConfigReq req) { this.req = req; return this; } @@ -21570,7 +33921,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListIndexStatusReq)__value); + setReq((GetConfigReq)__value); } break; @@ -21595,9 +33946,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexStatus_args)) + if (!(_that instanceof getConfig_args)) return false; - listTagIndexStatus_args that = (listTagIndexStatus_args)_that; + getConfig_args that = (getConfig_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -21609,29 +33960,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } - @Override - public int compareTo(listTagIndexStatus_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); @@ -21645,7 +33973,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListIndexStatusReq(); + this.req = new GetConfigReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21687,7 +34015,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("getConfig_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21714,11 +34042,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 getConfig_result implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("getConfig_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListIndexStatusResp success; + public GetConfigResp success; public static final int SUCCESS = 0; // isset id assignments @@ -21728,19 +34056,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, GetConfigResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listTagIndexStatus_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getConfig_result.class, metaDataMap); } - public listTagIndexStatus_result() { + public getConfig_result() { } - public listTagIndexStatus_result( - ListIndexStatusResp success) { + public getConfig_result( + GetConfigResp success) { this(); this.success = success; } @@ -21748,21 +34076,21 @@ public listTagIndexStatus_result( /** * Performs a deep copy on other. */ - public listTagIndexStatus_result(listTagIndexStatus_result other) { + public getConfig_result(getConfig_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listTagIndexStatus_result deepCopy() { - return new listTagIndexStatus_result(this); + public getConfig_result deepCopy() { + return new getConfig_result(this); } - public ListIndexStatusResp getSuccess() { + public GetConfigResp getSuccess() { return this.success; } - public listTagIndexStatus_result setSuccess(ListIndexStatusResp success) { + public getConfig_result setSuccess(GetConfigResp success) { this.success = success; return this; } @@ -21788,7 +34116,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListIndexStatusResp)__value); + setSuccess((GetConfigResp)__value); } break; @@ -21813,9 +34141,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listTagIndexStatus_result)) + if (!(_that instanceof getConfig_result)) return false; - listTagIndexStatus_result that = (listTagIndexStatus_result)_that; + getConfig_result that = (getConfig_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -21827,29 +34155,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(listTagIndexStatus_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); @@ -21863,7 +34168,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListIndexStatusResp(); + this.success = new GetConfigResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -21904,7 +34209,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("getConfig_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -21931,11 +34236,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 setConfig_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("setConfig_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateEdgeIndexReq req; + public SetConfigReq req; public static final int REQ = 1; // isset id assignments @@ -21945,19 +34250,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, SetConfigReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(setConfig_args.class, metaDataMap); } - public createEdgeIndex_args() { + public setConfig_args() { } - public createEdgeIndex_args( - CreateEdgeIndexReq req) { + public setConfig_args( + SetConfigReq req) { this(); this.req = req; } @@ -21965,21 +34270,21 @@ public createEdgeIndex_args( /** * Performs a deep copy on other. */ - public createEdgeIndex_args(createEdgeIndex_args other) { + public setConfig_args(setConfig_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createEdgeIndex_args deepCopy() { - return new createEdgeIndex_args(this); + public setConfig_args deepCopy() { + return new setConfig_args(this); } - public CreateEdgeIndexReq getReq() { + public SetConfigReq getReq() { return this.req; } - public createEdgeIndex_args setReq(CreateEdgeIndexReq req) { + public setConfig_args setReq(SetConfigReq req) { this.req = req; return this; } @@ -22005,7 +34310,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateEdgeIndexReq)__value); + setReq((SetConfigReq)__value); } break; @@ -22030,9 +34335,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdgeIndex_args)) + if (!(_that instanceof setConfig_args)) return false; - createEdgeIndex_args that = (createEdgeIndex_args)_that; + setConfig_args that = (setConfig_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -22044,29 +34349,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } - @Override - public int compareTo(createEdgeIndex_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); @@ -22080,7 +34362,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateEdgeIndexReq(); + this.req = new SetConfigReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22122,7 +34404,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("setConfig_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22149,8 +34431,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 setConfig_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("setConfig_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -22168,13 +34450,13 @@ public static class createEdgeIndex_result implements TBase, java.io.Serializabl } static { - FieldMetaData.addStructMetaDataMap(createEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(setConfig_result.class, metaDataMap); } - public createEdgeIndex_result() { + public setConfig_result() { } - public createEdgeIndex_result( + public setConfig_result( ExecResp success) { this(); this.success = success; @@ -22183,21 +34465,21 @@ public createEdgeIndex_result( /** * Performs a deep copy on other. */ - public createEdgeIndex_result(createEdgeIndex_result other) { + public setConfig_result(setConfig_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createEdgeIndex_result deepCopy() { - return new createEdgeIndex_result(this); + public setConfig_result deepCopy() { + return new setConfig_result(this); } public ExecResp getSuccess() { return this.success; } - public createEdgeIndex_result setSuccess(ExecResp success) { + public setConfig_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -22248,9 +34530,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createEdgeIndex_result)) + if (!(_that instanceof setConfig_result)) return false; - createEdgeIndex_result that = (createEdgeIndex_result)_that; + setConfig_result that = (setConfig_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -22263,7 +34545,7 @@ public int hashCode() { } @Override - public int compareTo(createEdgeIndex_result other) { + public int compareTo(setConfig_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22339,7 +34621,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("setConfig_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22366,11 +34648,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 listConfigs_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listConfigs_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropEdgeIndexReq req; + public ListConfigsReq req; public static final int REQ = 1; // isset id assignments @@ -22380,19 +34662,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, ListConfigsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listConfigs_args.class, metaDataMap); } - public dropEdgeIndex_args() { + public listConfigs_args() { } - public dropEdgeIndex_args( - DropEdgeIndexReq req) { + public listConfigs_args( + ListConfigsReq req) { this(); this.req = req; } @@ -22400,21 +34682,21 @@ public dropEdgeIndex_args( /** * Performs a deep copy on other. */ - public dropEdgeIndex_args(dropEdgeIndex_args other) { + public listConfigs_args(listConfigs_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropEdgeIndex_args deepCopy() { - return new dropEdgeIndex_args(this); + public listConfigs_args deepCopy() { + return new listConfigs_args(this); } - public DropEdgeIndexReq getReq() { + public ListConfigsReq getReq() { return this.req; } - public dropEdgeIndex_args setReq(DropEdgeIndexReq req) { + public listConfigs_args setReq(ListConfigsReq req) { this.req = req; return this; } @@ -22440,7 +34722,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropEdgeIndexReq)__value); + setReq((ListConfigsReq)__value); } break; @@ -22465,9 +34747,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdgeIndex_args)) + if (!(_that instanceof listConfigs_args)) return false; - dropEdgeIndex_args that = (dropEdgeIndex_args)_that; + listConfigs_args that = (listConfigs_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -22480,7 +34762,7 @@ public int hashCode() { } @Override - public int compareTo(dropEdgeIndex_args other) { + public int compareTo(listConfigs_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22515,7 +34797,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropEdgeIndexReq(); + this.req = new ListConfigsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22557,7 +34839,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("listConfigs_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22584,11 +34866,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 listConfigs_result implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("listConfigs_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListConfigsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -22598,19 +34880,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, ListConfigsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listConfigs_result.class, metaDataMap); } - public dropEdgeIndex_result() { + public listConfigs_result() { } - public dropEdgeIndex_result( - ExecResp success) { + public listConfigs_result( + ListConfigsResp success) { this(); this.success = success; } @@ -22618,21 +34900,21 @@ public dropEdgeIndex_result( /** * Performs a deep copy on other. */ - public dropEdgeIndex_result(dropEdgeIndex_result other) { + public listConfigs_result(listConfigs_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropEdgeIndex_result deepCopy() { - return new dropEdgeIndex_result(this); + public listConfigs_result deepCopy() { + return new listConfigs_result(this); } - public ExecResp getSuccess() { + public ListConfigsResp getSuccess() { return this.success; } - public dropEdgeIndex_result setSuccess(ExecResp success) { + public listConfigs_result setSuccess(ListConfigsResp success) { this.success = success; return this; } @@ -22658,7 +34940,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListConfigsResp)__value); } break; @@ -22683,9 +34965,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropEdgeIndex_result)) + if (!(_that instanceof listConfigs_result)) return false; - dropEdgeIndex_result that = (dropEdgeIndex_result)_that; + listConfigs_result that = (listConfigs_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -22697,29 +34979,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(dropEdgeIndex_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); @@ -22733,7 +34992,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListConfigsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22774,7 +35033,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("listConfigs_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -22801,11 +35060,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 createSnapshot_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createSnapshot_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetEdgeIndexReq req; + public CreateSnapshotReq req; public static final int REQ = 1; // isset id assignments @@ -22815,19 +35074,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, CreateSnapshotReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSnapshot_args.class, metaDataMap); } - public getEdgeIndex_args() { + public createSnapshot_args() { } - public getEdgeIndex_args( - GetEdgeIndexReq req) { + public createSnapshot_args( + CreateSnapshotReq req) { this(); this.req = req; } @@ -22835,21 +35094,21 @@ public getEdgeIndex_args( /** * Performs a deep copy on other. */ - public getEdgeIndex_args(getEdgeIndex_args other) { + public createSnapshot_args(createSnapshot_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getEdgeIndex_args deepCopy() { - return new getEdgeIndex_args(this); + public createSnapshot_args deepCopy() { + return new createSnapshot_args(this); } - public GetEdgeIndexReq getReq() { + public CreateSnapshotReq getReq() { return this.req; } - public getEdgeIndex_args setReq(GetEdgeIndexReq req) { + public createSnapshot_args setReq(CreateSnapshotReq req) { this.req = req; return this; } @@ -22875,7 +35134,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetEdgeIndexReq)__value); + setReq((CreateSnapshotReq)__value); } break; @@ -22900,9 +35159,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdgeIndex_args)) + if (!(_that instanceof createSnapshot_args)) return false; - getEdgeIndex_args that = (getEdgeIndex_args)_that; + createSnapshot_args that = (createSnapshot_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -22915,7 +35174,7 @@ public int hashCode() { } @Override - public int compareTo(getEdgeIndex_args other) { + public int compareTo(createSnapshot_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -22950,7 +35209,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetEdgeIndexReq(); + this.req = new CreateSnapshotReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -22992,7 +35251,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("createSnapshot_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23019,11 +35278,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 createSnapshot_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("createSnapshot_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetEdgeIndexResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -23033,19 +35292,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, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSnapshot_result.class, metaDataMap); } - public getEdgeIndex_result() { + public createSnapshot_result() { } - public getEdgeIndex_result( - GetEdgeIndexResp success) { + public createSnapshot_result( + ExecResp success) { this(); this.success = success; } @@ -23053,21 +35312,21 @@ public getEdgeIndex_result( /** * Performs a deep copy on other. */ - public getEdgeIndex_result(getEdgeIndex_result other) { + public createSnapshot_result(createSnapshot_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getEdgeIndex_result deepCopy() { - return new getEdgeIndex_result(this); + public createSnapshot_result deepCopy() { + return new createSnapshot_result(this); } - public GetEdgeIndexResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getEdgeIndex_result setSuccess(GetEdgeIndexResp success) { + public createSnapshot_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -23093,7 +35352,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetEdgeIndexResp)__value); + setSuccess((ExecResp)__value); } break; @@ -23118,9 +35377,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getEdgeIndex_result)) + if (!(_that instanceof createSnapshot_result)) return false; - getEdgeIndex_result that = (getEdgeIndex_result)_that; + createSnapshot_result that = (createSnapshot_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -23133,7 +35392,7 @@ public int hashCode() { } @Override - public int compareTo(getEdgeIndex_result other) { + public int compareTo(createSnapshot_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23168,7 +35427,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetEdgeIndexResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -23209,7 +35468,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("createSnapshot_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23236,11 +35495,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 dropSnapshot_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropSnapshot_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListEdgeIndexesReq req; + public DropSnapshotReq req; public static final int REQ = 1; // isset id assignments @@ -23250,19 +35509,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, DropSnapshotReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexes_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropSnapshot_args.class, metaDataMap); } - public listEdgeIndexes_args() { + public dropSnapshot_args() { } - public listEdgeIndexes_args( - ListEdgeIndexesReq req) { + public dropSnapshot_args( + DropSnapshotReq req) { this(); this.req = req; } @@ -23270,21 +35529,21 @@ public listEdgeIndexes_args( /** * Performs a deep copy on other. */ - public listEdgeIndexes_args(listEdgeIndexes_args other) { + public dropSnapshot_args(dropSnapshot_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listEdgeIndexes_args deepCopy() { - return new listEdgeIndexes_args(this); + public dropSnapshot_args deepCopy() { + return new dropSnapshot_args(this); } - public ListEdgeIndexesReq getReq() { + public DropSnapshotReq getReq() { return this.req; } - public listEdgeIndexes_args setReq(ListEdgeIndexesReq req) { + public dropSnapshot_args setReq(DropSnapshotReq req) { this.req = req; return this; } @@ -23310,7 +35569,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListEdgeIndexesReq)__value); + setReq((DropSnapshotReq)__value); } break; @@ -23335,9 +35594,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexes_args)) + if (!(_that instanceof dropSnapshot_args)) return false; - listEdgeIndexes_args that = (listEdgeIndexes_args)_that; + dropSnapshot_args that = (dropSnapshot_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -23350,7 +35609,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexes_args other) { + public int compareTo(dropSnapshot_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23385,7 +35644,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListEdgeIndexesReq(); + this.req = new DropSnapshotReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -23427,7 +35686,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("dropSnapshot_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23454,11 +35713,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 dropSnapshot_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropSnapshot_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListEdgeIndexesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -23468,19 +35727,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(dropSnapshot_result.class, metaDataMap); } - public listEdgeIndexes_result() { + public dropSnapshot_result() { } - public listEdgeIndexes_result( - ListEdgeIndexesResp success) { + public dropSnapshot_result( + ExecResp success) { this(); this.success = success; } @@ -23488,21 +35747,21 @@ public listEdgeIndexes_result( /** * Performs a deep copy on other. */ - public listEdgeIndexes_result(listEdgeIndexes_result other) { + public dropSnapshot_result(dropSnapshot_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listEdgeIndexes_result deepCopy() { - return new listEdgeIndexes_result(this); + public dropSnapshot_result deepCopy() { + return new dropSnapshot_result(this); } - public ListEdgeIndexesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listEdgeIndexes_result setSuccess(ListEdgeIndexesResp success) { + public dropSnapshot_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -23528,7 +35787,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListEdgeIndexesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -23553,9 +35812,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexes_result)) + if (!(_that instanceof dropSnapshot_result)) return false; - listEdgeIndexes_result that = (listEdgeIndexes_result)_that; + dropSnapshot_result that = (dropSnapshot_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -23568,7 +35827,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexes_result other) { + public int compareTo(dropSnapshot_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23603,7 +35862,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); @@ -23644,7 +35903,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("dropSnapshot_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23671,11 +35930,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 listSnapshots_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSnapshots_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RebuildIndexReq req; + public ListSnapshotsReq req; public static final int REQ = 1; // isset id assignments @@ -23685,19 +35944,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, ListSnapshotsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSnapshots_args.class, metaDataMap); } - public rebuildEdgeIndex_args() { + public listSnapshots_args() { } - public rebuildEdgeIndex_args( - RebuildIndexReq req) { + public listSnapshots_args( + ListSnapshotsReq req) { this(); this.req = req; } @@ -23705,21 +35964,21 @@ public rebuildEdgeIndex_args( /** * Performs a deep copy on other. */ - public rebuildEdgeIndex_args(rebuildEdgeIndex_args other) { + public listSnapshots_args(listSnapshots_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public rebuildEdgeIndex_args deepCopy() { - return new rebuildEdgeIndex_args(this); + public listSnapshots_args deepCopy() { + return new listSnapshots_args(this); } - public RebuildIndexReq getReq() { + public ListSnapshotsReq getReq() { return this.req; } - public rebuildEdgeIndex_args setReq(RebuildIndexReq req) { + public listSnapshots_args setReq(ListSnapshotsReq req) { this.req = req; return this; } @@ -23745,7 +36004,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RebuildIndexReq)__value); + setReq((ListSnapshotsReq)__value); } break; @@ -23770,9 +36029,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildEdgeIndex_args)) + if (!(_that instanceof listSnapshots_args)) return false; - rebuildEdgeIndex_args that = (rebuildEdgeIndex_args)_that; + listSnapshots_args that = (listSnapshots_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -23785,7 +36044,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildEdgeIndex_args other) { + public int compareTo(listSnapshots_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -23820,7 +36079,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RebuildIndexReq(); + this.req = new ListSnapshotsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -23862,7 +36121,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("listSnapshots_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -23889,11 +36148,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 listSnapshots_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSnapshots_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListSnapshotsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -23903,19 +36162,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, ListSnapshotsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(rebuildEdgeIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSnapshots_result.class, metaDataMap); } - public rebuildEdgeIndex_result() { + public listSnapshots_result() { } - public rebuildEdgeIndex_result( - ExecResp success) { + public listSnapshots_result( + ListSnapshotsResp success) { this(); this.success = success; } @@ -23923,21 +36182,21 @@ public rebuildEdgeIndex_result( /** * Performs a deep copy on other. */ - public rebuildEdgeIndex_result(rebuildEdgeIndex_result other) { + public listSnapshots_result(listSnapshots_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public rebuildEdgeIndex_result deepCopy() { - return new rebuildEdgeIndex_result(this); + public listSnapshots_result deepCopy() { + return new listSnapshots_result(this); } - public ExecResp getSuccess() { + public ListSnapshotsResp getSuccess() { return this.success; } - public rebuildEdgeIndex_result setSuccess(ExecResp success) { + public listSnapshots_result setSuccess(ListSnapshotsResp success) { this.success = success; return this; } @@ -23963,7 +36222,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListSnapshotsResp)__value); } break; @@ -23988,9 +36247,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof rebuildEdgeIndex_result)) + if (!(_that instanceof listSnapshots_result)) return false; - rebuildEdgeIndex_result that = (rebuildEdgeIndex_result)_that; + listSnapshots_result that = (listSnapshots_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -24003,7 +36262,7 @@ public int hashCode() { } @Override - public int compareTo(rebuildEdgeIndex_result other) { + public int compareTo(listSnapshots_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24038,7 +36297,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListSnapshotsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -24079,7 +36338,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("listSnapshots_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24106,11 +36365,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 runAdminJob_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("runAdminJob_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListIndexStatusReq req; + public AdminJobReq req; public static final int REQ = 1; // isset id assignments @@ -24120,19 +36379,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, AdminJobReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(runAdminJob_args.class, metaDataMap); } - public listEdgeIndexStatus_args() { + public runAdminJob_args() { } - public listEdgeIndexStatus_args( - ListIndexStatusReq req) { + public runAdminJob_args( + AdminJobReq req) { this(); this.req = req; } @@ -24140,21 +36399,21 @@ public listEdgeIndexStatus_args( /** * Performs a deep copy on other. */ - public listEdgeIndexStatus_args(listEdgeIndexStatus_args other) { + public runAdminJob_args(runAdminJob_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listEdgeIndexStatus_args deepCopy() { - return new listEdgeIndexStatus_args(this); + public runAdminJob_args deepCopy() { + return new runAdminJob_args(this); } - public ListIndexStatusReq getReq() { + public AdminJobReq getReq() { return this.req; } - public listEdgeIndexStatus_args setReq(ListIndexStatusReq req) { + public runAdminJob_args setReq(AdminJobReq req) { this.req = req; return this; } @@ -24180,7 +36439,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListIndexStatusReq)__value); + setReq((AdminJobReq)__value); } break; @@ -24205,9 +36464,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexStatus_args)) + if (!(_that instanceof runAdminJob_args)) return false; - listEdgeIndexStatus_args that = (listEdgeIndexStatus_args)_that; + runAdminJob_args that = (runAdminJob_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -24220,7 +36479,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexStatus_args other) { + public int compareTo(runAdminJob_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24255,7 +36514,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListIndexStatusReq(); + this.req = new AdminJobReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -24297,7 +36556,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("runAdminJob_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24324,11 +36583,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 runAdminJob_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("runAdminJob_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListIndexStatusResp success; + public AdminJobResp success; public static final int SUCCESS = 0; // isset id assignments @@ -24338,19 +36597,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, AdminJobResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listEdgeIndexStatus_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(runAdminJob_result.class, metaDataMap); } - public listEdgeIndexStatus_result() { + public runAdminJob_result() { } - public listEdgeIndexStatus_result( - ListIndexStatusResp success) { + public runAdminJob_result( + AdminJobResp success) { this(); this.success = success; } @@ -24358,21 +36617,21 @@ public listEdgeIndexStatus_result( /** * Performs a deep copy on other. */ - public listEdgeIndexStatus_result(listEdgeIndexStatus_result other) { + public runAdminJob_result(runAdminJob_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listEdgeIndexStatus_result deepCopy() { - return new listEdgeIndexStatus_result(this); + public runAdminJob_result deepCopy() { + return new runAdminJob_result(this); } - public ListIndexStatusResp getSuccess() { + public AdminJobResp getSuccess() { return this.success; } - public listEdgeIndexStatus_result setSuccess(ListIndexStatusResp success) { + public runAdminJob_result setSuccess(AdminJobResp success) { this.success = success; return this; } @@ -24398,7 +36657,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListIndexStatusResp)__value); + setSuccess((AdminJobResp)__value); } break; @@ -24423,9 +36682,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listEdgeIndexStatus_result)) + if (!(_that instanceof runAdminJob_result)) return false; - listEdgeIndexStatus_result that = (listEdgeIndexStatus_result)_that; + runAdminJob_result that = (runAdminJob_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -24438,7 +36697,7 @@ public int hashCode() { } @Override - public int compareTo(listEdgeIndexStatus_result other) { + public int compareTo(runAdminJob_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24473,7 +36732,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListIndexStatusResp(); + this.success = new AdminJobResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -24514,7 +36773,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("runAdminJob_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24541,11 +36800,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 mergeZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("mergeZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateUserReq req; + public MergeZoneReq req; public static final int REQ = 1; // isset id assignments @@ -24555,19 +36814,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, MergeZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(mergeZone_args.class, metaDataMap); } - public createUser_args() { + public mergeZone_args() { } - public createUser_args( - CreateUserReq req) { + public mergeZone_args( + MergeZoneReq req) { this(); this.req = req; } @@ -24575,21 +36834,21 @@ public createUser_args( /** * Performs a deep copy on other. */ - public createUser_args(createUser_args other) { + public mergeZone_args(mergeZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createUser_args deepCopy() { - return new createUser_args(this); + public mergeZone_args deepCopy() { + return new mergeZone_args(this); } - public CreateUserReq getReq() { + public MergeZoneReq getReq() { return this.req; } - public createUser_args setReq(CreateUserReq req) { + public mergeZone_args setReq(MergeZoneReq req) { this.req = req; return this; } @@ -24615,7 +36874,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateUserReq)__value); + setReq((MergeZoneReq)__value); } break; @@ -24640,9 +36899,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createUser_args)) + if (!(_that instanceof mergeZone_args)) return false; - createUser_args that = (createUser_args)_that; + mergeZone_args that = (mergeZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -24655,7 +36914,7 @@ public int hashCode() { } @Override - public int compareTo(createUser_args other) { + public int compareTo(mergeZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24690,7 +36949,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateUserReq(); + this.req = new MergeZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -24732,7 +36991,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("mergeZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24759,8 +37018,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 mergeZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("mergeZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -24778,13 +37037,13 @@ public static class createUser_result implements TBase, java.io.Serializable, Cl } static { - FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(mergeZone_result.class, metaDataMap); } - public createUser_result() { + public mergeZone_result() { } - public createUser_result( + public mergeZone_result( ExecResp success) { this(); this.success = success; @@ -24793,21 +37052,21 @@ public createUser_result( /** * Performs a deep copy on other. */ - public createUser_result(createUser_result other) { + public mergeZone_result(mergeZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createUser_result deepCopy() { - return new createUser_result(this); + public mergeZone_result deepCopy() { + return new mergeZone_result(this); } public ExecResp getSuccess() { return this.success; } - public createUser_result setSuccess(ExecResp success) { + public mergeZone_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -24858,9 +37117,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createUser_result)) + if (!(_that instanceof mergeZone_result)) return false; - createUser_result that = (createUser_result)_that; + mergeZone_result that = (mergeZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -24873,7 +37132,7 @@ public int hashCode() { } @Override - public int compareTo(createUser_result other) { + public int compareTo(mergeZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -24949,7 +37208,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("mergeZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -24976,11 +37235,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 dropZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropUserReq req; + public DropZoneReq req; public static final int REQ = 1; // isset id assignments @@ -24990,19 +37249,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, DropZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropUser_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropZone_args.class, metaDataMap); } - public dropUser_args() { + public dropZone_args() { } - public dropUser_args( - DropUserReq req) { + public dropZone_args( + DropZoneReq req) { this(); this.req = req; } @@ -25010,21 +37269,21 @@ public dropUser_args( /** * Performs a deep copy on other. */ - public dropUser_args(dropUser_args other) { + public dropZone_args(dropZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropUser_args deepCopy() { - return new dropUser_args(this); + public dropZone_args deepCopy() { + return new dropZone_args(this); } - public DropUserReq getReq() { + public DropZoneReq getReq() { return this.req; } - public dropUser_args setReq(DropUserReq req) { + public dropZone_args setReq(DropZoneReq req) { this.req = req; return this; } @@ -25050,7 +37309,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropUserReq)__value); + setReq((DropZoneReq)__value); } break; @@ -25075,9 +37334,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropUser_args)) + if (!(_that instanceof dropZone_args)) return false; - dropUser_args that = (dropUser_args)_that; + dropZone_args that = (dropZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -25090,7 +37349,7 @@ public int hashCode() { } @Override - public int compareTo(dropUser_args other) { + public int compareTo(dropZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25125,7 +37384,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropUserReq(); + this.req = new DropZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -25167,7 +37426,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("dropZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25194,8 +37453,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 dropZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("dropZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -25213,13 +37472,13 @@ public static class dropUser_result implements TBase, java.io.Serializable, Clon } static { - FieldMetaData.addStructMetaDataMap(dropUser_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropZone_result.class, metaDataMap); } - public dropUser_result() { + public dropZone_result() { } - public dropUser_result( + public dropZone_result( ExecResp success) { this(); this.success = success; @@ -25228,21 +37487,21 @@ public dropUser_result( /** * Performs a deep copy on other. */ - public dropUser_result(dropUser_result other) { + public dropZone_result(dropZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropUser_result deepCopy() { - return new dropUser_result(this); + public dropZone_result deepCopy() { + return new dropZone_result(this); } public ExecResp getSuccess() { return this.success; } - public dropUser_result setSuccess(ExecResp success) { + public dropZone_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -25293,9 +37552,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropUser_result)) + if (!(_that instanceof dropZone_result)) return false; - dropUser_result that = (dropUser_result)_that; + dropZone_result that = (dropZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -25308,7 +37567,7 @@ public int hashCode() { } @Override - public int compareTo(dropUser_result other) { + public int compareTo(dropZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25384,7 +37643,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("dropZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25411,11 +37670,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 divideZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("divideZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AlterUserReq req; + public DivideZoneReq req; public static final int REQ = 1; // isset id assignments @@ -25425,19 +37684,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, DivideZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(alterUser_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(divideZone_args.class, metaDataMap); } - public alterUser_args() { + public divideZone_args() { } - public alterUser_args( - AlterUserReq req) { + public divideZone_args( + DivideZoneReq req) { this(); this.req = req; } @@ -25445,21 +37704,21 @@ public alterUser_args( /** * Performs a deep copy on other. */ - public alterUser_args(alterUser_args other) { + public divideZone_args(divideZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public alterUser_args deepCopy() { - return new alterUser_args(this); + public divideZone_args deepCopy() { + return new divideZone_args(this); } - public AlterUserReq getReq() { + public DivideZoneReq getReq() { return this.req; } - public alterUser_args setReq(AlterUserReq req) { + public divideZone_args setReq(DivideZoneReq req) { this.req = req; return this; } @@ -25485,7 +37744,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AlterUserReq)__value); + setReq((DivideZoneReq)__value); } break; @@ -25510,9 +37769,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterUser_args)) + if (!(_that instanceof divideZone_args)) return false; - alterUser_args that = (alterUser_args)_that; + divideZone_args that = (divideZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -25525,7 +37784,7 @@ public int hashCode() { } @Override - public int compareTo(alterUser_args other) { + public int compareTo(divideZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25560,7 +37819,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AlterUserReq(); + this.req = new DivideZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -25602,7 +37861,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("divideZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25629,8 +37888,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 divideZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("divideZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -25648,13 +37907,13 @@ public static class alterUser_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(alterUser_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(divideZone_result.class, metaDataMap); } - public alterUser_result() { + public divideZone_result() { } - public alterUser_result( + public divideZone_result( ExecResp success) { this(); this.success = success; @@ -25663,21 +37922,21 @@ public alterUser_result( /** * Performs a deep copy on other. */ - public alterUser_result(alterUser_result other) { + public divideZone_result(divideZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public alterUser_result deepCopy() { - return new alterUser_result(this); + public divideZone_result deepCopy() { + return new divideZone_result(this); } public ExecResp getSuccess() { return this.success; } - public alterUser_result setSuccess(ExecResp success) { + public divideZone_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -25728,9 +37987,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof alterUser_result)) + if (!(_that instanceof divideZone_result)) return false; - alterUser_result that = (alterUser_result)_that; + divideZone_result that = (divideZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -25743,7 +38002,7 @@ public int hashCode() { } @Override - public int compareTo(alterUser_result other) { + public int compareTo(divideZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25819,7 +38078,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("divideZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -25846,11 +38105,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 renameZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("renameZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GrantRoleReq req; + public RenameZoneReq req; public static final int REQ = 1; // isset id assignments @@ -25860,19 +38119,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, RenameZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(grantRole_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(renameZone_args.class, metaDataMap); } - public grantRole_args() { + public renameZone_args() { } - public grantRole_args( - GrantRoleReq req) { + public renameZone_args( + RenameZoneReq req) { this(); this.req = req; } @@ -25880,21 +38139,21 @@ public grantRole_args( /** * Performs a deep copy on other. */ - public grantRole_args(grantRole_args other) { + public renameZone_args(renameZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public grantRole_args deepCopy() { - return new grantRole_args(this); + public renameZone_args deepCopy() { + return new renameZone_args(this); } - public GrantRoleReq getReq() { + public RenameZoneReq getReq() { return this.req; } - public grantRole_args setReq(GrantRoleReq req) { + public renameZone_args setReq(RenameZoneReq req) { this.req = req; return this; } @@ -25920,7 +38179,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GrantRoleReq)__value); + setReq((RenameZoneReq)__value); } break; @@ -25945,9 +38204,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof grantRole_args)) + if (!(_that instanceof renameZone_args)) return false; - grantRole_args that = (grantRole_args)_that; + renameZone_args that = (renameZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -25960,7 +38219,7 @@ public int hashCode() { } @Override - public int compareTo(grantRole_args other) { + public int compareTo(renameZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -25995,7 +38254,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GrantRoleReq(); + this.req = new RenameZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26037,7 +38296,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("renameZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26064,8 +38323,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 renameZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("renameZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -26083,13 +38342,13 @@ public static class grantRole_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(grantRole_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(renameZone_result.class, metaDataMap); } - public grantRole_result() { + public renameZone_result() { } - public grantRole_result( + public renameZone_result( ExecResp success) { this(); this.success = success; @@ -26098,21 +38357,21 @@ public grantRole_result( /** * Performs a deep copy on other. */ - public grantRole_result(grantRole_result other) { + public renameZone_result(renameZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public grantRole_result deepCopy() { - return new grantRole_result(this); + public renameZone_result deepCopy() { + return new renameZone_result(this); } public ExecResp getSuccess() { return this.success; } - public grantRole_result setSuccess(ExecResp success) { + public renameZone_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -26163,9 +38422,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof grantRole_result)) + if (!(_that instanceof renameZone_result)) return false; - grantRole_result that = (grantRole_result)_that; + renameZone_result that = (renameZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -26178,7 +38437,7 @@ public int hashCode() { } @Override - public int compareTo(grantRole_result other) { + public int compareTo(renameZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26254,7 +38513,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("renameZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26281,11 +38540,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 getZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getZone_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RevokeRoleReq req; + public GetZoneReq req; public static final int REQ = 1; // isset id assignments @@ -26295,19 +38554,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, GetZoneReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(revokeRole_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getZone_args.class, metaDataMap); } - public revokeRole_args() { + public getZone_args() { } - public revokeRole_args( - RevokeRoleReq req) { + public getZone_args( + GetZoneReq req) { this(); this.req = req; } @@ -26315,21 +38574,21 @@ public revokeRole_args( /** * Performs a deep copy on other. */ - public revokeRole_args(revokeRole_args other) { + public getZone_args(getZone_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public revokeRole_args deepCopy() { - return new revokeRole_args(this); + public getZone_args deepCopy() { + return new getZone_args(this); } - public RevokeRoleReq getReq() { + public GetZoneReq getReq() { return this.req; } - public revokeRole_args setReq(RevokeRoleReq req) { + public getZone_args setReq(GetZoneReq req) { this.req = req; return this; } @@ -26355,7 +38614,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RevokeRoleReq)__value); + setReq((GetZoneReq)__value); } break; @@ -26380,9 +38639,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof revokeRole_args)) + if (!(_that instanceof getZone_args)) return false; - revokeRole_args that = (revokeRole_args)_that; + getZone_args that = (getZone_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -26395,7 +38654,7 @@ public int hashCode() { } @Override - public int compareTo(revokeRole_args other) { + public int compareTo(getZone_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26430,7 +38689,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RevokeRoleReq(); + this.req = new GetZoneReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26472,7 +38731,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("getZone_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26499,11 +38758,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 getZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getZone_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public GetZoneResp success; public static final int SUCCESS = 0; // isset id assignments @@ -26513,19 +38772,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, GetZoneResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(revokeRole_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getZone_result.class, metaDataMap); } - public revokeRole_result() { + public getZone_result() { } - public revokeRole_result( - ExecResp success) { + public getZone_result( + GetZoneResp success) { this(); this.success = success; } @@ -26533,21 +38792,21 @@ public revokeRole_result( /** * Performs a deep copy on other. */ - public revokeRole_result(revokeRole_result other) { + public getZone_result(getZone_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public revokeRole_result deepCopy() { - return new revokeRole_result(this); + public getZone_result deepCopy() { + return new getZone_result(this); } - public ExecResp getSuccess() { + public GetZoneResp getSuccess() { return this.success; } - public revokeRole_result setSuccess(ExecResp success) { + public getZone_result setSuccess(GetZoneResp success) { this.success = success; return this; } @@ -26573,7 +38832,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetZoneResp)__value); } break; @@ -26598,9 +38857,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof revokeRole_result)) + if (!(_that instanceof getZone_result)) return false; - revokeRole_result that = (revokeRole_result)_that; + getZone_result that = (getZone_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -26613,7 +38872,7 @@ public int hashCode() { } @Override - public int compareTo(revokeRole_result other) { + public int compareTo(getZone_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26648,7 +38907,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new GetZoneResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26689,7 +38948,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("getZone_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26716,11 +38975,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 listZones_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listZones_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListUsersReq req; + public ListZonesReq req; public static final int REQ = 1; // isset id assignments @@ -26730,19 +38989,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, ListZonesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listUsers_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listZones_args.class, metaDataMap); } - public listUsers_args() { + public listZones_args() { } - public listUsers_args( - ListUsersReq req) { + public listZones_args( + ListZonesReq req) { this(); this.req = req; } @@ -26750,21 +39009,21 @@ public listUsers_args( /** * Performs a deep copy on other. */ - public listUsers_args(listUsers_args other) { + public listZones_args(listZones_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listUsers_args deepCopy() { - return new listUsers_args(this); + public listZones_args deepCopy() { + return new listZones_args(this); } - public ListUsersReq getReq() { + public ListZonesReq getReq() { return this.req; } - public listUsers_args setReq(ListUsersReq req) { + public listZones_args setReq(ListZonesReq req) { this.req = req; return this; } @@ -26790,7 +39049,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListUsersReq)__value); + setReq((ListZonesReq)__value); } break; @@ -26815,9 +39074,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listUsers_args)) + if (!(_that instanceof listZones_args)) return false; - listUsers_args that = (listUsers_args)_that; + listZones_args that = (listZones_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -26830,7 +39089,7 @@ public int hashCode() { } @Override - public int compareTo(listUsers_args other) { + public int compareTo(listZones_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -26865,7 +39124,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListUsersReq(); + this.req = new ListZonesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -26907,7 +39166,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("listZones_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -26934,11 +39193,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 listZones_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listZones_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListUsersResp success; + public ListZonesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -26948,19 +39207,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, ListZonesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listUsers_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listZones_result.class, metaDataMap); } - public listUsers_result() { + public listZones_result() { } - public listUsers_result( - ListUsersResp success) { + public listZones_result( + ListZonesResp success) { this(); this.success = success; } @@ -26968,21 +39227,21 @@ public listUsers_result( /** * Performs a deep copy on other. */ - public listUsers_result(listUsers_result other) { + public listZones_result(listZones_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listUsers_result deepCopy() { - return new listUsers_result(this); + public listZones_result deepCopy() { + return new listZones_result(this); } - public ListUsersResp getSuccess() { + public ListZonesResp getSuccess() { return this.success; } - public listUsers_result setSuccess(ListUsersResp success) { + public listZones_result setSuccess(ListZonesResp success) { this.success = success; return this; } @@ -27008,7 +39267,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListUsersResp)__value); + setSuccess((ListZonesResp)__value); } break; @@ -27033,9 +39292,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listUsers_result)) + if (!(_that instanceof listZones_result)) return false; - listUsers_result that = (listUsers_result)_that; + listZones_result that = (listZones_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -27048,7 +39307,7 @@ public int hashCode() { } @Override - public int compareTo(listUsers_result other) { + public int compareTo(listZones_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27083,7 +39342,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListUsersResp(); + this.success = new ListZonesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -27124,7 +39383,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("listZones_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27151,11 +39410,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 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 ListRolesReq req; + public AddListenerReq req; public static final int REQ = 1; // isset id assignments @@ -27165,19 +39424,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, AddListenerReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listRoles_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addListener_args.class, metaDataMap); } - public listRoles_args() { + public addListener_args() { } - public listRoles_args( - ListRolesReq req) { + public addListener_args( + AddListenerReq req) { this(); this.req = req; } @@ -27185,21 +39444,21 @@ public listRoles_args( /** * Performs a deep copy on other. */ - public listRoles_args(listRoles_args other) { + public addListener_args(addListener_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listRoles_args deepCopy() { - return new listRoles_args(this); + public addListener_args deepCopy() { + return new addListener_args(this); } - public ListRolesReq getReq() { + public AddListenerReq getReq() { return this.req; } - public listRoles_args setReq(ListRolesReq req) { + public addListener_args setReq(AddListenerReq req) { this.req = req; return this; } @@ -27225,7 +39484,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListRolesReq)__value); + setReq((AddListenerReq)__value); } break; @@ -27250,9 +39509,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listRoles_args)) + if (!(_that instanceof addListener_args)) return false; - listRoles_args that = (listRoles_args)_that; + addListener_args that = (addListener_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -27265,7 +39524,7 @@ public int hashCode() { } @Override - public int compareTo(listRoles_args other) { + public int compareTo(addListener_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27300,7 +39559,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListRolesReq(); + this.req = new AddListenerReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -27342,7 +39601,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("addListener_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27369,11 +39628,11 @@ public void validate() throws TException { } - public static class listRoles_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listRoles_result"); + public static class 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 ListRolesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -27383,19 +39642,19 @@ public static class listRoles_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListRolesResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listRoles_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addListener_result.class, metaDataMap); } - public listRoles_result() { + public addListener_result() { } - public listRoles_result( - ListRolesResp success) { + public addListener_result( + ExecResp success) { this(); this.success = success; } @@ -27403,21 +39662,21 @@ public listRoles_result( /** * Performs a deep copy on other. */ - public listRoles_result(listRoles_result other) { + public addListener_result(addListener_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listRoles_result deepCopy() { - return new listRoles_result(this); + public addListener_result deepCopy() { + return new addListener_result(this); } - public ListRolesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listRoles_result setSuccess(ListRolesResp success) { + public addListener_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -27443,7 +39702,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListRolesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -27468,9 +39727,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listRoles_result)) + if (!(_that instanceof addListener_result)) return false; - listRoles_result that = (listRoles_result)_that; + addListener_result that = (addListener_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -27483,7 +39742,7 @@ public int hashCode() { } @Override - public int compareTo(listRoles_result other) { + public int compareTo(addListener_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27518,7 +39777,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); @@ -27559,7 +39818,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("addListener_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27586,11 +39845,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 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 GetUserRolesReq req; + public RemoveListenerReq req; public static final int REQ = 1; // isset id assignments @@ -27600,19 +39859,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, RemoveListenerReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getUserRoles_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeListener_args.class, metaDataMap); } - public getUserRoles_args() { + public removeListener_args() { } - public getUserRoles_args( - GetUserRolesReq req) { + public removeListener_args( + RemoveListenerReq req) { this(); this.req = req; } @@ -27620,21 +39879,21 @@ public getUserRoles_args( /** * Performs a deep copy on other. */ - public getUserRoles_args(getUserRoles_args other) { + public removeListener_args(removeListener_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getUserRoles_args deepCopy() { - return new getUserRoles_args(this); + public removeListener_args deepCopy() { + return new removeListener_args(this); } - public GetUserRolesReq getReq() { + public RemoveListenerReq getReq() { return this.req; } - public getUserRoles_args setReq(GetUserRolesReq req) { + public removeListener_args setReq(RemoveListenerReq req) { this.req = req; return this; } @@ -27660,7 +39919,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetUserRolesReq)__value); + setReq((RemoveListenerReq)__value); } break; @@ -27685,9 +39944,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getUserRoles_args)) + if (!(_that instanceof removeListener_args)) return false; - getUserRoles_args that = (getUserRoles_args)_that; + removeListener_args that = (removeListener_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -27700,7 +39959,7 @@ public int hashCode() { } @Override - public int compareTo(getUserRoles_args other) { + public int compareTo(removeListener_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27735,7 +39994,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetUserRolesReq(); + this.req = new RemoveListenerReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -27777,7 +40036,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("removeListener_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -27804,11 +40063,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 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 ListRolesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -27818,19 +40077,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(removeListener_result.class, metaDataMap); } - public getUserRoles_result() { + public removeListener_result() { } - public getUserRoles_result( - ListRolesResp success) { + public removeListener_result( + ExecResp success) { this(); this.success = success; } @@ -27838,21 +40097,21 @@ public getUserRoles_result( /** * Performs a deep copy on other. */ - public getUserRoles_result(getUserRoles_result other) { + public removeListener_result(removeListener_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getUserRoles_result deepCopy() { - return new getUserRoles_result(this); + public removeListener_result deepCopy() { + return new removeListener_result(this); } - public ListRolesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public getUserRoles_result setSuccess(ListRolesResp success) { + public removeListener_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -27878,7 +40137,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListRolesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -27903,9 +40162,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getUserRoles_result)) + if (!(_that instanceof removeListener_result)) return false; - getUserRoles_result that = (getUserRoles_result)_that; + removeListener_result that = (removeListener_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -27918,7 +40177,7 @@ public int hashCode() { } @Override - public int compareTo(getUserRoles_result other) { + public int compareTo(removeListener_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -27953,7 +40212,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); @@ -27994,7 +40253,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("removeListener_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28021,11 +40280,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 listListeners_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listListeners_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ChangePasswordReq req; + public ListListenersReq req; public static final int REQ = 1; // isset id assignments @@ -28035,19 +40294,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, ListListenersReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(changePassword_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listListeners_args.class, metaDataMap); } - public changePassword_args() { + public listListeners_args() { } - public changePassword_args( - ChangePasswordReq req) { + public listListeners_args( + ListListenersReq req) { this(); this.req = req; } @@ -28055,21 +40314,21 @@ public changePassword_args( /** * Performs a deep copy on other. */ - public changePassword_args(changePassword_args other) { + public listListeners_args(listListeners_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public changePassword_args deepCopy() { - return new changePassword_args(this); + public listListeners_args deepCopy() { + return new listListeners_args(this); } - public ChangePasswordReq getReq() { + public ListListenersReq getReq() { return this.req; } - public changePassword_args setReq(ChangePasswordReq req) { + public listListeners_args setReq(ListListenersReq req) { this.req = req; return this; } @@ -28095,7 +40354,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ChangePasswordReq)__value); + setReq((ListListenersReq)__value); } break; @@ -28120,9 +40379,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof changePassword_args)) + if (!(_that instanceof listListeners_args)) return false; - changePassword_args that = (changePassword_args)_that; + listListeners_args that = (listListeners_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -28135,7 +40394,7 @@ public int hashCode() { } @Override - public int compareTo(changePassword_args other) { + public int compareTo(listListeners_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28170,7 +40429,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ChangePasswordReq(); + this.req = new ListListenersReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28212,7 +40471,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("listListeners_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28239,11 +40498,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 listListeners_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listListeners_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListListenersResp success; public static final int SUCCESS = 0; // isset id assignments @@ -28253,19 +40512,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, ListListenersResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(changePassword_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listListeners_result.class, metaDataMap); } - public changePassword_result() { + public listListeners_result() { } - public changePassword_result( - ExecResp success) { + public listListeners_result( + ListListenersResp success) { this(); this.success = success; } @@ -28273,21 +40532,21 @@ public changePassword_result( /** * Performs a deep copy on other. */ - public changePassword_result(changePassword_result other) { + public listListeners_result(listListeners_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public changePassword_result deepCopy() { - return new changePassword_result(this); + public listListeners_result deepCopy() { + return new listListeners_result(this); } - public ExecResp getSuccess() { + public ListListenersResp getSuccess() { return this.success; } - public changePassword_result setSuccess(ExecResp success) { + public listListeners_result setSuccess(ListListenersResp success) { this.success = success; return this; } @@ -28313,7 +40572,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListListenersResp)__value); } break; @@ -28338,9 +40597,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof changePassword_result)) + if (!(_that instanceof listListeners_result)) return false; - changePassword_result that = (changePassword_result)_that; + listListeners_result that = (listListeners_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -28353,7 +40612,7 @@ public int hashCode() { } @Override - public int compareTo(changePassword_result other) { + public int compareTo(listListeners_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28388,7 +40647,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListListenersResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28429,7 +40688,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("listListeners_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28456,11 +40715,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 listListenerDrainers_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listListenerDrainers_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public HBReq req; + public ListListenerDrainersReq req; public static final int REQ = 1; // isset id assignments @@ -28470,19 +40729,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, ListListenerDrainersReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(heartBeat_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listListenerDrainers_args.class, metaDataMap); } - public heartBeat_args() { + public listListenerDrainers_args() { } - public heartBeat_args( - HBReq req) { + public listListenerDrainers_args( + ListListenerDrainersReq req) { this(); this.req = req; } @@ -28490,21 +40749,21 @@ public heartBeat_args( /** * Performs a deep copy on other. */ - public heartBeat_args(heartBeat_args other) { + public listListenerDrainers_args(listListenerDrainers_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public heartBeat_args deepCopy() { - return new heartBeat_args(this); + public listListenerDrainers_args deepCopy() { + return new listListenerDrainers_args(this); } - public HBReq getReq() { + public ListListenerDrainersReq getReq() { return this.req; } - public heartBeat_args setReq(HBReq req) { + public listListenerDrainers_args setReq(ListListenerDrainersReq req) { this.req = req; return this; } @@ -28530,7 +40789,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((HBReq)__value); + setReq((ListListenerDrainersReq)__value); } break; @@ -28555,9 +40814,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof heartBeat_args)) + if (!(_that instanceof listListenerDrainers_args)) return false; - heartBeat_args that = (heartBeat_args)_that; + listListenerDrainers_args that = (listListenerDrainers_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -28570,7 +40829,7 @@ public int hashCode() { } @Override - public int compareTo(heartBeat_args other) { + public int compareTo(listListenerDrainers_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28605,7 +40864,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new HBReq(); + this.req = new ListListenerDrainersReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28647,7 +40906,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("listListenerDrainers_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28674,11 +40933,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 listListenerDrainers_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listListenerDrainers_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public HBResp success; + public ListListenerDrainersResp success; public static final int SUCCESS = 0; // isset id assignments @@ -28688,19 +40947,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, ListListenerDrainersResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(heartBeat_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listListenerDrainers_result.class, metaDataMap); } - public heartBeat_result() { + public listListenerDrainers_result() { } - public heartBeat_result( - HBResp success) { + public listListenerDrainers_result( + ListListenerDrainersResp success) { this(); this.success = success; } @@ -28708,21 +40967,21 @@ public heartBeat_result( /** * Performs a deep copy on other. */ - public heartBeat_result(heartBeat_result other) { + public listListenerDrainers_result(listListenerDrainers_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public heartBeat_result deepCopy() { - return new heartBeat_result(this); + public listListenerDrainers_result deepCopy() { + return new listListenerDrainers_result(this); } - public HBResp getSuccess() { + public ListListenerDrainersResp getSuccess() { return this.success; } - public heartBeat_result setSuccess(HBResp success) { + public listListenerDrainers_result setSuccess(ListListenerDrainersResp success) { this.success = success; return this; } @@ -28748,7 +41007,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((HBResp)__value); + setSuccess((ListListenerDrainersResp)__value); } break; @@ -28773,9 +41032,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof heartBeat_result)) + if (!(_that instanceof listListenerDrainers_result)) return false; - heartBeat_result that = (heartBeat_result)_that; + listListenerDrainers_result that = (listListenerDrainers_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -28788,7 +41047,7 @@ public int hashCode() { } @Override - public int compareTo(heartBeat_result other) { + public int compareTo(listListenerDrainers_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -28823,7 +41082,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new HBResp(); + this.success = new ListListenerDrainersResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -28864,7 +41123,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("listListenerDrainers_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -28891,11 +41150,11 @@ public void validate() throws TException { } - public static class agentHeartbeat_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("agentHeartbeat_args"); + public static class stopSync_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("stopSync_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AgentHBReq req; + public StopSyncReq req; public static final int REQ = 1; // isset id assignments @@ -28905,19 +41164,19 @@ public static class agentHeartbeat_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AgentHBReq.class))); + new StructMetaData(TType.STRUCT, StopSyncReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(agentHeartbeat_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(stopSync_args.class, metaDataMap); } - public agentHeartbeat_args() { + public stopSync_args() { } - public agentHeartbeat_args( - AgentHBReq req) { + public stopSync_args( + StopSyncReq req) { this(); this.req = req; } @@ -28925,21 +41184,21 @@ public agentHeartbeat_args( /** * Performs a deep copy on other. */ - public agentHeartbeat_args(agentHeartbeat_args other) { + public stopSync_args(stopSync_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public agentHeartbeat_args deepCopy() { - return new agentHeartbeat_args(this); + public stopSync_args deepCopy() { + return new stopSync_args(this); } - public AgentHBReq getReq() { + public StopSyncReq getReq() { return this.req; } - public agentHeartbeat_args setReq(AgentHBReq req) { + public stopSync_args setReq(StopSyncReq req) { this.req = req; return this; } @@ -28965,7 +41224,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AgentHBReq)__value); + setReq((StopSyncReq)__value); } break; @@ -28990,9 +41249,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof agentHeartbeat_args)) + if (!(_that instanceof stopSync_args)) return false; - agentHeartbeat_args that = (agentHeartbeat_args)_that; + stopSync_args that = (stopSync_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -29005,7 +41264,7 @@ public int hashCode() { } @Override - public int compareTo(agentHeartbeat_args other) { + public int compareTo(stopSync_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -29040,7 +41299,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AgentHBReq(); + this.req = new StopSyncReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29082,7 +41341,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("agentHeartbeat_args"); + StringBuilder sb = new StringBuilder("stopSync_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29109,11 +41368,11 @@ public void validate() throws TException { } - public static class agentHeartbeat_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("agentHeartbeat_result"); + public static class stopSync_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("stopSync_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public AgentHBResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -29123,19 +41382,19 @@ public static class agentHeartbeat_result implements TBase, java.io.Serializable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AgentHBResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(agentHeartbeat_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(stopSync_result.class, metaDataMap); } - public agentHeartbeat_result() { + public stopSync_result() { } - public agentHeartbeat_result( - AgentHBResp success) { + public stopSync_result( + ExecResp success) { this(); this.success = success; } @@ -29143,21 +41402,21 @@ public agentHeartbeat_result( /** * Performs a deep copy on other. */ - public agentHeartbeat_result(agentHeartbeat_result other) { + public stopSync_result(stopSync_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public agentHeartbeat_result deepCopy() { - return new agentHeartbeat_result(this); + public stopSync_result deepCopy() { + return new stopSync_result(this); } - public AgentHBResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public agentHeartbeat_result setSuccess(AgentHBResp success) { + public stopSync_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -29183,7 +41442,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((AgentHBResp)__value); + setSuccess((ExecResp)__value); } break; @@ -29208,9 +41467,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof agentHeartbeat_result)) + if (!(_that instanceof stopSync_result)) return false; - agentHeartbeat_result that = (agentHeartbeat_result)_that; + stopSync_result that = (stopSync_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -29223,7 +41482,7 @@ public int hashCode() { } @Override - public int compareTo(agentHeartbeat_result other) { + public int compareTo(stopSync_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -29258,7 +41517,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new AgentHBResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29299,7 +41558,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("agentHeartbeat_result"); + StringBuilder sb = new StringBuilder("stopSync_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29326,11 +41585,11 @@ public void validate() throws TException { } - public static class regConfig_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("regConfig_args"); + public static class restartSync_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("restartSync_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RegConfigReq req; + public RestartSyncReq req; public static final int REQ = 1; // isset id assignments @@ -29340,19 +41599,19 @@ public static class regConfig_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RegConfigReq.class))); + new StructMetaData(TType.STRUCT, RestartSyncReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(regConfig_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(restartSync_args.class, metaDataMap); } - public regConfig_args() { + public restartSync_args() { } - public regConfig_args( - RegConfigReq req) { + public restartSync_args( + RestartSyncReq req) { this(); this.req = req; } @@ -29360,21 +41619,21 @@ public regConfig_args( /** * Performs a deep copy on other. */ - public regConfig_args(regConfig_args other) { + public restartSync_args(restartSync_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public regConfig_args deepCopy() { - return new regConfig_args(this); + public restartSync_args deepCopy() { + return new restartSync_args(this); } - public RegConfigReq getReq() { + public RestartSyncReq getReq() { return this.req; } - public regConfig_args setReq(RegConfigReq req) { + public restartSync_args setReq(RestartSyncReq req) { this.req = req; return this; } @@ -29400,7 +41659,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RegConfigReq)__value); + setReq((RestartSyncReq)__value); } break; @@ -29425,9 +41684,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof regConfig_args)) + if (!(_that instanceof restartSync_args)) return false; - regConfig_args that = (regConfig_args)_that; + restartSync_args that = (restartSync_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -29439,6 +41698,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } + @Override + public int compareTo(restartSync_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); @@ -29452,7 +41734,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RegConfigReq(); + this.req = new RestartSyncReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29494,7 +41776,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("regConfig_args"); + StringBuilder sb = new StringBuilder("restartSync_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29521,8 +41803,8 @@ public void validate() throws TException { } - public static class regConfig_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("regConfig_result"); + public static class restartSync_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("restartSync_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -29540,13 +41822,13 @@ public static class regConfig_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(regConfig_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(restartSync_result.class, metaDataMap); } - public regConfig_result() { + public restartSync_result() { } - public regConfig_result( + public restartSync_result( ExecResp success) { this(); this.success = success; @@ -29555,21 +41837,21 @@ public regConfig_result( /** * Performs a deep copy on other. */ - public regConfig_result(regConfig_result other) { + public restartSync_result(restartSync_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public regConfig_result deepCopy() { - return new regConfig_result(this); + public restartSync_result deepCopy() { + return new restartSync_result(this); } public ExecResp getSuccess() { return this.success; } - public regConfig_result setSuccess(ExecResp success) { + public restartSync_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -29620,9 +41902,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof regConfig_result)) + if (!(_that instanceof restartSync_result)) return false; - regConfig_result that = (regConfig_result)_that; + restartSync_result that = (restartSync_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -29635,7 +41917,7 @@ public int hashCode() { } @Override - public int compareTo(regConfig_result other) { + public int compareTo(restartSync_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -29711,7 +41993,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("regConfig_result"); + StringBuilder sb = new StringBuilder("restartSync_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29738,11 +42020,11 @@ public void validate() throws TException { } - public static class getConfig_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getConfig_args"); + public static class listSyncStatus_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSyncStatus_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetConfigReq req; + public ListSyncStatusReq req; public static final int REQ = 1; // isset id assignments @@ -29752,19 +42034,19 @@ public static class getConfig_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetConfigReq.class))); + new StructMetaData(TType.STRUCT, ListSyncStatusReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getConfig_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSyncStatus_args.class, metaDataMap); } - public getConfig_args() { + public listSyncStatus_args() { } - public getConfig_args( - GetConfigReq req) { + public listSyncStatus_args( + ListSyncStatusReq req) { this(); this.req = req; } @@ -29772,21 +42054,21 @@ public getConfig_args( /** * Performs a deep copy on other. */ - public getConfig_args(getConfig_args other) { + public listSyncStatus_args(listSyncStatus_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getConfig_args deepCopy() { - return new getConfig_args(this); + public listSyncStatus_args deepCopy() { + return new listSyncStatus_args(this); } - public GetConfigReq getReq() { + public ListSyncStatusReq getReq() { return this.req; } - public getConfig_args setReq(GetConfigReq req) { + public listSyncStatus_args setReq(ListSyncStatusReq req) { this.req = req; return this; } @@ -29812,7 +42094,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetConfigReq)__value); + setReq((ListSyncStatusReq)__value); } break; @@ -29837,9 +42119,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getConfig_args)) + if (!(_that instanceof listSyncStatus_args)) return false; - getConfig_args that = (getConfig_args)_that; + listSyncStatus_args that = (listSyncStatus_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -29851,6 +42133,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } + @Override + public int compareTo(listSyncStatus_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); @@ -29864,7 +42169,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetConfigReq(); + this.req = new ListSyncStatusReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -29906,7 +42211,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getConfig_args"); + StringBuilder sb = new StringBuilder("listSyncStatus_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -29933,11 +42238,11 @@ public void validate() throws TException { } - public static class getConfig_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getConfig_result"); + public static class listSyncStatus_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSyncStatus_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetConfigResp success; + public ListSyncStatusResp success; public static final int SUCCESS = 0; // isset id assignments @@ -29947,19 +42252,19 @@ public static class getConfig_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetConfigResp.class))); + new StructMetaData(TType.STRUCT, ListSyncStatusResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getConfig_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSyncStatus_result.class, metaDataMap); } - public getConfig_result() { + public listSyncStatus_result() { } - public getConfig_result( - GetConfigResp success) { + public listSyncStatus_result( + ListSyncStatusResp success) { this(); this.success = success; } @@ -29967,21 +42272,21 @@ public getConfig_result( /** * Performs a deep copy on other. */ - public getConfig_result(getConfig_result other) { + public listSyncStatus_result(listSyncStatus_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getConfig_result deepCopy() { - return new getConfig_result(this); + public listSyncStatus_result deepCopy() { + return new listSyncStatus_result(this); } - public GetConfigResp getSuccess() { + public ListSyncStatusResp getSuccess() { return this.success; } - public getConfig_result setSuccess(GetConfigResp success) { + public listSyncStatus_result setSuccess(ListSyncStatusResp success) { this.success = success; return this; } @@ -30007,7 +42312,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetConfigResp)__value); + setSuccess((ListSyncStatusResp)__value); } break; @@ -30032,9 +42337,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getConfig_result)) + if (!(_that instanceof listSyncStatus_result)) return false; - getConfig_result that = (getConfig_result)_that; + listSyncStatus_result that = (listSyncStatus_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -30046,6 +42351,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } + @Override + public int compareTo(listSyncStatus_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); @@ -30059,7 +42387,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetConfigResp(); + this.success = new ListSyncStatusResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -30100,7 +42428,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getConfig_result"); + StringBuilder sb = new StringBuilder("listSyncStatus_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -30127,11 +42455,11 @@ public void validate() throws TException { } - public static class setConfig_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("setConfig_args"); + public static class addDrainer_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addDrainer_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public SetConfigReq req; + public AddDrainerReq req; public static final int REQ = 1; // isset id assignments @@ -30141,19 +42469,19 @@ public static class setConfig_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, SetConfigReq.class))); + new StructMetaData(TType.STRUCT, AddDrainerReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(setConfig_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addDrainer_args.class, metaDataMap); } - public setConfig_args() { + public addDrainer_args() { } - public setConfig_args( - SetConfigReq req) { + public addDrainer_args( + AddDrainerReq req) { this(); this.req = req; } @@ -30161,21 +42489,21 @@ public setConfig_args( /** * Performs a deep copy on other. */ - public setConfig_args(setConfig_args other) { + public addDrainer_args(addDrainer_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public setConfig_args deepCopy() { - return new setConfig_args(this); + public addDrainer_args deepCopy() { + return new addDrainer_args(this); } - public SetConfigReq getReq() { + public AddDrainerReq getReq() { return this.req; } - public setConfig_args setReq(SetConfigReq req) { + public addDrainer_args setReq(AddDrainerReq req) { this.req = req; return this; } @@ -30201,7 +42529,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((SetConfigReq)__value); + setReq((AddDrainerReq)__value); } break; @@ -30226,9 +42554,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof setConfig_args)) + if (!(_that instanceof addDrainer_args)) return false; - setConfig_args that = (setConfig_args)_that; + addDrainer_args that = (addDrainer_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -30240,6 +42568,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } + @Override + public int compareTo(addDrainer_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); @@ -30253,7 +42604,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new SetConfigReq(); + this.req = new AddDrainerReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -30295,7 +42646,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("setConfig_args"); + StringBuilder sb = new StringBuilder("addDrainer_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -30322,8 +42673,8 @@ public void validate() throws TException { } - public static class setConfig_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("setConfig_result"); + public static class addDrainer_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("addDrainer_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -30341,13 +42692,13 @@ public static class setConfig_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(setConfig_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(addDrainer_result.class, metaDataMap); } - public setConfig_result() { + public addDrainer_result() { } - public setConfig_result( + public addDrainer_result( ExecResp success) { this(); this.success = success; @@ -30356,21 +42707,21 @@ public setConfig_result( /** * Performs a deep copy on other. */ - public setConfig_result(setConfig_result other) { + public addDrainer_result(addDrainer_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public setConfig_result deepCopy() { - return new setConfig_result(this); + public addDrainer_result deepCopy() { + return new addDrainer_result(this); } public ExecResp getSuccess() { return this.success; } - public setConfig_result setSuccess(ExecResp success) { + public addDrainer_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -30421,9 +42772,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof setConfig_result)) + if (!(_that instanceof addDrainer_result)) return false; - setConfig_result that = (setConfig_result)_that; + addDrainer_result that = (addDrainer_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -30436,7 +42787,7 @@ public int hashCode() { } @Override - public int compareTo(setConfig_result other) { + public int compareTo(addDrainer_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -30512,7 +42863,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("setConfig_result"); + StringBuilder sb = new StringBuilder("addDrainer_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -30539,11 +42890,11 @@ public void validate() throws TException { } - public static class listConfigs_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listConfigs_args"); + public static class removeDrainer_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("removeDrainer_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListConfigsReq req; + public RemoveDrainerReq req; public static final int REQ = 1; // isset id assignments @@ -30553,19 +42904,19 @@ public static class listConfigs_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListConfigsReq.class))); + new StructMetaData(TType.STRUCT, RemoveDrainerReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listConfigs_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeDrainer_args.class, metaDataMap); } - public listConfigs_args() { + public removeDrainer_args() { } - public listConfigs_args( - ListConfigsReq req) { + public removeDrainer_args( + RemoveDrainerReq req) { this(); this.req = req; } @@ -30573,21 +42924,21 @@ public listConfigs_args( /** * Performs a deep copy on other. */ - public listConfigs_args(listConfigs_args other) { + public removeDrainer_args(removeDrainer_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listConfigs_args deepCopy() { - return new listConfigs_args(this); + public removeDrainer_args deepCopy() { + return new removeDrainer_args(this); } - public ListConfigsReq getReq() { + public RemoveDrainerReq getReq() { return this.req; } - public listConfigs_args setReq(ListConfigsReq req) { + public removeDrainer_args setReq(RemoveDrainerReq req) { this.req = req; return this; } @@ -30613,7 +42964,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListConfigsReq)__value); + setReq((RemoveDrainerReq)__value); } break; @@ -30638,9 +42989,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listConfigs_args)) + if (!(_that instanceof removeDrainer_args)) return false; - listConfigs_args that = (listConfigs_args)_that; + removeDrainer_args that = (removeDrainer_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -30653,7 +43004,7 @@ public int hashCode() { } @Override - public int compareTo(listConfigs_args other) { + public int compareTo(removeDrainer_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -30688,7 +43039,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListConfigsReq(); + this.req = new RemoveDrainerReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -30730,7 +43081,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listConfigs_args"); + StringBuilder sb = new StringBuilder("removeDrainer_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -30757,11 +43108,11 @@ public void validate() throws TException { } - public static class listConfigs_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("listConfigs_result"); + public static class removeDrainer_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("removeDrainer_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListConfigsResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -30771,19 +43122,19 @@ public static class listConfigs_result implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListConfigsResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listConfigs_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeDrainer_result.class, metaDataMap); } - public listConfigs_result() { + public removeDrainer_result() { } - public listConfigs_result( - ListConfigsResp success) { + public removeDrainer_result( + ExecResp success) { this(); this.success = success; } @@ -30791,21 +43142,21 @@ public listConfigs_result( /** * Performs a deep copy on other. */ - public listConfigs_result(listConfigs_result other) { + public removeDrainer_result(removeDrainer_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listConfigs_result deepCopy() { - return new listConfigs_result(this); + public removeDrainer_result deepCopy() { + return new removeDrainer_result(this); } - public ListConfigsResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listConfigs_result setSuccess(ListConfigsResp success) { + public removeDrainer_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -30831,7 +43182,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListConfigsResp)__value); + setSuccess((ExecResp)__value); } break; @@ -30856,9 +43207,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listConfigs_result)) + if (!(_that instanceof removeDrainer_result)) return false; - listConfigs_result that = (listConfigs_result)_that; + removeDrainer_result that = (removeDrainer_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -30870,6 +43221,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } + @Override + public int compareTo(removeDrainer_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); @@ -30883,7 +43257,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListConfigsResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -30924,7 +43298,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listConfigs_result"); + StringBuilder sb = new StringBuilder("removeDrainer_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -30951,11 +43325,11 @@ public void validate() throws TException { } - public static class createSnapshot_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createSnapshot_args"); + public static class listDrainers_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listDrainers_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateSnapshotReq req; + public ListDrainersReq req; public static final int REQ = 1; // isset id assignments @@ -30965,19 +43339,19 @@ public static class createSnapshot_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, CreateSnapshotReq.class))); + new StructMetaData(TType.STRUCT, ListDrainersReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createSnapshot_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listDrainers_args.class, metaDataMap); } - public createSnapshot_args() { + public listDrainers_args() { } - public createSnapshot_args( - CreateSnapshotReq req) { + public listDrainers_args( + ListDrainersReq req) { this(); this.req = req; } @@ -30985,21 +43359,21 @@ public createSnapshot_args( /** * Performs a deep copy on other. */ - public createSnapshot_args(createSnapshot_args other) { + public listDrainers_args(listDrainers_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createSnapshot_args deepCopy() { - return new createSnapshot_args(this); + public listDrainers_args deepCopy() { + return new listDrainers_args(this); } - public CreateSnapshotReq getReq() { + public ListDrainersReq getReq() { return this.req; } - public createSnapshot_args setReq(CreateSnapshotReq req) { + public listDrainers_args setReq(ListDrainersReq req) { this.req = req; return this; } @@ -31025,7 +43399,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateSnapshotReq)__value); + setReq((ListDrainersReq)__value); } break; @@ -31050,9 +43424,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSnapshot_args)) + if (!(_that instanceof listDrainers_args)) return false; - createSnapshot_args that = (createSnapshot_args)_that; + listDrainers_args that = (listDrainers_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -31065,7 +43439,7 @@ public int hashCode() { } @Override - public int compareTo(createSnapshot_args other) { + public int compareTo(listDrainers_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -31100,7 +43474,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateSnapshotReq(); + this.req = new ListDrainersReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -31142,7 +43516,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createSnapshot_args"); + StringBuilder sb = new StringBuilder("listDrainers_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -31169,11 +43543,11 @@ public void validate() throws TException { } - public static class createSnapshot_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("createSnapshot_result"); + public static class listDrainers_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listDrainers_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListDrainersResp success; public static final int SUCCESS = 0; // isset id assignments @@ -31183,19 +43557,19 @@ public static class createSnapshot_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, ListDrainersResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createSnapshot_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listDrainers_result.class, metaDataMap); } - public createSnapshot_result() { + public listDrainers_result() { } - public createSnapshot_result( - ExecResp success) { + public listDrainers_result( + ListDrainersResp success) { this(); this.success = success; } @@ -31203,21 +43577,21 @@ public createSnapshot_result( /** * Performs a deep copy on other. */ - public createSnapshot_result(createSnapshot_result other) { + public listDrainers_result(listDrainers_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createSnapshot_result deepCopy() { - return new createSnapshot_result(this); + public listDrainers_result deepCopy() { + return new listDrainers_result(this); } - public ExecResp getSuccess() { + public ListDrainersResp getSuccess() { return this.success; } - public createSnapshot_result setSuccess(ExecResp success) { + public listDrainers_result setSuccess(ListDrainersResp success) { this.success = success; return this; } @@ -31243,7 +43617,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListDrainersResp)__value); } break; @@ -31268,9 +43642,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSnapshot_result)) + if (!(_that instanceof listDrainers_result)) return false; - createSnapshot_result that = (createSnapshot_result)_that; + listDrainers_result that = (listDrainers_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -31283,7 +43657,7 @@ public int hashCode() { } @Override - public int compareTo(createSnapshot_result other) { + public int compareTo(listDrainers_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -31318,7 +43692,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListDrainersResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -31359,7 +43733,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("createSnapshot_result"); + StringBuilder sb = new StringBuilder("listDrainers_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -31386,11 +43760,11 @@ public void validate() throws TException { } - public static class dropSnapshot_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropSnapshot_args"); + public static class listDrainerSyncStatus_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listDrainerSyncStatus_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropSnapshotReq req; + public ListDrainerSyncStatusReq req; public static final int REQ = 1; // isset id assignments @@ -31400,19 +43774,19 @@ public static class dropSnapshot_args implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropSnapshotReq.class))); + new StructMetaData(TType.STRUCT, ListDrainerSyncStatusReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropSnapshot_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listDrainerSyncStatus_args.class, metaDataMap); } - public dropSnapshot_args() { + public listDrainerSyncStatus_args() { } - public dropSnapshot_args( - DropSnapshotReq req) { + public listDrainerSyncStatus_args( + ListDrainerSyncStatusReq req) { this(); this.req = req; } @@ -31420,21 +43794,21 @@ public dropSnapshot_args( /** * Performs a deep copy on other. */ - public dropSnapshot_args(dropSnapshot_args other) { + public listDrainerSyncStatus_args(listDrainerSyncStatus_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropSnapshot_args deepCopy() { - return new dropSnapshot_args(this); + public listDrainerSyncStatus_args deepCopy() { + return new listDrainerSyncStatus_args(this); } - public DropSnapshotReq getReq() { + public ListDrainerSyncStatusReq getReq() { return this.req; } - public dropSnapshot_args setReq(DropSnapshotReq req) { + public listDrainerSyncStatus_args setReq(ListDrainerSyncStatusReq req) { this.req = req; return this; } @@ -31460,7 +43834,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropSnapshotReq)__value); + setReq((ListDrainerSyncStatusReq)__value); } break; @@ -31485,9 +43859,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropSnapshot_args)) + if (!(_that instanceof listDrainerSyncStatus_args)) return false; - dropSnapshot_args that = (dropSnapshot_args)_that; + listDrainerSyncStatus_args that = (listDrainerSyncStatus_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -31500,7 +43874,7 @@ public int hashCode() { } @Override - public int compareTo(dropSnapshot_args other) { + public int compareTo(listDrainerSyncStatus_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -31535,7 +43909,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropSnapshotReq(); + this.req = new ListDrainerSyncStatusReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -31577,7 +43951,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropSnapshot_args"); + StringBuilder sb = new StringBuilder("listDrainerSyncStatus_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -31604,11 +43978,11 @@ public void validate() throws TException { } - public static class dropSnapshot_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropSnapshot_result"); + public static class listDrainerSyncStatus_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listDrainerSyncStatus_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListDrainerSyncStatusResp success; public static final int SUCCESS = 0; // isset id assignments @@ -31618,19 +43992,19 @@ public static class dropSnapshot_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, ListDrainerSyncStatusResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropSnapshot_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listDrainerSyncStatus_result.class, metaDataMap); } - public dropSnapshot_result() { + public listDrainerSyncStatus_result() { } - public dropSnapshot_result( - ExecResp success) { + public listDrainerSyncStatus_result( + ListDrainerSyncStatusResp success) { this(); this.success = success; } @@ -31638,21 +44012,21 @@ public dropSnapshot_result( /** * Performs a deep copy on other. */ - public dropSnapshot_result(dropSnapshot_result other) { + public listDrainerSyncStatus_result(listDrainerSyncStatus_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropSnapshot_result deepCopy() { - return new dropSnapshot_result(this); + public listDrainerSyncStatus_result deepCopy() { + return new listDrainerSyncStatus_result(this); } - public ExecResp getSuccess() { + public ListDrainerSyncStatusResp getSuccess() { return this.success; } - public dropSnapshot_result setSuccess(ExecResp success) { + public listDrainerSyncStatus_result setSuccess(ListDrainerSyncStatusResp success) { this.success = success; return this; } @@ -31678,7 +44052,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListDrainerSyncStatusResp)__value); } break; @@ -31703,9 +44077,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropSnapshot_result)) + if (!(_that instanceof listDrainerSyncStatus_result)) return false; - dropSnapshot_result that = (dropSnapshot_result)_that; + listDrainerSyncStatus_result that = (listDrainerSyncStatus_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -31718,7 +44092,7 @@ public int hashCode() { } @Override - public int compareTo(dropSnapshot_result other) { + public int compareTo(listDrainerSyncStatus_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -31753,7 +44127,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListDrainerSyncStatusResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -31794,7 +44168,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropSnapshot_result"); + StringBuilder sb = new StringBuilder("listDrainerSyncStatus_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -31821,11 +44195,11 @@ public void validate() throws TException { } - public static class listSnapshots_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listSnapshots_args"); + public static class 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 ListSnapshotsReq req; + public GetStatsReq req; public static final int REQ = 1; // isset id assignments @@ -31835,19 +44209,19 @@ public static class listSnapshots_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListSnapshotsReq.class))); + new StructMetaData(TType.STRUCT, GetStatsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSnapshots_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getStats_args.class, metaDataMap); } - public listSnapshots_args() { + public getStats_args() { } - public listSnapshots_args( - ListSnapshotsReq req) { + public getStats_args( + GetStatsReq req) { this(); this.req = req; } @@ -31855,21 +44229,21 @@ public listSnapshots_args( /** * Performs a deep copy on other. */ - public listSnapshots_args(listSnapshots_args other) { + public getStats_args(getStats_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listSnapshots_args deepCopy() { - return new listSnapshots_args(this); + public getStats_args deepCopy() { + return new getStats_args(this); } - public ListSnapshotsReq getReq() { + public GetStatsReq getReq() { return this.req; } - public listSnapshots_args setReq(ListSnapshotsReq req) { + public getStats_args setReq(GetStatsReq req) { this.req = req; return this; } @@ -31895,7 +44269,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListSnapshotsReq)__value); + setReq((GetStatsReq)__value); } break; @@ -31920,9 +44294,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSnapshots_args)) + if (!(_that instanceof getStats_args)) return false; - listSnapshots_args that = (listSnapshots_args)_that; + getStats_args that = (getStats_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -31935,7 +44309,7 @@ public int hashCode() { } @Override - public int compareTo(listSnapshots_args other) { + public int compareTo(getStats_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -31970,7 +44344,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListSnapshotsReq(); + this.req = new GetStatsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -32012,7 +44386,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listSnapshots_args"); + StringBuilder sb = new StringBuilder("getStats_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -32039,11 +44413,11 @@ public void validate() throws TException { } - public static class listSnapshots_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listSnapshots_result"); + public static class 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 ListSnapshotsResp success; + public GetStatsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -32053,19 +44427,19 @@ public static class listSnapshots_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListSnapshotsResp.class))); + new StructMetaData(TType.STRUCT, GetStatsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSnapshots_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getStats_result.class, metaDataMap); } - public listSnapshots_result() { + public getStats_result() { } - public listSnapshots_result( - ListSnapshotsResp success) { + public getStats_result( + GetStatsResp success) { this(); this.success = success; } @@ -32073,21 +44447,21 @@ public listSnapshots_result( /** * Performs a deep copy on other. */ - public listSnapshots_result(listSnapshots_result other) { + public getStats_result(getStats_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listSnapshots_result deepCopy() { - return new listSnapshots_result(this); + public getStats_result deepCopy() { + return new getStats_result(this); } - public ListSnapshotsResp getSuccess() { + public GetStatsResp getSuccess() { return this.success; } - public listSnapshots_result setSuccess(ListSnapshotsResp success) { + public getStats_result setSuccess(GetStatsResp success) { this.success = success; return this; } @@ -32113,7 +44487,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListSnapshotsResp)__value); + setSuccess((GetStatsResp)__value); } break; @@ -32138,9 +44512,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSnapshots_result)) + if (!(_that instanceof getStats_result)) return false; - listSnapshots_result that = (listSnapshots_result)_that; + getStats_result that = (getStats_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -32153,7 +44527,7 @@ public int hashCode() { } @Override - public int compareTo(listSnapshots_result other) { + public int compareTo(getStats_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -32188,7 +44562,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListSnapshotsResp(); + this.success = new GetStatsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -32229,7 +44603,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listSnapshots_result"); + StringBuilder sb = new StringBuilder("getStats_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -32256,11 +44630,11 @@ public void validate() throws TException { } - public static class runAdminJob_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("runAdminJob_args"); + public static class signInService_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signInService_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public AdminJobReq req; + public SignInServiceReq req; public static final int REQ = 1; // isset id assignments @@ -32270,19 +44644,19 @@ public static class runAdminJob_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AdminJobReq.class))); + new StructMetaData(TType.STRUCT, SignInServiceReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(runAdminJob_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signInService_args.class, metaDataMap); } - public runAdminJob_args() { + public signInService_args() { } - public runAdminJob_args( - AdminJobReq req) { + public signInService_args( + SignInServiceReq req) { this(); this.req = req; } @@ -32290,21 +44664,21 @@ public runAdminJob_args( /** * Performs a deep copy on other. */ - public runAdminJob_args(runAdminJob_args other) { + public signInService_args(signInService_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public runAdminJob_args deepCopy() { - return new runAdminJob_args(this); + public signInService_args deepCopy() { + return new signInService_args(this); } - public AdminJobReq getReq() { + public SignInServiceReq getReq() { return this.req; } - public runAdminJob_args setReq(AdminJobReq req) { + public signInService_args setReq(SignInServiceReq req) { this.req = req; return this; } @@ -32330,7 +44704,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AdminJobReq)__value); + setReq((SignInServiceReq)__value); } break; @@ -32355,9 +44729,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof runAdminJob_args)) + if (!(_that instanceof signInService_args)) return false; - runAdminJob_args that = (runAdminJob_args)_that; + signInService_args that = (signInService_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -32370,7 +44744,7 @@ public int hashCode() { } @Override - public int compareTo(runAdminJob_args other) { + public int compareTo(signInService_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -32405,7 +44779,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AdminJobReq(); + this.req = new SignInServiceReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -32447,7 +44821,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("runAdminJob_args"); + StringBuilder sb = new StringBuilder("signInService_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -32474,11 +44848,11 @@ public void validate() throws TException { } - public static class runAdminJob_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("runAdminJob_result"); + public static class signInService_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signInService_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public AdminJobResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -32488,19 +44862,19 @@ public static class runAdminJob_result implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AdminJobResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(runAdminJob_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signInService_result.class, metaDataMap); } - public runAdminJob_result() { + public signInService_result() { } - public runAdminJob_result( - AdminJobResp success) { + public signInService_result( + ExecResp success) { this(); this.success = success; } @@ -32508,21 +44882,21 @@ public runAdminJob_result( /** * Performs a deep copy on other. */ - public runAdminJob_result(runAdminJob_result other) { + public signInService_result(signInService_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public runAdminJob_result deepCopy() { - return new runAdminJob_result(this); + public signInService_result deepCopy() { + return new signInService_result(this); } - public AdminJobResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public runAdminJob_result setSuccess(AdminJobResp success) { + public signInService_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -32548,7 +44922,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((AdminJobResp)__value); + setSuccess((ExecResp)__value); } break; @@ -32573,9 +44947,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof runAdminJob_result)) + if (!(_that instanceof signInService_result)) return false; - runAdminJob_result that = (runAdminJob_result)_that; + signInService_result that = (signInService_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -32588,7 +44962,7 @@ public int hashCode() { } @Override - public int compareTo(runAdminJob_result other) { + public int compareTo(signInService_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -32623,7 +44997,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new AdminJobResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -32664,7 +45038,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("runAdminJob_result"); + StringBuilder sb = new StringBuilder("signInService_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -32691,11 +45065,11 @@ public void validate() throws TException { } - public static class mergeZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("mergeZone_args"); + public static class signOutService_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signOutService_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public MergeZoneReq req; + public SignOutServiceReq req; public static final int REQ = 1; // isset id assignments @@ -32705,19 +45079,19 @@ public static class mergeZone_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, MergeZoneReq.class))); + new StructMetaData(TType.STRUCT, SignOutServiceReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(mergeZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signOutService_args.class, metaDataMap); } - public mergeZone_args() { + public signOutService_args() { } - public mergeZone_args( - MergeZoneReq req) { + public signOutService_args( + SignOutServiceReq req) { this(); this.req = req; } @@ -32725,21 +45099,21 @@ public mergeZone_args( /** * Performs a deep copy on other. */ - public mergeZone_args(mergeZone_args other) { + public signOutService_args(signOutService_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public mergeZone_args deepCopy() { - return new mergeZone_args(this); + public signOutService_args deepCopy() { + return new signOutService_args(this); } - public MergeZoneReq getReq() { + public SignOutServiceReq getReq() { return this.req; } - public mergeZone_args setReq(MergeZoneReq req) { + public signOutService_args setReq(SignOutServiceReq req) { this.req = req; return this; } @@ -32765,7 +45139,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((MergeZoneReq)__value); + setReq((SignOutServiceReq)__value); } break; @@ -32790,9 +45164,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof mergeZone_args)) + if (!(_that instanceof signOutService_args)) return false; - mergeZone_args that = (mergeZone_args)_that; + signOutService_args that = (signOutService_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -32805,7 +45179,7 @@ public int hashCode() { } @Override - public int compareTo(mergeZone_args other) { + public int compareTo(signOutService_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -32840,7 +45214,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new MergeZoneReq(); + this.req = new SignOutServiceReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -32882,7 +45256,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("mergeZone_args"); + StringBuilder sb = new StringBuilder("signOutService_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -32909,8 +45283,8 @@ public void validate() throws TException { } - public static class mergeZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("mergeZone_result"); + public static class signOutService_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signOutService_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -32928,13 +45302,13 @@ public static class mergeZone_result implements TBase, java.io.Serializable, Clo } static { - FieldMetaData.addStructMetaDataMap(mergeZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signOutService_result.class, metaDataMap); } - public mergeZone_result() { + public signOutService_result() { } - public mergeZone_result( + public signOutService_result( ExecResp success) { this(); this.success = success; @@ -32943,21 +45317,21 @@ public mergeZone_result( /** * Performs a deep copy on other. */ - public mergeZone_result(mergeZone_result other) { + public signOutService_result(signOutService_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public mergeZone_result deepCopy() { - return new mergeZone_result(this); + public signOutService_result deepCopy() { + return new signOutService_result(this); } public ExecResp getSuccess() { return this.success; } - public mergeZone_result setSuccess(ExecResp success) { + public signOutService_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -33008,9 +45382,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof mergeZone_result)) + if (!(_that instanceof signOutService_result)) return false; - mergeZone_result that = (mergeZone_result)_that; + signOutService_result that = (signOutService_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -33023,7 +45397,7 @@ public int hashCode() { } @Override - public int compareTo(mergeZone_result other) { + public int compareTo(signOutService_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -33099,7 +45473,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("mergeZone_result"); + StringBuilder sb = new StringBuilder("signOutService_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -33126,11 +45500,11 @@ public void validate() throws TException { } - public static class dropZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropZone_args"); + public static class listServiceClients_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listServiceClients_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DropZoneReq req; + public ListServiceClientsReq req; public static final int REQ = 1; // isset id assignments @@ -33140,19 +45514,19 @@ public static class dropZone_args implements TBase, java.io.Serializable, Clonea static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DropZoneReq.class))); + new StructMetaData(TType.STRUCT, ListServiceClientsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listServiceClients_args.class, metaDataMap); } - public dropZone_args() { + public listServiceClients_args() { } - public dropZone_args( - DropZoneReq req) { + public listServiceClients_args( + ListServiceClientsReq req) { this(); this.req = req; } @@ -33160,21 +45534,21 @@ public dropZone_args( /** * Performs a deep copy on other. */ - public dropZone_args(dropZone_args other) { + public listServiceClients_args(listServiceClients_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropZone_args deepCopy() { - return new dropZone_args(this); + public listServiceClients_args deepCopy() { + return new listServiceClients_args(this); } - public DropZoneReq getReq() { + public ListServiceClientsReq getReq() { return this.req; } - public dropZone_args setReq(DropZoneReq req) { + public listServiceClients_args setReq(ListServiceClientsReq req) { this.req = req; return this; } @@ -33200,7 +45574,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropZoneReq)__value); + setReq((ListServiceClientsReq)__value); } break; @@ -33225,9 +45599,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropZone_args)) + if (!(_that instanceof listServiceClients_args)) return false; - dropZone_args that = (dropZone_args)_that; + listServiceClients_args that = (listServiceClients_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -33240,7 +45614,7 @@ public int hashCode() { } @Override - public int compareTo(dropZone_args other) { + public int compareTo(listServiceClients_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -33275,7 +45649,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropZoneReq(); + this.req = new ListServiceClientsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -33317,7 +45691,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropZone_args"); + StringBuilder sb = new StringBuilder("listServiceClients_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -33344,11 +45718,11 @@ public void validate() throws TException { } - public static class dropZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("dropZone_result"); + public static class listServiceClients_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listServiceClients_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public ListServiceClientsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -33358,19 +45732,19 @@ public static class dropZone_result implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ExecResp.class))); + new StructMetaData(TType.STRUCT, ListServiceClientsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listServiceClients_result.class, metaDataMap); } - public dropZone_result() { + public listServiceClients_result() { } - public dropZone_result( - ExecResp success) { + public listServiceClients_result( + ListServiceClientsResp success) { this(); this.success = success; } @@ -33378,21 +45752,21 @@ public dropZone_result( /** * Performs a deep copy on other. */ - public dropZone_result(dropZone_result other) { + public listServiceClients_result(listServiceClients_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropZone_result deepCopy() { - return new dropZone_result(this); + public listServiceClients_result deepCopy() { + return new listServiceClients_result(this); } - public ExecResp getSuccess() { + public ListServiceClientsResp getSuccess() { return this.success; } - public dropZone_result setSuccess(ExecResp success) { + public listServiceClients_result setSuccess(ListServiceClientsResp success) { this.success = success; return this; } @@ -33418,7 +45792,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListServiceClientsResp)__value); } break; @@ -33443,9 +45817,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropZone_result)) + if (!(_that instanceof listServiceClients_result)) return false; - dropZone_result that = (dropZone_result)_that; + listServiceClients_result that = (listServiceClients_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -33458,7 +45832,7 @@ public int hashCode() { } @Override - public int compareTo(dropZone_result other) { + public int compareTo(listServiceClients_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -33493,7 +45867,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListServiceClientsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -33534,7 +45908,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("dropZone_result"); + StringBuilder sb = new StringBuilder("listServiceClients_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -33561,11 +45935,11 @@ public void validate() throws TException { } - public static class divideZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("divideZone_args"); + public static class signInSpaceService_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signInSpaceService_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public DivideZoneReq req; + public SignInSpaceServiceReq req; public static final int REQ = 1; // isset id assignments @@ -33575,19 +45949,19 @@ public static class divideZone_args implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, DivideZoneReq.class))); + new StructMetaData(TType.STRUCT, SignInSpaceServiceReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(divideZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signInSpaceService_args.class, metaDataMap); } - public divideZone_args() { + public signInSpaceService_args() { } - public divideZone_args( - DivideZoneReq req) { + public signInSpaceService_args( + SignInSpaceServiceReq req) { this(); this.req = req; } @@ -33595,21 +45969,21 @@ public divideZone_args( /** * Performs a deep copy on other. */ - public divideZone_args(divideZone_args other) { + public signInSpaceService_args(signInSpaceService_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public divideZone_args deepCopy() { - return new divideZone_args(this); + public signInSpaceService_args deepCopy() { + return new signInSpaceService_args(this); } - public DivideZoneReq getReq() { + public SignInSpaceServiceReq getReq() { return this.req; } - public divideZone_args setReq(DivideZoneReq req) { + public signInSpaceService_args setReq(SignInSpaceServiceReq req) { this.req = req; return this; } @@ -33635,7 +46009,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DivideZoneReq)__value); + setReq((SignInSpaceServiceReq)__value); } break; @@ -33660,9 +46034,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof divideZone_args)) + if (!(_that instanceof signInSpaceService_args)) return false; - divideZone_args that = (divideZone_args)_that; + signInSpaceService_args that = (signInSpaceService_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -33675,7 +46049,7 @@ public int hashCode() { } @Override - public int compareTo(divideZone_args other) { + public int compareTo(signInSpaceService_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -33710,7 +46084,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DivideZoneReq(); + this.req = new SignInSpaceServiceReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -33752,7 +46126,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("divideZone_args"); + StringBuilder sb = new StringBuilder("signInSpaceService_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -33779,8 +46153,8 @@ public void validate() throws TException { } - public static class divideZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("divideZone_result"); + public static class signInSpaceService_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signInSpaceService_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -33798,13 +46172,13 @@ public static class divideZone_result implements TBase, java.io.Serializable, Cl } static { - FieldMetaData.addStructMetaDataMap(divideZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signInSpaceService_result.class, metaDataMap); } - public divideZone_result() { + public signInSpaceService_result() { } - public divideZone_result( + public signInSpaceService_result( ExecResp success) { this(); this.success = success; @@ -33813,21 +46187,21 @@ public divideZone_result( /** * Performs a deep copy on other. */ - public divideZone_result(divideZone_result other) { + public signInSpaceService_result(signInSpaceService_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public divideZone_result deepCopy() { - return new divideZone_result(this); + public signInSpaceService_result deepCopy() { + return new signInSpaceService_result(this); } public ExecResp getSuccess() { return this.success; } - public divideZone_result setSuccess(ExecResp success) { + public signInSpaceService_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -33878,9 +46252,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof divideZone_result)) + if (!(_that instanceof signInSpaceService_result)) return false; - divideZone_result that = (divideZone_result)_that; + signInSpaceService_result that = (signInSpaceService_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -33893,7 +46267,7 @@ public int hashCode() { } @Override - public int compareTo(divideZone_result other) { + public int compareTo(signInSpaceService_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -33969,7 +46343,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("divideZone_result"); + StringBuilder sb = new StringBuilder("signInSpaceService_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -33996,11 +46370,11 @@ public void validate() throws TException { } - public static class renameZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("renameZone_args"); + public static class signOutSpaceService_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signOutSpaceService_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RenameZoneReq req; + public SignOutSpaceServiceReq req; public static final int REQ = 1; // isset id assignments @@ -34010,19 +46384,19 @@ public static class renameZone_args implements TBase, java.io.Serializable, Clon static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RenameZoneReq.class))); + new StructMetaData(TType.STRUCT, SignOutSpaceServiceReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(renameZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signOutSpaceService_args.class, metaDataMap); } - public renameZone_args() { + public signOutSpaceService_args() { } - public renameZone_args( - RenameZoneReq req) { + public signOutSpaceService_args( + SignOutSpaceServiceReq req) { this(); this.req = req; } @@ -34030,21 +46404,21 @@ public renameZone_args( /** * Performs a deep copy on other. */ - public renameZone_args(renameZone_args other) { + public signOutSpaceService_args(signOutSpaceService_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public renameZone_args deepCopy() { - return new renameZone_args(this); + public signOutSpaceService_args deepCopy() { + return new signOutSpaceService_args(this); } - public RenameZoneReq getReq() { + public SignOutSpaceServiceReq getReq() { return this.req; } - public renameZone_args setReq(RenameZoneReq req) { + public signOutSpaceService_args setReq(SignOutSpaceServiceReq req) { this.req = req; return this; } @@ -34070,7 +46444,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RenameZoneReq)__value); + setReq((SignOutSpaceServiceReq)__value); } break; @@ -34095,9 +46469,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof renameZone_args)) + if (!(_that instanceof signOutSpaceService_args)) return false; - renameZone_args that = (renameZone_args)_that; + signOutSpaceService_args that = (signOutSpaceService_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -34110,7 +46484,7 @@ public int hashCode() { } @Override - public int compareTo(renameZone_args other) { + public int compareTo(signOutSpaceService_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -34145,7 +46519,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RenameZoneReq(); + this.req = new SignOutSpaceServiceReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -34187,7 +46561,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("renameZone_args"); + StringBuilder sb = new StringBuilder("signOutSpaceService_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -34214,8 +46588,8 @@ public void validate() throws TException { } - public static class renameZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("renameZone_result"); + public static class signOutSpaceService_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("signOutSpaceService_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); public ExecResp success; @@ -34233,13 +46607,13 @@ public static class renameZone_result implements TBase, java.io.Serializable, Cl } static { - FieldMetaData.addStructMetaDataMap(renameZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(signOutSpaceService_result.class, metaDataMap); } - public renameZone_result() { + public signOutSpaceService_result() { } - public renameZone_result( + public signOutSpaceService_result( ExecResp success) { this(); this.success = success; @@ -34248,21 +46622,21 @@ public renameZone_result( /** * Performs a deep copy on other. */ - public renameZone_result(renameZone_result other) { + public signOutSpaceService_result(signOutSpaceService_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public renameZone_result deepCopy() { - return new renameZone_result(this); + public signOutSpaceService_result deepCopy() { + return new signOutSpaceService_result(this); } public ExecResp getSuccess() { return this.success; } - public renameZone_result setSuccess(ExecResp success) { + public signOutSpaceService_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -34313,9 +46687,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof renameZone_result)) + if (!(_that instanceof signOutSpaceService_result)) return false; - renameZone_result that = (renameZone_result)_that; + signOutSpaceService_result that = (signOutSpaceService_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -34328,7 +46702,7 @@ public int hashCode() { } @Override - public int compareTo(renameZone_result other) { + public int compareTo(signOutSpaceService_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -34404,7 +46778,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("renameZone_result"); + StringBuilder sb = new StringBuilder("signOutSpaceService_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -34431,11 +46805,11 @@ public void validate() throws TException { } - public static class getZone_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getZone_args"); + public static class listSpaceServiceClients_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSpaceServiceClients_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetZoneReq req; + public ListSpaceServiceClientsReq req; public static final int REQ = 1; // isset id assignments @@ -34445,19 +46819,19 @@ public static class getZone_args implements TBase, java.io.Serializable, Cloneab static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetZoneReq.class))); + new StructMetaData(TType.STRUCT, ListSpaceServiceClientsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getZone_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSpaceServiceClients_args.class, metaDataMap); } - public getZone_args() { + public listSpaceServiceClients_args() { } - public getZone_args( - GetZoneReq req) { + public listSpaceServiceClients_args( + ListSpaceServiceClientsReq req) { this(); this.req = req; } @@ -34465,21 +46839,21 @@ public getZone_args( /** * Performs a deep copy on other. */ - public getZone_args(getZone_args other) { + public listSpaceServiceClients_args(listSpaceServiceClients_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getZone_args deepCopy() { - return new getZone_args(this); + public listSpaceServiceClients_args deepCopy() { + return new listSpaceServiceClients_args(this); } - public GetZoneReq getReq() { + public ListSpaceServiceClientsReq getReq() { return this.req; } - public getZone_args setReq(GetZoneReq req) { + public listSpaceServiceClients_args setReq(ListSpaceServiceClientsReq req) { this.req = req; return this; } @@ -34505,7 +46879,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetZoneReq)__value); + setReq((ListSpaceServiceClientsReq)__value); } break; @@ -34530,9 +46904,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getZone_args)) + if (!(_that instanceof listSpaceServiceClients_args)) return false; - getZone_args that = (getZone_args)_that; + listSpaceServiceClients_args that = (listSpaceServiceClients_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -34545,7 +46919,7 @@ public int hashCode() { } @Override - public int compareTo(getZone_args other) { + public int compareTo(listSpaceServiceClients_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -34580,7 +46954,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetZoneReq(); + this.req = new ListSpaceServiceClientsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -34622,7 +46996,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getZone_args"); + StringBuilder sb = new StringBuilder("listSpaceServiceClients_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -34649,11 +47023,11 @@ public void validate() throws TException { } - public static class getZone_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getZone_result"); + public static class listSpaceServiceClients_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listSpaceServiceClients_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetZoneResp success; + public ListSpaceServiceClientsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -34663,19 +47037,19 @@ public static class getZone_result implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetZoneResp.class))); + new StructMetaData(TType.STRUCT, ListSpaceServiceClientsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getZone_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSpaceServiceClients_result.class, metaDataMap); } - public getZone_result() { + public listSpaceServiceClients_result() { } - public getZone_result( - GetZoneResp success) { + public listSpaceServiceClients_result( + ListSpaceServiceClientsResp success) { this(); this.success = success; } @@ -34683,21 +47057,21 @@ public getZone_result( /** * Performs a deep copy on other. */ - public getZone_result(getZone_result other) { + public listSpaceServiceClients_result(listSpaceServiceClients_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getZone_result deepCopy() { - return new getZone_result(this); + public listSpaceServiceClients_result deepCopy() { + return new listSpaceServiceClients_result(this); } - public GetZoneResp getSuccess() { + public ListSpaceServiceClientsResp getSuccess() { return this.success; } - public getZone_result setSuccess(GetZoneResp success) { + public listSpaceServiceClients_result setSuccess(ListSpaceServiceClientsResp success) { this.success = success; return this; } @@ -34723,7 +47097,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetZoneResp)__value); + setSuccess((ListSpaceServiceClientsResp)__value); } break; @@ -34748,9 +47122,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getZone_result)) + if (!(_that instanceof listSpaceServiceClients_result)) return false; - getZone_result that = (getZone_result)_that; + listSpaceServiceClients_result that = (listSpaceServiceClients_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -34763,7 +47137,7 @@ public int hashCode() { } @Override - public int compareTo(getZone_result other) { + public int compareTo(listSpaceServiceClients_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -34798,7 +47172,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetZoneResp(); + this.success = new ListSpaceServiceClientsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -34839,7 +47213,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("getZone_result"); + StringBuilder sb = new StringBuilder("listSpaceServiceClients_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -34866,11 +47240,11 @@ public void validate() throws TException { } - public static class listZones_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listZones_args"); + public static class 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 ListZonesReq req; + public CreateFTIndexReq req; public static final int REQ = 1; // isset id assignments @@ -34880,19 +47254,19 @@ public static class listZones_args implements TBase, java.io.Serializable, Clone static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListZonesReq.class))); + new StructMetaData(TType.STRUCT, CreateFTIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listZones_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createFTIndex_args.class, metaDataMap); } - public listZones_args() { + public createFTIndex_args() { } - public listZones_args( - ListZonesReq req) { + public createFTIndex_args( + CreateFTIndexReq req) { this(); this.req = req; } @@ -34900,21 +47274,21 @@ public listZones_args( /** * Performs a deep copy on other. */ - public listZones_args(listZones_args other) { + public createFTIndex_args(createFTIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listZones_args deepCopy() { - return new listZones_args(this); + public createFTIndex_args deepCopy() { + return new createFTIndex_args(this); } - public ListZonesReq getReq() { + public CreateFTIndexReq getReq() { return this.req; } - public listZones_args setReq(ListZonesReq req) { + public createFTIndex_args setReq(CreateFTIndexReq req) { this.req = req; return this; } @@ -34940,7 +47314,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListZonesReq)__value); + setReq((CreateFTIndexReq)__value); } break; @@ -34965,9 +47339,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listZones_args)) + if (!(_that instanceof createFTIndex_args)) return false; - listZones_args that = (listZones_args)_that; + createFTIndex_args that = (createFTIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -34980,7 +47354,7 @@ public int hashCode() { } @Override - public int compareTo(listZones_args other) { + public int compareTo(createFTIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -35015,7 +47389,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListZonesReq(); + this.req = new CreateFTIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -35057,7 +47431,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listZones_args"); + StringBuilder sb = new StringBuilder("createFTIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -35084,11 +47458,11 @@ public void validate() throws TException { } - public static class listZones_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listZones_result"); + public static class 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 ListZonesResp success; + public ExecResp success; public static final int SUCCESS = 0; // isset id assignments @@ -35098,19 +47472,19 @@ public static class listZones_result implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListZonesResp.class))); + new StructMetaData(TType.STRUCT, ExecResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listZones_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createFTIndex_result.class, metaDataMap); } - public listZones_result() { + public createFTIndex_result() { } - public listZones_result( - ListZonesResp success) { + public createFTIndex_result( + ExecResp success) { this(); this.success = success; } @@ -35118,21 +47492,21 @@ public listZones_result( /** * Performs a deep copy on other. */ - public listZones_result(listZones_result other) { + public createFTIndex_result(createFTIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listZones_result deepCopy() { - return new listZones_result(this); + public createFTIndex_result deepCopy() { + return new createFTIndex_result(this); } - public ListZonesResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public listZones_result setSuccess(ListZonesResp success) { + public createFTIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -35158,7 +47532,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListZonesResp)__value); + setSuccess((ExecResp)__value); } break; @@ -35183,9 +47557,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listZones_result)) + if (!(_that instanceof createFTIndex_result)) return false; - listZones_result that = (listZones_result)_that; + createFTIndex_result that = (createFTIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -35198,7 +47572,7 @@ public int hashCode() { } @Override - public int compareTo(listZones_result other) { + public int compareTo(createFTIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -35233,7 +47607,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListZonesResp(); + this.success = new ExecResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -35274,7 +47648,7 @@ public String toString(int indent, boolean prettyPrint) { String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; String newLine = prettyPrint ? "\n" : ""; String space = prettyPrint ? " " : ""; - StringBuilder sb = new StringBuilder("listZones_result"); + StringBuilder sb = new StringBuilder("createFTIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -35301,11 +47675,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 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 AddListenerReq req; + public DropFTIndexReq req; public static final int REQ = 1; // isset id assignments @@ -35315,19 +47689,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, DropFTIndexReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(addListener_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropFTIndex_args.class, metaDataMap); } - public addListener_args() { + public dropFTIndex_args() { } - public addListener_args( - AddListenerReq req) { + public dropFTIndex_args( + DropFTIndexReq req) { this(); this.req = req; } @@ -35335,21 +47709,21 @@ public addListener_args( /** * Performs a deep copy on other. */ - public addListener_args(addListener_args other) { + public dropFTIndex_args(dropFTIndex_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public addListener_args deepCopy() { - return new addListener_args(this); + public dropFTIndex_args deepCopy() { + return new dropFTIndex_args(this); } - public AddListenerReq getReq() { + public DropFTIndexReq getReq() { return this.req; } - public addListener_args setReq(AddListenerReq req) { + public dropFTIndex_args setReq(DropFTIndexReq req) { this.req = req; return this; } @@ -35375,7 +47749,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((AddListenerReq)__value); + setReq((DropFTIndexReq)__value); } break; @@ -35400,9 +47774,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addListener_args)) + if (!(_that instanceof dropFTIndex_args)) return false; - addListener_args that = (addListener_args)_that; + dropFTIndex_args that = (dropFTIndex_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -35415,7 +47789,7 @@ public int hashCode() { } @Override - public int compareTo(addListener_args other) { + public int compareTo(dropFTIndex_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -35450,7 +47824,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new AddListenerReq(); + this.req = new DropFTIndexReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -35492,7 +47866,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("dropFTIndex_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -35519,8 +47893,8 @@ 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 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 ExecResp success; @@ -35538,13 +47912,13 @@ public static class addListener_result implements TBase, java.io.Serializable, C } static { - FieldMetaData.addStructMetaDataMap(addListener_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(dropFTIndex_result.class, metaDataMap); } - public addListener_result() { + public dropFTIndex_result() { } - public addListener_result( + public dropFTIndex_result( ExecResp success) { this(); this.success = success; @@ -35553,21 +47927,21 @@ public addListener_result( /** * Performs a deep copy on other. */ - public addListener_result(addListener_result other) { + public dropFTIndex_result(dropFTIndex_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public addListener_result deepCopy() { - return new addListener_result(this); + public dropFTIndex_result deepCopy() { + return new dropFTIndex_result(this); } public ExecResp getSuccess() { return this.success; } - public addListener_result setSuccess(ExecResp success) { + public dropFTIndex_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -35618,9 +47992,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof addListener_result)) + if (!(_that instanceof dropFTIndex_result)) return false; - addListener_result that = (addListener_result)_that; + dropFTIndex_result that = (dropFTIndex_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -35633,7 +48007,7 @@ public int hashCode() { } @Override - public int compareTo(addListener_result other) { + public int compareTo(dropFTIndex_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -35709,7 +48083,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("dropFTIndex_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -35736,11 +48110,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 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 RemoveListenerReq req; + public ListFTIndexesReq req; public static final int REQ = 1; // isset id assignments @@ -35750,19 +48124,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, ListFTIndexesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeListener_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listFTIndexes_args.class, metaDataMap); } - public removeListener_args() { + public listFTIndexes_args() { } - public removeListener_args( - RemoveListenerReq req) { + public listFTIndexes_args( + ListFTIndexesReq req) { this(); this.req = req; } @@ -35770,21 +48144,21 @@ public removeListener_args( /** * Performs a deep copy on other. */ - public removeListener_args(removeListener_args other) { + public listFTIndexes_args(listFTIndexes_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public removeListener_args deepCopy() { - return new removeListener_args(this); + public listFTIndexes_args deepCopy() { + return new listFTIndexes_args(this); } - public RemoveListenerReq getReq() { + public ListFTIndexesReq getReq() { return this.req; } - public removeListener_args setReq(RemoveListenerReq req) { + public listFTIndexes_args setReq(ListFTIndexesReq req) { this.req = req; return this; } @@ -35810,7 +48184,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RemoveListenerReq)__value); + setReq((ListFTIndexesReq)__value); } break; @@ -35835,9 +48209,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeListener_args)) + if (!(_that instanceof listFTIndexes_args)) return false; - removeListener_args that = (removeListener_args)_that; + listFTIndexes_args that = (listFTIndexes_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -35850,7 +48224,7 @@ public int hashCode() { } @Override - public int compareTo(removeListener_args other) { + public int compareTo(listFTIndexes_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -35885,7 +48259,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RemoveListenerReq(); + this.req = new ListFTIndexesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -35927,7 +48301,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("listFTIndexes_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -35954,11 +48328,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 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 @@ -35968,19 +48342,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, ListFTIndexesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeListener_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listFTIndexes_result.class, metaDataMap); } - public removeListener_result() { + public listFTIndexes_result() { } - public removeListener_result( - ExecResp success) { + public listFTIndexes_result( + ListFTIndexesResp success) { this(); this.success = success; } @@ -35988,21 +48362,21 @@ public removeListener_result( /** * Performs a deep copy on other. */ - public removeListener_result(removeListener_result other) { + public listFTIndexes_result(listFTIndexes_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public removeListener_result deepCopy() { - return new removeListener_result(this); + public listFTIndexes_result deepCopy() { + return new listFTIndexes_result(this); } - public ExecResp getSuccess() { + public ListFTIndexesResp getSuccess() { return this.success; } - public removeListener_result setSuccess(ExecResp success) { + public listFTIndexes_result setSuccess(ListFTIndexesResp success) { this.success = success; return this; } @@ -36028,7 +48402,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListFTIndexesResp)__value); } break; @@ -36053,9 +48427,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeListener_result)) + if (!(_that instanceof listFTIndexes_result)) return false; - removeListener_result that = (removeListener_result)_that; + listFTIndexes_result that = (listFTIndexes_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -36068,7 +48442,7 @@ public int hashCode() { } @Override - public int compareTo(removeListener_result other) { + public int compareTo(listFTIndexes_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36103,7 +48477,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); @@ -36144,7 +48518,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("listFTIndexes_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36171,11 +48545,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 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 ListListenerReq req; + public CreateSessionReq req; public static final int REQ = 1; // isset id assignments @@ -36185,19 +48559,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, CreateSessionReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listListener_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSession_args.class, metaDataMap); } - public listListener_args() { + public createSession_args() { } - public listListener_args( - ListListenerReq req) { + public createSession_args( + CreateSessionReq req) { this(); this.req = req; } @@ -36205,21 +48579,21 @@ public listListener_args( /** * Performs a deep copy on other. */ - public listListener_args(listListener_args other) { + public createSession_args(createSession_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listListener_args deepCopy() { - return new listListener_args(this); + public createSession_args deepCopy() { + return new createSession_args(this); } - public ListListenerReq getReq() { + public CreateSessionReq getReq() { return this.req; } - public listListener_args setReq(ListListenerReq req) { + public createSession_args setReq(CreateSessionReq req) { this.req = req; return this; } @@ -36245,7 +48619,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListListenerReq)__value); + setReq((CreateSessionReq)__value); } break; @@ -36270,9 +48644,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listListener_args)) + if (!(_that instanceof createSession_args)) return false; - listListener_args that = (listListener_args)_that; + createSession_args that = (createSession_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -36285,7 +48659,7 @@ public int hashCode() { } @Override - public int compareTo(listListener_args other) { + public int compareTo(createSession_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36320,7 +48694,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListListenerReq(); + this.req = new CreateSessionReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -36362,7 +48736,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("createSession_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36389,11 +48763,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 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 ListListenerResp success; + public CreateSessionResp success; public static final int SUCCESS = 0; // isset id assignments @@ -36403,19 +48777,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, CreateSessionResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listListener_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createSession_result.class, metaDataMap); } - public listListener_result() { + public createSession_result() { } - public listListener_result( - ListListenerResp success) { + public createSession_result( + CreateSessionResp success) { this(); this.success = success; } @@ -36423,21 +48797,21 @@ public listListener_result( /** * Performs a deep copy on other. */ - public listListener_result(listListener_result other) { + public createSession_result(createSession_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listListener_result deepCopy() { - return new listListener_result(this); + public createSession_result deepCopy() { + return new createSession_result(this); } - public ListListenerResp getSuccess() { + public CreateSessionResp getSuccess() { return this.success; } - public listListener_result setSuccess(ListListenerResp success) { + public createSession_result setSuccess(CreateSessionResp success) { this.success = success; return this; } @@ -36463,7 +48837,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListListenerResp)__value); + setSuccess((CreateSessionResp)__value); } break; @@ -36488,9 +48862,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listListener_result)) + if (!(_that instanceof createSession_result)) return false; - listListener_result that = (listListener_result)_that; + createSession_result that = (createSession_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -36502,29 +48876,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(listListener_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); @@ -36538,7 +48889,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListListenerResp(); + this.success = new CreateSessionResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -36579,7 +48930,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("createSession_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36606,11 +48957,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 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 GetStatsReq req; + public UpdateSessionsReq req; public static final int REQ = 1; // isset id assignments @@ -36620,19 +48971,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, UpdateSessionsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getStats_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(updateSessions_args.class, metaDataMap); } - public getStats_args() { + public updateSessions_args() { } - public getStats_args( - GetStatsReq req) { + public updateSessions_args( + UpdateSessionsReq req) { this(); this.req = req; } @@ -36640,21 +48991,21 @@ public getStats_args( /** * Performs a deep copy on other. */ - public getStats_args(getStats_args other) { + public updateSessions_args(updateSessions_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getStats_args deepCopy() { - return new getStats_args(this); + public updateSessions_args deepCopy() { + return new updateSessions_args(this); } - public GetStatsReq getReq() { + public UpdateSessionsReq getReq() { return this.req; } - public getStats_args setReq(GetStatsReq req) { + public updateSessions_args setReq(UpdateSessionsReq req) { this.req = req; return this; } @@ -36680,7 +49031,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetStatsReq)__value); + setReq((UpdateSessionsReq)__value); } break; @@ -36705,9 +49056,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getStats_args)) + if (!(_that instanceof updateSessions_args)) return false; - getStats_args that = (getStats_args)_that; + updateSessions_args that = (updateSessions_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -36719,29 +49070,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } - @Override - public int compareTo(getStats_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); @@ -36755,7 +49083,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetStatsReq(); + this.req = new UpdateSessionsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -36797,7 +49125,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("updateSessions_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -36824,11 +49152,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 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 GetStatsResp success; + public UpdateSessionsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -36838,19 +49166,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, UpdateSessionsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getStats_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(updateSessions_result.class, metaDataMap); } - public getStats_result() { + public updateSessions_result() { } - public getStats_result( - GetStatsResp success) { + public updateSessions_result( + UpdateSessionsResp success) { this(); this.success = success; } @@ -36858,21 +49186,21 @@ public getStats_result( /** * Performs a deep copy on other. */ - public getStats_result(getStats_result other) { + public updateSessions_result(updateSessions_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getStats_result deepCopy() { - return new getStats_result(this); + public updateSessions_result deepCopy() { + return new updateSessions_result(this); } - public GetStatsResp getSuccess() { + public UpdateSessionsResp getSuccess() { return this.success; } - public getStats_result setSuccess(GetStatsResp success) { + public updateSessions_result setSuccess(UpdateSessionsResp success) { this.success = success; return this; } @@ -36898,7 +49226,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetStatsResp)__value); + setSuccess((UpdateSessionsResp)__value); } break; @@ -36923,9 +49251,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getStats_result)) + if (!(_that instanceof updateSessions_result)) return false; - getStats_result that = (getStats_result)_that; + updateSessions_result that = (updateSessions_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -36938,7 +49266,7 @@ public int hashCode() { } @Override - public int compareTo(getStats_result other) { + public int compareTo(updateSessions_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -36973,7 +49301,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetStatsResp(); + this.success = new UpdateSessionsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37014,7 +49342,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("updateSessions_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37041,11 +49369,11 @@ public void validate() throws TException { } - public static class signInService_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("signInService_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 SignInServiceReq req; + public ListSessionsReq req; public static final int REQ = 1; // isset id assignments @@ -37055,19 +49383,19 @@ public static class signInService_args implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, SignInServiceReq.class))); + new StructMetaData(TType.STRUCT, ListSessionsReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(signInService_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSessions_args.class, metaDataMap); } - public signInService_args() { + public listSessions_args() { } - public signInService_args( - SignInServiceReq req) { + public listSessions_args( + ListSessionsReq req) { this(); this.req = req; } @@ -37075,21 +49403,21 @@ public signInService_args( /** * Performs a deep copy on other. */ - public signInService_args(signInService_args other) { + public listSessions_args(listSessions_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public signInService_args deepCopy() { - return new signInService_args(this); + public listSessions_args deepCopy() { + return new listSessions_args(this); } - public SignInServiceReq getReq() { + public ListSessionsReq getReq() { return this.req; } - public signInService_args setReq(SignInServiceReq req) { + public listSessions_args setReq(ListSessionsReq req) { this.req = req; return this; } @@ -37115,7 +49443,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((SignInServiceReq)__value); + setReq((ListSessionsReq)__value); } break; @@ -37140,9 +49468,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof signInService_args)) + if (!(_that instanceof listSessions_args)) return false; - signInService_args that = (signInService_args)_that; + listSessions_args that = (listSessions_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -37155,7 +49483,7 @@ public int hashCode() { } @Override - public int compareTo(signInService_args other) { + public int compareTo(listSessions_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37190,7 +49518,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new SignInServiceReq(); + this.req = new ListSessionsReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37232,7 +49560,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("signInService_args"); + StringBuilder sb = new StringBuilder("listSessions_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37259,11 +49587,11 @@ public void validate() throws TException { } - public static class signInService_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("signInService_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 ExecResp success; + public ListSessionsResp success; public static final int SUCCESS = 0; // isset id assignments @@ -37273,19 +49601,19 @@ public static class signInService_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, ListSessionsResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(signInService_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listSessions_result.class, metaDataMap); } - public signInService_result() { + public listSessions_result() { } - public signInService_result( - ExecResp success) { + public listSessions_result( + ListSessionsResp success) { this(); this.success = success; } @@ -37293,21 +49621,21 @@ public signInService_result( /** * Performs a deep copy on other. */ - public signInService_result(signInService_result other) { + public listSessions_result(listSessions_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public signInService_result deepCopy() { - return new signInService_result(this); + public listSessions_result deepCopy() { + return new listSessions_result(this); } - public ExecResp getSuccess() { + public ListSessionsResp getSuccess() { return this.success; } - public signInService_result setSuccess(ExecResp success) { + public listSessions_result setSuccess(ListSessionsResp success) { this.success = success; return this; } @@ -37333,7 +49661,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((ListSessionsResp)__value); } break; @@ -37358,9 +49686,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof signInService_result)) + if (!(_that instanceof listSessions_result)) return false; - signInService_result that = (signInService_result)_that; + listSessions_result that = (listSessions_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -37372,29 +49700,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(signInService_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); @@ -37408,7 +49713,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new ListSessionsResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37449,7 +49754,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("signInService_result"); + StringBuilder sb = new StringBuilder("listSessions_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37476,11 +49781,11 @@ public void validate() throws TException { } - public static class signOutService_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("signOutService_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 SignOutServiceReq req; + public GetSessionReq req; public static final int REQ = 1; // isset id assignments @@ -37490,19 +49795,19 @@ public static class signOutService_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, SignOutServiceReq.class))); + new StructMetaData(TType.STRUCT, GetSessionReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(signOutService_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getSession_args.class, metaDataMap); } - public signOutService_args() { + public getSession_args() { } - public signOutService_args( - SignOutServiceReq req) { + public getSession_args( + GetSessionReq req) { this(); this.req = req; } @@ -37510,21 +49815,21 @@ public signOutService_args( /** * Performs a deep copy on other. */ - public signOutService_args(signOutService_args other) { + public getSession_args(getSession_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public signOutService_args deepCopy() { - return new signOutService_args(this); + public getSession_args deepCopy() { + return new getSession_args(this); } - public SignOutServiceReq getReq() { + public GetSessionReq getReq() { return this.req; } - public signOutService_args setReq(SignOutServiceReq req) { + public getSession_args setReq(GetSessionReq req) { this.req = req; return this; } @@ -37550,7 +49855,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((SignOutServiceReq)__value); + setReq((GetSessionReq)__value); } break; @@ -37575,9 +49880,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof signOutService_args)) + if (!(_that instanceof getSession_args)) return false; - signOutService_args that = (signOutService_args)_that; + getSession_args that = (getSession_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -37590,7 +49895,7 @@ public int hashCode() { } @Override - public int compareTo(signOutService_args other) { + public int compareTo(getSession_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -37625,7 +49930,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new SignOutServiceReq(); + this.req = new GetSessionReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37667,7 +49972,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("signOutService_args"); + StringBuilder sb = new StringBuilder("getSession_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37694,11 +49999,11 @@ public void validate() throws TException { } - public static class signOutService_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("signOutService_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 ExecResp success; + public GetSessionResp success; public static final int SUCCESS = 0; // isset id assignments @@ -37708,19 +50013,19 @@ public static class signOutService_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, GetSessionResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(signOutService_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getSession_result.class, metaDataMap); } - public signOutService_result() { + public getSession_result() { } - public signOutService_result( - ExecResp success) { + public getSession_result( + GetSessionResp success) { this(); this.success = success; } @@ -37728,21 +50033,21 @@ public signOutService_result( /** * Performs a deep copy on other. */ - public signOutService_result(signOutService_result other) { + public getSession_result(getSession_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public signOutService_result deepCopy() { - return new signOutService_result(this); + public getSession_result deepCopy() { + return new getSession_result(this); } - public ExecResp getSuccess() { + public GetSessionResp getSuccess() { return this.success; } - public signOutService_result setSuccess(ExecResp success) { + public getSession_result setSuccess(GetSessionResp success) { this.success = success; return this; } @@ -37768,7 +50073,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((GetSessionResp)__value); } break; @@ -37793,9 +50098,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof signOutService_result)) + if (!(_that instanceof getSession_result)) return false; - signOutService_result that = (signOutService_result)_that; + getSession_result that = (getSession_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -37807,29 +50112,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(signOutService_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); @@ -37843,7 +50125,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new GetSessionResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -37884,7 +50166,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("signOutService_result"); + StringBuilder sb = new StringBuilder("getSession_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -37911,11 +50193,11 @@ public void validate() throws TException { } - public static class listServiceClients_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listServiceClients_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 ListServiceClientsReq req; + public RemoveSessionReq req; public static final int REQ = 1; // isset id assignments @@ -37925,19 +50207,19 @@ public static class listServiceClients_args implements TBase, java.io.Serializab static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListServiceClientsReq.class))); + new StructMetaData(TType.STRUCT, RemoveSessionReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listServiceClients_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeSession_args.class, metaDataMap); } - public listServiceClients_args() { + public removeSession_args() { } - public listServiceClients_args( - ListServiceClientsReq req) { + public removeSession_args( + RemoveSessionReq req) { this(); this.req = req; } @@ -37945,21 +50227,21 @@ public listServiceClients_args( /** * Performs a deep copy on other. */ - public listServiceClients_args(listServiceClients_args other) { + public removeSession_args(removeSession_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listServiceClients_args deepCopy() { - return new listServiceClients_args(this); + public removeSession_args deepCopy() { + return new removeSession_args(this); } - public ListServiceClientsReq getReq() { + public RemoveSessionReq getReq() { return this.req; } - public listServiceClients_args setReq(ListServiceClientsReq req) { + public removeSession_args setReq(RemoveSessionReq req) { this.req = req; return this; } @@ -37985,7 +50267,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListServiceClientsReq)__value); + setReq((RemoveSessionReq)__value); } break; @@ -38010,9 +50292,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listServiceClients_args)) + if (!(_that instanceof removeSession_args)) return false; - listServiceClients_args that = (listServiceClients_args)_that; + removeSession_args that = (removeSession_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -38025,7 +50307,7 @@ public int hashCode() { } @Override - public int compareTo(listServiceClients_args other) { + public int compareTo(removeSession_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -38060,7 +50342,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListServiceClientsReq(); + this.req = new RemoveSessionReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -38102,7 +50384,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("listServiceClients_args"); + StringBuilder sb = new StringBuilder("removeSession_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -38129,11 +50411,11 @@ public void validate() throws TException { } - public static class listServiceClients_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listServiceClients_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 ListServiceClientsResp success; + public RemoveSessionResp success; public static final int SUCCESS = 0; // isset id assignments @@ -38143,19 +50425,19 @@ public static class listServiceClients_result implements TBase, java.io.Serializ static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListServiceClientsResp.class))); + new StructMetaData(TType.STRUCT, RemoveSessionResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listServiceClients_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(removeSession_result.class, metaDataMap); } - public listServiceClients_result() { + public removeSession_result() { } - public listServiceClients_result( - ListServiceClientsResp success) { + public removeSession_result( + RemoveSessionResp success) { this(); this.success = success; } @@ -38163,21 +50445,21 @@ public listServiceClients_result( /** * Performs a deep copy on other. */ - public listServiceClients_result(listServiceClients_result other) { + public removeSession_result(removeSession_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listServiceClients_result deepCopy() { - return new listServiceClients_result(this); + public removeSession_result deepCopy() { + return new removeSession_result(this); } - public ListServiceClientsResp getSuccess() { + public RemoveSessionResp getSuccess() { return this.success; } - public listServiceClients_result setSuccess(ListServiceClientsResp success) { + public removeSession_result setSuccess(RemoveSessionResp success) { this.success = success; return this; } @@ -38203,7 +50485,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListServiceClientsResp)__value); + setSuccess((RemoveSessionResp)__value); } break; @@ -38228,9 +50510,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listServiceClients_result)) + if (!(_that instanceof removeSession_result)) return false; - listServiceClients_result that = (listServiceClients_result)_that; + removeSession_result that = (removeSession_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -38243,7 +50525,7 @@ public int hashCode() { } @Override - public int compareTo(listServiceClients_result other) { + public int compareTo(removeSession_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -38278,7 +50560,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListServiceClientsResp(); + this.success = new RemoveSessionResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -38319,7 +50601,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("listServiceClients_result"); + StringBuilder sb = new StringBuilder("removeSession_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -38346,11 +50628,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 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 CreateFTIndexReq req; + public KillQueryReq req; public static final int REQ = 1; // isset id assignments @@ -38360,19 +50642,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, KillQueryReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createFTIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(killQuery_args.class, metaDataMap); } - public createFTIndex_args() { + public killQuery_args() { } - public createFTIndex_args( - CreateFTIndexReq req) { + public killQuery_args( + KillQueryReq req) { this(); this.req = req; } @@ -38380,21 +50662,21 @@ public createFTIndex_args( /** * Performs a deep copy on other. */ - public createFTIndex_args(createFTIndex_args other) { + public killQuery_args(killQuery_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createFTIndex_args deepCopy() { - return new createFTIndex_args(this); + public killQuery_args deepCopy() { + return new killQuery_args(this); } - public CreateFTIndexReq getReq() { + public KillQueryReq getReq() { return this.req; } - public createFTIndex_args setReq(CreateFTIndexReq req) { + public killQuery_args setReq(KillQueryReq req) { this.req = req; return this; } @@ -38420,7 +50702,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateFTIndexReq)__value); + setReq((KillQueryReq)__value); } break; @@ -38445,9 +50727,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createFTIndex_args)) + if (!(_that instanceof killQuery_args)) return false; - createFTIndex_args that = (createFTIndex_args)_that; + killQuery_args that = (killQuery_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -38460,7 +50742,7 @@ public int hashCode() { } @Override - public int compareTo(createFTIndex_args other) { + public int compareTo(killQuery_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -38495,7 +50777,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateFTIndexReq(); + this.req = new KillQueryReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -38537,7 +50819,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("killQuery_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -38564,8 +50846,8 @@ 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 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 ExecResp success; @@ -38583,13 +50865,13 @@ public static class createFTIndex_result implements TBase, java.io.Serializable, } static { - FieldMetaData.addStructMetaDataMap(createFTIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(killQuery_result.class, metaDataMap); } - public createFTIndex_result() { + public killQuery_result() { } - public createFTIndex_result( + public killQuery_result( ExecResp success) { this(); this.success = success; @@ -38598,21 +50880,21 @@ public createFTIndex_result( /** * Performs a deep copy on other. */ - public createFTIndex_result(createFTIndex_result other) { + public killQuery_result(killQuery_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createFTIndex_result deepCopy() { - return new createFTIndex_result(this); + public killQuery_result deepCopy() { + return new killQuery_result(this); } public ExecResp getSuccess() { return this.success; } - public createFTIndex_result setSuccess(ExecResp success) { + public killQuery_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -38663,9 +50945,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createFTIndex_result)) + if (!(_that instanceof killQuery_result)) return false; - createFTIndex_result that = (createFTIndex_result)_that; + killQuery_result that = (killQuery_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -38678,7 +50960,7 @@ public int hashCode() { } @Override - public int compareTo(createFTIndex_result other) { + public int compareTo(killQuery_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -38754,7 +51036,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("killQuery_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -38781,11 +51063,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 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 DropFTIndexReq req; + public ReportTaskReq req; public static final int REQ = 1; // isset id assignments @@ -38795,19 +51077,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, ReportTaskReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(dropFTIndex_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(reportTaskFinish_args.class, metaDataMap); } - public dropFTIndex_args() { + public reportTaskFinish_args() { } - public dropFTIndex_args( - DropFTIndexReq req) { + public reportTaskFinish_args( + ReportTaskReq req) { this(); this.req = req; } @@ -38815,21 +51097,21 @@ public dropFTIndex_args( /** * Performs a deep copy on other. */ - public dropFTIndex_args(dropFTIndex_args other) { + public reportTaskFinish_args(reportTaskFinish_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public dropFTIndex_args deepCopy() { - return new dropFTIndex_args(this); + public reportTaskFinish_args deepCopy() { + return new reportTaskFinish_args(this); } - public DropFTIndexReq getReq() { + public ReportTaskReq getReq() { return this.req; } - public dropFTIndex_args setReq(DropFTIndexReq req) { + public reportTaskFinish_args setReq(ReportTaskReq req) { this.req = req; return this; } @@ -38855,7 +51137,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((DropFTIndexReq)__value); + setReq((ReportTaskReq)__value); } break; @@ -38880,9 +51162,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropFTIndex_args)) + if (!(_that instanceof reportTaskFinish_args)) return false; - dropFTIndex_args that = (dropFTIndex_args)_that; + reportTaskFinish_args that = (reportTaskFinish_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -38895,7 +51177,7 @@ public int hashCode() { } @Override - public int compareTo(dropFTIndex_args other) { + public int compareTo(reportTaskFinish_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -38930,7 +51212,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new DropFTIndexReq(); + this.req = new ReportTaskReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -38972,7 +51254,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("reportTaskFinish_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -38999,8 +51281,8 @@ 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 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; @@ -39018,13 +51300,13 @@ public static class dropFTIndex_result implements TBase, java.io.Serializable, C } static { - FieldMetaData.addStructMetaDataMap(dropFTIndex_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(reportTaskFinish_result.class, metaDataMap); } - public dropFTIndex_result() { + public reportTaskFinish_result() { } - public dropFTIndex_result( + public reportTaskFinish_result( ExecResp success) { this(); this.success = success; @@ -39033,21 +51315,21 @@ public dropFTIndex_result( /** * Performs a deep copy on other. */ - public dropFTIndex_result(dropFTIndex_result other) { + public reportTaskFinish_result(reportTaskFinish_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public dropFTIndex_result deepCopy() { - return new dropFTIndex_result(this); + public reportTaskFinish_result deepCopy() { + return new reportTaskFinish_result(this); } public ExecResp getSuccess() { return this.success; } - public dropFTIndex_result setSuccess(ExecResp success) { + public reportTaskFinish_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -39098,9 +51380,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof dropFTIndex_result)) + if (!(_that instanceof reportTaskFinish_result)) return false; - dropFTIndex_result that = (dropFTIndex_result)_that; + reportTaskFinish_result that = (reportTaskFinish_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -39113,7 +51395,7 @@ public int hashCode() { } @Override - public int compareTo(dropFTIndex_result other) { + public int compareTo(reportTaskFinish_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -39189,7 +51471,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("reportTaskFinish_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -39216,11 +51498,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 getLicense_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getLicense_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListFTIndexesReq req; + public GetLicenseReq req; public static final int REQ = 1; // isset id assignments @@ -39230,19 +51512,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, GetLicenseReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listFTIndexes_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getLicense_args.class, metaDataMap); } - public listFTIndexes_args() { + public getLicense_args() { } - public listFTIndexes_args( - ListFTIndexesReq req) { + public getLicense_args( + GetLicenseReq req) { this(); this.req = req; } @@ -39250,21 +51532,21 @@ public listFTIndexes_args( /** * Performs a deep copy on other. */ - public listFTIndexes_args(listFTIndexes_args other) { + public getLicense_args(getLicense_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listFTIndexes_args deepCopy() { - return new listFTIndexes_args(this); + public getLicense_args deepCopy() { + return new getLicense_args(this); } - public ListFTIndexesReq getReq() { + public GetLicenseReq getReq() { return this.req; } - public listFTIndexes_args setReq(ListFTIndexesReq req) { + public getLicense_args setReq(GetLicenseReq req) { this.req = req; return this; } @@ -39290,7 +51572,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListFTIndexesReq)__value); + setReq((GetLicenseReq)__value); } break; @@ -39315,9 +51597,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listFTIndexes_args)) + if (!(_that instanceof getLicense_args)) return false; - listFTIndexes_args that = (listFTIndexes_args)_that; + getLicense_args that = (getLicense_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -39330,7 +51612,7 @@ public int hashCode() { } @Override - public int compareTo(listFTIndexes_args other) { + public int compareTo(getLicense_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -39365,7 +51647,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListFTIndexesReq(); + this.req = new GetLicenseReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -39407,7 +51689,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("getLicense_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -39434,11 +51716,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 getLicense_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getLicense_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListFTIndexesResp success; + public GetLicenseResp success; public static final int SUCCESS = 0; // isset id assignments @@ -39448,19 +51730,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, GetLicenseResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listFTIndexes_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getLicense_result.class, metaDataMap); } - public listFTIndexes_result() { + public getLicense_result() { } - public listFTIndexes_result( - ListFTIndexesResp success) { + public getLicense_result( + GetLicenseResp success) { this(); this.success = success; } @@ -39468,21 +51750,21 @@ public listFTIndexes_result( /** * Performs a deep copy on other. */ - public listFTIndexes_result(listFTIndexes_result other) { + public getLicense_result(getLicense_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listFTIndexes_result deepCopy() { - return new listFTIndexes_result(this); + public getLicense_result deepCopy() { + return new getLicense_result(this); } - public ListFTIndexesResp getSuccess() { + public GetLicenseResp getSuccess() { return this.success; } - public listFTIndexes_result setSuccess(ListFTIndexesResp success) { + public getLicense_result setSuccess(GetLicenseResp success) { this.success = success; return this; } @@ -39508,7 +51790,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListFTIndexesResp)__value); + setSuccess((GetLicenseResp)__value); } break; @@ -39533,9 +51815,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listFTIndexes_result)) + if (!(_that instanceof getLicense_result)) return false; - listFTIndexes_result that = (listFTIndexes_result)_that; + getLicense_result that = (getLicense_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -39548,7 +51830,7 @@ public int hashCode() { } @Override - public int compareTo(listFTIndexes_result other) { + public int compareTo(getLicense_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -39583,7 +51865,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListFTIndexesResp(); + this.success = new GetLicenseResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -39624,7 +51906,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("getLicense_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -39651,11 +51933,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 checkLicenseManager_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("checkLicenseManager_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateSessionReq req; + public GetLicenseReq req; public static final int REQ = 1; // isset id assignments @@ -39665,19 +51947,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, GetLicenseReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createSession_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(checkLicenseManager_args.class, metaDataMap); } - public createSession_args() { + public checkLicenseManager_args() { } - public createSession_args( - CreateSessionReq req) { + public checkLicenseManager_args( + GetLicenseReq req) { this(); this.req = req; } @@ -39685,21 +51967,21 @@ public createSession_args( /** * Performs a deep copy on other. */ - public createSession_args(createSession_args other) { + public checkLicenseManager_args(checkLicenseManager_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createSession_args deepCopy() { - return new createSession_args(this); + public checkLicenseManager_args deepCopy() { + return new checkLicenseManager_args(this); } - public CreateSessionReq getReq() { + public GetLicenseReq getReq() { return this.req; } - public createSession_args setReq(CreateSessionReq req) { + public checkLicenseManager_args setReq(GetLicenseReq req) { this.req = req; return this; } @@ -39725,7 +52007,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateSessionReq)__value); + setReq((GetLicenseReq)__value); } break; @@ -39750,9 +52032,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSession_args)) + if (!(_that instanceof checkLicenseManager_args)) return false; - createSession_args that = (createSession_args)_that; + checkLicenseManager_args that = (checkLicenseManager_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -39765,7 +52047,7 @@ public int hashCode() { } @Override - public int compareTo(createSession_args other) { + public int compareTo(checkLicenseManager_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -39800,7 +52082,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateSessionReq(); + this.req = new GetLicenseReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -39842,7 +52124,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("checkLicenseManager_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -39869,11 +52151,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 checkLicenseManager_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("checkLicenseManager_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public CreateSessionResp success; + public GetLicenseResp success; public static final int SUCCESS = 0; // isset id assignments @@ -39883,19 +52165,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, GetLicenseResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createSession_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(checkLicenseManager_result.class, metaDataMap); } - public createSession_result() { + public checkLicenseManager_result() { } - public createSession_result( - CreateSessionResp success) { + public checkLicenseManager_result( + GetLicenseResp success) { this(); this.success = success; } @@ -39903,21 +52185,21 @@ public createSession_result( /** * Performs a deep copy on other. */ - public createSession_result(createSession_result other) { + public checkLicenseManager_result(checkLicenseManager_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createSession_result deepCopy() { - return new createSession_result(this); + public checkLicenseManager_result deepCopy() { + return new checkLicenseManager_result(this); } - public CreateSessionResp getSuccess() { + public GetLicenseResp getSuccess() { return this.success; } - public createSession_result setSuccess(CreateSessionResp success) { + public checkLicenseManager_result setSuccess(GetLicenseResp success) { this.success = success; return this; } @@ -39943,7 +52225,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((CreateSessionResp)__value); + setSuccess((GetLicenseResp)__value); } break; @@ -39968,9 +52250,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createSession_result)) + if (!(_that instanceof checkLicenseManager_result)) return false; - createSession_result that = (createSession_result)_that; + checkLicenseManager_result that = (checkLicenseManager_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -39982,6 +52264,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } + @Override + public int compareTo(checkLicenseManager_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); @@ -39995,7 +52300,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new CreateSessionResp(); + this.success = new GetLicenseResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -40036,7 +52341,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("checkLicenseManager_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -40063,11 +52368,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 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 UpdateSessionsReq req; + public CreateBackupReq req; public static final int REQ = 1; // isset id assignments @@ -40077,19 +52382,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, CreateBackupReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(updateSessions_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createBackup_args.class, metaDataMap); } - public updateSessions_args() { + public createBackup_args() { } - public updateSessions_args( - UpdateSessionsReq req) { + public createBackup_args( + CreateBackupReq req) { this(); this.req = req; } @@ -40097,21 +52402,21 @@ public updateSessions_args( /** * Performs a deep copy on other. */ - public updateSessions_args(updateSessions_args other) { + public createBackup_args(createBackup_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public updateSessions_args deepCopy() { - return new updateSessions_args(this); + public createBackup_args deepCopy() { + return new createBackup_args(this); } - public UpdateSessionsReq getReq() { + public CreateBackupReq getReq() { return this.req; } - public updateSessions_args setReq(UpdateSessionsReq req) { + public createBackup_args setReq(CreateBackupReq req) { this.req = req; return this; } @@ -40137,7 +52442,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((UpdateSessionsReq)__value); + setReq((CreateBackupReq)__value); } break; @@ -40162,9 +52467,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof updateSessions_args)) + if (!(_that instanceof createBackup_args)) return false; - updateSessions_args that = (updateSessions_args)_that; + createBackup_args that = (createBackup_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -40176,6 +52481,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } + @Override + public int compareTo(createBackup_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); @@ -40189,7 +52517,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new UpdateSessionsReq(); + this.req = new CreateBackupReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -40231,7 +52559,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("createBackup_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -40258,11 +52586,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 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 UpdateSessionsResp success; + public CreateBackupResp success; public static final int SUCCESS = 0; // isset id assignments @@ -40272,19 +52600,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, CreateBackupResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(updateSessions_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(createBackup_result.class, metaDataMap); } - public updateSessions_result() { + public createBackup_result() { } - public updateSessions_result( - UpdateSessionsResp success) { + public createBackup_result( + CreateBackupResp success) { this(); this.success = success; } @@ -40292,21 +52620,21 @@ public updateSessions_result( /** * Performs a deep copy on other. */ - public updateSessions_result(updateSessions_result other) { + public createBackup_result(createBackup_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public updateSessions_result deepCopy() { - return new updateSessions_result(this); + public createBackup_result deepCopy() { + return new createBackup_result(this); } - public UpdateSessionsResp getSuccess() { + public CreateBackupResp getSuccess() { return this.success; } - public updateSessions_result setSuccess(UpdateSessionsResp success) { + public createBackup_result setSuccess(CreateBackupResp success) { this.success = success; return this; } @@ -40332,7 +52660,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((UpdateSessionsResp)__value); + setSuccess((CreateBackupResp)__value); } break; @@ -40357,9 +52685,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof updateSessions_result)) + if (!(_that instanceof createBackup_result)) return false; - updateSessions_result that = (updateSessions_result)_that; + createBackup_result that = (createBackup_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -40372,7 +52700,7 @@ public int hashCode() { } @Override - public int compareTo(updateSessions_result other) { + public int compareTo(createBackup_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -40407,7 +52735,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new UpdateSessionsResp(); + this.success = new CreateBackupResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -40448,7 +52776,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("createBackup_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -40475,11 +52803,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 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 ListSessionsReq req; + public RestoreMetaReq req; public static final int REQ = 1; // isset id assignments @@ -40489,19 +52817,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, RestoreMetaReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSessions_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(restoreMeta_args.class, metaDataMap); } - public listSessions_args() { + public restoreMeta_args() { } - public listSessions_args( - ListSessionsReq req) { + public restoreMeta_args( + RestoreMetaReq req) { this(); this.req = req; } @@ -40509,21 +52837,21 @@ public listSessions_args( /** * Performs a deep copy on other. */ - public listSessions_args(listSessions_args other) { + public restoreMeta_args(restoreMeta_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listSessions_args deepCopy() { - return new listSessions_args(this); + public restoreMeta_args deepCopy() { + return new restoreMeta_args(this); } - public ListSessionsReq getReq() { + public RestoreMetaReq getReq() { return this.req; } - public listSessions_args setReq(ListSessionsReq req) { + public restoreMeta_args setReq(RestoreMetaReq req) { this.req = req; return this; } @@ -40549,7 +52877,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListSessionsReq)__value); + setReq((RestoreMetaReq)__value); } break; @@ -40574,9 +52902,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSessions_args)) + if (!(_that instanceof restoreMeta_args)) return false; - listSessions_args that = (listSessions_args)_that; + restoreMeta_args that = (restoreMeta_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -40589,7 +52917,7 @@ public int hashCode() { } @Override - public int compareTo(listSessions_args other) { + public int compareTo(restoreMeta_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -40624,7 +52952,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListSessionsReq(); + this.req = new RestoreMetaReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -40666,7 +52994,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("restoreMeta_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -40693,11 +53021,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 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 ListSessionsResp success; + public RestoreMetaResp success; public static final int SUCCESS = 0; // isset id assignments @@ -40707,19 +53035,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, RestoreMetaResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listSessions_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(restoreMeta_result.class, metaDataMap); } - public listSessions_result() { + public restoreMeta_result() { } - public listSessions_result( - ListSessionsResp success) { + public restoreMeta_result( + RestoreMetaResp success) { this(); this.success = success; } @@ -40727,21 +53055,21 @@ public listSessions_result( /** * Performs a deep copy on other. */ - public listSessions_result(listSessions_result other) { + public restoreMeta_result(restoreMeta_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listSessions_result deepCopy() { - return new listSessions_result(this); + public restoreMeta_result deepCopy() { + return new restoreMeta_result(this); } - public ListSessionsResp getSuccess() { + public RestoreMetaResp getSuccess() { return this.success; } - public listSessions_result setSuccess(ListSessionsResp success) { + public restoreMeta_result setSuccess(RestoreMetaResp success) { this.success = success; return this; } @@ -40767,7 +53095,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListSessionsResp)__value); + setSuccess((RestoreMetaResp)__value); } break; @@ -40792,9 +53120,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listSessions_result)) + if (!(_that instanceof restoreMeta_result)) return false; - listSessions_result that = (listSessions_result)_that; + restoreMeta_result that = (restoreMeta_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -40806,6 +53134,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } + @Override + public int compareTo(restoreMeta_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); @@ -40819,7 +53170,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListSessionsResp(); + this.success = new RestoreMetaResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -40860,7 +53211,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("restoreMeta_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -40887,11 +53238,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 listCluster_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listCluster_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetSessionReq req; + public ListClusterInfoReq req; public static final int REQ = 1; // isset id assignments @@ -40901,19 +53252,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, ListClusterInfoReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getSession_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listCluster_args.class, metaDataMap); } - public getSession_args() { + public listCluster_args() { } - public getSession_args( - GetSessionReq req) { + public listCluster_args( + ListClusterInfoReq req) { this(); this.req = req; } @@ -40921,21 +53272,21 @@ public getSession_args( /** * Performs a deep copy on other. */ - public getSession_args(getSession_args other) { + public listCluster_args(listCluster_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getSession_args deepCopy() { - return new getSession_args(this); + public listCluster_args deepCopy() { + return new listCluster_args(this); } - public GetSessionReq getReq() { + public ListClusterInfoReq getReq() { return this.req; } - public getSession_args setReq(GetSessionReq req) { + public listCluster_args setReq(ListClusterInfoReq req) { this.req = req; return this; } @@ -40961,7 +53312,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetSessionReq)__value); + setReq((ListClusterInfoReq)__value); } break; @@ -40986,9 +53337,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getSession_args)) + if (!(_that instanceof listCluster_args)) return false; - getSession_args that = (getSession_args)_that; + listCluster_args that = (listCluster_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -41001,7 +53352,7 @@ public int hashCode() { } @Override - public int compareTo(getSession_args other) { + public int compareTo(listCluster_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -41036,7 +53387,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetSessionReq(); + this.req = new ListClusterInfoReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -41078,7 +53429,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("listCluster_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -41105,11 +53456,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 listCluster_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listCluster_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetSessionResp success; + public ListClusterInfoResp success; public static final int SUCCESS = 0; // isset id assignments @@ -41119,19 +53470,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, ListClusterInfoResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getSession_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listCluster_result.class, metaDataMap); } - public getSession_result() { + public listCluster_result() { } - public getSession_result( - GetSessionResp success) { + public listCluster_result( + ListClusterInfoResp success) { this(); this.success = success; } @@ -41139,21 +53490,21 @@ public getSession_result( /** * Performs a deep copy on other. */ - public getSession_result(getSession_result other) { + public listCluster_result(listCluster_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getSession_result deepCopy() { - return new getSession_result(this); + public listCluster_result deepCopy() { + return new listCluster_result(this); } - public GetSessionResp getSuccess() { + public ListClusterInfoResp getSuccess() { return this.success; } - public getSession_result setSuccess(GetSessionResp success) { + public listCluster_result setSuccess(ListClusterInfoResp success) { this.success = success; return this; } @@ -41179,7 +53530,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetSessionResp)__value); + setSuccess((ListClusterInfoResp)__value); } break; @@ -41204,9 +53555,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getSession_result)) + if (!(_that instanceof listCluster_result)) return false; - getSession_result that = (getSession_result)_that; + listCluster_result that = (listCluster_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -41218,6 +53569,29 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } + @Override + public int compareTo(listCluster_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); @@ -41231,7 +53605,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetSessionResp(); + this.success = new ListClusterInfoResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -41272,7 +53646,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("listCluster_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -41299,11 +53673,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 getMetaDirInfo_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getMetaDirInfo_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RemoveSessionReq req; + public GetMetaDirInfoReq req; public static final int REQ = 1; // isset id assignments @@ -41313,19 +53687,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, GetMetaDirInfoReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeSession_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getMetaDirInfo_args.class, metaDataMap); } - public removeSession_args() { + public getMetaDirInfo_args() { } - public removeSession_args( - RemoveSessionReq req) { + public getMetaDirInfo_args( + GetMetaDirInfoReq req) { this(); this.req = req; } @@ -41333,21 +53707,21 @@ public removeSession_args( /** * Performs a deep copy on other. */ - public removeSession_args(removeSession_args other) { + public getMetaDirInfo_args(getMetaDirInfo_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public removeSession_args deepCopy() { - return new removeSession_args(this); + public getMetaDirInfo_args deepCopy() { + return new getMetaDirInfo_args(this); } - public RemoveSessionReq getReq() { + public GetMetaDirInfoReq getReq() { return this.req; } - public removeSession_args setReq(RemoveSessionReq req) { + public getMetaDirInfo_args setReq(GetMetaDirInfoReq req) { this.req = req; return this; } @@ -41373,7 +53747,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RemoveSessionReq)__value); + setReq((GetMetaDirInfoReq)__value); } break; @@ -41398,9 +53772,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeSession_args)) + if (!(_that instanceof getMetaDirInfo_args)) return false; - removeSession_args that = (removeSession_args)_that; + getMetaDirInfo_args that = (getMetaDirInfo_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -41413,7 +53787,7 @@ public int hashCode() { } @Override - public int compareTo(removeSession_args other) { + public int compareTo(getMetaDirInfo_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -41448,7 +53822,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RemoveSessionReq(); + this.req = new GetMetaDirInfoReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -41490,7 +53864,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("getMetaDirInfo_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -41517,11 +53891,11 @@ 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 getMetaDirInfo_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getMetaDirInfo_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public RemoveSessionResp success; + public GetMetaDirInfoResp success; public static final int SUCCESS = 0; // isset id assignments @@ -41531,19 +53905,19 @@ public static class removeSession_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RemoveSessionResp.class))); + new StructMetaData(TType.STRUCT, GetMetaDirInfoResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(removeSession_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getMetaDirInfo_result.class, metaDataMap); } - public removeSession_result() { + public getMetaDirInfo_result() { } - public removeSession_result( - RemoveSessionResp success) { + public getMetaDirInfo_result( + GetMetaDirInfoResp success) { this(); this.success = success; } @@ -41551,21 +53925,21 @@ public removeSession_result( /** * Performs a deep copy on other. */ - public removeSession_result(removeSession_result other) { + public getMetaDirInfo_result(getMetaDirInfo_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public removeSession_result deepCopy() { - return new removeSession_result(this); + public getMetaDirInfo_result deepCopy() { + return new getMetaDirInfo_result(this); } - public RemoveSessionResp getSuccess() { + public GetMetaDirInfoResp getSuccess() { return this.success; } - public removeSession_result setSuccess(RemoveSessionResp success) { + public getMetaDirInfo_result setSuccess(GetMetaDirInfoResp success) { this.success = success; return this; } @@ -41591,7 +53965,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((RemoveSessionResp)__value); + setSuccess((GetMetaDirInfoResp)__value); } break; @@ -41616,9 +53990,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof removeSession_result)) + if (!(_that instanceof getMetaDirInfo_result)) return false; - removeSession_result that = (removeSession_result)_that; + getMetaDirInfo_result that = (getMetaDirInfo_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -41631,7 +54005,7 @@ public int hashCode() { } @Override - public int compareTo(removeSession_result other) { + public int compareTo(getMetaDirInfo_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -41666,7 +54040,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new RemoveSessionResp(); + this.success = new GetMetaDirInfoResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -41707,7 +54081,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("getMetaDirInfo_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -41734,11 +54108,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 verifyClientVersion_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("verifyClientVersion_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public KillQueryReq req; + public VerifyClientVersionReq req; public static final int REQ = 1; // isset id assignments @@ -41748,19 +54122,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, VerifyClientVersionReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(killQuery_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(verifyClientVersion_args.class, metaDataMap); } - public killQuery_args() { + public verifyClientVersion_args() { } - public killQuery_args( - KillQueryReq req) { + public verifyClientVersion_args( + VerifyClientVersionReq req) { this(); this.req = req; } @@ -41768,21 +54142,21 @@ public killQuery_args( /** * Performs a deep copy on other. */ - public killQuery_args(killQuery_args other) { + public verifyClientVersion_args(verifyClientVersion_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public killQuery_args deepCopy() { - return new killQuery_args(this); + public verifyClientVersion_args deepCopy() { + return new verifyClientVersion_args(this); } - public KillQueryReq getReq() { + public VerifyClientVersionReq getReq() { return this.req; } - public killQuery_args setReq(KillQueryReq req) { + public verifyClientVersion_args setReq(VerifyClientVersionReq req) { this.req = req; return this; } @@ -41808,7 +54182,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((KillQueryReq)__value); + setReq((VerifyClientVersionReq)__value); } break; @@ -41833,9 +54207,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof killQuery_args)) + if (!(_that instanceof verifyClientVersion_args)) return false; - killQuery_args that = (killQuery_args)_that; + verifyClientVersion_args that = (verifyClientVersion_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -41848,7 +54222,7 @@ public int hashCode() { } @Override - public int compareTo(killQuery_args other) { + public int compareTo(verifyClientVersion_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -41883,7 +54257,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new KillQueryReq(); + this.req = new VerifyClientVersionReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -41925,7 +54299,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("verifyClientVersion_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -41952,11 +54326,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 verifyClientVersion_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("verifyClientVersion_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public VerifyClientVersionResp success; public static final int SUCCESS = 0; // isset id assignments @@ -41966,19 +54340,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, VerifyClientVersionResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(killQuery_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(verifyClientVersion_result.class, metaDataMap); } - public killQuery_result() { + public verifyClientVersion_result() { } - public killQuery_result( - ExecResp success) { + public verifyClientVersion_result( + VerifyClientVersionResp success) { this(); this.success = success; } @@ -41986,21 +54360,21 @@ public killQuery_result( /** * Performs a deep copy on other. */ - public killQuery_result(killQuery_result other) { + public verifyClientVersion_result(verifyClientVersion_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public killQuery_result deepCopy() { - return new killQuery_result(this); + public verifyClientVersion_result deepCopy() { + return new verifyClientVersion_result(this); } - public ExecResp getSuccess() { + public VerifyClientVersionResp getSuccess() { return this.success; } - public killQuery_result setSuccess(ExecResp success) { + public verifyClientVersion_result setSuccess(VerifyClientVersionResp success) { this.success = success; return this; } @@ -42026,7 +54400,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((VerifyClientVersionResp)__value); } break; @@ -42051,9 +54425,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof killQuery_result)) + if (!(_that instanceof verifyClientVersion_result)) return false; - killQuery_result that = (killQuery_result)_that; + verifyClientVersion_result that = (verifyClientVersion_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -42066,7 +54440,7 @@ public int hashCode() { } @Override - public int compareTo(killQuery_result other) { + public int compareTo(verifyClientVersion_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -42101,7 +54475,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new VerifyClientVersionResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -42142,7 +54516,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("verifyClientVersion_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -42169,11 +54543,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 saveGraphVersion_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("saveGraphVersion_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ReportTaskReq req; + public SaveGraphVersionReq req; public static final int REQ = 1; // isset id assignments @@ -42183,19 +54557,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, SaveGraphVersionReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(reportTaskFinish_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(saveGraphVersion_args.class, metaDataMap); } - public reportTaskFinish_args() { + public saveGraphVersion_args() { } - public reportTaskFinish_args( - ReportTaskReq req) { + public saveGraphVersion_args( + SaveGraphVersionReq req) { this(); this.req = req; } @@ -42203,21 +54577,21 @@ public reportTaskFinish_args( /** * Performs a deep copy on other. */ - public reportTaskFinish_args(reportTaskFinish_args other) { + public saveGraphVersion_args(saveGraphVersion_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public reportTaskFinish_args deepCopy() { - return new reportTaskFinish_args(this); + public saveGraphVersion_args deepCopy() { + return new saveGraphVersion_args(this); } - public ReportTaskReq getReq() { + public SaveGraphVersionReq getReq() { return this.req; } - public reportTaskFinish_args setReq(ReportTaskReq req) { + public saveGraphVersion_args setReq(SaveGraphVersionReq req) { this.req = req; return this; } @@ -42243,7 +54617,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ReportTaskReq)__value); + setReq((SaveGraphVersionReq)__value); } break; @@ -42268,9 +54642,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof reportTaskFinish_args)) + if (!(_that instanceof saveGraphVersion_args)) return false; - reportTaskFinish_args that = (reportTaskFinish_args)_that; + saveGraphVersion_args that = (saveGraphVersion_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -42283,7 +54657,7 @@ public int hashCode() { } @Override - public int compareTo(reportTaskFinish_args other) { + public int compareTo(saveGraphVersion_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -42318,7 +54692,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ReportTaskReq(); + this.req = new SaveGraphVersionReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -42360,7 +54734,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("saveGraphVersion_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -42387,11 +54761,11 @@ 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 saveGraphVersion_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("saveGraphVersion_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ExecResp success; + public SaveGraphVersionResp success; public static final int SUCCESS = 0; // isset id assignments @@ -42401,19 +54775,19 @@ public static class reportTaskFinish_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, SaveGraphVersionResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(reportTaskFinish_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(saveGraphVersion_result.class, metaDataMap); } - public reportTaskFinish_result() { + public saveGraphVersion_result() { } - public reportTaskFinish_result( - ExecResp success) { + public saveGraphVersion_result( + SaveGraphVersionResp success) { this(); this.success = success; } @@ -42421,21 +54795,21 @@ public reportTaskFinish_result( /** * Performs a deep copy on other. */ - public reportTaskFinish_result(reportTaskFinish_result other) { + public saveGraphVersion_result(saveGraphVersion_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public reportTaskFinish_result deepCopy() { - return new reportTaskFinish_result(this); + public saveGraphVersion_result deepCopy() { + return new saveGraphVersion_result(this); } - public ExecResp getSuccess() { + public SaveGraphVersionResp getSuccess() { return this.success; } - public reportTaskFinish_result setSuccess(ExecResp success) { + public saveGraphVersion_result setSuccess(SaveGraphVersionResp success) { this.success = success; return this; } @@ -42461,7 +54835,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ExecResp)__value); + setSuccess((SaveGraphVersionResp)__value); } break; @@ -42486,9 +54860,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof reportTaskFinish_result)) + if (!(_that instanceof saveGraphVersion_result)) return false; - reportTaskFinish_result that = (reportTaskFinish_result)_that; + saveGraphVersion_result that = (saveGraphVersion_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -42501,7 +54875,7 @@ public int hashCode() { } @Override - public int compareTo(reportTaskFinish_result other) { + public int compareTo(saveGraphVersion_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -42536,7 +54910,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ExecResp(); + this.success = new SaveGraphVersionResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -42577,7 +54951,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("saveGraphVersion_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -42604,11 +54978,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 setVariable_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("setVariable_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public CreateBackupReq req; + public SetVariableReq req; public static final int REQ = 1; // isset id assignments @@ -42618,19 +54992,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, SetVariableReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(createBackup_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(setVariable_args.class, metaDataMap); } - public createBackup_args() { + public setVariable_args() { } - public createBackup_args( - CreateBackupReq req) { + public setVariable_args( + SetVariableReq req) { this(); this.req = req; } @@ -42638,21 +55012,21 @@ public createBackup_args( /** * Performs a deep copy on other. */ - public createBackup_args(createBackup_args other) { + public setVariable_args(setVariable_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public createBackup_args deepCopy() { - return new createBackup_args(this); + public setVariable_args deepCopy() { + return new setVariable_args(this); } - public CreateBackupReq getReq() { + public SetVariableReq getReq() { return this.req; } - public createBackup_args setReq(CreateBackupReq req) { + public setVariable_args setReq(SetVariableReq req) { this.req = req; return this; } @@ -42678,7 +55052,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((CreateBackupReq)__value); + setReq((SetVariableReq)__value); } break; @@ -42703,9 +55077,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createBackup_args)) + if (!(_that instanceof setVariable_args)) return false; - createBackup_args that = (createBackup_args)_that; + setVariable_args that = (setVariable_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -42717,29 +55091,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } - @Override - public int compareTo(createBackup_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); @@ -42753,7 +55104,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new CreateBackupReq(); + this.req = new SetVariableReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -42795,7 +55146,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("setVariable_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -42822,11 +55173,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 setVariable_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("setVariable_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 @@ -42836,19 +55187,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(setVariable_result.class, metaDataMap); } - public createBackup_result() { + public setVariable_result() { } - public createBackup_result( - CreateBackupResp success) { + public setVariable_result( + ExecResp success) { this(); this.success = success; } @@ -42856,21 +55207,21 @@ public createBackup_result( /** * Performs a deep copy on other. */ - public createBackup_result(createBackup_result other) { + public setVariable_result(setVariable_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public createBackup_result deepCopy() { - return new createBackup_result(this); + public setVariable_result deepCopy() { + return new setVariable_result(this); } - public CreateBackupResp getSuccess() { + public ExecResp getSuccess() { return this.success; } - public createBackup_result setSuccess(CreateBackupResp success) { + public setVariable_result setSuccess(ExecResp success) { this.success = success; return this; } @@ -42896,7 +55247,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((CreateBackupResp)__value); + setSuccess((ExecResp)__value); } break; @@ -42921,9 +55272,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof createBackup_result)) + if (!(_that instanceof setVariable_result)) return false; - createBackup_result that = (createBackup_result)_that; + setVariable_result that = (setVariable_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -42936,7 +55287,7 @@ public int hashCode() { } @Override - public int compareTo(createBackup_result other) { + public int compareTo(setVariable_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -42971,7 +55322,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); @@ -43012,7 +55363,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("setVariable_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -43039,11 +55390,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 getVariable_args implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("getVariable_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public RestoreMetaReq req; + public GetVariableReq req; public static final int REQ = 1; // isset id assignments @@ -43053,19 +55404,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, GetVariableReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(restoreMeta_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getVariable_args.class, metaDataMap); } - public restoreMeta_args() { + public getVariable_args() { } - public restoreMeta_args( - RestoreMetaReq req) { + public getVariable_args( + GetVariableReq req) { this(); this.req = req; } @@ -43073,21 +55424,21 @@ public restoreMeta_args( /** * Performs a deep copy on other. */ - public restoreMeta_args(restoreMeta_args other) { + public getVariable_args(getVariable_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public restoreMeta_args deepCopy() { - return new restoreMeta_args(this); + public getVariable_args deepCopy() { + return new getVariable_args(this); } - public RestoreMetaReq getReq() { + public GetVariableReq getReq() { return this.req; } - public restoreMeta_args setReq(RestoreMetaReq req) { + public getVariable_args setReq(GetVariableReq req) { this.req = req; return this; } @@ -43113,7 +55464,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((RestoreMetaReq)__value); + setReq((GetVariableReq)__value); } break; @@ -43138,9 +55489,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof restoreMeta_args)) + if (!(_that instanceof getVariable_args)) return false; - restoreMeta_args that = (restoreMeta_args)_that; + getVariable_args that = (getVariable_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -43152,29 +55503,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {req}); } - @Override - public int compareTo(restoreMeta_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); @@ -43188,7 +55516,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new RestoreMetaReq(); + this.req = new GetVariableReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -43230,7 +55558,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("getVariable_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -43257,11 +55585,11 @@ 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 getVariable_result implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("getVariable_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public RestoreMetaResp success; + public GetVariableResp success; public static final int SUCCESS = 0; // isset id assignments @@ -43271,19 +55599,19 @@ public static class restoreMeta_result implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, RestoreMetaResp.class))); + new StructMetaData(TType.STRUCT, GetVariableResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(restoreMeta_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getVariable_result.class, metaDataMap); } - public restoreMeta_result() { + public getVariable_result() { } - public restoreMeta_result( - RestoreMetaResp success) { + public getVariable_result( + GetVariableResp success) { this(); this.success = success; } @@ -43291,21 +55619,21 @@ public restoreMeta_result( /** * Performs a deep copy on other. */ - public restoreMeta_result(restoreMeta_result other) { + public getVariable_result(getVariable_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public restoreMeta_result deepCopy() { - return new restoreMeta_result(this); + public getVariable_result deepCopy() { + return new getVariable_result(this); } - public RestoreMetaResp getSuccess() { + public GetVariableResp getSuccess() { return this.success; } - public restoreMeta_result setSuccess(RestoreMetaResp success) { + public getVariable_result setSuccess(GetVariableResp success) { this.success = success; return this; } @@ -43331,7 +55659,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((RestoreMetaResp)__value); + setSuccess((GetVariableResp)__value); } break; @@ -43356,9 +55684,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof restoreMeta_result)) + if (!(_that instanceof getVariable_result)) return false; - restoreMeta_result that = (restoreMeta_result)_that; + getVariable_result that = (getVariable_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -43370,29 +55698,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(restoreMeta_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); @@ -43406,7 +55711,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new RestoreMetaResp(); + this.success = new GetVariableResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -43447,7 +55752,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("getVariable_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -43474,11 +55779,11 @@ public void validate() throws TException { } - public static class listCluster_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listCluster_args"); + public static class listVariables_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listVariables_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public ListClusterInfoReq req; + public ListVariablesReq req; public static final int REQ = 1; // isset id assignments @@ -43488,19 +55793,19 @@ public static class listCluster_args implements TBase, java.io.Serializable, Clo static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListClusterInfoReq.class))); + new StructMetaData(TType.STRUCT, ListVariablesReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listCluster_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listVariables_args.class, metaDataMap); } - public listCluster_args() { + public listVariables_args() { } - public listCluster_args( - ListClusterInfoReq req) { + public listVariables_args( + ListVariablesReq req) { this(); this.req = req; } @@ -43508,21 +55813,21 @@ public listCluster_args( /** * Performs a deep copy on other. */ - public listCluster_args(listCluster_args other) { + public listVariables_args(listVariables_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public listCluster_args deepCopy() { - return new listCluster_args(this); + public listVariables_args deepCopy() { + return new listVariables_args(this); } - public ListClusterInfoReq getReq() { + public ListVariablesReq getReq() { return this.req; } - public listCluster_args setReq(ListClusterInfoReq req) { + public listVariables_args setReq(ListVariablesReq req) { this.req = req; return this; } @@ -43548,7 +55853,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((ListClusterInfoReq)__value); + setReq((ListVariablesReq)__value); } break; @@ -43573,9 +55878,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listCluster_args)) + if (!(_that instanceof listVariables_args)) return false; - listCluster_args that = (listCluster_args)_that; + listVariables_args that = (listVariables_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -43588,7 +55893,7 @@ public int hashCode() { } @Override - public int compareTo(listCluster_args other) { + public int compareTo(listVariables_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -43623,7 +55928,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new ListClusterInfoReq(); + this.req = new ListVariablesReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -43665,7 +55970,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("listCluster_args"); + StringBuilder sb = new StringBuilder("listVariables_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -43692,11 +55997,11 @@ public void validate() throws TException { } - public static class listCluster_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("listCluster_result"); + public static class listVariables_result implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("listVariables_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public ListClusterInfoResp success; + public ListVariablesResp success; public static final int SUCCESS = 0; // isset id assignments @@ -43706,19 +56011,19 @@ public static class listCluster_result implements TBase, java.io.Serializable, C static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, ListClusterInfoResp.class))); + new StructMetaData(TType.STRUCT, ListVariablesResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(listCluster_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listVariables_result.class, metaDataMap); } - public listCluster_result() { + public listVariables_result() { } - public listCluster_result( - ListClusterInfoResp success) { + public listVariables_result( + ListVariablesResp success) { this(); this.success = success; } @@ -43726,21 +56031,21 @@ public listCluster_result( /** * Performs a deep copy on other. */ - public listCluster_result(listCluster_result other) { + public listVariables_result(listVariables_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public listCluster_result deepCopy() { - return new listCluster_result(this); + public listVariables_result deepCopy() { + return new listVariables_result(this); } - public ListClusterInfoResp getSuccess() { + public ListVariablesResp getSuccess() { return this.success; } - public listCluster_result setSuccess(ListClusterInfoResp success) { + public listVariables_result setSuccess(ListVariablesResp success) { this.success = success; return this; } @@ -43766,7 +56071,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((ListClusterInfoResp)__value); + setSuccess((ListVariablesResp)__value); } break; @@ -43791,9 +56096,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof listCluster_result)) + if (!(_that instanceof listVariables_result)) return false; - listCluster_result that = (listCluster_result)_that; + listVariables_result that = (listVariables_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -43805,29 +56110,6 @@ public int hashCode() { return Arrays.deepHashCode(new Object[] {success}); } - @Override - public int compareTo(listCluster_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); @@ -43841,7 +56123,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new ListClusterInfoResp(); + this.success = new ListVariablesResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -43882,7 +56164,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("listCluster_result"); + StringBuilder sb = new StringBuilder("listVariables_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -43909,11 +56191,11 @@ public void validate() throws TException { } - public static class getMetaDirInfo_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getMetaDirInfo_args"); + public static class getSegmentId_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getSegmentId_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetMetaDirInfoReq req; + public GetSegmentIdReq req; public static final int REQ = 1; // isset id assignments @@ -43923,19 +56205,19 @@ public static class getMetaDirInfo_args implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetMetaDirInfoReq.class))); + new StructMetaData(TType.STRUCT, GetSegmentIdReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getMetaDirInfo_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getSegmentId_args.class, metaDataMap); } - public getMetaDirInfo_args() { + public getSegmentId_args() { } - public getMetaDirInfo_args( - GetMetaDirInfoReq req) { + public getSegmentId_args( + GetSegmentIdReq req) { this(); this.req = req; } @@ -43943,21 +56225,21 @@ public getMetaDirInfo_args( /** * Performs a deep copy on other. */ - public getMetaDirInfo_args(getMetaDirInfo_args other) { + public getSegmentId_args(getSegmentId_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getMetaDirInfo_args deepCopy() { - return new getMetaDirInfo_args(this); + public getSegmentId_args deepCopy() { + return new getSegmentId_args(this); } - public GetMetaDirInfoReq getReq() { + public GetSegmentIdReq getReq() { return this.req; } - public getMetaDirInfo_args setReq(GetMetaDirInfoReq req) { + public getSegmentId_args setReq(GetSegmentIdReq req) { this.req = req; return this; } @@ -43983,7 +56265,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetMetaDirInfoReq)__value); + setReq((GetSegmentIdReq)__value); } break; @@ -44008,9 +56290,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getMetaDirInfo_args)) + if (!(_that instanceof getSegmentId_args)) return false; - getMetaDirInfo_args that = (getMetaDirInfo_args)_that; + getSegmentId_args that = (getSegmentId_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -44023,7 +56305,7 @@ public int hashCode() { } @Override - public int compareTo(getMetaDirInfo_args other) { + public int compareTo(getSegmentId_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -44058,7 +56340,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetMetaDirInfoReq(); + this.req = new GetSegmentIdReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -44100,7 +56382,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("getMetaDirInfo_args"); + StringBuilder sb = new StringBuilder("getSegmentId_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -44127,11 +56409,11 @@ public void validate() throws TException { } - public static class getMetaDirInfo_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getMetaDirInfo_result"); + public static class getSegmentId_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getSegmentId_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetMetaDirInfoResp success; + public GetSegmentIdResp success; public static final int SUCCESS = 0; // isset id assignments @@ -44141,19 +56423,19 @@ public static class getMetaDirInfo_result implements TBase, java.io.Serializable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetMetaDirInfoResp.class))); + new StructMetaData(TType.STRUCT, GetSegmentIdResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getMetaDirInfo_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getSegmentId_result.class, metaDataMap); } - public getMetaDirInfo_result() { + public getSegmentId_result() { } - public getMetaDirInfo_result( - GetMetaDirInfoResp success) { + public getSegmentId_result( + GetSegmentIdResp success) { this(); this.success = success; } @@ -44161,21 +56443,21 @@ public getMetaDirInfo_result( /** * Performs a deep copy on other. */ - public getMetaDirInfo_result(getMetaDirInfo_result other) { + public getSegmentId_result(getSegmentId_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getMetaDirInfo_result deepCopy() { - return new getMetaDirInfo_result(this); + public getSegmentId_result deepCopy() { + return new getSegmentId_result(this); } - public GetMetaDirInfoResp getSuccess() { + public GetSegmentIdResp getSuccess() { return this.success; } - public getMetaDirInfo_result setSuccess(GetMetaDirInfoResp success) { + public getSegmentId_result setSuccess(GetSegmentIdResp success) { this.success = success; return this; } @@ -44201,7 +56483,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetMetaDirInfoResp)__value); + setSuccess((GetSegmentIdResp)__value); } break; @@ -44226,9 +56508,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getMetaDirInfo_result)) + if (!(_that instanceof getSegmentId_result)) return false; - getMetaDirInfo_result that = (getMetaDirInfo_result)_that; + getSegmentId_result that = (getSegmentId_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -44241,7 +56523,7 @@ public int hashCode() { } @Override - public int compareTo(getMetaDirInfo_result other) { + public int compareTo(getSegmentId_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -44276,7 +56558,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetMetaDirInfoResp(); + this.success = new GetSegmentIdResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -44317,7 +56599,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("getMetaDirInfo_result"); + StringBuilder sb = new StringBuilder("getSegmentId_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -44344,11 +56626,11 @@ public void validate() throws TException { } - public static class verifyClientVersion_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("verifyClientVersion_args"); + public static class getMetaSyncProgress_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getMetaSyncProgress_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public VerifyClientVersionReq req; + public GetSyncProgressReq req; public static final int REQ = 1; // isset id assignments @@ -44358,19 +56640,19 @@ public static class verifyClientVersion_args implements TBase, java.io.Serializa static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, VerifyClientVersionReq.class))); + new StructMetaData(TType.STRUCT, GetSyncProgressReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(verifyClientVersion_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getMetaSyncProgress_args.class, metaDataMap); } - public verifyClientVersion_args() { + public getMetaSyncProgress_args() { } - public verifyClientVersion_args( - VerifyClientVersionReq req) { + public getMetaSyncProgress_args( + GetSyncProgressReq req) { this(); this.req = req; } @@ -44378,21 +56660,21 @@ public verifyClientVersion_args( /** * Performs a deep copy on other. */ - public verifyClientVersion_args(verifyClientVersion_args other) { + public getMetaSyncProgress_args(getMetaSyncProgress_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public verifyClientVersion_args deepCopy() { - return new verifyClientVersion_args(this); + public getMetaSyncProgress_args deepCopy() { + return new getMetaSyncProgress_args(this); } - public VerifyClientVersionReq getReq() { + public GetSyncProgressReq getReq() { return this.req; } - public verifyClientVersion_args setReq(VerifyClientVersionReq req) { + public getMetaSyncProgress_args setReq(GetSyncProgressReq req) { this.req = req; return this; } @@ -44418,7 +56700,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((VerifyClientVersionReq)__value); + setReq((GetSyncProgressReq)__value); } break; @@ -44443,9 +56725,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof verifyClientVersion_args)) + if (!(_that instanceof getMetaSyncProgress_args)) return false; - verifyClientVersion_args that = (verifyClientVersion_args)_that; + getMetaSyncProgress_args that = (getMetaSyncProgress_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -44458,7 +56740,7 @@ public int hashCode() { } @Override - public int compareTo(verifyClientVersion_args other) { + public int compareTo(getMetaSyncProgress_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -44493,7 +56775,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new VerifyClientVersionReq(); + this.req = new GetSyncProgressReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -44535,7 +56817,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("verifyClientVersion_args"); + StringBuilder sb = new StringBuilder("getMetaSyncProgress_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -44562,11 +56844,11 @@ public void validate() throws TException { } - public static class verifyClientVersion_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("verifyClientVersion_result"); + public static class getMetaSyncProgress_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getMetaSyncProgress_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public VerifyClientVersionResp success; + public GetSyncProgressResp success; public static final int SUCCESS = 0; // isset id assignments @@ -44576,19 +56858,19 @@ public static class verifyClientVersion_result implements TBase, java.io.Seriali static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, VerifyClientVersionResp.class))); + new StructMetaData(TType.STRUCT, GetSyncProgressResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(verifyClientVersion_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getMetaSyncProgress_result.class, metaDataMap); } - public verifyClientVersion_result() { + public getMetaSyncProgress_result() { } - public verifyClientVersion_result( - VerifyClientVersionResp success) { + public getMetaSyncProgress_result( + GetSyncProgressResp success) { this(); this.success = success; } @@ -44596,21 +56878,21 @@ public verifyClientVersion_result( /** * Performs a deep copy on other. */ - public verifyClientVersion_result(verifyClientVersion_result other) { + public getMetaSyncProgress_result(getMetaSyncProgress_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public verifyClientVersion_result deepCopy() { - return new verifyClientVersion_result(this); + public getMetaSyncProgress_result deepCopy() { + return new getMetaSyncProgress_result(this); } - public VerifyClientVersionResp getSuccess() { + public GetSyncProgressResp getSuccess() { return this.success; } - public verifyClientVersion_result setSuccess(VerifyClientVersionResp success) { + public getMetaSyncProgress_result setSuccess(GetSyncProgressResp success) { this.success = success; return this; } @@ -44636,7 +56918,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((VerifyClientVersionResp)__value); + setSuccess((GetSyncProgressResp)__value); } break; @@ -44661,9 +56943,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof verifyClientVersion_result)) + if (!(_that instanceof getMetaSyncProgress_result)) return false; - verifyClientVersion_result that = (verifyClientVersion_result)_that; + getMetaSyncProgress_result that = (getMetaSyncProgress_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -44676,7 +56958,7 @@ public int hashCode() { } @Override - public int compareTo(verifyClientVersion_result other) { + public int compareTo(getMetaSyncProgress_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -44711,7 +56993,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new VerifyClientVersionResp(); + this.success = new GetSyncProgressResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -44752,7 +57034,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("verifyClientVersion_result"); + StringBuilder sb = new StringBuilder("getMetaSyncProgress_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -44779,11 +57061,11 @@ public void validate() throws TException { } - public static class saveGraphVersion_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("saveGraphVersion_args"); + public static class changeMeta_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("changeMeta_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public SaveGraphVersionReq req; + public ChangeMetaReq req; public static final int REQ = 1; // isset id assignments @@ -44793,19 +57075,19 @@ public static class saveGraphVersion_args implements TBase, java.io.Serializable static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, SaveGraphVersionReq.class))); + new StructMetaData(TType.STRUCT, ChangeMetaReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(saveGraphVersion_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(changeMeta_args.class, metaDataMap); } - public saveGraphVersion_args() { + public changeMeta_args() { } - public saveGraphVersion_args( - SaveGraphVersionReq req) { + public changeMeta_args( + ChangeMetaReq req) { this(); this.req = req; } @@ -44813,21 +57095,21 @@ public saveGraphVersion_args( /** * Performs a deep copy on other. */ - public saveGraphVersion_args(saveGraphVersion_args other) { + public changeMeta_args(changeMeta_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public saveGraphVersion_args deepCopy() { - return new saveGraphVersion_args(this); + public changeMeta_args deepCopy() { + return new changeMeta_args(this); } - public SaveGraphVersionReq getReq() { + public ChangeMetaReq getReq() { return this.req; } - public saveGraphVersion_args setReq(SaveGraphVersionReq req) { + public changeMeta_args setReq(ChangeMetaReq req) { this.req = req; return this; } @@ -44853,7 +57135,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((SaveGraphVersionReq)__value); + setReq((ChangeMetaReq)__value); } break; @@ -44878,9 +57160,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof saveGraphVersion_args)) + if (!(_that instanceof changeMeta_args)) return false; - saveGraphVersion_args that = (saveGraphVersion_args)_that; + changeMeta_args that = (changeMeta_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -44893,7 +57175,7 @@ public int hashCode() { } @Override - public int compareTo(saveGraphVersion_args other) { + public int compareTo(changeMeta_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -44928,7 +57210,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new SaveGraphVersionReq(); + this.req = new ChangeMetaReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -44970,7 +57252,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("saveGraphVersion_args"); + StringBuilder sb = new StringBuilder("changeMeta_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -44997,11 +57279,11 @@ public void validate() throws TException { } - public static class saveGraphVersion_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("saveGraphVersion_result"); + public static class changeMeta_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("changeMeta_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public SaveGraphVersionResp success; + public ChangeMetaResp success; public static final int SUCCESS = 0; // isset id assignments @@ -45011,19 +57293,19 @@ public static class saveGraphVersion_result implements TBase, java.io.Serializab static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, SaveGraphVersionResp.class))); + new StructMetaData(TType.STRUCT, ChangeMetaResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(saveGraphVersion_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(changeMeta_result.class, metaDataMap); } - public saveGraphVersion_result() { + public changeMeta_result() { } - public saveGraphVersion_result( - SaveGraphVersionResp success) { + public changeMeta_result( + ChangeMetaResp success) { this(); this.success = success; } @@ -45031,21 +57313,21 @@ public saveGraphVersion_result( /** * Performs a deep copy on other. */ - public saveGraphVersion_result(saveGraphVersion_result other) { + public changeMeta_result(changeMeta_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public saveGraphVersion_result deepCopy() { - return new saveGraphVersion_result(this); + public changeMeta_result deepCopy() { + return new changeMeta_result(this); } - public SaveGraphVersionResp getSuccess() { + public ChangeMetaResp getSuccess() { return this.success; } - public saveGraphVersion_result setSuccess(SaveGraphVersionResp success) { + public changeMeta_result setSuccess(ChangeMetaResp success) { this.success = success; return this; } @@ -45071,7 +57353,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((SaveGraphVersionResp)__value); + setSuccess((ChangeMetaResp)__value); } break; @@ -45096,9 +57378,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof saveGraphVersion_result)) + if (!(_that instanceof changeMeta_result)) return false; - saveGraphVersion_result that = (saveGraphVersion_result)_that; + changeMeta_result that = (changeMeta_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -45111,7 +57393,7 @@ public int hashCode() { } @Override - public int compareTo(saveGraphVersion_result other) { + public int compareTo(changeMeta_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -45146,7 +57428,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new SaveGraphVersionResp(); + this.success = new ChangeMetaResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -45187,7 +57469,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("saveGraphVersion_result"); + StringBuilder sb = new StringBuilder("changeMeta_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -45214,11 +57496,11 @@ public void validate() throws TException { } - public static class getSegmentId_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getSegmentId_args"); + public static class listMeta_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listMeta_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); - public GetSegmentIdReq req; + public ListMetaReq req; public static final int REQ = 1; // isset id assignments @@ -45228,19 +57510,19 @@ public static class getSegmentId_args implements TBase, java.io.Serializable, Cl static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(REQ, new FieldMetaData("req", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetSegmentIdReq.class))); + new StructMetaData(TType.STRUCT, ListMetaReq.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getSegmentId_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listMeta_args.class, metaDataMap); } - public getSegmentId_args() { + public listMeta_args() { } - public getSegmentId_args( - GetSegmentIdReq req) { + public listMeta_args( + ListMetaReq req) { this(); this.req = req; } @@ -45248,21 +57530,21 @@ public getSegmentId_args( /** * Performs a deep copy on other. */ - public getSegmentId_args(getSegmentId_args other) { + public listMeta_args(listMeta_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public getSegmentId_args deepCopy() { - return new getSegmentId_args(this); + public listMeta_args deepCopy() { + return new listMeta_args(this); } - public GetSegmentIdReq getReq() { + public ListMetaReq getReq() { return this.req; } - public getSegmentId_args setReq(GetSegmentIdReq req) { + public listMeta_args setReq(ListMetaReq req) { this.req = req; return this; } @@ -45288,7 +57570,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetReq(); } else { - setReq((GetSegmentIdReq)__value); + setReq((ListMetaReq)__value); } break; @@ -45313,9 +57595,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getSegmentId_args)) + if (!(_that instanceof listMeta_args)) return false; - getSegmentId_args that = (getSegmentId_args)_that; + listMeta_args that = (listMeta_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -45328,7 +57610,7 @@ public int hashCode() { } @Override - public int compareTo(getSegmentId_args other) { + public int compareTo(listMeta_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -45363,7 +57645,7 @@ public void read(TProtocol iprot) throws TException { { case REQ: if (__field.type == TType.STRUCT) { - this.req = new GetSegmentIdReq(); + this.req = new ListMetaReq(); this.req.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -45405,7 +57687,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("getSegmentId_args"); + StringBuilder sb = new StringBuilder("listMeta_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -45432,11 +57714,11 @@ public void validate() throws TException { } - public static class getSegmentId_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("getSegmentId_result"); + public static class listMeta_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("listMeta_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public GetSegmentIdResp success; + public ListMetaResp success; public static final int SUCCESS = 0; // isset id assignments @@ -45446,19 +57728,19 @@ public static class getSegmentId_result implements TBase, java.io.Serializable, static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, GetSegmentIdResp.class))); + new StructMetaData(TType.STRUCT, ListMetaResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(getSegmentId_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(listMeta_result.class, metaDataMap); } - public getSegmentId_result() { + public listMeta_result() { } - public getSegmentId_result( - GetSegmentIdResp success) { + public listMeta_result( + ListMetaResp success) { this(); this.success = success; } @@ -45466,21 +57748,21 @@ public getSegmentId_result( /** * Performs a deep copy on other. */ - public getSegmentId_result(getSegmentId_result other) { + public listMeta_result(listMeta_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public getSegmentId_result deepCopy() { - return new getSegmentId_result(this); + public listMeta_result deepCopy() { + return new listMeta_result(this); } - public GetSegmentIdResp getSuccess() { + public ListMetaResp getSuccess() { return this.success; } - public getSegmentId_result setSuccess(GetSegmentIdResp success) { + public listMeta_result setSuccess(ListMetaResp success) { this.success = success; return this; } @@ -45506,7 +57788,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((GetSegmentIdResp)__value); + setSuccess((ListMetaResp)__value); } break; @@ -45531,9 +57813,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof getSegmentId_result)) + if (!(_that instanceof listMeta_result)) return false; - getSegmentId_result that = (getSegmentId_result)_that; + listMeta_result that = (listMeta_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -45546,7 +57828,7 @@ public int hashCode() { } @Override - public int compareTo(getSegmentId_result other) { + public int compareTo(listMeta_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -45581,7 +57863,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new GetSegmentIdResp(); + this.success = new ListMetaResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -45622,7 +57904,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("getSegmentId_result"); + StringBuilder sb = new StringBuilder("listMeta_result"); sb.append(space); sb.append("("); sb.append(newLine); diff --git a/client/src/main/generated/com/vesoft/nebula/meta/PartInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/PartInfo.java index 9aa1a2a1f..1c70b88ff 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/PartInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/PartInfo.java @@ -275,16 +275,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - TList _list286 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list286.size)); - for (int _i287 = 0; - (_list286.size < 0) ? iprot.peekList() : (_i287 < _list286.size); - ++_i287) + TList _list326 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list326.size)); + for (int _i327 = 0; + (_list326.size < 0) ? iprot.peekList() : (_i327 < _list326.size); + ++_i327) { - com.vesoft.nebula.HostAddr _elem288; - _elem288 = new com.vesoft.nebula.HostAddr(); - _elem288.read(iprot); - this.hosts.add(_elem288); + com.vesoft.nebula.HostAddr _elem328; + _elem328 = new com.vesoft.nebula.HostAddr(); + _elem328.read(iprot); + this.hosts.add(_elem328); } iprot.readListEnd(); } @@ -316,8 +316,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 _iter289 : this.hosts) { - _iter289.write(oprot); + for (com.vesoft.nebula.HostAddr _iter329 : this.hosts) { + _iter329.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/Privilege.java b/client/src/main/generated/com/vesoft/nebula/meta/Privilege.java new file mode 100644 index 000000000..4b3c1fc11 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/Privilege.java @@ -0,0 +1,460 @@ +/** + * 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 Privilege implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("Privilege"); + private static final TField SPACE_FIELD_DESC = new TField("space", TType.I32, (short)1); + private static final TField READ_FIELD_DESC = new TField("read", TType.STRUCT, (short)2); + private static final TField WRITE_FIELD_DESC = new TField("write", TType.STRUCT, (short)3); + + public int space; + public PrivilegeSchema read; + public PrivilegeSchema write; + public static final int SPACE = 1; + public static final int READ = 2; + public static final int WRITE = 3; + + // isset id assignments + private static final int __SPACE_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(SPACE, new FieldMetaData("space", TFieldRequirementType.REQUIRED, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(READ, new FieldMetaData("read", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, PrivilegeSchema.class))); + tmpMetaDataMap.put(WRITE, new FieldMetaData("write", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, PrivilegeSchema.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(Privilege.class, metaDataMap); + } + + public Privilege() { + } + + public Privilege( + int space) { + this(); + this.space = space; + setSpaceIsSet(true); + } + + public Privilege( + int space, + PrivilegeSchema read, + PrivilegeSchema write) { + this(); + this.space = space; + setSpaceIsSet(true); + this.read = read; + this.write = write; + } + + public static class Builder { + private int space; + private PrivilegeSchema read; + private PrivilegeSchema write; + + BitSet __optional_isset = new BitSet(1); + + public Builder() { + } + + public Builder setSpace(final int space) { + this.space = space; + __optional_isset.set(__SPACE_ISSET_ID, true); + return this; + } + + public Builder setRead(final PrivilegeSchema read) { + this.read = read; + return this; + } + + public Builder setWrite(final PrivilegeSchema write) { + this.write = write; + return this; + } + + public Privilege build() { + Privilege result = new Privilege(); + if (__optional_isset.get(__SPACE_ISSET_ID)) { + result.setSpace(this.space); + } + result.setRead(this.read); + result.setWrite(this.write); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public Privilege(Privilege other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space = TBaseHelper.deepCopy(other.space); + if (other.isSetRead()) { + this.read = TBaseHelper.deepCopy(other.read); + } + if (other.isSetWrite()) { + this.write = TBaseHelper.deepCopy(other.write); + } + } + + public Privilege deepCopy() { + return new Privilege(this); + } + + public int getSpace() { + return this.space; + } + + public Privilege setSpace(int space) { + this.space = space; + setSpaceIsSet(true); + return this; + } + + public void unsetSpace() { + __isset_bit_vector.clear(__SPACE_ISSET_ID); + } + + // Returns true if field space is set (has been assigned a value) and false otherwise + public boolean isSetSpace() { + return __isset_bit_vector.get(__SPACE_ISSET_ID); + } + + public void setSpaceIsSet(boolean __value) { + __isset_bit_vector.set(__SPACE_ISSET_ID, __value); + } + + public PrivilegeSchema getRead() { + return this.read; + } + + public Privilege setRead(PrivilegeSchema read) { + this.read = read; + return this; + } + + public void unsetRead() { + this.read = null; + } + + // Returns true if field read is set (has been assigned a value) and false otherwise + public boolean isSetRead() { + return this.read != null; + } + + public void setReadIsSet(boolean __value) { + if (!__value) { + this.read = null; + } + } + + public PrivilegeSchema getWrite() { + return this.write; + } + + public Privilege setWrite(PrivilegeSchema write) { + this.write = write; + return this; + } + + public void unsetWrite() { + this.write = null; + } + + // Returns true if field write is set (has been assigned a value) and false otherwise + public boolean isSetWrite() { + return this.write != null; + } + + public void setWriteIsSet(boolean __value) { + if (!__value) { + this.write = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case SPACE: + if (__value == null) { + unsetSpace(); + } else { + setSpace((Integer)__value); + } + break; + + case READ: + if (__value == null) { + unsetRead(); + } else { + setRead((PrivilegeSchema)__value); + } + break; + + case WRITE: + if (__value == null) { + unsetWrite(); + } else { + setWrite((PrivilegeSchema)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case SPACE: + return new Integer(getSpace()); + + case READ: + return getRead(); + + case WRITE: + return getWrite(); + + 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 Privilege)) + return false; + Privilege that = (Privilege)_that; + + if (!TBaseHelper.equalsNobinary(this.space, that.space)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetRead(), that.isSetRead(), this.read, that.read)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetWrite(), that.isSetWrite(), this.write, that.write)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space, read, write}); + } + + @Override + public int compareTo(Privilege other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSpace()).compareTo(other.isSetSpace()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(space, other.space); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetRead()).compareTo(other.isSetRead()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(read, other.read); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetWrite()).compareTo(other.isSetWrite()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(write, other.write); + if (lastComparison != 0) { + return lastComparison; + } + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case SPACE: + if (__field.type == TType.I32) { + this.space = iprot.readI32(); + setSpaceIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case READ: + if (__field.type == TType.STRUCT) { + this.read = new PrivilegeSchema(); + this.read.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case WRITE: + if (__field.type == TType.STRUCT) { + this.write = new PrivilegeSchema(); + this.write.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 + if (!isSetSpace()) { + throw new TProtocolException("Required field 'space' was not found in serialized data! Struct: " + toString()); + } + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(SPACE_FIELD_DESC); + oprot.writeI32(this.space); + oprot.writeFieldEnd(); + if (this.read != null) { + if (isSetRead()) { + oprot.writeFieldBegin(READ_FIELD_DESC); + this.read.write(oprot); + oprot.writeFieldEnd(); + } + } + if (this.write != null) { + if (isSetWrite()) { + oprot.writeFieldBegin(WRITE_FIELD_DESC); + this.write.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("Privilege"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("space"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getSpace(), indent + 1, prettyPrint)); + first = false; + if (isSetRead()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("read"); + sb.append(space); + sb.append(":").append(space); + if (this.getRead() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getRead(), indent + 1, prettyPrint)); + } + first = false; + } + if (isSetWrite()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("write"); + sb.append(space); + sb.append(":").append(space); + if (this.getWrite() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getWrite(), 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 + // alas, we cannot check 'space' because it's a primitive and you chose the non-beans generator. + } + +} + diff --git a/client/src/main/generated/com/vesoft/nebula/meta/PrivilegeEdge.java b/client/src/main/generated/com/vesoft/nebula/meta/PrivilegeEdge.java new file mode 100644 index 000000000..b2f09bec5 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/PrivilegeEdge.java @@ -0,0 +1,357 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.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 PrivilegeEdge implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("PrivilegeEdge"); + private static final TField EDGE_TYPE_FIELD_DESC = new TField("edge_type", TType.I32, (short)1); + private static final TField EDGE_NAME_FIELD_DESC = new TField("edge_name", TType.STRING, (short)2); + + public int edge_type; + public byte[] edge_name; + public static final int EDGE_TYPE = 1; + public static final int EDGE_NAME = 2; + + // isset id assignments + private static final int __EDGE_TYPE_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(EDGE_TYPE, new FieldMetaData("edge_type", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(EDGE_NAME, new FieldMetaData("edge_name", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(PrivilegeEdge.class, metaDataMap); + } + + public PrivilegeEdge() { + } + + public PrivilegeEdge( + int edge_type, + byte[] edge_name) { + this(); + this.edge_type = edge_type; + setEdge_typeIsSet(true); + this.edge_name = edge_name; + } + + public static class Builder { + private int edge_type; + private byte[] edge_name; + + BitSet __optional_isset = new BitSet(1); + + public Builder() { + } + + public Builder setEdge_type(final int edge_type) { + this.edge_type = edge_type; + __optional_isset.set(__EDGE_TYPE_ISSET_ID, true); + return this; + } + + public Builder setEdge_name(final byte[] edge_name) { + this.edge_name = edge_name; + return this; + } + + public PrivilegeEdge build() { + PrivilegeEdge result = new PrivilegeEdge(); + if (__optional_isset.get(__EDGE_TYPE_ISSET_ID)) { + result.setEdge_type(this.edge_type); + } + result.setEdge_name(this.edge_name); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public PrivilegeEdge(PrivilegeEdge other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.edge_type = TBaseHelper.deepCopy(other.edge_type); + if (other.isSetEdge_name()) { + this.edge_name = TBaseHelper.deepCopy(other.edge_name); + } + } + + public PrivilegeEdge deepCopy() { + return new PrivilegeEdge(this); + } + + public int getEdge_type() { + return this.edge_type; + } + + public PrivilegeEdge setEdge_type(int edge_type) { + this.edge_type = edge_type; + setEdge_typeIsSet(true); + return this; + } + + public void unsetEdge_type() { + __isset_bit_vector.clear(__EDGE_TYPE_ISSET_ID); + } + + // Returns true if field edge_type is set (has been assigned a value) and false otherwise + public boolean isSetEdge_type() { + return __isset_bit_vector.get(__EDGE_TYPE_ISSET_ID); + } + + public void setEdge_typeIsSet(boolean __value) { + __isset_bit_vector.set(__EDGE_TYPE_ISSET_ID, __value); + } + + public byte[] getEdge_name() { + return this.edge_name; + } + + public PrivilegeEdge setEdge_name(byte[] edge_name) { + this.edge_name = edge_name; + return this; + } + + public void unsetEdge_name() { + this.edge_name = null; + } + + // Returns true if field edge_name is set (has been assigned a value) and false otherwise + public boolean isSetEdge_name() { + return this.edge_name != null; + } + + public void setEdge_nameIsSet(boolean __value) { + if (!__value) { + this.edge_name = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case EDGE_TYPE: + if (__value == null) { + unsetEdge_type(); + } else { + setEdge_type((Integer)__value); + } + break; + + case EDGE_NAME: + if (__value == null) { + unsetEdge_name(); + } else { + setEdge_name((byte[])__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case EDGE_TYPE: + return new Integer(getEdge_type()); + + case EDGE_NAME: + return getEdge_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 PrivilegeEdge)) + return false; + PrivilegeEdge that = (PrivilegeEdge)_that; + + if (!TBaseHelper.equalsNobinary(this.edge_type, that.edge_type)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetEdge_name(), that.isSetEdge_name(), this.edge_name, that.edge_name)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {edge_type, edge_name}); + } + + @Override + public int compareTo(PrivilegeEdge other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetEdge_type()).compareTo(other.isSetEdge_type()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(edge_type, other.edge_type); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetEdge_name()).compareTo(other.isSetEdge_name()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(edge_name, other.edge_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 EDGE_TYPE: + if (__field.type == TType.I32) { + this.edge_type = iprot.readI32(); + setEdge_typeIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case EDGE_NAME: + if (__field.type == TType.STRING) { + this.edge_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); + oprot.writeFieldBegin(EDGE_TYPE_FIELD_DESC); + oprot.writeI32(this.edge_type); + oprot.writeFieldEnd(); + if (this.edge_name != null) { + oprot.writeFieldBegin(EDGE_NAME_FIELD_DESC); + oprot.writeBinary(this.edge_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("PrivilegeEdge"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("edge_type"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getEdge_type(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("edge_name"); + sb.append(space); + sb.append(":").append(space); + if (this.getEdge_name() == null) { + sb.append("null"); + } else { + int __edge_name_size = Math.min(this.getEdge_name().length, 128); + for (int i = 0; i < __edge_name_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getEdge_name()[i]).length() > 1 ? Integer.toHexString(this.getEdge_name()[i]).substring(Integer.toHexString(this.getEdge_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getEdge_name()[i]).toUpperCase()); + } + if (this.getEdge_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/PrivilegeSchema.java b/client/src/main/generated/com/vesoft/nebula/meta/PrivilegeSchema.java new file mode 100644 index 000000000..11e5753de --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/PrivilegeSchema.java @@ -0,0 +1,564 @@ +/** + * 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 PrivilegeSchema implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("PrivilegeSchema"); + private static final TField ACCESS_ALL_TAGS_FIELD_DESC = new TField("access_all_tags", TType.BOOL, (short)1); + private static final TField TAGS_FIELD_DESC = new TField("tags", TType.LIST, (short)2); + private static final TField ACCESS_ALL_EDGES_FIELD_DESC = new TField("access_all_edges", TType.BOOL, (short)3); + private static final TField EDGE_TYPES_FIELD_DESC = new TField("edge_types", TType.LIST, (short)4); + + public boolean access_all_tags; + public List tags; + public boolean access_all_edges; + public List edge_types; + public static final int ACCESS_ALL_TAGS = 1; + public static final int TAGS = 2; + public static final int ACCESS_ALL_EDGES = 3; + public static final int EDGE_TYPES = 4; + + // isset id assignments + private static final int __ACCESS_ALL_TAGS_ISSET_ID = 0; + private static final int __ACCESS_ALL_EDGES_ISSET_ID = 1; + private BitSet __isset_bit_vector = new BitSet(2); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(ACCESS_ALL_TAGS, new FieldMetaData("access_all_tags", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); + tmpMetaDataMap.put(TAGS, new FieldMetaData("tags", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, PrivilegeTag.class)))); + tmpMetaDataMap.put(ACCESS_ALL_EDGES, new FieldMetaData("access_all_edges", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); + tmpMetaDataMap.put(EDGE_TYPES, new FieldMetaData("edge_types", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, PrivilegeEdge.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(PrivilegeSchema.class, metaDataMap); + } + + public PrivilegeSchema() { + this.access_all_tags = false; + + this.access_all_edges = false; + + } + + public PrivilegeSchema( + boolean access_all_tags, + List tags, + boolean access_all_edges, + List edge_types) { + this(); + this.access_all_tags = access_all_tags; + setAccess_all_tagsIsSet(true); + this.tags = tags; + this.access_all_edges = access_all_edges; + setAccess_all_edgesIsSet(true); + this.edge_types = edge_types; + } + + public static class Builder { + private boolean access_all_tags; + private List tags; + private boolean access_all_edges; + private List edge_types; + + BitSet __optional_isset = new BitSet(2); + + public Builder() { + } + + public Builder setAccess_all_tags(final boolean access_all_tags) { + this.access_all_tags = access_all_tags; + __optional_isset.set(__ACCESS_ALL_TAGS_ISSET_ID, true); + return this; + } + + public Builder setTags(final List tags) { + this.tags = tags; + return this; + } + + public Builder setAccess_all_edges(final boolean access_all_edges) { + this.access_all_edges = access_all_edges; + __optional_isset.set(__ACCESS_ALL_EDGES_ISSET_ID, true); + return this; + } + + public Builder setEdge_types(final List edge_types) { + this.edge_types = edge_types; + return this; + } + + public PrivilegeSchema build() { + PrivilegeSchema result = new PrivilegeSchema(); + if (__optional_isset.get(__ACCESS_ALL_TAGS_ISSET_ID)) { + result.setAccess_all_tags(this.access_all_tags); + } + result.setTags(this.tags); + if (__optional_isset.get(__ACCESS_ALL_EDGES_ISSET_ID)) { + result.setAccess_all_edges(this.access_all_edges); + } + result.setEdge_types(this.edge_types); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public PrivilegeSchema(PrivilegeSchema other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.access_all_tags = TBaseHelper.deepCopy(other.access_all_tags); + if (other.isSetTags()) { + this.tags = TBaseHelper.deepCopy(other.tags); + } + this.access_all_edges = TBaseHelper.deepCopy(other.access_all_edges); + if (other.isSetEdge_types()) { + this.edge_types = TBaseHelper.deepCopy(other.edge_types); + } + } + + public PrivilegeSchema deepCopy() { + return new PrivilegeSchema(this); + } + + public boolean isAccess_all_tags() { + return this.access_all_tags; + } + + public PrivilegeSchema setAccess_all_tags(boolean access_all_tags) { + this.access_all_tags = access_all_tags; + setAccess_all_tagsIsSet(true); + return this; + } + + public void unsetAccess_all_tags() { + __isset_bit_vector.clear(__ACCESS_ALL_TAGS_ISSET_ID); + } + + // Returns true if field access_all_tags is set (has been assigned a value) and false otherwise + public boolean isSetAccess_all_tags() { + return __isset_bit_vector.get(__ACCESS_ALL_TAGS_ISSET_ID); + } + + public void setAccess_all_tagsIsSet(boolean __value) { + __isset_bit_vector.set(__ACCESS_ALL_TAGS_ISSET_ID, __value); + } + + public List getTags() { + return this.tags; + } + + public PrivilegeSchema setTags(List tags) { + this.tags = tags; + return this; + } + + public void unsetTags() { + this.tags = null; + } + + // Returns true if field tags is set (has been assigned a value) and false otherwise + public boolean isSetTags() { + return this.tags != null; + } + + public void setTagsIsSet(boolean __value) { + if (!__value) { + this.tags = null; + } + } + + public boolean isAccess_all_edges() { + return this.access_all_edges; + } + + public PrivilegeSchema setAccess_all_edges(boolean access_all_edges) { + this.access_all_edges = access_all_edges; + setAccess_all_edgesIsSet(true); + return this; + } + + public void unsetAccess_all_edges() { + __isset_bit_vector.clear(__ACCESS_ALL_EDGES_ISSET_ID); + } + + // Returns true if field access_all_edges is set (has been assigned a value) and false otherwise + public boolean isSetAccess_all_edges() { + return __isset_bit_vector.get(__ACCESS_ALL_EDGES_ISSET_ID); + } + + public void setAccess_all_edgesIsSet(boolean __value) { + __isset_bit_vector.set(__ACCESS_ALL_EDGES_ISSET_ID, __value); + } + + public List getEdge_types() { + return this.edge_types; + } + + public PrivilegeSchema setEdge_types(List edge_types) { + this.edge_types = edge_types; + return this; + } + + public void unsetEdge_types() { + this.edge_types = null; + } + + // Returns true if field edge_types is set (has been assigned a value) and false otherwise + public boolean isSetEdge_types() { + return this.edge_types != null; + } + + public void setEdge_typesIsSet(boolean __value) { + if (!__value) { + this.edge_types = null; + } + } + + @SuppressWarnings("unchecked") + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case ACCESS_ALL_TAGS: + if (__value == null) { + unsetAccess_all_tags(); + } else { + setAccess_all_tags((Boolean)__value); + } + break; + + case TAGS: + if (__value == null) { + unsetTags(); + } else { + setTags((List)__value); + } + break; + + case ACCESS_ALL_EDGES: + if (__value == null) { + unsetAccess_all_edges(); + } else { + setAccess_all_edges((Boolean)__value); + } + break; + + case EDGE_TYPES: + if (__value == null) { + unsetEdge_types(); + } else { + setEdge_types((List)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case ACCESS_ALL_TAGS: + return new Boolean(isAccess_all_tags()); + + case TAGS: + return getTags(); + + case ACCESS_ALL_EDGES: + return new Boolean(isAccess_all_edges()); + + case EDGE_TYPES: + return getEdge_types(); + + 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 PrivilegeSchema)) + return false; + PrivilegeSchema that = (PrivilegeSchema)_that; + + if (!TBaseHelper.equalsNobinary(this.access_all_tags, that.access_all_tags)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetTags(), that.isSetTags(), this.tags, that.tags)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.access_all_edges, that.access_all_edges)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetEdge_types(), that.isSetEdge_types(), this.edge_types, that.edge_types)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {access_all_tags, tags, access_all_edges, edge_types}); + } + + @Override + public int compareTo(PrivilegeSchema other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetAccess_all_tags()).compareTo(other.isSetAccess_all_tags()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(access_all_tags, other.access_all_tags); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetTags()).compareTo(other.isSetTags()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(tags, other.tags); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetAccess_all_edges()).compareTo(other.isSetAccess_all_edges()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(access_all_edges, other.access_all_edges); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetEdge_types()).compareTo(other.isSetEdge_types()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(edge_types, other.edge_types); + 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 ACCESS_ALL_TAGS: + if (__field.type == TType.BOOL) { + this.access_all_tags = iprot.readBool(); + setAccess_all_tagsIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case TAGS: + if (__field.type == TType.LIST) { + { + TList _list441 = iprot.readListBegin(); + this.tags = new ArrayList(Math.max(0, _list441.size)); + for (int _i442 = 0; + (_list441.size < 0) ? iprot.peekList() : (_i442 < _list441.size); + ++_i442) + { + PrivilegeTag _elem443; + _elem443 = new PrivilegeTag(); + _elem443.read(iprot); + this.tags.add(_elem443); + } + iprot.readListEnd(); + } + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case ACCESS_ALL_EDGES: + if (__field.type == TType.BOOL) { + this.access_all_edges = iprot.readBool(); + setAccess_all_edgesIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case EDGE_TYPES: + if (__field.type == TType.LIST) { + { + TList _list444 = iprot.readListBegin(); + this.edge_types = new ArrayList(Math.max(0, _list444.size)); + for (int _i445 = 0; + (_list444.size < 0) ? iprot.peekList() : (_i445 < _list444.size); + ++_i445) + { + PrivilegeEdge _elem446; + _elem446 = new PrivilegeEdge(); + _elem446.read(iprot); + this.edge_types.add(_elem446); + } + 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); + oprot.writeFieldBegin(ACCESS_ALL_TAGS_FIELD_DESC); + oprot.writeBool(this.access_all_tags); + oprot.writeFieldEnd(); + if (this.tags != null) { + oprot.writeFieldBegin(TAGS_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.STRUCT, this.tags.size())); + for (PrivilegeTag _iter447 : this.tags) { + _iter447.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(ACCESS_ALL_EDGES_FIELD_DESC); + oprot.writeBool(this.access_all_edges); + oprot.writeFieldEnd(); + if (this.edge_types != null) { + oprot.writeFieldBegin(EDGE_TYPES_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.STRUCT, this.edge_types.size())); + for (PrivilegeEdge _iter448 : this.edge_types) { + _iter448.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("PrivilegeSchema"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("access_all_tags"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isAccess_all_tags(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("tags"); + sb.append(space); + sb.append(":").append(space); + if (this.getTags() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getTags(), indent + 1, prettyPrint)); + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("access_all_edges"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isAccess_all_edges(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("edge_types"); + sb.append(space); + sb.append(":").append(space); + if (this.getEdge_types() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getEdge_types(), 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/PrivilegeTag.java b/client/src/main/generated/com/vesoft/nebula/meta/PrivilegeTag.java new file mode 100644 index 000000000..6c567e330 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/PrivilegeTag.java @@ -0,0 +1,357 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.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 PrivilegeTag implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("PrivilegeTag"); + private static final TField TAG_ID_FIELD_DESC = new TField("tag_id", TType.I32, (short)1); + private static final TField TAG_NAME_FIELD_DESC = new TField("tag_name", TType.STRING, (short)2); + + public int tag_id; + public byte[] tag_name; + public static final int TAG_ID = 1; + public static final int TAG_NAME = 2; + + // isset id assignments + private static final int __TAG_ID_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); + + 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(TAG_NAME, new FieldMetaData("tag_name", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(PrivilegeTag.class, metaDataMap); + } + + public PrivilegeTag() { + } + + public PrivilegeTag( + int tag_id, + byte[] tag_name) { + this(); + this.tag_id = tag_id; + setTag_idIsSet(true); + this.tag_name = tag_name; + } + + public static class Builder { + private int tag_id; + private byte[] tag_name; + + BitSet __optional_isset = new BitSet(1); + + public Builder() { + } + + public Builder setTag_id(final int tag_id) { + this.tag_id = tag_id; + __optional_isset.set(__TAG_ID_ISSET_ID, true); + return this; + } + + public Builder setTag_name(final byte[] tag_name) { + this.tag_name = tag_name; + return this; + } + + public PrivilegeTag build() { + PrivilegeTag result = new PrivilegeTag(); + if (__optional_isset.get(__TAG_ID_ISSET_ID)) { + result.setTag_id(this.tag_id); + } + result.setTag_name(this.tag_name); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public PrivilegeTag(PrivilegeTag other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.tag_id = TBaseHelper.deepCopy(other.tag_id); + if (other.isSetTag_name()) { + this.tag_name = TBaseHelper.deepCopy(other.tag_name); + } + } + + public PrivilegeTag deepCopy() { + return new PrivilegeTag(this); + } + + public int getTag_id() { + return this.tag_id; + } + + public PrivilegeTag setTag_id(int tag_id) { + this.tag_id = tag_id; + setTag_idIsSet(true); + return this; + } + + public void unsetTag_id() { + __isset_bit_vector.clear(__TAG_ID_ISSET_ID); + } + + // Returns true if field tag_id is set (has been assigned a value) and false otherwise + public boolean isSetTag_id() { + return __isset_bit_vector.get(__TAG_ID_ISSET_ID); + } + + public void setTag_idIsSet(boolean __value) { + __isset_bit_vector.set(__TAG_ID_ISSET_ID, __value); + } + + public byte[] getTag_name() { + return this.tag_name; + } + + public PrivilegeTag setTag_name(byte[] tag_name) { + this.tag_name = tag_name; + return this; + } + + public void unsetTag_name() { + this.tag_name = null; + } + + // Returns true if field tag_name is set (has been assigned a value) and false otherwise + public boolean isSetTag_name() { + return this.tag_name != null; + } + + public void setTag_nameIsSet(boolean __value) { + if (!__value) { + this.tag_name = null; + } + } + + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case TAG_ID: + if (__value == null) { + unsetTag_id(); + } else { + setTag_id((Integer)__value); + } + break; + + case TAG_NAME: + if (__value == null) { + unsetTag_name(); + } else { + setTag_name((byte[])__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case TAG_ID: + return new Integer(getTag_id()); + + case TAG_NAME: + return getTag_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 PrivilegeTag)) + return false; + PrivilegeTag that = (PrivilegeTag)_that; + + if (!TBaseHelper.equalsNobinary(this.tag_id, that.tag_id)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetTag_name(), that.isSetTag_name(), this.tag_name, that.tag_name)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {tag_id, tag_name}); + } + + @Override + public int compareTo(PrivilegeTag other) { + if (other == null) { + // See java.lang.Comparable docs + throw new NullPointerException(); + } + + if (other == this) { + return 0; + } + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTag_id()).compareTo(other.isSetTag_id()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(tag_id, other.tag_id); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetTag_name()).compareTo(other.isSetTag_name()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(tag_name, other.tag_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 TAG_ID: + if (__field.type == TType.I32) { + this.tag_id = iprot.readI32(); + setTag_idIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case TAG_NAME: + if (__field.type == TType.STRING) { + this.tag_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); + oprot.writeFieldBegin(TAG_ID_FIELD_DESC); + oprot.writeI32(this.tag_id); + oprot.writeFieldEnd(); + if (this.tag_name != null) { + oprot.writeFieldBegin(TAG_NAME_FIELD_DESC); + oprot.writeBinary(this.tag_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("PrivilegeTag"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("tag_id"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getTag_id(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("tag_name"); + sb.append(space); + sb.append(":").append(space); + if (this.getTag_name() == null) { + sb.append("null"); + } else { + int __tag_name_size = Math.min(this.getTag_name().length, 128); + for (int i = 0; i < __tag_name_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getTag_name()[i]).length() > 1 ? Integer.toHexString(this.getTag_name()[i]).substring(Integer.toHexString(this.getTag_name()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getTag_name()[i]).toUpperCase()); + } + if (this.getTag_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/RegConfigReq.java b/client/src/main/generated/com/vesoft/nebula/meta/RegConfigReq.java index 6cd9988c6..bdb806c98 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 _list192 = iprot.readListBegin(); - this.items = new ArrayList(Math.max(0, _list192.size)); - for (int _i193 = 0; - (_list192.size < 0) ? iprot.peekList() : (_i193 < _list192.size); - ++_i193) + TList _list209 = iprot.readListBegin(); + this.items = new ArrayList(Math.max(0, _list209.size)); + for (int _i210 = 0; + (_list209.size < 0) ? iprot.peekList() : (_i210 < _list209.size); + ++_i210) { - ConfigItem _elem194; - _elem194 = new ConfigItem(); - _elem194.read(iprot); - this.items.add(_elem194); + ConfigItem _elem211; + _elem211 = new ConfigItem(); + _elem211.read(iprot); + this.items.add(_elem211); } 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 _iter195 : this.items) { - _iter195.write(oprot); + for (ConfigItem _iter212 : this.items) { + _iter212.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/RemoveDrainerReq.java b/client/src/main/generated/com/vesoft/nebula/meta/RemoveDrainerReq.java new file mode 100644 index 000000000..2948ea830 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/RemoveDrainerReq.java @@ -0,0 +1,267 @@ +/** + * 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 RemoveDrainerReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("RemoveDrainerReq"); + 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(RemoveDrainerReq.class, metaDataMap); + } + + public RemoveDrainerReq() { + } + + public RemoveDrainerReq( + 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 RemoveDrainerReq build() { + RemoveDrainerReq result = new RemoveDrainerReq(); + 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 RemoveDrainerReq(RemoveDrainerReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + } + + public RemoveDrainerReq deepCopy() { + return new RemoveDrainerReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public RemoveDrainerReq 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 RemoveDrainerReq)) + return false; + RemoveDrainerReq that = (RemoveDrainerReq)_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(RemoveDrainerReq 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("RemoveDrainerReq"); + 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/RemoveSessionReq.java b/client/src/main/generated/com/vesoft/nebula/meta/RemoveSessionReq.java index 40a708c57..160d1872e 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/RemoveSessionReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/RemoveSessionReq.java @@ -198,15 +198,15 @@ public void read(TProtocol iprot) throws TException { case SESSION_IDS: if (__field.type == TType.LIST) { { - TList _list353 = iprot.readListBegin(); - this.session_ids = new ArrayList(Math.max(0, _list353.size)); - for (int _i354 = 0; - (_list353.size < 0) ? iprot.peekList() : (_i354 < _list353.size); - ++_i354) + TList _list406 = iprot.readListBegin(); + this.session_ids = new ArrayList(Math.max(0, _list406.size)); + for (int _i407 = 0; + (_list406.size < 0) ? iprot.peekList() : (_i407 < _list406.size); + ++_i407) { - long _elem355; - _elem355 = iprot.readI64(); - this.session_ids.add(_elem355); + long _elem408; + _elem408 = iprot.readI64(); + this.session_ids.add(_elem408); } iprot.readListEnd(); } @@ -235,8 +235,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SESSION_IDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.I64, this.session_ids.size())); - for (long _iter356 : this.session_ids) { - oprot.writeI64(_iter356); + for (long _iter409 : this.session_ids) { + oprot.writeI64(_iter409); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/RemoveSessionResp.java b/client/src/main/generated/com/vesoft/nebula/meta/RemoveSessionResp.java index 7b99b4799..ad392ee07 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/RemoveSessionResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/RemoveSessionResp.java @@ -349,15 +349,15 @@ public void read(TProtocol iprot) throws TException { case REMOVED_SESSION_IDS: if (__field.type == TType.LIST) { { - TList _list357 = iprot.readListBegin(); - this.removed_session_ids = new ArrayList(Math.max(0, _list357.size)); - for (int _i358 = 0; - (_list357.size < 0) ? iprot.peekList() : (_i358 < _list357.size); - ++_i358) + TList _list410 = iprot.readListBegin(); + this.removed_session_ids = new ArrayList(Math.max(0, _list410.size)); + for (int _i411 = 0; + (_list410.size < 0) ? iprot.peekList() : (_i411 < _list410.size); + ++_i411) { - long _elem359; - _elem359 = iprot.readI64(); - this.removed_session_ids.add(_elem359); + long _elem412; + _elem412 = iprot.readI64(); + this.removed_session_ids.add(_elem412); } iprot.readListEnd(); } @@ -396,8 +396,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(REMOVED_SESSION_IDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.I64, this.removed_session_ids.size())); - for (long _iter360 : this.removed_session_ids) { - oprot.writeI64(_iter360); + for (long _iter413 : this.removed_session_ids) { + oprot.writeI64(_iter413); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/RestartSyncReq.java b/client/src/main/generated/com/vesoft/nebula/meta/RestartSyncReq.java new file mode 100644 index 000000000..828d42aa4 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/RestartSyncReq.java @@ -0,0 +1,267 @@ +/** + * 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 RestartSyncReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("RestartSyncReq"); + 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(RestartSyncReq.class, metaDataMap); + } + + public RestartSyncReq() { + } + + public RestartSyncReq( + 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 RestartSyncReq build() { + RestartSyncReq result = new RestartSyncReq(); + 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 RestartSyncReq(RestartSyncReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + } + + public RestartSyncReq deepCopy() { + return new RestartSyncReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public RestartSyncReq 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 RestartSyncReq)) + return false; + RestartSyncReq that = (RestartSyncReq)_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(RestartSyncReq 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("RestartSyncReq"); + 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/RestoreMetaReq.java b/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaReq.java index 1a46bf410..60ee8fe96 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 _list278 = iprot.readListBegin(); - this.files = new ArrayList(Math.max(0, _list278.size)); - for (int _i279 = 0; - (_list278.size < 0) ? iprot.peekList() : (_i279 < _list278.size); - ++_i279) + TList _list318 = iprot.readListBegin(); + this.files = new ArrayList(Math.max(0, _list318.size)); + for (int _i319 = 0; + (_list318.size < 0) ? iprot.peekList() : (_i319 < _list318.size); + ++_i319) { - byte[] _elem280; - _elem280 = iprot.readBinary(); - this.files.add(_elem280); + byte[] _elem320; + _elem320 = iprot.readBinary(); + this.files.add(_elem320); } iprot.readListEnd(); } @@ -280,16 +280,16 @@ public void read(TProtocol iprot) throws TException { case HOSTS: if (__field.type == TType.LIST) { { - TList _list281 = iprot.readListBegin(); - this.hosts = new ArrayList(Math.max(0, _list281.size)); - for (int _i282 = 0; - (_list281.size < 0) ? iprot.peekList() : (_i282 < _list281.size); - ++_i282) + TList _list321 = iprot.readListBegin(); + this.hosts = new ArrayList(Math.max(0, _list321.size)); + for (int _i322 = 0; + (_list321.size < 0) ? iprot.peekList() : (_i322 < _list321.size); + ++_i322) { - HostPair _elem283; - _elem283 = new HostPair(); - _elem283.read(iprot); - this.hosts.add(_elem283); + HostPair _elem323; + _elem323 = new HostPair(); + _elem323.read(iprot); + this.hosts.add(_elem323); } 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[] _iter284 : this.files) { - oprot.writeBinary(_iter284); + for (byte[] _iter324 : this.files) { + oprot.writeBinary(_iter324); } 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 _iter285 : this.hosts) { - _iter285.write(oprot); + for (HostPair _iter325 : this.hosts) { + _iter325.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaResp.java b/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaResp.java index d8a14212a..1c58b8c8b 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/RestoreMetaResp.java @@ -351,30 +351,30 @@ public void read(TProtocol iprot) throws TException { case PART_HOSTS: if (__field.type == TType.MAP) { { - TMap _map290 = iprot.readMapBegin(); - this.part_hosts = new HashMap>(Math.max(0, 2*_map290.size)); - for (int _i291 = 0; - (_map290.size < 0) ? iprot.peekMap() : (_i291 < _map290.size); - ++_i291) + TMap _map330 = iprot.readMapBegin(); + this.part_hosts = new HashMap>(Math.max(0, 2*_map330.size)); + for (int _i331 = 0; + (_map330.size < 0) ? iprot.peekMap() : (_i331 < _map330.size); + ++_i331) { - int _key292; - List _val293; - _key292 = iprot.readI32(); + int _key332; + List _val333; + _key332 = iprot.readI32(); { - TList _list294 = iprot.readListBegin(); - _val293 = new ArrayList(Math.max(0, _list294.size)); - for (int _i295 = 0; - (_list294.size < 0) ? iprot.peekList() : (_i295 < _list294.size); - ++_i295) + TList _list334 = iprot.readListBegin(); + _val333 = new ArrayList(Math.max(0, _list334.size)); + for (int _i335 = 0; + (_list334.size < 0) ? iprot.peekList() : (_i335 < _list334.size); + ++_i335) { - PartInfo _elem296; - _elem296 = new PartInfo(); - _elem296.read(iprot); - _val293.add(_elem296); + PartInfo _elem336; + _elem336 = new PartInfo(); + _elem336.read(iprot); + _val333.add(_elem336); } iprot.readListEnd(); } - this.part_hosts.put(_key292, _val293); + this.part_hosts.put(_key332, _val333); } iprot.readMapEnd(); } @@ -413,12 +413,12 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PART_HOSTS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.part_hosts.size())); - for (Map.Entry> _iter297 : this.part_hosts.entrySet()) { - oprot.writeI32(_iter297.getKey()); + for (Map.Entry> _iter337 : this.part_hosts.entrySet()) { + oprot.writeI32(_iter337.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter297.getValue().size())); - for (PartInfo _iter298 : _iter297.getValue()) { - _iter298.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, _iter337.getValue().size())); + for (PartInfo _iter338 : _iter337.getValue()) { + _iter338.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/RoleType.java b/client/src/main/generated/com/vesoft/nebula/meta/RoleType.java index ed41aaa43..83256e729 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/RoleType.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/RoleType.java @@ -17,7 +17,8 @@ public enum RoleType implements com.facebook.thrift.TEnum { ADMIN(2), DBA(3), USER(4), - GUEST(5); + GUEST(5), + BASIC(6); private final int value; @@ -48,6 +49,8 @@ public static RoleType findByValue(int value) { return USER; case 5: return GUEST; + case 6: + return BASIC; default: return null; } 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 93849285e..9516e24b0 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 _map321 = iprot.readMapBegin(); - this.configs = new HashMap(Math.max(0, 2*_map321.size)); - for (int _i322 = 0; - (_map321.size < 0) ? iprot.peekMap() : (_i322 < _map321.size); - ++_i322) + TMap _map374 = iprot.readMapBegin(); + this.configs = new HashMap(Math.max(0, 2*_map374.size)); + for (int _i375 = 0; + (_map374.size < 0) ? iprot.peekMap() : (_i375 < _map374.size); + ++_i375) { - byte[] _key323; - com.vesoft.nebula.Value _val324; - _key323 = iprot.readBinary(); - _val324 = new com.vesoft.nebula.Value(); - _val324.read(iprot); - this.configs.put(_key323, _val324); + byte[] _key376; + com.vesoft.nebula.Value _val377; + _key376 = iprot.readBinary(); + _val377 = new com.vesoft.nebula.Value(); + _val377.read(iprot); + this.configs.put(_key376, _val377); } iprot.readMapEnd(); } @@ -760,18 +760,18 @@ public void read(TProtocol iprot) throws TException { case QUERIES: if (__field.type == TType.MAP) { { - TMap _map325 = iprot.readMapBegin(); - this.queries = new HashMap(Math.max(0, 2*_map325.size)); - for (int _i326 = 0; - (_map325.size < 0) ? iprot.peekMap() : (_i326 < _map325.size); - ++_i326) + TMap _map378 = iprot.readMapBegin(); + this.queries = new HashMap(Math.max(0, 2*_map378.size)); + for (int _i379 = 0; + (_map378.size < 0) ? iprot.peekMap() : (_i379 < _map378.size); + ++_i379) { - long _key327; - QueryDesc _val328; - _key327 = iprot.readI64(); - _val328 = new QueryDesc(); - _val328.read(iprot); - this.queries.put(_key327, _val328); + long _key380; + QueryDesc _val381; + _key380 = iprot.readI64(); + _val381 = new QueryDesc(); + _val381.read(iprot); + this.queries.put(_key380, _val381); } 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 _iter329 : this.configs.entrySet()) { - oprot.writeBinary(_iter329.getKey()); - _iter329.getValue().write(oprot); + for (Map.Entry _iter382 : this.configs.entrySet()) { + oprot.writeBinary(_iter382.getKey()); + _iter382.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 _iter330 : this.queries.entrySet()) { - oprot.writeI64(_iter330.getKey()); - _iter330.getValue().write(oprot); + for (Map.Entry _iter383 : this.queries.entrySet()) { + oprot.writeI64(_iter383.getKey()); + _iter383.getValue().write(oprot); } oprot.writeMapEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/SetVariableReq.java b/client/src/main/generated/com/vesoft/nebula/meta/SetVariableReq.java new file mode 100644 index 000000000..3a930dfed --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/SetVariableReq.java @@ -0,0 +1,322 @@ +/** + * 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 SetVariableReq implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("SetVariableReq"); + private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); + private static final TField ITEM_FIELD_DESC = new TField("item", TType.STRUCT, (short)2); + + public int space_id; + public VariableItem item; + public static final int SPACE_ID = 1; + public static final int ITEM = 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(ITEM, new FieldMetaData("item", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, VariableItem.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(SetVariableReq.class, metaDataMap); + } + + public SetVariableReq() { + } + + public SetVariableReq( + int space_id, + VariableItem item) { + this(); + this.space_id = space_id; + setSpace_idIsSet(true); + this.item = item; + } + + public static class Builder { + private int space_id; + private VariableItem item; + + 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 Builder setItem(final VariableItem item) { + this.item = item; + return this; + } + + public SetVariableReq build() { + SetVariableReq result = new SetVariableReq(); + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setItem(this.item); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public SetVariableReq(SetVariableReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetItem()) { + this.item = TBaseHelper.deepCopy(other.item); + } + } + + public SetVariableReq deepCopy() { + return new SetVariableReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public SetVariableReq 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 VariableItem getItem() { + return this.item; + } + + public SetVariableReq setItem(VariableItem item) { + this.item = item; + return this; + } + + public void unsetItem() { + this.item = null; + } + + // Returns true if field item is set (has been assigned a value) and false otherwise + public boolean isSetItem() { + return this.item != null; + } + + public void setItemIsSet(boolean __value) { + if (!__value) { + this.item = 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 ITEM: + if (__value == null) { + unsetItem(); + } else { + setItem((VariableItem)__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 ITEM: + return getItem(); + + 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 SetVariableReq)) + return false; + SetVariableReq that = (SetVariableReq)_that; + + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetItem(), that.isSetItem(), this.item, that.item)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space_id, item}); + } + + 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 ITEM: + if (__field.type == TType.STRUCT) { + this.item = new VariableItem(); + this.item.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(SPACE_ID_FIELD_DESC); + oprot.writeI32(this.space_id); + oprot.writeFieldEnd(); + if (this.item != null) { + oprot.writeFieldBegin(ITEM_FIELD_DESC); + this.item.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("SetVariableReq"); + 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("item"); + sb.append(space); + sb.append(":").append(space); + if (this.getItem() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getItem(), 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/SignInServiceReq.java b/client/src/main/generated/com/vesoft/nebula/meta/SignInServiceReq.java index 5744a7657..0da39abeb 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/SignInServiceReq.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/SignInServiceReq.java @@ -279,16 +279,16 @@ public void read(TProtocol iprot) throws TException { case CLIENTS: if (__field.type == TType.LIST) { { - TList _list299 = iprot.readListBegin(); - this.clients = new ArrayList(Math.max(0, _list299.size)); - for (int _i300 = 0; - (_list299.size < 0) ? iprot.peekList() : (_i300 < _list299.size); - ++_i300) + TList _list339 = iprot.readListBegin(); + this.clients = new ArrayList(Math.max(0, _list339.size)); + for (int _i340 = 0; + (_list339.size < 0) ? iprot.peekList() : (_i340 < _list339.size); + ++_i340) { - ServiceClient _elem301; - _elem301 = new ServiceClient(); - _elem301.read(iprot); - this.clients.add(_elem301); + ServiceClient _elem341; + _elem341 = new ServiceClient(); + _elem341.read(iprot); + this.clients.add(_elem341); } 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 (ServiceClient _iter302 : this.clients) { - _iter302.write(oprot); + for (ServiceClient _iter342 : this.clients) { + _iter342.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/SignInSpaceServiceReq.java b/client/src/main/generated/com/vesoft/nebula/meta/SignInSpaceServiceReq.java new file mode 100644 index 000000000..a4cc0d845 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/SignInSpaceServiceReq.java @@ -0,0 +1,478 @@ +/** + * 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 SignInSpaceServiceReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("SignInSpaceServiceReq"); + private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); + private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)2); + private static final TField CLIENTS_FIELD_DESC = new TField("clients", TType.LIST, (short)3); + + public int space_id; + /** + * + * @see ExternalSpaceServiceType + */ + public ExternalSpaceServiceType type; + public List clients; + public static final int SPACE_ID = 1; + public static final int TYPE = 2; + public static final int CLIENTS = 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(SPACE_ID, new FieldMetaData("space_id", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(CLIENTS, new FieldMetaData("clients", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, ServiceClient.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(SignInSpaceServiceReq.class, metaDataMap); + } + + public SignInSpaceServiceReq() { + } + + public SignInSpaceServiceReq( + int space_id, + ExternalSpaceServiceType type, + List clients) { + this(); + this.space_id = space_id; + setSpace_idIsSet(true); + this.type = type; + this.clients = clients; + } + + public static class Builder { + private int space_id; + private ExternalSpaceServiceType type; + private List clients; + + 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 Builder setType(final ExternalSpaceServiceType type) { + this.type = type; + return this; + } + + public Builder setClients(final List clients) { + this.clients = clients; + return this; + } + + public SignInSpaceServiceReq build() { + SignInSpaceServiceReq result = new SignInSpaceServiceReq(); + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setType(this.type); + result.setClients(this.clients); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public SignInSpaceServiceReq(SignInSpaceServiceReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetType()) { + this.type = TBaseHelper.deepCopy(other.type); + } + if (other.isSetClients()) { + this.clients = TBaseHelper.deepCopy(other.clients); + } + } + + public SignInSpaceServiceReq deepCopy() { + return new SignInSpaceServiceReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public SignInSpaceServiceReq 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); + } + + /** + * + * @see ExternalSpaceServiceType + */ + public ExternalSpaceServiceType getType() { + return this.type; + } + + /** + * + * @see ExternalSpaceServiceType + */ + public SignInSpaceServiceReq setType(ExternalSpaceServiceType type) { + this.type = type; + return this; + } + + public void unsetType() { + this.type = null; + } + + // Returns true if field type is set (has been assigned a value) and false otherwise + public boolean isSetType() { + return this.type != null; + } + + public void setTypeIsSet(boolean __value) { + if (!__value) { + this.type = null; + } + } + + public List getClients() { + return this.clients; + } + + public SignInSpaceServiceReq setClients(List clients) { + this.clients = clients; + return this; + } + + public void unsetClients() { + this.clients = null; + } + + // Returns true if field clients is set (has been assigned a value) and false otherwise + public boolean isSetClients() { + return this.clients != null; + } + + public void setClientsIsSet(boolean __value) { + if (!__value) { + this.clients = null; + } + } + + @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 TYPE: + if (__value == null) { + unsetType(); + } else { + setType((ExternalSpaceServiceType)__value); + } + break; + + case CLIENTS: + if (__value == null) { + unsetClients(); + } else { + setClients((List)__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 TYPE: + return getType(); + + case CLIENTS: + return getClients(); + + 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 SignInSpaceServiceReq)) + return false; + SignInSpaceServiceReq that = (SignInSpaceServiceReq)_that; + + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetType(), that.isSetType(), this.type, that.type)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetClients(), that.isSetClients(), this.clients, that.clients)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space_id, type, clients}); + } + + @Override + public int compareTo(SignInSpaceServiceReq 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(isSetType()).compareTo(other.isSetType()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(type, other.type); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetClients()).compareTo(other.isSetClients()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(clients, other.clients); + 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 TYPE: + if (__field.type == TType.I32) { + this.type = ExternalSpaceServiceType.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case CLIENTS: + if (__field.type == TType.LIST) { + { + TList _list352 = iprot.readListBegin(); + this.clients = new ArrayList(Math.max(0, _list352.size)); + for (int _i353 = 0; + (_list352.size < 0) ? iprot.peekList() : (_i353 < _list352.size); + ++_i353) + { + ServiceClient _elem354; + _elem354 = new ServiceClient(); + _elem354.read(iprot); + this.clients.add(_elem354); + } + 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); + oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); + oprot.writeI32(this.space_id); + oprot.writeFieldEnd(); + if (this.type != null) { + oprot.writeFieldBegin(TYPE_FIELD_DESC); + oprot.writeI32(this.type == null ? 0 : this.type.getValue()); + oprot.writeFieldEnd(); + } + if (this.clients != null) { + oprot.writeFieldBegin(CLIENTS_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.STRUCT, this.clients.size())); + for (ServiceClient _iter355 : this.clients) { + _iter355.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("SignInSpaceServiceReq"); + 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("type"); + sb.append(space); + sb.append(":").append(space); + if (this.getType() == null) { + sb.append("null"); + } else { + String type_name = this.getType() == null ? "null" : this.getType().name(); + if (type_name != null) { + sb.append(type_name); + sb.append(" ("); + } + sb.append(this.getType()); + if (type_name != null) { + sb.append(")"); + } + } + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("clients"); + sb.append(space); + sb.append(":").append(space); + if (this.getClients() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getClients(), 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/SignOutSpaceServiceReq.java b/client/src/main/generated/com/vesoft/nebula/meta/SignOutSpaceServiceReq.java new file mode 100644 index 000000000..b2b5ac54f --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/SignOutSpaceServiceReq.java @@ -0,0 +1,372 @@ +/** + * 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 SignOutSpaceServiceReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("SignOutSpaceServiceReq"); + private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)1); + private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)2); + + public int space_id; + /** + * + * @see ExternalSpaceServiceType + */ + public ExternalSpaceServiceType type; + public static final int SPACE_ID = 1; + public static final int TYPE = 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(TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(SignOutSpaceServiceReq.class, metaDataMap); + } + + public SignOutSpaceServiceReq() { + } + + public SignOutSpaceServiceReq( + int space_id, + ExternalSpaceServiceType type) { + this(); + this.space_id = space_id; + setSpace_idIsSet(true); + this.type = type; + } + + public static class Builder { + private int space_id; + private ExternalSpaceServiceType type; + + 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 Builder setType(final ExternalSpaceServiceType type) { + this.type = type; + return this; + } + + public SignOutSpaceServiceReq build() { + SignOutSpaceServiceReq result = new SignOutSpaceServiceReq(); + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setType(this.type); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public SignOutSpaceServiceReq(SignOutSpaceServiceReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetType()) { + this.type = TBaseHelper.deepCopy(other.type); + } + } + + public SignOutSpaceServiceReq deepCopy() { + return new SignOutSpaceServiceReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public SignOutSpaceServiceReq 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); + } + + /** + * + * @see ExternalSpaceServiceType + */ + public ExternalSpaceServiceType getType() { + return this.type; + } + + /** + * + * @see ExternalSpaceServiceType + */ + public SignOutSpaceServiceReq setType(ExternalSpaceServiceType type) { + this.type = type; + return this; + } + + public void unsetType() { + this.type = null; + } + + // Returns true if field type is set (has been assigned a value) and false otherwise + public boolean isSetType() { + return this.type != null; + } + + public void setTypeIsSet(boolean __value) { + if (!__value) { + this.type = 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 TYPE: + if (__value == null) { + unsetType(); + } else { + setType((ExternalSpaceServiceType)__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 TYPE: + return getType(); + + 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 SignOutSpaceServiceReq)) + return false; + SignOutSpaceServiceReq that = (SignOutSpaceServiceReq)_that; + + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetType(), that.isSetType(), this.type, that.type)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space_id, type}); + } + + @Override + public int compareTo(SignOutSpaceServiceReq 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(isSetType()).compareTo(other.isSetType()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(type, other.type); + 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 TYPE: + if (__field.type == TType.I32) { + this.type = ExternalSpaceServiceType.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); + oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); + oprot.writeI32(this.space_id); + oprot.writeFieldEnd(); + if (this.type != null) { + oprot.writeFieldBegin(TYPE_FIELD_DESC); + oprot.writeI32(this.type == null ? 0 : this.type.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("SignOutSpaceServiceReq"); + 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("type"); + sb.append(space); + sb.append(":").append(space); + if (this.getType() == null) { + sb.append("null"); + } else { + String type_name = this.getType() == null ? "null" : this.getType().name(); + if (type_name != null) { + sb.append(type_name); + sb.append(" ("); + } + sb.append(this.getType()); + if (type_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/SpaceBackupInfo.java b/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java index 84a34a564..269c1ef55 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/SpaceBackupInfo.java @@ -268,16 +268,16 @@ public void read(TProtocol iprot) throws TException { case HOST_BACKUPS: if (__field.type == TType.LIST) { { - TList _list257 = iprot.readListBegin(); - this.host_backups = new ArrayList(Math.max(0, _list257.size)); - for (int _i258 = 0; - (_list257.size < 0) ? iprot.peekList() : (_i258 < _list257.size); - ++_i258) + TList _list297 = iprot.readListBegin(); + this.host_backups = new ArrayList(Math.max(0, _list297.size)); + for (int _i298 = 0; + (_list297.size < 0) ? iprot.peekList() : (_i298 < _list297.size); + ++_i298) { - HostBackupInfo _elem259; - _elem259 = new HostBackupInfo(); - _elem259.read(iprot); - this.host_backups.add(_elem259); + HostBackupInfo _elem299; + _elem299 = new HostBackupInfo(); + _elem299.read(iprot); + this.host_backups.add(_elem299); } iprot.readListEnd(); } @@ -311,8 +311,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(HOST_BACKUPS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.host_backups.size())); - for (HostBackupInfo _iter260 : this.host_backups) { - _iter260.write(oprot); + for (HostBackupInfo _iter300 : this.host_backups) { + _iter300.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/StopSyncReq.java b/client/src/main/generated/com/vesoft/nebula/meta/StopSyncReq.java new file mode 100644 index 000000000..0dc9787ec --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/StopSyncReq.java @@ -0,0 +1,267 @@ +/** + * 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 StopSyncReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("StopSyncReq"); + 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(StopSyncReq.class, metaDataMap); + } + + public StopSyncReq() { + } + + public StopSyncReq( + 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 StopSyncReq build() { + StopSyncReq result = new StopSyncReq(); + 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 StopSyncReq(StopSyncReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + } + + public StopSyncReq deepCopy() { + return new StopSyncReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public StopSyncReq 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 StopSyncReq)) + return false; + StopSyncReq that = (StopSyncReq)_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(StopSyncReq 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("StopSyncReq"); + 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/SyncDataReq.java b/client/src/main/generated/com/vesoft/nebula/meta/SyncDataReq.java new file mode 100644 index 000000000..df481d701 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/SyncDataReq.java @@ -0,0 +1,454 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.meta; + +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import java.util.Collections; +import java.util.BitSet; +import java.util.Arrays; +import com.facebook.thrift.*; +import com.facebook.thrift.annotations.*; +import com.facebook.thrift.async.*; +import com.facebook.thrift.meta_data.*; +import com.facebook.thrift.server.*; +import com.facebook.thrift.transport.*; +import com.facebook.thrift.protocol.*; + +@SuppressWarnings({ "unused", "serial" }) +public class SyncDataReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("SyncDataReq"); + private static final TField CLUSTER_FIELD_DESC = new TField("cluster", TType.I64, (short)1); + private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)2); + private static final TField LOGS_FIELD_DESC = new TField("logs", TType.LIST, (short)3); + + public long cluster; + public int space_id; + public List logs; + public static final int CLUSTER = 1; + public static final int SPACE_ID = 2; + public static final int LOGS = 3; + + // isset id assignments + private static final int __CLUSTER_ISSET_ID = 0; + private static final int __SPACE_ID_ISSET_ID = 1; + private BitSet __isset_bit_vector = new BitSet(2); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(CLUSTER, new FieldMetaData("cluster", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(SPACE_ID, new FieldMetaData("space_id", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(LOGS, new FieldMetaData("logs", TFieldRequirementType.DEFAULT, + new ListMetaData(TType.LIST, + new FieldValueMetaData(TType.STRING)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(SyncDataReq.class, metaDataMap); + } + + public SyncDataReq() { + } + + public SyncDataReq( + long cluster, + int space_id, + List logs) { + this(); + this.cluster = cluster; + setClusterIsSet(true); + this.space_id = space_id; + setSpace_idIsSet(true); + this.logs = logs; + } + + public static class Builder { + private long cluster; + private int space_id; + private List logs; + + BitSet __optional_isset = new BitSet(2); + + public Builder() { + } + + public Builder setCluster(final long cluster) { + this.cluster = cluster; + __optional_isset.set(__CLUSTER_ISSET_ID, true); + return this; + } + + 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 setLogs(final List logs) { + this.logs = logs; + return this; + } + + public SyncDataReq build() { + SyncDataReq result = new SyncDataReq(); + if (__optional_isset.get(__CLUSTER_ISSET_ID)) { + result.setCluster(this.cluster); + } + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setLogs(this.logs); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public SyncDataReq(SyncDataReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.cluster = TBaseHelper.deepCopy(other.cluster); + this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetLogs()) { + this.logs = TBaseHelper.deepCopy(other.logs); + } + } + + public SyncDataReq deepCopy() { + return new SyncDataReq(this); + } + + public long getCluster() { + return this.cluster; + } + + public SyncDataReq 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 int getSpace_id() { + return this.space_id; + } + + public SyncDataReq 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 List getLogs() { + return this.logs; + } + + public SyncDataReq setLogs(List logs) { + this.logs = logs; + return this; + } + + public void unsetLogs() { + this.logs = null; + } + + // Returns true if field logs is set (has been assigned a value) and false otherwise + public boolean isSetLogs() { + return this.logs != null; + } + + public void setLogsIsSet(boolean __value) { + if (!__value) { + this.logs = null; + } + } + + @SuppressWarnings("unchecked") + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case CLUSTER: + if (__value == null) { + unsetCluster(); + } else { + setCluster((Long)__value); + } + break; + + case SPACE_ID: + if (__value == null) { + unsetSpace_id(); + } else { + setSpace_id((Integer)__value); + } + break; + + case LOGS: + if (__value == null) { + unsetLogs(); + } else { + setLogs((List)__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 SPACE_ID: + return new Integer(getSpace_id()); + + case LOGS: + return getLogs(); + + 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 SyncDataReq)) + return false; + SyncDataReq that = (SyncDataReq)_that; + + if (!TBaseHelper.equalsNobinary(this.cluster, that.cluster)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetLogs(), that.isSetLogs(), this.logs, that.logs)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {cluster, space_id, logs}); + } + + @Override + public int compareTo(SyncDataReq 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(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(isSetLogs()).compareTo(other.isSetLogs()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(logs, other.logs); + 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 SPACE_ID: + if (__field.type == TType.I32) { + this.space_id = iprot.readI32(); + setSpace_idIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case LOGS: + if (__field.type == TType.LIST) { + { + TList _list437 = iprot.readListBegin(); + this.logs = new ArrayList(Math.max(0, _list437.size)); + for (int _i438 = 0; + (_list437.size < 0) ? iprot.peekList() : (_i438 < _list437.size); + ++_i438) + { + byte[] _elem439; + _elem439 = iprot.readBinary(); + this.logs.add(_elem439); + } + 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); + oprot.writeFieldBegin(CLUSTER_FIELD_DESC); + oprot.writeI64(this.cluster); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(SPACE_ID_FIELD_DESC); + oprot.writeI32(this.space_id); + oprot.writeFieldEnd(); + if (this.logs != null) { + oprot.writeFieldBegin(LOGS_FIELD_DESC); + { + oprot.writeListBegin(new TList(TType.STRING, this.logs.size())); + for (byte[] _iter440 : this.logs) { + oprot.writeBinary(_iter440); + } + 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("SyncDataReq"); + 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("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("logs"); + sb.append(space); + sb.append(":").append(space); + if (this.getLogs() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getLogs(), 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/UpdateSessionsReq.java b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsReq.java index c581fb02a..dc43a8039 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 _list331 = iprot.readListBegin(); - this.sessions = new ArrayList(Math.max(0, _list331.size)); - for (int _i332 = 0; - (_list331.size < 0) ? iprot.peekList() : (_i332 < _list331.size); - ++_i332) + TList _list384 = iprot.readListBegin(); + this.sessions = new ArrayList(Math.max(0, _list384.size)); + for (int _i385 = 0; + (_list384.size < 0) ? iprot.peekList() : (_i385 < _list384.size); + ++_i385) { - Session _elem333; - _elem333 = new Session(); - _elem333.read(iprot); - this.sessions.add(_elem333); + Session _elem386; + _elem386 = new Session(); + _elem386.read(iprot); + this.sessions.add(_elem386); } 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 _iter334 : this.sessions) { - _iter334.write(oprot); + for (Session _iter387 : this.sessions) { + _iter387.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 4e253b6e5..e0aec75f5 100644 --- a/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/meta/UpdateSessionsResp.java @@ -415,32 +415,32 @@ public void read(TProtocol iprot) throws TException { case KILLED_QUERIES: if (__field.type == TType.MAP) { { - TMap _map335 = iprot.readMapBegin(); - this.killed_queries = new HashMap>(Math.max(0, 2*_map335.size)); - for (int _i336 = 0; - (_map335.size < 0) ? iprot.peekMap() : (_i336 < _map335.size); - ++_i336) + TMap _map388 = iprot.readMapBegin(); + this.killed_queries = new HashMap>(Math.max(0, 2*_map388.size)); + for (int _i389 = 0; + (_map388.size < 0) ? iprot.peekMap() : (_i389 < _map388.size); + ++_i389) { - long _key337; - Map _val338; - _key337 = iprot.readI64(); + long _key390; + Map _val391; + _key390 = iprot.readI64(); { - TMap _map339 = iprot.readMapBegin(); - _val338 = new HashMap(Math.max(0, 2*_map339.size)); - for (int _i340 = 0; - (_map339.size < 0) ? iprot.peekMap() : (_i340 < _map339.size); - ++_i340) + TMap _map392 = iprot.readMapBegin(); + _val391 = new HashMap(Math.max(0, 2*_map392.size)); + for (int _i393 = 0; + (_map392.size < 0) ? iprot.peekMap() : (_i393 < _map392.size); + ++_i393) { - long _key341; - QueryDesc _val342; - _key341 = iprot.readI64(); - _val342 = new QueryDesc(); - _val342.read(iprot); - _val338.put(_key341, _val342); + long _key394; + QueryDesc _val395; + _key394 = iprot.readI64(); + _val395 = new QueryDesc(); + _val395.read(iprot); + _val391.put(_key394, _val395); } iprot.readMapEnd(); } - this.killed_queries.put(_key337, _val338); + this.killed_queries.put(_key390, _val391); } iprot.readMapEnd(); } @@ -451,15 +451,15 @@ public void read(TProtocol iprot) throws TException { case KILLED_SESSIONS: if (__field.type == TType.LIST) { { - TList _list343 = iprot.readListBegin(); - this.killed_sessions = new ArrayList(Math.max(0, _list343.size)); - for (int _i344 = 0; - (_list343.size < 0) ? iprot.peekList() : (_i344 < _list343.size); - ++_i344) + TList _list396 = iprot.readListBegin(); + this.killed_sessions = new ArrayList(Math.max(0, _list396.size)); + for (int _i397 = 0; + (_list396.size < 0) ? iprot.peekList() : (_i397 < _list396.size); + ++_i397) { - long _elem345; - _elem345 = iprot.readI64(); - this.killed_sessions.add(_elem345); + long _elem398; + _elem398 = iprot.readI64(); + this.killed_sessions.add(_elem398); } iprot.readListEnd(); } @@ -498,13 +498,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> _iter346 : this.killed_queries.entrySet()) { - oprot.writeI64(_iter346.getKey()); + for (Map.Entry> _iter399 : this.killed_queries.entrySet()) { + oprot.writeI64(_iter399.getKey()); { - oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, _iter346.getValue().size())); - for (Map.Entry _iter347 : _iter346.getValue().entrySet()) { - oprot.writeI64(_iter347.getKey()); - _iter347.getValue().write(oprot); + oprot.writeMapBegin(new TMap(TType.I64, TType.STRUCT, _iter399.getValue().size())); + for (Map.Entry _iter400 : _iter399.getValue().entrySet()) { + oprot.writeI64(_iter400.getKey()); + _iter400.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -517,8 +517,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(KILLED_SESSIONS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.I64, this.killed_sessions.size())); - for (long _iter348 : this.killed_sessions) { - oprot.writeI64(_iter348); + for (long _iter401 : this.killed_sessions) { + oprot.writeI64(_iter401); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/meta/VariableItem.java b/client/src/main/generated/com/vesoft/nebula/meta/VariableItem.java new file mode 100644 index 000000000..e61b3ec78 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/meta/VariableItem.java @@ -0,0 +1,325 @@ +/** + * 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 VariableItem implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("VariableItem"); + private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); + private static final TField VALUE_FIELD_DESC = new TField("value", TType.STRUCT, (short)2); + + public byte[] name; + public com.vesoft.nebula.Value value; + public static final int NAME = 1; + public static final int VALUE = 2; + + // isset id assignments + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(VALUE, new FieldMetaData("value", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.Value.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(VariableItem.class, metaDataMap); + } + + public VariableItem() { + } + + public VariableItem( + byte[] name, + com.vesoft.nebula.Value value) { + this(); + this.name = name; + this.value = value; + } + + public static class Builder { + private byte[] name; + private com.vesoft.nebula.Value value; + + public Builder() { + } + + public Builder setName(final byte[] name) { + this.name = name; + return this; + } + + public Builder setValue(final com.vesoft.nebula.Value value) { + this.value = value; + return this; + } + + public VariableItem build() { + VariableItem result = new VariableItem(); + result.setName(this.name); + result.setValue(this.value); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public VariableItem(VariableItem other) { + if (other.isSetName()) { + this.name = TBaseHelper.deepCopy(other.name); + } + if (other.isSetValue()) { + this.value = TBaseHelper.deepCopy(other.value); + } + } + + public VariableItem deepCopy() { + return new VariableItem(this); + } + + public byte[] getName() { + return this.name; + } + + public VariableItem setName(byte[] name) { + this.name = name; + return this; + } + + public void unsetName() { + this.name = null; + } + + // Returns true if field name is set (has been assigned a value) and false otherwise + public boolean isSetName() { + return this.name != null; + } + + public void setNameIsSet(boolean __value) { + if (!__value) { + this.name = null; + } + } + + public com.vesoft.nebula.Value getValue() { + return this.value; + } + + public VariableItem setValue(com.vesoft.nebula.Value 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 NAME: + if (__value == null) { + unsetName(); + } else { + setName((byte[])__value); + } + break; + + case VALUE: + if (__value == null) { + unsetValue(); + } else { + setValue((com.vesoft.nebula.Value)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case NAME: + return getName(); + + 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 VariableItem)) + return false; + VariableItem that = (VariableItem)_that; + + if (!TBaseHelper.equalsSlow(this.isSetName(), that.isSetName(), this.name, that.name)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetValue(), that.isSetValue(), this.value, that.value)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {name, value}); + } + + 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 NAME: + if (__field.type == TType.STRING) { + this.name = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case VALUE: + if (__field.type == TType.STRUCT) { + this.value = new com.vesoft.nebula.Value(); + this.value.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.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeBinary(this.name); + oprot.writeFieldEnd(); + } + if (this.value != null) { + oprot.writeFieldBegin(VALUE_FIELD_DESC); + this.value.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("VariableItem"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("name"); + sb.append(space); + sb.append(":").append(space); + if (this.getName() == null) { + sb.append("null"); + } else { + int __name_size = Math.min(this.getName().length, 128); + for (int i = 0; i < __name_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getName()[i]).length() > 1 ? Integer.toHexString(this.getName()[i]).substring(Integer.toHexString(this.getName()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getName()[i]).toUpperCase()); + } + if (this.getName().length > 128) sb.append(" ..."); + } + 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 { + sb.append(TBaseHelper.toString(this.getValue(), 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/Zone.java b/client/src/main/generated/com/vesoft/nebula/meta/Zone.java index 1196a30db..bc2cb70bd 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 _list237 = iprot.readListBegin(); - this.nodes = new ArrayList(Math.max(0, _list237.size)); - for (int _i238 = 0; - (_list237.size < 0) ? iprot.peekList() : (_i238 < _list237.size); - ++_i238) + TList _list254 = iprot.readListBegin(); + this.nodes = new ArrayList(Math.max(0, _list254.size)); + for (int _i255 = 0; + (_list254.size < 0) ? iprot.peekList() : (_i255 < _list254.size); + ++_i255) { - com.vesoft.nebula.HostAddr _elem239; - _elem239 = new com.vesoft.nebula.HostAddr(); - _elem239.read(iprot); - this.nodes.add(_elem239); + com.vesoft.nebula.HostAddr _elem256; + _elem256 = new com.vesoft.nebula.HostAddr(); + _elem256.read(iprot); + this.nodes.add(_elem256); } 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 _iter240 : this.nodes) { - _iter240.write(oprot); + for (com.vesoft.nebula.HostAddr _iter257 : this.nodes) { + _iter257.write(oprot); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/AddPartReq.java b/client/src/main/generated/com/vesoft/nebula/storage/AddPartReq.java index 603789f21..bf58f51a3 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/AddPartReq.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/AddPartReq.java @@ -419,16 +419,16 @@ public void read(TProtocol iprot) throws TException { case PEERS: if (__field.type == TType.LIST) { { - TList _list273 = iprot.readListBegin(); - this.peers = new ArrayList(Math.max(0, _list273.size)); - for (int _i274 = 0; - (_list273.size < 0) ? iprot.peekList() : (_i274 < _list273.size); - ++_i274) + TList _list282 = iprot.readListBegin(); + this.peers = new ArrayList(Math.max(0, _list282.size)); + for (int _i283 = 0; + (_list282.size < 0) ? iprot.peekList() : (_i283 < _list282.size); + ++_i283) { - com.vesoft.nebula.HostAddr _elem275; - _elem275 = new com.vesoft.nebula.HostAddr(); - _elem275.read(iprot); - this.peers.add(_elem275); + com.vesoft.nebula.HostAddr _elem284; + _elem284 = new com.vesoft.nebula.HostAddr(); + _elem284.read(iprot); + this.peers.add(_elem284); } iprot.readListEnd(); } @@ -466,8 +466,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PEERS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.peers.size())); - for (com.vesoft.nebula.HostAddr _iter276 : this.peers) { - _iter276.write(oprot); + for (com.vesoft.nebula.HostAddr _iter285 : this.peers) { + _iter285.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 dee841a7e..8e2929050 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/BlockingSignRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/BlockingSignRequest.java @@ -278,15 +278,15 @@ public void read(TProtocol iprot) throws TException { case SPACE_IDS: if (__field.type == TType.LIST) { { - TList _list289 = iprot.readListBegin(); - this.space_ids = new ArrayList(Math.max(0, _list289.size)); - for (int _i290 = 0; - (_list289.size < 0) ? iprot.peekList() : (_i290 < _list289.size); - ++_i290) + TList _list298 = iprot.readListBegin(); + this.space_ids = new ArrayList(Math.max(0, _list298.size)); + for (int _i299 = 0; + (_list298.size < 0) ? iprot.peekList() : (_i299 < _list298.size); + ++_i299) { - int _elem291; - _elem291 = iprot.readI32(); - this.space_ids.add(_elem291); + int _elem300; + _elem300 = iprot.readI32(); + this.space_ids.add(_elem300); } iprot.readListEnd(); } @@ -322,8 +322,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SPACE_IDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.I32, this.space_ids.size())); - for (int _iter292 : this.space_ids) { - oprot.writeI32(_iter292); + for (int _iter301 : this.space_ids) { + oprot.writeI32(_iter301); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/CatchUpDataReq.java b/client/src/main/generated/com/vesoft/nebula/storage/CatchUpDataReq.java index f168305c6..1c2c14b69 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/CatchUpDataReq.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/CatchUpDataReq.java @@ -28,14 +28,11 @@ public class CatchUpDataReq implements TBase, java.io.Serializable, Cloneable, C private static final TStruct STRUCT_DESC = new TStruct("CatchUpDataReq"); 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 TARGET_FIELD_DESC = new TField("target", TType.STRUCT, (short)3); public int space_id; public int part_id; - public com.vesoft.nebula.HostAddr target; public static final int SPACE_ID = 1; public static final int PART_ID = 2; - public static final int TARGET = 3; // isset id assignments private static final int __SPACE_ID_ISSET_ID = 0; @@ -50,8 +47,6 @@ public class CatchUpDataReq implements TBase, java.io.Serializable, Cloneable, C new FieldValueMetaData(TType.I32))); tmpMetaDataMap.put(PART_ID, new FieldMetaData("part_id", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I32))); - tmpMetaDataMap.put(TARGET, new FieldMetaData("target", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -64,20 +59,17 @@ public CatchUpDataReq() { public CatchUpDataReq( int space_id, - int part_id, - com.vesoft.nebula.HostAddr target) { + int part_id) { this(); this.space_id = space_id; setSpace_idIsSet(true); this.part_id = part_id; setPart_idIsSet(true); - this.target = target; } public static class Builder { private int space_id; private int part_id; - private com.vesoft.nebula.HostAddr target; BitSet __optional_isset = new BitSet(2); @@ -96,11 +88,6 @@ public Builder setPart_id(final int part_id) { return this; } - public Builder setTarget(final com.vesoft.nebula.HostAddr target) { - this.target = target; - return this; - } - public CatchUpDataReq build() { CatchUpDataReq result = new CatchUpDataReq(); if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { @@ -109,7 +96,6 @@ public CatchUpDataReq build() { if (__optional_isset.get(__PART_ID_ISSET_ID)) { result.setPart_id(this.part_id); } - result.setTarget(this.target); return result; } } @@ -126,9 +112,6 @@ public CatchUpDataReq(CatchUpDataReq other) { __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.isSetTarget()) { - this.target = TBaseHelper.deepCopy(other.target); - } } public CatchUpDataReq deepCopy() { @@ -181,30 +164,6 @@ public void setPart_idIsSet(boolean __value) { __isset_bit_vector.set(__PART_ID_ISSET_ID, __value); } - public com.vesoft.nebula.HostAddr getTarget() { - return this.target; - } - - public CatchUpDataReq setTarget(com.vesoft.nebula.HostAddr target) { - this.target = target; - return this; - } - - public void unsetTarget() { - this.target = null; - } - - // Returns true if field target is set (has been assigned a value) and false otherwise - public boolean isSetTarget() { - return this.target != null; - } - - public void setTargetIsSet(boolean __value) { - if (!__value) { - this.target = null; - } - } - public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { case SPACE_ID: @@ -223,14 +182,6 @@ public void setFieldValue(int fieldID, Object __value) { } break; - case TARGET: - if (__value == null) { - unsetTarget(); - } else { - setTarget((com.vesoft.nebula.HostAddr)__value); - } - break; - default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -244,9 +195,6 @@ public Object getFieldValue(int fieldID) { case PART_ID: return new Integer(getPart_id()); - case TARGET: - return getTarget(); - default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -266,14 +214,12 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.part_id, that.part_id)) { return false; } - if (!TBaseHelper.equalsNobinary(this.isSetTarget(), that.isSetTarget(), this.target, that.target)) { return false; } - return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, part_id, target}); + return Arrays.deepHashCode(new Object[] {space_id, part_id}); } @Override @@ -304,14 +250,6 @@ public int compareTo(CatchUpDataReq other) { if (lastComparison != 0) { return lastComparison; } - lastComparison = Boolean.valueOf(isSetTarget()).compareTo(other.isSetTarget()); - if (lastComparison != 0) { - return lastComparison; - } - lastComparison = TBaseHelper.compareTo(target, other.target); - if (lastComparison != 0) { - return lastComparison; - } return 0; } @@ -342,14 +280,6 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; - case TARGET: - if (__field.type == TType.STRUCT) { - this.target = new com.vesoft.nebula.HostAddr(); - this.target.read(iprot); - } else { - TProtocolUtil.skip(iprot, __field.type); - } - break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -373,11 +303,6 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(PART_ID_FIELD_DESC); oprot.writeI32(this.part_id); oprot.writeFieldEnd(); - if (this.target != null) { - oprot.writeFieldBegin(TARGET_FIELD_DESC); - this.target.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -411,17 +336,6 @@ public String toString(int indent, boolean prettyPrint) { 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("target"); - sb.append(space); - sb.append(":").append(space); - if (this.getTarget() == null) { - sb.append("null"); - } else { - sb.append(TBaseHelper.toString(this.getTarget(), 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/storage/CatchUpResp.java b/client/src/main/generated/com/vesoft/nebula/storage/CatchUpResp.java new file mode 100644 index 000000000..bc0c081fb --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/storage/CatchUpResp.java @@ -0,0 +1,645 @@ +/** + * 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 CatchUpResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("CatchUpResp"); + private static final TField CODE_FIELD_DESC = new TField("code", TType.I32, (short)1); + private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2); + private static final TField SNAPSHOT_ROWS_FIELD_DESC = new TField("snapshotRows", TType.I64, (short)3); + private static final TField COMMIT_LOG_ID_FIELD_DESC = new TField("commitLogId", TType.I64, (short)4); + private static final TField RESULT_FIELD_DESC = new TField("result", TType.STRUCT, (short)5); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + /** + * + * @see CatchUpStatus + */ + public CatchUpStatus status; + public long snapshotRows; + public long commitLogId; + public ResponseCommon result; + public static final int CODE = 1; + public static final int STATUS = 2; + public static final int SNAPSHOTROWS = 3; + public static final int COMMITLOGID = 4; + public static final int RESULT = 5; + + // isset id assignments + private static final int __SNAPSHOTROWS_ISSET_ID = 0; + private static final int __COMMITLOGID_ISSET_ID = 1; + private BitSet __isset_bit_vector = new BitSet(2); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(CODE, new FieldMetaData("code", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I32))); + tmpMetaDataMap.put(SNAPSHOTROWS, new FieldMetaData("snapshotRows", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(COMMITLOGID, new FieldMetaData("commitLogId", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(RESULT, new FieldMetaData("result", TFieldRequirementType.DEFAULT, + new StructMetaData(TType.STRUCT, ResponseCommon.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(CatchUpResp.class, metaDataMap); + } + + public CatchUpResp() { + } + + public CatchUpResp( + com.vesoft.nebula.ErrorCode code, + CatchUpStatus status, + long snapshotRows, + long commitLogId, + ResponseCommon result) { + this(); + this.code = code; + this.status = status; + this.snapshotRows = snapshotRows; + setSnapshotRowsIsSet(true); + this.commitLogId = commitLogId; + setCommitLogIdIsSet(true); + this.result = result; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private CatchUpStatus status; + private long snapshotRows; + private long commitLogId; + private ResponseCommon result; + + BitSet __optional_isset = new BitSet(2); + + public Builder() { + } + + public Builder setCode(final com.vesoft.nebula.ErrorCode code) { + this.code = code; + return this; + } + + public Builder setStatus(final CatchUpStatus status) { + this.status = status; + return this; + } + + public Builder setSnapshotRows(final long snapshotRows) { + this.snapshotRows = snapshotRows; + __optional_isset.set(__SNAPSHOTROWS_ISSET_ID, true); + return this; + } + + public Builder setCommitLogId(final long commitLogId) { + this.commitLogId = commitLogId; + __optional_isset.set(__COMMITLOGID_ISSET_ID, true); + return this; + } + + public Builder setResult(final ResponseCommon result) { + this.result = result; + return this; + } + + public CatchUpResp build() { + CatchUpResp result = new CatchUpResp(); + result.setCode(this.code); + result.setStatus(this.status); + if (__optional_isset.get(__SNAPSHOTROWS_ISSET_ID)) { + result.setSnapshotRows(this.snapshotRows); + } + if (__optional_isset.get(__COMMITLOGID_ISSET_ID)) { + result.setCommitLogId(this.commitLogId); + } + result.setResult(this.result); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public CatchUpResp(CatchUpResp other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetStatus()) { + this.status = TBaseHelper.deepCopy(other.status); + } + this.snapshotRows = TBaseHelper.deepCopy(other.snapshotRows); + this.commitLogId = TBaseHelper.deepCopy(other.commitLogId); + if (other.isSetResult()) { + this.result = TBaseHelper.deepCopy(other.result); + } + } + + public CatchUpResp deepCopy() { + return new CatchUpResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public CatchUpResp 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; + } + } + + /** + * + * @see CatchUpStatus + */ + public CatchUpStatus getStatus() { + return this.status; + } + + /** + * + * @see CatchUpStatus + */ + public CatchUpResp setStatus(CatchUpStatus 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 getSnapshotRows() { + return this.snapshotRows; + } + + public CatchUpResp setSnapshotRows(long snapshotRows) { + this.snapshotRows = snapshotRows; + setSnapshotRowsIsSet(true); + return this; + } + + public void unsetSnapshotRows() { + __isset_bit_vector.clear(__SNAPSHOTROWS_ISSET_ID); + } + + // Returns true if field snapshotRows is set (has been assigned a value) and false otherwise + public boolean isSetSnapshotRows() { + return __isset_bit_vector.get(__SNAPSHOTROWS_ISSET_ID); + } + + public void setSnapshotRowsIsSet(boolean __value) { + __isset_bit_vector.set(__SNAPSHOTROWS_ISSET_ID, __value); + } + + public long getCommitLogId() { + return this.commitLogId; + } + + public CatchUpResp setCommitLogId(long commitLogId) { + this.commitLogId = commitLogId; + setCommitLogIdIsSet(true); + return this; + } + + public void unsetCommitLogId() { + __isset_bit_vector.clear(__COMMITLOGID_ISSET_ID); + } + + // Returns true if field commitLogId is set (has been assigned a value) and false otherwise + public boolean isSetCommitLogId() { + return __isset_bit_vector.get(__COMMITLOGID_ISSET_ID); + } + + public void setCommitLogIdIsSet(boolean __value) { + __isset_bit_vector.set(__COMMITLOGID_ISSET_ID, __value); + } + + public ResponseCommon getResult() { + return this.result; + } + + public CatchUpResp 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 void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case CODE: + if (__value == null) { + unsetCode(); + } else { + setCode((com.vesoft.nebula.ErrorCode)__value); + } + break; + + case STATUS: + if (__value == null) { + unsetStatus(); + } else { + setStatus((CatchUpStatus)__value); + } + break; + + case SNAPSHOTROWS: + if (__value == null) { + unsetSnapshotRows(); + } else { + setSnapshotRows((Long)__value); + } + break; + + case COMMITLOGID: + if (__value == null) { + unsetCommitLogId(); + } else { + setCommitLogId((Long)__value); + } + break; + + case RESULT: + if (__value == null) { + unsetResult(); + } else { + setResult((ResponseCommon)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case CODE: + return getCode(); + + case STATUS: + return getStatus(); + + case SNAPSHOTROWS: + return new Long(getSnapshotRows()); + + case COMMITLOGID: + return new Long(getCommitLogId()); + + case RESULT: + return getResult(); + + 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 CatchUpResp)) + return false; + CatchUpResp that = (CatchUpResp)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetCode(), that.isSetCode(), this.code, that.code)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetStatus(), that.isSetStatus(), this.status, that.status)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.snapshotRows, that.snapshotRows)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.commitLogId, that.commitLogId)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetResult(), that.isSetResult(), this.result, that.result)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, status, snapshotRows, commitLogId, result}); + } + + @Override + public int compareTo(CatchUpResp 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(isSetStatus()).compareTo(other.isSetStatus()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(status, other.status); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetSnapshotRows()).compareTo(other.isSetSnapshotRows()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(snapshotRows, other.snapshotRows); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetCommitLogId()).compareTo(other.isSetCommitLogId()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(commitLogId, other.commitLogId); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetResult()).compareTo(other.isSetResult()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(result, other.result); + 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 STATUS: + if (__field.type == TType.I32) { + this.status = CatchUpStatus.findByValue(iprot.readI32()); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case SNAPSHOTROWS: + if (__field.type == TType.I64) { + this.snapshotRows = iprot.readI64(); + setSnapshotRowsIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case COMMITLOGID: + if (__field.type == TType.I64) { + this.commitLogId = iprot.readI64(); + setCommitLogIdIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case RESULT: + if (__field.type == TType.STRUCT) { + this.result = new ResponseCommon(); + this.result.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.status != null) { + oprot.writeFieldBegin(STATUS_FIELD_DESC); + oprot.writeI32(this.status == null ? 0 : this.status.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(SNAPSHOT_ROWS_FIELD_DESC); + oprot.writeI64(this.snapshotRows); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(COMMIT_LOG_ID_FIELD_DESC); + oprot.writeI64(this.commitLogId); + oprot.writeFieldEnd(); + if (this.result != null) { + oprot.writeFieldBegin(RESULT_FIELD_DESC); + this.result.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("CatchUpResp"); + 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("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("snapshotRows"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getSnapshotRows(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("commitLogId"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getCommitLogId(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + 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; + 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/CatchUpStatus.java b/client/src/main/generated/com/vesoft/nebula/storage/CatchUpStatus.java new file mode 100644 index 000000000..df707c00c --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/storage/CatchUpStatus.java @@ -0,0 +1,52 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.storage; + + +import com.facebook.thrift.IntRangeSet; +import java.util.Map; +import java.util.HashMap; + +@SuppressWarnings({ "unused" }) +public enum CatchUpStatus implements com.facebook.thrift.TEnum { + CAUGHT_UP(1), + WAITING_FOR_SNAPSHOT(2), + RUNNING(3), + STARTING(4); + + private final int value; + + private CatchUpStatus(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 CatchUpStatus findByValue(int value) { + switch (value) { + case 1: + return CAUGHT_UP; + case 2: + return WAITING_FOR_SNAPSHOT; + case 3: + return RUNNING; + case 4: + return STARTING; + default: + return null; + } + } +} 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 2a981759c..c7bfbbbcb 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 _map310 = iprot.readMapBegin(); - this.parts = new HashMap>(Math.max(0, 2*_map310.size)); - for (int _i311 = 0; - (_map310.size < 0) ? iprot.peekMap() : (_i311 < _map310.size); - ++_i311) + TMap _map347 = iprot.readMapBegin(); + this.parts = new HashMap>(Math.max(0, 2*_map347.size)); + for (int _i348 = 0; + (_map347.size < 0) ? iprot.peekMap() : (_i348 < _map347.size); + ++_i348) { - int _key312; - List _val313; - _key312 = iprot.readI32(); + int _key349; + List _val350; + _key349 = iprot.readI32(); { - TList _list314 = iprot.readListBegin(); - _val313 = new ArrayList(Math.max(0, _list314.size)); - for (int _i315 = 0; - (_list314.size < 0) ? iprot.peekList() : (_i315 < _list314.size); - ++_i315) + TList _list351 = iprot.readListBegin(); + _val350 = new ArrayList(Math.max(0, _list351.size)); + for (int _i352 = 0; + (_list351.size < 0) ? iprot.peekList() : (_i352 < _list351.size); + ++_i352) { - NewEdge _elem316; - _elem316 = new NewEdge(); - _elem316.read(iprot); - _val313.add(_elem316); + NewEdge _elem353; + _elem353 = new NewEdge(); + _elem353.read(iprot); + _val350.add(_elem353); } iprot.readListEnd(); } - this.parts.put(_key312, _val313); + this.parts.put(_key349, _val350); } iprot.readMapEnd(); } @@ -520,15 +520,15 @@ public void read(TProtocol iprot) throws TException { case PROP_NAMES: if (__field.type == TType.LIST) { { - TList _list317 = iprot.readListBegin(); - this.prop_names = new ArrayList(Math.max(0, _list317.size)); - for (int _i318 = 0; - (_list317.size < 0) ? iprot.peekList() : (_i318 < _list317.size); - ++_i318) + TList _list354 = iprot.readListBegin(); + this.prop_names = new ArrayList(Math.max(0, _list354.size)); + for (int _i355 = 0; + (_list354.size < 0) ? iprot.peekList() : (_i355 < _list354.size); + ++_i355) { - byte[] _elem319; - _elem319 = iprot.readBinary(); - this.prop_names.add(_elem319); + byte[] _elem356; + _elem356 = iprot.readBinary(); + this.prop_names.add(_elem356); } 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> _iter320 : this.parts.entrySet()) { - oprot.writeI32(_iter320.getKey()); + for (Map.Entry> _iter357 : this.parts.entrySet()) { + oprot.writeI32(_iter357.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter320.getValue().size())); - for (NewEdge _iter321 : _iter320.getValue()) { - _iter321.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, _iter357.getValue().size())); + for (NewEdge _iter358 : _iter357.getValue()) { + _iter358.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[] _iter322 : this.prop_names) { - oprot.writeBinary(_iter322); + for (byte[] _iter359 : this.prop_names) { + oprot.writeBinary(_iter359); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/ChainDeleteEdgesRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/ChainDeleteEdgesRequest.java index a5892129c..233c0f0a5 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/ChainDeleteEdgesRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/ChainDeleteEdgesRequest.java @@ -356,30 +356,30 @@ public void read(TProtocol iprot) throws TException { case PARTS: if (__field.type == TType.MAP) { { - TMap _map327 = iprot.readMapBegin(); - this.parts = new HashMap>(Math.max(0, 2*_map327.size)); - for (int _i328 = 0; - (_map327.size < 0) ? iprot.peekMap() : (_i328 < _map327.size); - ++_i328) + TMap _map364 = iprot.readMapBegin(); + this.parts = new HashMap>(Math.max(0, 2*_map364.size)); + for (int _i365 = 0; + (_map364.size < 0) ? iprot.peekMap() : (_i365 < _map364.size); + ++_i365) { - int _key329; - List _val330; - _key329 = iprot.readI32(); + int _key366; + List _val367; + _key366 = iprot.readI32(); { - TList _list331 = iprot.readListBegin(); - _val330 = new ArrayList(Math.max(0, _list331.size)); - for (int _i332 = 0; - (_list331.size < 0) ? iprot.peekList() : (_i332 < _list331.size); - ++_i332) + TList _list368 = iprot.readListBegin(); + _val367 = new ArrayList(Math.max(0, _list368.size)); + for (int _i369 = 0; + (_list368.size < 0) ? iprot.peekList() : (_i369 < _list368.size); + ++_i369) { - EdgeKey _elem333; - _elem333 = new EdgeKey(); - _elem333.read(iprot); - _val330.add(_elem333); + EdgeKey _elem370; + _elem370 = new EdgeKey(); + _elem370.read(iprot); + _val367.add(_elem370); } iprot.readListEnd(); } - this.parts.put(_key329, _val330); + this.parts.put(_key366, _val367); } iprot.readMapEnd(); } @@ -426,12 +426,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> _iter334 : this.parts.entrySet()) { - oprot.writeI32(_iter334.getKey()); + for (Map.Entry> _iter371 : this.parts.entrySet()) { + oprot.writeI32(_iter371.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter334.getValue().size())); - for (EdgeKey _iter335 : _iter334.getValue()) { - _iter335.write(oprot); + oprot.writeListBegin(new TList(TType.STRUCT, _iter371.getValue().size())); + for (EdgeKey _iter372 : _iter371.getValue()) { + _iter372.write(oprot); } 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 a3abfe050..61002bce3 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 _list323 = iprot.readListBegin(); - this.parts = new ArrayList(Math.max(0, _list323.size)); - for (int _i324 = 0; - (_list323.size < 0) ? iprot.peekList() : (_i324 < _list323.size); - ++_i324) + TList _list360 = iprot.readListBegin(); + this.parts = new ArrayList(Math.max(0, _list360.size)); + for (int _i361 = 0; + (_list360.size < 0) ? iprot.peekList() : (_i361 < _list360.size); + ++_i361) { - int _elem325; - _elem325 = iprot.readI32(); - this.parts.add(_elem325); + int _elem362; + _elem362 = iprot.readI32(); + this.parts.add(_elem362); } 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 _iter326 : this.parts) { - oprot.writeI32(_iter326); + for (int _iter363 : this.parts) { + oprot.writeI32(_iter363); } 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 83f57e53a..25b8fa90b 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/CheckPeersReq.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/CheckPeersReq.java @@ -29,18 +29,22 @@ public class CheckPeersReq implements TBase, java.io.Serializable, Cloneable, Co 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 PEERS_FIELD_DESC = new TField("peers", TType.LIST, (short)3); + private static final TField UPDATE_PART_FIELD_DESC = new TField("updatePart", TType.BOOL, (short)4); public int space_id; public int part_id; public List peers; + public boolean updatePart; public static final int SPACE_ID = 1; public static final int PART_ID = 2; public static final int PEERS = 3; + public static final int UPDATEPART = 4; // 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); + private static final int __UPDATEPART_ISSET_ID = 2; + private BitSet __isset_bit_vector = new BitSet(3); public static final Map metaDataMap; @@ -53,6 +57,8 @@ public class CheckPeersReq implements TBase, java.io.Serializable, Cloneable, Co tmpMetaDataMap.put(PEERS, new FieldMetaData("peers", TFieldRequirementType.DEFAULT, new ListMetaData(TType.LIST, new StructMetaData(TType.STRUCT, com.vesoft.nebula.HostAddr.class)))); + tmpMetaDataMap.put(UPDATEPART, new FieldMetaData("updatePart", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -66,21 +72,25 @@ public CheckPeersReq() { public CheckPeersReq( int space_id, int part_id, - List peers) { + List peers, + boolean updatePart) { this(); this.space_id = space_id; setSpace_idIsSet(true); this.part_id = part_id; setPart_idIsSet(true); this.peers = peers; + this.updatePart = updatePart; + setUpdatePartIsSet(true); } public static class Builder { private int space_id; private int part_id; private List peers; + private boolean updatePart; - BitSet __optional_isset = new BitSet(2); + BitSet __optional_isset = new BitSet(3); public Builder() { } @@ -102,6 +112,12 @@ public Builder setPeers(final List peers) { return this; } + public Builder setUpdatePart(final boolean updatePart) { + this.updatePart = updatePart; + __optional_isset.set(__UPDATEPART_ISSET_ID, true); + return this; + } + public CheckPeersReq build() { CheckPeersReq result = new CheckPeersReq(); if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { @@ -111,6 +127,9 @@ public CheckPeersReq build() { result.setPart_id(this.part_id); } result.setPeers(this.peers); + if (__optional_isset.get(__UPDATEPART_ISSET_ID)) { + result.setUpdatePart(this.updatePart); + } return result; } } @@ -130,6 +149,7 @@ public CheckPeersReq(CheckPeersReq other) { if (other.isSetPeers()) { this.peers = TBaseHelper.deepCopy(other.peers); } + this.updatePart = TBaseHelper.deepCopy(other.updatePart); } public CheckPeersReq deepCopy() { @@ -206,6 +226,29 @@ public void setPeersIsSet(boolean __value) { } } + public boolean isUpdatePart() { + return this.updatePart; + } + + public CheckPeersReq setUpdatePart(boolean updatePart) { + this.updatePart = updatePart; + setUpdatePartIsSet(true); + return this; + } + + public void unsetUpdatePart() { + __isset_bit_vector.clear(__UPDATEPART_ISSET_ID); + } + + // Returns true if field updatePart is set (has been assigned a value) and false otherwise + public boolean isSetUpdatePart() { + return __isset_bit_vector.get(__UPDATEPART_ISSET_ID); + } + + public void setUpdatePartIsSet(boolean __value) { + __isset_bit_vector.set(__UPDATEPART_ISSET_ID, __value); + } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -233,6 +276,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case UPDATEPART: + if (__value == null) { + unsetUpdatePart(); + } else { + setUpdatePart((Boolean)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -249,6 +300,9 @@ public Object getFieldValue(int fieldID) { case PEERS: return getPeers(); + case UPDATEPART: + return new Boolean(isUpdatePart()); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -270,12 +324,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.isSetPeers(), that.isSetPeers(), this.peers, that.peers)) { return false; } + if (!TBaseHelper.equalsNobinary(this.updatePart, that.updatePart)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, part_id, peers}); + return Arrays.deepHashCode(new Object[] {space_id, part_id, peers, updatePart}); } @Override @@ -314,6 +370,14 @@ public int compareTo(CheckPeersReq other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetUpdatePart()).compareTo(other.isSetUpdatePart()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(updatePart, other.updatePart); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -347,16 +411,16 @@ public void read(TProtocol iprot) throws TException { case PEERS: if (__field.type == TType.LIST) { { - TList _list302 = iprot.readListBegin(); - this.peers = new ArrayList(Math.max(0, _list302.size)); - for (int _i303 = 0; - (_list302.size < 0) ? iprot.peekList() : (_i303 < _list302.size); - ++_i303) + TList _list311 = iprot.readListBegin(); + this.peers = new ArrayList(Math.max(0, _list311.size)); + for (int _i312 = 0; + (_list311.size < 0) ? iprot.peekList() : (_i312 < _list311.size); + ++_i312) { - com.vesoft.nebula.HostAddr _elem304; - _elem304 = new com.vesoft.nebula.HostAddr(); - _elem304.read(iprot); - this.peers.add(_elem304); + com.vesoft.nebula.HostAddr _elem313; + _elem313 = new com.vesoft.nebula.HostAddr(); + _elem313.read(iprot); + this.peers.add(_elem313); } iprot.readListEnd(); } @@ -364,6 +428,14 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case UPDATEPART: + if (__field.type == TType.BOOL) { + this.updatePart = iprot.readBool(); + setUpdatePartIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -391,13 +463,16 @@ 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 _iter305 : this.peers) { - _iter305.write(oprot); + for (com.vesoft.nebula.HostAddr _iter314 : this.peers) { + _iter314.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } + oprot.writeFieldBegin(UPDATE_PART_FIELD_DESC); + oprot.writeBool(this.updatePart); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -442,6 +517,13 @@ public String toString(int indent, boolean prettyPrint) { sb.append(TBaseHelper.toString(this.getPeers(), indent + 1, prettyPrint)); } first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("updatePart"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isUpdatePart(), 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/storage/CreateCPRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/CreateCPRequest.java index a9564cd17..5810e5541 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/CreateCPRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/CreateCPRequest.java @@ -28,13 +28,18 @@ public class CreateCPRequest implements TBase, java.io.Serializable, Cloneable, private static final TStruct STRUCT_DESC = new TStruct("CreateCPRequest"); 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); + private static final TField FOR_ALL_REPLICAS_FIELD_DESC = new TField("for_all_replicas", TType.BOOL, (short)3); public List space_ids; public byte[] name; + public boolean for_all_replicas; public static final int SPACE_IDS = 1; public static final int NAME = 2; + public static final int FOR_ALL_REPLICAS = 3; // isset id assignments + private static final int __FOR_ALL_REPLICAS_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); public static final Map metaDataMap; @@ -45,6 +50,8 @@ public class CreateCPRequest implements TBase, java.io.Serializable, Cloneable, new FieldValueMetaData(TType.I32)))); tmpMetaDataMap.put(NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(FOR_ALL_REPLICAS, new FieldMetaData("for_all_replicas", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -57,15 +64,21 @@ public CreateCPRequest() { public CreateCPRequest( List space_ids, - byte[] name) { + byte[] name, + boolean for_all_replicas) { this(); this.space_ids = space_ids; this.name = name; + this.for_all_replicas = for_all_replicas; + setFor_all_replicasIsSet(true); } public static class Builder { private List space_ids; private byte[] name; + private boolean for_all_replicas; + + BitSet __optional_isset = new BitSet(1); public Builder() { } @@ -80,10 +93,19 @@ public Builder setName(final byte[] name) { return this; } + public Builder setFor_all_replicas(final boolean for_all_replicas) { + this.for_all_replicas = for_all_replicas; + __optional_isset.set(__FOR_ALL_REPLICAS_ISSET_ID, true); + return this; + } + public CreateCPRequest build() { CreateCPRequest result = new CreateCPRequest(); result.setSpace_ids(this.space_ids); result.setName(this.name); + if (__optional_isset.get(__FOR_ALL_REPLICAS_ISSET_ID)) { + result.setFor_all_replicas(this.for_all_replicas); + } return result; } } @@ -96,12 +118,15 @@ 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); if (other.isSetSpace_ids()) { this.space_ids = TBaseHelper.deepCopy(other.space_ids); } if (other.isSetName()) { this.name = TBaseHelper.deepCopy(other.name); } + this.for_all_replicas = TBaseHelper.deepCopy(other.for_all_replicas); } public CreateCPRequest deepCopy() { @@ -156,6 +181,29 @@ public void setNameIsSet(boolean __value) { } } + public boolean isFor_all_replicas() { + return this.for_all_replicas; + } + + public CreateCPRequest setFor_all_replicas(boolean for_all_replicas) { + this.for_all_replicas = for_all_replicas; + setFor_all_replicasIsSet(true); + return this; + } + + public void unsetFor_all_replicas() { + __isset_bit_vector.clear(__FOR_ALL_REPLICAS_ISSET_ID); + } + + // Returns true if field for_all_replicas is set (has been assigned a value) and false otherwise + public boolean isSetFor_all_replicas() { + return __isset_bit_vector.get(__FOR_ALL_REPLICAS_ISSET_ID); + } + + public void setFor_all_replicasIsSet(boolean __value) { + __isset_bit_vector.set(__FOR_ALL_REPLICAS_ISSET_ID, __value); + } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -175,6 +223,14 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case FOR_ALL_REPLICAS: + if (__value == null) { + unsetFor_all_replicas(); + } else { + setFor_all_replicas((Boolean)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -188,6 +244,9 @@ public Object getFieldValue(int fieldID) { case NAME: return getName(); + case FOR_ALL_REPLICAS: + return new Boolean(isFor_all_replicas()); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -207,12 +266,14 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsSlow(this.isSetName(), that.isSetName(), this.name, that.name)) { return false; } + if (!TBaseHelper.equalsNobinary(this.for_all_replicas, that.for_all_replicas)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_ids, name}); + return Arrays.deepHashCode(new Object[] {space_ids, name, for_all_replicas}); } @Override @@ -243,6 +304,14 @@ public int compareTo(CreateCPRequest other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetFor_all_replicas()).compareTo(other.isSetFor_all_replicas()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(for_all_replicas, other.for_all_replicas); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -260,15 +329,15 @@ public void read(TProtocol iprot) throws TException { case SPACE_IDS: if (__field.type == TType.LIST) { { - TList _list277 = iprot.readListBegin(); - this.space_ids = new ArrayList(Math.max(0, _list277.size)); - for (int _i278 = 0; - (_list277.size < 0) ? iprot.peekList() : (_i278 < _list277.size); - ++_i278) + TList _list286 = iprot.readListBegin(); + this.space_ids = new ArrayList(Math.max(0, _list286.size)); + for (int _i287 = 0; + (_list286.size < 0) ? iprot.peekList() : (_i287 < _list286.size); + ++_i287) { - int _elem279; - _elem279 = iprot.readI32(); - this.space_ids.add(_elem279); + int _elem288; + _elem288 = iprot.readI32(); + this.space_ids.add(_elem288); } iprot.readListEnd(); } @@ -283,6 +352,14 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case FOR_ALL_REPLICAS: + if (__field.type == TType.BOOL) { + this.for_all_replicas = iprot.readBool(); + setFor_all_replicasIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -304,8 +381,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SPACE_IDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.I32, this.space_ids.size())); - for (int _iter280 : this.space_ids) { - oprot.writeI32(_iter280); + for (int _iter289 : this.space_ids) { + oprot.writeI32(_iter289); } oprot.writeListEnd(); } @@ -316,6 +393,9 @@ public void write(TProtocol oprot) throws TException { oprot.writeBinary(this.name); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(FOR_ALL_REPLICAS_FIELD_DESC); + oprot.writeBool(this.for_all_replicas); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -362,6 +442,13 @@ public String toString(int indent, boolean prettyPrint) { if (this.getName().length > 128) sb.append(" ..."); } first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("for_all_replicas"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isFor_all_replicas(), 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/storage/CreateCPResp.java b/client/src/main/generated/com/vesoft/nebula/storage/CreateCPResp.java index c47d9bf90..b007f3202 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/CreateCPResp.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/CreateCPResp.java @@ -279,16 +279,16 @@ public void read(TProtocol iprot) throws TException { case INFO: if (__field.type == TType.LIST) { { - TList _list281 = iprot.readListBegin(); - this.info = new ArrayList(Math.max(0, _list281.size)); - for (int _i282 = 0; - (_list281.size < 0) ? iprot.peekList() : (_i282 < _list281.size); - ++_i282) + TList _list290 = iprot.readListBegin(); + this.info = new ArrayList(Math.max(0, _list290.size)); + for (int _i291 = 0; + (_list290.size < 0) ? iprot.peekList() : (_i291 < _list290.size); + ++_i291) { - com.vesoft.nebula.CheckpointInfo _elem283; - _elem283 = new com.vesoft.nebula.CheckpointInfo(); - _elem283.read(iprot); - this.info.add(_elem283); + com.vesoft.nebula.CheckpointInfo _elem292; + _elem292 = new com.vesoft.nebula.CheckpointInfo(); + _elem292.read(iprot); + this.info.add(_elem292); } iprot.readListEnd(); } @@ -322,8 +322,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 _iter284 : this.info) { - _iter284.write(oprot); + for (com.vesoft.nebula.CheckpointInfo _iter293 : this.info) { + _iter293.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 d30c88fac..3d5898c6c 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/DropCPRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/DropCPRequest.java @@ -260,15 +260,15 @@ public void read(TProtocol iprot) throws TException { case SPACE_IDS: if (__field.type == TType.LIST) { { - TList _list285 = iprot.readListBegin(); - this.space_ids = new ArrayList(Math.max(0, _list285.size)); - for (int _i286 = 0; - (_list285.size < 0) ? iprot.peekList() : (_i286 < _list285.size); - ++_i286) + TList _list294 = iprot.readListBegin(); + this.space_ids = new ArrayList(Math.max(0, _list294.size)); + for (int _i295 = 0; + (_list294.size < 0) ? iprot.peekList() : (_i295 < _list294.size); + ++_i295) { - int _elem287; - _elem287 = iprot.readI32(); - this.space_ids.add(_elem287); + int _elem296; + _elem296 = iprot.readI32(); + this.space_ids.add(_elem296); } iprot.readListEnd(); } @@ -304,8 +304,8 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldBegin(SPACE_IDS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.I32, this.space_ids.size())); - for (int _iter288 : this.space_ids) { - oprot.writeI32(_iter288); + for (int _iter297 : this.space_ids) { + oprot.writeI32(_iter297); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/GetLeaderPartsResp.java b/client/src/main/generated/com/vesoft/nebula/storage/GetLeaderPartsResp.java index dab48cd3a..9468baace 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/GetLeaderPartsResp.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/GetLeaderPartsResp.java @@ -281,29 +281,29 @@ public void read(TProtocol iprot) throws TException { case LEADER_PARTS: if (__field.type == TType.MAP) { { - TMap _map293 = iprot.readMapBegin(); - this.leader_parts = new HashMap>(Math.max(0, 2*_map293.size)); - for (int _i294 = 0; - (_map293.size < 0) ? iprot.peekMap() : (_i294 < _map293.size); - ++_i294) + TMap _map302 = iprot.readMapBegin(); + this.leader_parts = new HashMap>(Math.max(0, 2*_map302.size)); + for (int _i303 = 0; + (_map302.size < 0) ? iprot.peekMap() : (_i303 < _map302.size); + ++_i303) { - int _key295; - List _val296; - _key295 = iprot.readI32(); + int _key304; + List _val305; + _key304 = iprot.readI32(); { - 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) + TList _list306 = iprot.readListBegin(); + _val305 = new ArrayList(Math.max(0, _list306.size)); + for (int _i307 = 0; + (_list306.size < 0) ? iprot.peekList() : (_i307 < _list306.size); + ++_i307) { - int _elem299; - _elem299 = iprot.readI32(); - _val296.add(_elem299); + int _elem308; + _elem308 = iprot.readI32(); + _val305.add(_elem308); } iprot.readListEnd(); } - this.leader_parts.put(_key295, _val296); + this.leader_parts.put(_key304, _val305); } iprot.readMapEnd(); } @@ -337,12 +337,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> _iter300 : this.leader_parts.entrySet()) { - oprot.writeI32(_iter300.getKey()); + for (Map.Entry> _iter309 : this.leader_parts.entrySet()) { + oprot.writeI32(_iter309.getKey()); { - oprot.writeListBegin(new TList(TType.I32, _iter300.getValue().size())); - for (int _iter301 : _iter300.getValue()) { - oprot.writeI32(_iter301); + oprot.writeListBegin(new TList(TType.I32, _iter309.getValue().size())); + for (int _iter310 : _iter309.getValue()) { + oprot.writeI32(_iter310); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/GetSyncProgressReq.java b/client/src/main/generated/com/vesoft/nebula/storage/GetSyncProgressReq.java new file mode 100644 index 000000000..053acdabf --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/storage/GetSyncProgressReq.java @@ -0,0 +1,267 @@ +/** + * 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 GetSyncProgressReq implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("GetSyncProgressReq"); + 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(GetSyncProgressReq.class, metaDataMap); + } + + public GetSyncProgressReq() { + } + + public GetSyncProgressReq( + 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 GetSyncProgressReq build() { + GetSyncProgressReq result = new GetSyncProgressReq(); + 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 GetSyncProgressReq(GetSyncProgressReq other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.space_id = TBaseHelper.deepCopy(other.space_id); + } + + public GetSyncProgressReq deepCopy() { + return new GetSyncProgressReq(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public GetSyncProgressReq 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 GetSyncProgressReq)) + return false; + GetSyncProgressReq that = (GetSyncProgressReq)_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(GetSyncProgressReq 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("GetSyncProgressReq"); + 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/storage/GetSyncProgressResp.java b/client/src/main/generated/com/vesoft/nebula/storage/GetSyncProgressResp.java new file mode 100644 index 000000000..b32514df1 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/storage/GetSyncProgressResp.java @@ -0,0 +1,395 @@ +/** + * 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 GetSyncProgressResp implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("GetSyncProgressResp"); + private static final TField CODE_FIELD_DESC = new TField("code", TType.I32, (short)1); + private static final TField PROGRESSES_FIELD_DESC = new TField("progresses", TType.MAP, (short)2); + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode code; + public Map progresses; + public static final int CODE = 1; + public static final int PROGRESSES = 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(PROGRESSES, new FieldMetaData("progresses", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new StructMetaData(TType.STRUCT, com.vesoft.nebula.SyncInfo.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(GetSyncProgressResp.class, metaDataMap); + } + + public GetSyncProgressResp() { + } + + public GetSyncProgressResp( + com.vesoft.nebula.ErrorCode code, + Map progresses) { + this(); + this.code = code; + this.progresses = progresses; + } + + public static class Builder { + private com.vesoft.nebula.ErrorCode code; + private Map progresses; + + public Builder() { + } + + public Builder setCode(final com.vesoft.nebula.ErrorCode code) { + this.code = code; + return this; + } + + public Builder setProgresses(final Map progresses) { + this.progresses = progresses; + return this; + } + + public GetSyncProgressResp build() { + GetSyncProgressResp result = new GetSyncProgressResp(); + result.setCode(this.code); + result.setProgresses(this.progresses); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public GetSyncProgressResp(GetSyncProgressResp other) { + if (other.isSetCode()) { + this.code = TBaseHelper.deepCopy(other.code); + } + if (other.isSetProgresses()) { + this.progresses = TBaseHelper.deepCopy(other.progresses); + } + } + + public GetSyncProgressResp deepCopy() { + return new GetSyncProgressResp(this); + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public com.vesoft.nebula.ErrorCode getCode() { + return this.code; + } + + /** + * + * @see com.vesoft.nebula.ErrorCode + */ + public GetSyncProgressResp 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 Map getProgresses() { + return this.progresses; + } + + public GetSyncProgressResp setProgresses(Map progresses) { + this.progresses = progresses; + return this; + } + + public void unsetProgresses() { + this.progresses = null; + } + + // Returns true if field progresses is set (has been assigned a value) and false otherwise + public boolean isSetProgresses() { + return this.progresses != null; + } + + public void setProgressesIsSet(boolean __value) { + if (!__value) { + this.progresses = 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 PROGRESSES: + if (__value == null) { + unsetProgresses(); + } else { + setProgresses((Map)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case CODE: + return getCode(); + + case PROGRESSES: + return getProgresses(); + + 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 GetSyncProgressResp)) + return false; + GetSyncProgressResp that = (GetSyncProgressResp)_that; + + if (!TBaseHelper.equalsNobinary(this.isSetCode(), that.isSetCode(), this.code, that.code)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetProgresses(), that.isSetProgresses(), this.progresses, that.progresses)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {code, progresses}); + } + + @Override + public int compareTo(GetSyncProgressResp 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(isSetProgresses()).compareTo(other.isSetProgresses()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(progresses, other.progresses); + 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 PROGRESSES: + if (__field.type == TType.MAP) { + { + TMap _map319 = iprot.readMapBegin(); + this.progresses = new HashMap(Math.max(0, 2*_map319.size)); + for (int _i320 = 0; + (_map319.size < 0) ? iprot.peekMap() : (_i320 < _map319.size); + ++_i320) + { + int _key321; + com.vesoft.nebula.SyncInfo _val322; + _key321 = iprot.readI32(); + _val322 = new com.vesoft.nebula.SyncInfo(); + _val322.read(iprot); + this.progresses.put(_key321, _val322); + } + 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.code != null) { + oprot.writeFieldBegin(CODE_FIELD_DESC); + oprot.writeI32(this.code == null ? 0 : this.code.getValue()); + oprot.writeFieldEnd(); + } + if (this.progresses != null) { + oprot.writeFieldBegin(PROGRESSES_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.STRUCT, this.progresses.size())); + for (Map.Entry _iter323 : this.progresses.entrySet()) { + oprot.writeI32(_iter323.getKey()); + _iter323.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("GetSyncProgressResp"); + 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("progresses"); + sb.append(space); + sb.append(":").append(space); + if (this.getProgresses() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getProgresses(), 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/GraphStorageService.java b/client/src/main/generated/com/vesoft/nebula/storage/GraphStorageService.java index b0771b56f..5a4d706bd 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/GraphStorageService.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/GraphStorageService.java @@ -73,6 +73,8 @@ public interface Iface { public ExecResponse remove(KVRemoveRequest req) throws TException; + public ExecResponse append(KVAppendRequest req) throws TException; + } public interface AsyncIface { @@ -119,6 +121,8 @@ public interface AsyncIface { public void remove(KVRemoveRequest req, AsyncMethodCallback resultHandler) throws TException; + public void append(KVAppendRequest req, AsyncMethodCallback resultHandler) throws TException; + } public static class Client extends EventHandlerBase implements Iface, TClientIf { @@ -1095,6 +1099,51 @@ public ExecResponse recv_remove() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "remove failed: unknown result"); } + public ExecResponse append(KVAppendRequest req) throws TException + { + ContextStack ctx = getContextStack("GraphStorageService.append", null); + this.setContextStack(ctx); + send_append(req); + return recv_append(); + } + + public void send_append(KVAppendRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "GraphStorageService.append", null); + oprot_.writeMessageBegin(new TMessage("append", TMessageType.CALL, seqid_)); + append_args args = new append_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "GraphStorageService.append", args); + return; + } + + public ExecResponse recv_append() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "GraphStorageService.append"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + append_result result = new append_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "GraphStorageService.append", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "append failed: unknown result"); + } + } public static class AsyncClient extends TAsyncClient implements AsyncIface { public static class Factory implements TAsyncClientFactory { @@ -1113,17 +1162,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void getNeighbors(GetNeighborsRequest req, AsyncMethodCallback resultHandler360) throws TException { + public void getNeighbors(GetNeighborsRequest req, AsyncMethodCallback resultHandler398) throws TException { checkReady(); - getNeighbors_call method_call = new getNeighbors_call(req, resultHandler360, this, ___protocolFactory, ___transport); + getNeighbors_call method_call = new getNeighbors_call(req, resultHandler398, 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 resultHandler361, TAsyncClient client357, TProtocolFactory protocolFactory358, TNonblockingTransport transport359) throws TException { - super(client357, protocolFactory358, transport359, resultHandler361, false); + public getNeighbors_call(GetNeighborsRequest req, AsyncMethodCallback resultHandler399, TAsyncClient client395, TProtocolFactory protocolFactory396, TNonblockingTransport transport397) throws TException { + super(client395, protocolFactory396, transport397, resultHandler399, false); this.req = req; } @@ -1145,17 +1194,17 @@ public GetNeighborsResponse getResult() throws TException { } } - public void getDstBySrc(GetDstBySrcRequest req, AsyncMethodCallback resultHandler365) throws TException { + public void getDstBySrc(GetDstBySrcRequest req, AsyncMethodCallback resultHandler403) throws TException { checkReady(); - getDstBySrc_call method_call = new getDstBySrc_call(req, resultHandler365, this, ___protocolFactory, ___transport); + getDstBySrc_call method_call = new getDstBySrc_call(req, resultHandler403, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getDstBySrc_call extends TAsyncMethodCall { private GetDstBySrcRequest req; - public getDstBySrc_call(GetDstBySrcRequest req, AsyncMethodCallback resultHandler366, TAsyncClient client362, TProtocolFactory protocolFactory363, TNonblockingTransport transport364) throws TException { - super(client362, protocolFactory363, transport364, resultHandler366, false); + public getDstBySrc_call(GetDstBySrcRequest req, AsyncMethodCallback resultHandler404, TAsyncClient client400, TProtocolFactory protocolFactory401, TNonblockingTransport transport402) throws TException { + super(client400, protocolFactory401, transport402, resultHandler404, false); this.req = req; } @@ -1177,17 +1226,17 @@ public GetDstBySrcResponse getResult() throws TException { } } - public void getProps(GetPropRequest req, AsyncMethodCallback resultHandler370) throws TException { + public void getProps(GetPropRequest req, AsyncMethodCallback resultHandler408) throws TException { checkReady(); - getProps_call method_call = new getProps_call(req, resultHandler370, this, ___protocolFactory, ___transport); + getProps_call method_call = new getProps_call(req, resultHandler408, 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 resultHandler371, TAsyncClient client367, TProtocolFactory protocolFactory368, TNonblockingTransport transport369) throws TException { - super(client367, protocolFactory368, transport369, resultHandler371, false); + public getProps_call(GetPropRequest req, AsyncMethodCallback resultHandler409, TAsyncClient client405, TProtocolFactory protocolFactory406, TNonblockingTransport transport407) throws TException { + super(client405, protocolFactory406, transport407, resultHandler409, false); this.req = req; } @@ -1209,17 +1258,17 @@ public GetPropResponse getResult() throws TException { } } - public void addVertices(AddVerticesRequest req, AsyncMethodCallback resultHandler375) throws TException { + public void addVertices(AddVerticesRequest req, AsyncMethodCallback resultHandler413) throws TException { checkReady(); - addVertices_call method_call = new addVertices_call(req, resultHandler375, this, ___protocolFactory, ___transport); + addVertices_call method_call = new addVertices_call(req, resultHandler413, 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 resultHandler376, TAsyncClient client372, TProtocolFactory protocolFactory373, TNonblockingTransport transport374) throws TException { - super(client372, protocolFactory373, transport374, resultHandler376, false); + public addVertices_call(AddVerticesRequest req, AsyncMethodCallback resultHandler414, TAsyncClient client410, TProtocolFactory protocolFactory411, TNonblockingTransport transport412) throws TException { + super(client410, protocolFactory411, transport412, resultHandler414, false); this.req = req; } @@ -1241,17 +1290,17 @@ public ExecResponse getResult() throws TException { } } - public void addEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler380) throws TException { + public void addEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler418) throws TException { checkReady(); - addEdges_call method_call = new addEdges_call(req, resultHandler380, this, ___protocolFactory, ___transport); + addEdges_call method_call = new addEdges_call(req, resultHandler418, 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 resultHandler381, TAsyncClient client377, TProtocolFactory protocolFactory378, TNonblockingTransport transport379) throws TException { - super(client377, protocolFactory378, transport379, resultHandler381, false); + public addEdges_call(AddEdgesRequest req, AsyncMethodCallback resultHandler419, TAsyncClient client415, TProtocolFactory protocolFactory416, TNonblockingTransport transport417) throws TException { + super(client415, protocolFactory416, transport417, resultHandler419, false); this.req = req; } @@ -1273,17 +1322,17 @@ public ExecResponse getResult() throws TException { } } - public void deleteEdges(DeleteEdgesRequest req, AsyncMethodCallback resultHandler385) throws TException { + public void deleteEdges(DeleteEdgesRequest req, AsyncMethodCallback resultHandler423) throws TException { checkReady(); - deleteEdges_call method_call = new deleteEdges_call(req, resultHandler385, this, ___protocolFactory, ___transport); + deleteEdges_call method_call = new deleteEdges_call(req, resultHandler423, 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 resultHandler386, TAsyncClient client382, TProtocolFactory protocolFactory383, TNonblockingTransport transport384) throws TException { - super(client382, protocolFactory383, transport384, resultHandler386, false); + public deleteEdges_call(DeleteEdgesRequest req, AsyncMethodCallback resultHandler424, TAsyncClient client420, TProtocolFactory protocolFactory421, TNonblockingTransport transport422) throws TException { + super(client420, protocolFactory421, transport422, resultHandler424, false); this.req = req; } @@ -1305,17 +1354,17 @@ public ExecResponse getResult() throws TException { } } - public void deleteVertices(DeleteVerticesRequest req, AsyncMethodCallback resultHandler390) throws TException { + public void deleteVertices(DeleteVerticesRequest req, AsyncMethodCallback resultHandler428) throws TException { checkReady(); - deleteVertices_call method_call = new deleteVertices_call(req, resultHandler390, this, ___protocolFactory, ___transport); + deleteVertices_call method_call = new deleteVertices_call(req, resultHandler428, 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 resultHandler391, TAsyncClient client387, TProtocolFactory protocolFactory388, TNonblockingTransport transport389) throws TException { - super(client387, protocolFactory388, transport389, resultHandler391, false); + public deleteVertices_call(DeleteVerticesRequest req, AsyncMethodCallback resultHandler429, TAsyncClient client425, TProtocolFactory protocolFactory426, TNonblockingTransport transport427) throws TException { + super(client425, protocolFactory426, transport427, resultHandler429, false); this.req = req; } @@ -1337,17 +1386,17 @@ public ExecResponse getResult() throws TException { } } - public void deleteTags(DeleteTagsRequest req, AsyncMethodCallback resultHandler395) throws TException { + public void deleteTags(DeleteTagsRequest req, AsyncMethodCallback resultHandler433) throws TException { checkReady(); - deleteTags_call method_call = new deleteTags_call(req, resultHandler395, this, ___protocolFactory, ___transport); + deleteTags_call method_call = new deleteTags_call(req, resultHandler433, 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 resultHandler396, TAsyncClient client392, TProtocolFactory protocolFactory393, TNonblockingTransport transport394) throws TException { - super(client392, protocolFactory393, transport394, resultHandler396, false); + public deleteTags_call(DeleteTagsRequest req, AsyncMethodCallback resultHandler434, TAsyncClient client430, TProtocolFactory protocolFactory431, TNonblockingTransport transport432) throws TException { + super(client430, protocolFactory431, transport432, resultHandler434, false); this.req = req; } @@ -1369,17 +1418,17 @@ public ExecResponse getResult() throws TException { } } - public void updateVertex(UpdateVertexRequest req, AsyncMethodCallback resultHandler400) throws TException { + public void updateVertex(UpdateVertexRequest req, AsyncMethodCallback resultHandler438) throws TException { checkReady(); - updateVertex_call method_call = new updateVertex_call(req, resultHandler400, this, ___protocolFactory, ___transport); + updateVertex_call method_call = new updateVertex_call(req, resultHandler438, 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 resultHandler401, TAsyncClient client397, TProtocolFactory protocolFactory398, TNonblockingTransport transport399) throws TException { - super(client397, protocolFactory398, transport399, resultHandler401, false); + public updateVertex_call(UpdateVertexRequest req, AsyncMethodCallback resultHandler439, TAsyncClient client435, TProtocolFactory protocolFactory436, TNonblockingTransport transport437) throws TException { + super(client435, protocolFactory436, transport437, resultHandler439, false); this.req = req; } @@ -1401,17 +1450,17 @@ public UpdateResponse getResult() throws TException { } } - public void updateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler405) throws TException { + public void updateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler443) throws TException { checkReady(); - updateEdge_call method_call = new updateEdge_call(req, resultHandler405, this, ___protocolFactory, ___transport); + updateEdge_call method_call = new updateEdge_call(req, resultHandler443, 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 resultHandler406, TAsyncClient client402, TProtocolFactory protocolFactory403, TNonblockingTransport transport404) throws TException { - super(client402, protocolFactory403, transport404, resultHandler406, false); + public updateEdge_call(UpdateEdgeRequest req, AsyncMethodCallback resultHandler444, TAsyncClient client440, TProtocolFactory protocolFactory441, TNonblockingTransport transport442) throws TException { + super(client440, protocolFactory441, transport442, resultHandler444, false); this.req = req; } @@ -1433,17 +1482,17 @@ public UpdateResponse getResult() throws TException { } } - public void scanVertex(ScanVertexRequest req, AsyncMethodCallback resultHandler410) throws TException { + public void scanVertex(ScanVertexRequest req, AsyncMethodCallback resultHandler448) throws TException { checkReady(); - scanVertex_call method_call = new scanVertex_call(req, resultHandler410, this, ___protocolFactory, ___transport); + scanVertex_call method_call = new scanVertex_call(req, resultHandler448, 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 resultHandler411, TAsyncClient client407, TProtocolFactory protocolFactory408, TNonblockingTransport transport409) throws TException { - super(client407, protocolFactory408, transport409, resultHandler411, false); + public scanVertex_call(ScanVertexRequest req, AsyncMethodCallback resultHandler449, TAsyncClient client445, TProtocolFactory protocolFactory446, TNonblockingTransport transport447) throws TException { + super(client445, protocolFactory446, transport447, resultHandler449, false); this.req = req; } @@ -1465,17 +1514,17 @@ public ScanResponse getResult() throws TException { } } - public void scanEdge(ScanEdgeRequest req, AsyncMethodCallback resultHandler415) throws TException { + public void scanEdge(ScanEdgeRequest req, AsyncMethodCallback resultHandler453) throws TException { checkReady(); - scanEdge_call method_call = new scanEdge_call(req, resultHandler415, this, ___protocolFactory, ___transport); + scanEdge_call method_call = new scanEdge_call(req, resultHandler453, 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 resultHandler416, TAsyncClient client412, TProtocolFactory protocolFactory413, TNonblockingTransport transport414) throws TException { - super(client412, protocolFactory413, transport414, resultHandler416, false); + public scanEdge_call(ScanEdgeRequest req, AsyncMethodCallback resultHandler454, TAsyncClient client450, TProtocolFactory protocolFactory451, TNonblockingTransport transport452) throws TException { + super(client450, protocolFactory451, transport452, resultHandler454, false); this.req = req; } @@ -1497,17 +1546,17 @@ public ScanResponse getResult() throws TException { } } - public void getUUID(GetUUIDReq req, AsyncMethodCallback resultHandler420) throws TException { + public void getUUID(GetUUIDReq req, AsyncMethodCallback resultHandler458) throws TException { checkReady(); - getUUID_call method_call = new getUUID_call(req, resultHandler420, this, ___protocolFactory, ___transport); + getUUID_call method_call = new getUUID_call(req, resultHandler458, 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 resultHandler421, TAsyncClient client417, TProtocolFactory protocolFactory418, TNonblockingTransport transport419) throws TException { - super(client417, protocolFactory418, transport419, resultHandler421, false); + public getUUID_call(GetUUIDReq req, AsyncMethodCallback resultHandler459, TAsyncClient client455, TProtocolFactory protocolFactory456, TNonblockingTransport transport457) throws TException { + super(client455, protocolFactory456, transport457, resultHandler459, false); this.req = req; } @@ -1529,17 +1578,17 @@ public GetUUIDResp getResult() throws TException { } } - public void lookupIndex(LookupIndexRequest req, AsyncMethodCallback resultHandler425) throws TException { + public void lookupIndex(LookupIndexRequest req, AsyncMethodCallback resultHandler463) throws TException { checkReady(); - lookupIndex_call method_call = new lookupIndex_call(req, resultHandler425, this, ___protocolFactory, ___transport); + lookupIndex_call method_call = new lookupIndex_call(req, resultHandler463, 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 resultHandler426, TAsyncClient client422, TProtocolFactory protocolFactory423, TNonblockingTransport transport424) throws TException { - super(client422, protocolFactory423, transport424, resultHandler426, false); + public lookupIndex_call(LookupIndexRequest req, AsyncMethodCallback resultHandler464, TAsyncClient client460, TProtocolFactory protocolFactory461, TNonblockingTransport transport462) throws TException { + super(client460, protocolFactory461, transport462, resultHandler464, false); this.req = req; } @@ -1561,17 +1610,17 @@ public LookupIndexResp getResult() throws TException { } } - public void lookupAndTraverse(LookupAndTraverseRequest req, AsyncMethodCallback resultHandler430) throws TException { + public void lookupAndTraverse(LookupAndTraverseRequest req, AsyncMethodCallback resultHandler468) throws TException { checkReady(); - lookupAndTraverse_call method_call = new lookupAndTraverse_call(req, resultHandler430, this, ___protocolFactory, ___transport); + lookupAndTraverse_call method_call = new lookupAndTraverse_call(req, resultHandler468, 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 resultHandler431, TAsyncClient client427, TProtocolFactory protocolFactory428, TNonblockingTransport transport429) throws TException { - super(client427, protocolFactory428, transport429, resultHandler431, false); + public lookupAndTraverse_call(LookupAndTraverseRequest req, AsyncMethodCallback resultHandler469, TAsyncClient client465, TProtocolFactory protocolFactory466, TNonblockingTransport transport467) throws TException { + super(client465, protocolFactory466, transport467, resultHandler469, false); this.req = req; } @@ -1593,17 +1642,17 @@ public GetNeighborsResponse getResult() throws TException { } } - public void chainUpdateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler435) throws TException { + public void chainUpdateEdge(UpdateEdgeRequest req, AsyncMethodCallback resultHandler473) throws TException { checkReady(); - chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler435, this, ___protocolFactory, ___transport); + chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler473, 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 resultHandler436, TAsyncClient client432, TProtocolFactory protocolFactory433, TNonblockingTransport transport434) throws TException { - super(client432, protocolFactory433, transport434, resultHandler436, false); + public chainUpdateEdge_call(UpdateEdgeRequest req, AsyncMethodCallback resultHandler474, TAsyncClient client470, TProtocolFactory protocolFactory471, TNonblockingTransport transport472) throws TException { + super(client470, protocolFactory471, transport472, resultHandler474, false); this.req = req; } @@ -1625,17 +1674,17 @@ public UpdateResponse getResult() throws TException { } } - public void chainAddEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler440) throws TException { + public void chainAddEdges(AddEdgesRequest req, AsyncMethodCallback resultHandler478) throws TException { checkReady(); - chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler440, this, ___protocolFactory, ___transport); + chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler478, 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 resultHandler441, TAsyncClient client437, TProtocolFactory protocolFactory438, TNonblockingTransport transport439) throws TException { - super(client437, protocolFactory438, transport439, resultHandler441, false); + public chainAddEdges_call(AddEdgesRequest req, AsyncMethodCallback resultHandler479, TAsyncClient client475, TProtocolFactory protocolFactory476, TNonblockingTransport transport477) throws TException { + super(client475, protocolFactory476, transport477, resultHandler479, false); this.req = req; } @@ -1657,17 +1706,17 @@ public ExecResponse getResult() throws TException { } } - public void chainDeleteEdges(DeleteEdgesRequest req, AsyncMethodCallback resultHandler445) throws TException { + public void chainDeleteEdges(DeleteEdgesRequest req, AsyncMethodCallback resultHandler483) throws TException { checkReady(); - chainDeleteEdges_call method_call = new chainDeleteEdges_call(req, resultHandler445, this, ___protocolFactory, ___transport); + chainDeleteEdges_call method_call = new chainDeleteEdges_call(req, resultHandler483, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chainDeleteEdges_call extends TAsyncMethodCall { private DeleteEdgesRequest req; - public chainDeleteEdges_call(DeleteEdgesRequest req, AsyncMethodCallback resultHandler446, TAsyncClient client442, TProtocolFactory protocolFactory443, TNonblockingTransport transport444) throws TException { - super(client442, protocolFactory443, transport444, resultHandler446, false); + public chainDeleteEdges_call(DeleteEdgesRequest req, AsyncMethodCallback resultHandler484, TAsyncClient client480, TProtocolFactory protocolFactory481, TNonblockingTransport transport482) throws TException { + super(client480, protocolFactory481, transport482, resultHandler484, false); this.req = req; } @@ -1689,17 +1738,17 @@ public ExecResponse getResult() throws TException { } } - public void get(KVGetRequest req, AsyncMethodCallback resultHandler450) throws TException { + public void get(KVGetRequest req, AsyncMethodCallback resultHandler488) throws TException { checkReady(); - get_call method_call = new get_call(req, resultHandler450, this, ___protocolFactory, ___transport); + get_call method_call = new get_call(req, resultHandler488, 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 resultHandler451, TAsyncClient client447, TProtocolFactory protocolFactory448, TNonblockingTransport transport449) throws TException { - super(client447, protocolFactory448, transport449, resultHandler451, false); + public get_call(KVGetRequest req, AsyncMethodCallback resultHandler489, TAsyncClient client485, TProtocolFactory protocolFactory486, TNonblockingTransport transport487) throws TException { + super(client485, protocolFactory486, transport487, resultHandler489, false); this.req = req; } @@ -1721,17 +1770,17 @@ public KVGetResponse getResult() throws TException { } } - public void put(KVPutRequest req, AsyncMethodCallback resultHandler455) throws TException { + public void put(KVPutRequest req, AsyncMethodCallback resultHandler493) throws TException { checkReady(); - put_call method_call = new put_call(req, resultHandler455, this, ___protocolFactory, ___transport); + put_call method_call = new put_call(req, resultHandler493, 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 resultHandler456, TAsyncClient client452, TProtocolFactory protocolFactory453, TNonblockingTransport transport454) throws TException { - super(client452, protocolFactory453, transport454, resultHandler456, false); + public put_call(KVPutRequest req, AsyncMethodCallback resultHandler494, TAsyncClient client490, TProtocolFactory protocolFactory491, TNonblockingTransport transport492) throws TException { + super(client490, protocolFactory491, transport492, resultHandler494, false); this.req = req; } @@ -1753,17 +1802,17 @@ public ExecResponse getResult() throws TException { } } - public void remove(KVRemoveRequest req, AsyncMethodCallback resultHandler460) throws TException { + public void remove(KVRemoveRequest req, AsyncMethodCallback resultHandler498) throws TException { checkReady(); - remove_call method_call = new remove_call(req, resultHandler460, this, ___protocolFactory, ___transport); + remove_call method_call = new remove_call(req, resultHandler498, 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 resultHandler461, TAsyncClient client457, TProtocolFactory protocolFactory458, TNonblockingTransport transport459) throws TException { - super(client457, protocolFactory458, transport459, resultHandler461, false); + public remove_call(KVRemoveRequest req, AsyncMethodCallback resultHandler499, TAsyncClient client495, TProtocolFactory protocolFactory496, TNonblockingTransport transport497) throws TException { + super(client495, protocolFactory496, transport497, resultHandler499, false); this.req = req; } @@ -1785,6 +1834,38 @@ public ExecResponse getResult() throws TException { } } + public void append(KVAppendRequest req, AsyncMethodCallback resultHandler503) throws TException { + checkReady(); + append_call method_call = new append_call(req, resultHandler503, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class append_call extends TAsyncMethodCall { + private KVAppendRequest req; + public append_call(KVAppendRequest req, AsyncMethodCallback resultHandler504, TAsyncClient client500, TProtocolFactory protocolFactory501, TNonblockingTransport transport502) throws TException { + super(client500, protocolFactory501, transport502, resultHandler504, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("append", TMessageType.CALL, 0)); + append_args args = new append_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_append(); + } + } + } public static class Processor implements TProcessor { @@ -1814,6 +1895,7 @@ public Processor(Iface iface) processMap_.put("get", new get()); processMap_.put("put", new put()); processMap_.put("remove", new remove()); + processMap_.put("append", new append()); } protected static interface ProcessFunction { @@ -2287,6 +2369,27 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class append implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("GraphStorageService.append", server_ctx); + append_args args = new append_args(); + event_handler_.preRead(handler_ctx, "GraphStorageService.append"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "GraphStorageService.append", args); + append_result result = new append_result(); + result.success = iface_.append(args.req); + event_handler_.preWrite(handler_ctx, "GraphStorageService.append", result); + oprot.writeMessageBegin(new TMessage("append", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "GraphStorageService.append", result); + } + + } + } public static class getNeighbors_args implements TBase, java.io.Serializable, Cloneable { @@ -10826,4 +10929,439 @@ public void validate() throws TException { } + public static class append_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("append_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public KVAppendRequest 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, KVAppendRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(append_args.class, metaDataMap); + } + + public append_args() { + } + + public append_args( + KVAppendRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public append_args(append_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public append_args deepCopy() { + return new append_args(this); + } + + public KVAppendRequest getReq() { + return this.req; + } + + public append_args setReq(KVAppendRequest 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((KVAppendRequest)__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 append_args)) + return false; + append_args that = (append_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(append_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 KVAppendRequest(); + 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("append_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 append_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("append_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(append_result.class, metaDataMap); + } + + public append_result() { + } + + public append_result( + ExecResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public append_result(append_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public append_result deepCopy() { + return new append_result(this); + } + + public ExecResponse getSuccess() { + return this.success; + } + + public append_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 append_result)) + return false; + append_result that = (append_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(append_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("append_result"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("success"); + sb.append(space); + sb.append(":").append(space); + if (this.getSuccess() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getSuccess(), indent + 1, prettyPrint)); + } + first = false; + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + + } + } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java b/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java index f8bd1e579..d21560fb4 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/InternalStorageService.java @@ -35,6 +35,8 @@ public interface Iface { public UpdateResponse chainUpdateEdge(ChainUpdateEdgeRequest req) throws TException; + public ExecResponse syncData(SyncDataRequest req) throws TException; + public ExecResponse chainDeleteEdges(ChainDeleteEdgesRequest req) throws TException; } @@ -45,6 +47,8 @@ public interface AsyncIface { public void chainUpdateEdge(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler) throws TException; + public void syncData(SyncDataRequest req, AsyncMethodCallback resultHandler) throws TException; + public void chainDeleteEdges(ChainDeleteEdgesRequest req, AsyncMethodCallback resultHandler) throws TException; } @@ -168,6 +172,51 @@ public UpdateResponse recv_chainUpdateEdge() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "chainUpdateEdge failed: unknown result"); } + public ExecResponse syncData(SyncDataRequest req) throws TException + { + ContextStack ctx = getContextStack("InternalStorageService.syncData", null); + this.setContextStack(ctx); + send_syncData(req); + return recv_syncData(); + } + + public void send_syncData(SyncDataRequest req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "InternalStorageService.syncData", null); + oprot_.writeMessageBegin(new TMessage("syncData", TMessageType.CALL, seqid_)); + syncData_args args = new syncData_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "InternalStorageService.syncData", args); + return; + } + + public ExecResponse recv_syncData() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "InternalStorageService.syncData"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + syncData_result result = new syncData_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "InternalStorageService.syncData", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "syncData failed: unknown result"); + } + public ExecResponse chainDeleteEdges(ChainDeleteEdgesRequest req) throws TException { ContextStack ctx = getContextStack("InternalStorageService.chainDeleteEdges", null); @@ -231,17 +280,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void chainAddEdges(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler552) throws TException { + public void chainAddEdges(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler602) throws TException { checkReady(); - chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler552, this, ___protocolFactory, ___transport); + chainAddEdges_call method_call = new chainAddEdges_call(req, resultHandler602, 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 resultHandler553, TAsyncClient client549, TProtocolFactory protocolFactory550, TNonblockingTransport transport551) throws TException { - super(client549, protocolFactory550, transport551, resultHandler553, false); + public chainAddEdges_call(ChainAddEdgesRequest req, AsyncMethodCallback resultHandler603, TAsyncClient client599, TProtocolFactory protocolFactory600, TNonblockingTransport transport601) throws TException { + super(client599, protocolFactory600, transport601, resultHandler603, false); this.req = req; } @@ -263,17 +312,17 @@ public ExecResponse getResult() throws TException { } } - public void chainUpdateEdge(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler557) throws TException { + public void chainUpdateEdge(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler607) throws TException { checkReady(); - chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler557, this, ___protocolFactory, ___transport); + chainUpdateEdge_call method_call = new chainUpdateEdge_call(req, resultHandler607, 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 resultHandler558, TAsyncClient client554, TProtocolFactory protocolFactory555, TNonblockingTransport transport556) throws TException { - super(client554, protocolFactory555, transport556, resultHandler558, false); + public chainUpdateEdge_call(ChainUpdateEdgeRequest req, AsyncMethodCallback resultHandler608, TAsyncClient client604, TProtocolFactory protocolFactory605, TNonblockingTransport transport606) throws TException { + super(client604, protocolFactory605, transport606, resultHandler608, false); this.req = req; } @@ -295,17 +344,49 @@ public UpdateResponse getResult() throws TException { } } - public void chainDeleteEdges(ChainDeleteEdgesRequest req, AsyncMethodCallback resultHandler562) throws TException { + public void syncData(SyncDataRequest req, AsyncMethodCallback resultHandler612) throws TException { checkReady(); - chainDeleteEdges_call method_call = new chainDeleteEdges_call(req, resultHandler562, this, ___protocolFactory, ___transport); + syncData_call method_call = new syncData_call(req, resultHandler612, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class syncData_call extends TAsyncMethodCall { + private SyncDataRequest req; + public syncData_call(SyncDataRequest req, AsyncMethodCallback resultHandler613, TAsyncClient client609, TProtocolFactory protocolFactory610, TNonblockingTransport transport611) throws TException { + super(client609, protocolFactory610, transport611, resultHandler613, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("syncData", TMessageType.CALL, 0)); + syncData_args args = new syncData_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_syncData(); + } + } + + public void chainDeleteEdges(ChainDeleteEdgesRequest req, AsyncMethodCallback resultHandler617) throws TException { + checkReady(); + chainDeleteEdges_call method_call = new chainDeleteEdges_call(req, resultHandler617, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chainDeleteEdges_call extends TAsyncMethodCall { private ChainDeleteEdgesRequest req; - public chainDeleteEdges_call(ChainDeleteEdgesRequest req, AsyncMethodCallback resultHandler563, TAsyncClient client559, TProtocolFactory protocolFactory560, TNonblockingTransport transport561) throws TException { - super(client559, protocolFactory560, transport561, resultHandler563, false); + public chainDeleteEdges_call(ChainDeleteEdgesRequest req, AsyncMethodCallback resultHandler618, TAsyncClient client614, TProtocolFactory protocolFactory615, TNonblockingTransport transport616) throws TException { + super(client614, protocolFactory615, transport616, resultHandler618, false); this.req = req; } @@ -337,6 +418,7 @@ public Processor(Iface iface) event_handler_ = new TProcessorEventHandler(); // Empty handler processMap_.put("chainAddEdges", new chainAddEdges()); processMap_.put("chainUpdateEdge", new chainUpdateEdge()); + processMap_.put("syncData", new syncData()); processMap_.put("chainDeleteEdges", new chainDeleteEdges()); } @@ -412,6 +494,27 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class syncData implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("InternalStorageService.syncData", server_ctx); + syncData_args args = new syncData_args(); + event_handler_.preRead(handler_ctx, "InternalStorageService.syncData"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "InternalStorageService.syncData", args); + syncData_result result = new syncData_result(); + result.success = iface_.syncData(args.req); + event_handler_.preWrite(handler_ctx, "InternalStorageService.syncData", result); + oprot.writeMessageBegin(new TMessage("syncData", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "InternalStorageService.syncData", result); + } + + } + private class chainDeleteEdges implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { @@ -1236,6 +1339,441 @@ public void validate() throws TException { } + public static class syncData_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("syncData_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public SyncDataRequest 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, SyncDataRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(syncData_args.class, metaDataMap); + } + + public syncData_args() { + } + + public syncData_args( + SyncDataRequest req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public syncData_args(syncData_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public syncData_args deepCopy() { + return new syncData_args(this); + } + + public SyncDataRequest getReq() { + return this.req; + } + + public syncData_args setReq(SyncDataRequest 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((SyncDataRequest)__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 syncData_args)) + return false; + syncData_args that = (syncData_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(syncData_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 SyncDataRequest(); + 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("syncData_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 syncData_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("syncData_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(syncData_result.class, metaDataMap); + } + + public syncData_result() { + } + + public syncData_result( + ExecResponse success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public syncData_result(syncData_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public syncData_result deepCopy() { + return new syncData_result(this); + } + + public ExecResponse getSuccess() { + return this.success; + } + + public syncData_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 syncData_result)) + return false; + syncData_result that = (syncData_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(syncData_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("syncData_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 chainDeleteEdges_args implements TBase, java.io.Serializable, Cloneable { private static final TStruct STRUCT_DESC = new TStruct("chainDeleteEdges_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); diff --git a/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java new file mode 100644 index 000000000..0db64519a --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/storage/InternalTxnRequest.java @@ -0,0 +1,644 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package com.vesoft.nebula.storage; + +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import java.util.Collections; +import java.util.BitSet; +import java.util.Arrays; +import com.facebook.thrift.*; +import com.facebook.thrift.annotations.*; +import com.facebook.thrift.async.*; +import com.facebook.thrift.meta_data.*; +import com.facebook.thrift.server.*; +import com.facebook.thrift.transport.*; +import com.facebook.thrift.protocol.*; + +@SuppressWarnings({ "unused", "serial" }) +public class InternalTxnRequest implements TBase, java.io.Serializable, Cloneable { + private static final TStruct STRUCT_DESC = new TStruct("InternalTxnRequest"); + private static final TField TXN_ID_FIELD_DESC = new TField("txn_id", TType.I64, (short)1); + private static final TField TERM_OF_PARTS_FIELD_DESC = new TField("term_of_parts", TType.MAP, (short)2); + private static final TField ADD_EDGE_REQ_FIELD_DESC = new TField("add_edge_req", TType.STRUCT, (short)3); + private static final TField UPD_EDGE_REQ_FIELD_DESC = new TField("upd_edge_req", TType.STRUCT, (short)4); + private static final TField EDGE_VER_FIELD_DESC = new TField("edge_ver", TType.MAP, (short)5); + + public long txn_id; + public Map term_of_parts; + public AddEdgesRequest add_edge_req; + public UpdateEdgeRequest upd_edge_req; + public Map> edge_ver; + public static final int TXN_ID = 1; + public static final int TERM_OF_PARTS = 2; + public static final int ADD_EDGE_REQ = 3; + public static final int UPD_EDGE_REQ = 4; + public static final int EDGE_VER = 5; + + // isset id assignments + private static final int __TXN_ID_ISSET_ID = 0; + private BitSet __isset_bit_vector = new BitSet(1); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(TXN_ID, new FieldMetaData("txn_id", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + tmpMetaDataMap.put(TERM_OF_PARTS, new FieldMetaData("term_of_parts", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new FieldValueMetaData(TType.I64)))); + tmpMetaDataMap.put(ADD_EDGE_REQ, new FieldMetaData("add_edge_req", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, AddEdgesRequest.class))); + tmpMetaDataMap.put(UPD_EDGE_REQ, new FieldMetaData("upd_edge_req", TFieldRequirementType.OPTIONAL, + new StructMetaData(TType.STRUCT, UpdateEdgeRequest.class))); + tmpMetaDataMap.put(EDGE_VER, new FieldMetaData("edge_ver", TFieldRequirementType.OPTIONAL, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new ListMetaData(TType.LIST, + new FieldValueMetaData(TType.I64))))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(InternalTxnRequest.class, metaDataMap); + } + + public InternalTxnRequest() { + } + + public InternalTxnRequest( + long txn_id, + Map term_of_parts) { + this(); + this.txn_id = txn_id; + setTxn_idIsSet(true); + this.term_of_parts = term_of_parts; + } + + public InternalTxnRequest( + long txn_id, + Map term_of_parts, + AddEdgesRequest add_edge_req, + UpdateEdgeRequest upd_edge_req, + Map> edge_ver) { + this(); + this.txn_id = txn_id; + setTxn_idIsSet(true); + this.term_of_parts = term_of_parts; + this.add_edge_req = add_edge_req; + this.upd_edge_req = upd_edge_req; + this.edge_ver = edge_ver; + } + + public static class Builder { + private long txn_id; + private Map term_of_parts; + private AddEdgesRequest add_edge_req; + private UpdateEdgeRequest upd_edge_req; + private Map> edge_ver; + + BitSet __optional_isset = new BitSet(1); + + public Builder() { + } + + public Builder setTxn_id(final long txn_id) { + this.txn_id = txn_id; + __optional_isset.set(__TXN_ID_ISSET_ID, true); + return this; + } + + public Builder setTerm_of_parts(final Map term_of_parts) { + this.term_of_parts = term_of_parts; + return this; + } + + public Builder setAdd_edge_req(final AddEdgesRequest add_edge_req) { + this.add_edge_req = add_edge_req; + return this; + } + + public Builder setUpd_edge_req(final UpdateEdgeRequest upd_edge_req) { + this.upd_edge_req = upd_edge_req; + return this; + } + + public Builder setEdge_ver(final Map> edge_ver) { + this.edge_ver = edge_ver; + return this; + } + + public InternalTxnRequest build() { + InternalTxnRequest result = new InternalTxnRequest(); + if (__optional_isset.get(__TXN_ID_ISSET_ID)) { + result.setTxn_id(this.txn_id); + } + result.setTerm_of_parts(this.term_of_parts); + result.setAdd_edge_req(this.add_edge_req); + result.setUpd_edge_req(this.upd_edge_req); + result.setEdge_ver(this.edge_ver); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public InternalTxnRequest(InternalTxnRequest other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.txn_id = TBaseHelper.deepCopy(other.txn_id); + if (other.isSetTerm_of_parts()) { + this.term_of_parts = TBaseHelper.deepCopy(other.term_of_parts); + } + if (other.isSetAdd_edge_req()) { + this.add_edge_req = TBaseHelper.deepCopy(other.add_edge_req); + } + if (other.isSetUpd_edge_req()) { + this.upd_edge_req = TBaseHelper.deepCopy(other.upd_edge_req); + } + if (other.isSetEdge_ver()) { + this.edge_ver = TBaseHelper.deepCopy(other.edge_ver); + } + } + + public InternalTxnRequest deepCopy() { + return new InternalTxnRequest(this); + } + + public long getTxn_id() { + return this.txn_id; + } + + public InternalTxnRequest setTxn_id(long txn_id) { + this.txn_id = txn_id; + setTxn_idIsSet(true); + return this; + } + + public void unsetTxn_id() { + __isset_bit_vector.clear(__TXN_ID_ISSET_ID); + } + + // Returns true if field txn_id is set (has been assigned a value) and false otherwise + public boolean isSetTxn_id() { + return __isset_bit_vector.get(__TXN_ID_ISSET_ID); + } + + public void setTxn_idIsSet(boolean __value) { + __isset_bit_vector.set(__TXN_ID_ISSET_ID, __value); + } + + public Map getTerm_of_parts() { + return this.term_of_parts; + } + + public InternalTxnRequest setTerm_of_parts(Map term_of_parts) { + this.term_of_parts = term_of_parts; + return this; + } + + public void unsetTerm_of_parts() { + this.term_of_parts = null; + } + + // Returns true if field term_of_parts is set (has been assigned a value) and false otherwise + public boolean isSetTerm_of_parts() { + return this.term_of_parts != null; + } + + public void setTerm_of_partsIsSet(boolean __value) { + if (!__value) { + this.term_of_parts = null; + } + } + + public AddEdgesRequest getAdd_edge_req() { + return this.add_edge_req; + } + + public InternalTxnRequest setAdd_edge_req(AddEdgesRequest add_edge_req) { + this.add_edge_req = add_edge_req; + return this; + } + + public void unsetAdd_edge_req() { + this.add_edge_req = null; + } + + // Returns true if field add_edge_req is set (has been assigned a value) and false otherwise + public boolean isSetAdd_edge_req() { + return this.add_edge_req != null; + } + + public void setAdd_edge_reqIsSet(boolean __value) { + if (!__value) { + this.add_edge_req = null; + } + } + + public UpdateEdgeRequest getUpd_edge_req() { + return this.upd_edge_req; + } + + public InternalTxnRequest setUpd_edge_req(UpdateEdgeRequest upd_edge_req) { + this.upd_edge_req = upd_edge_req; + return this; + } + + public void unsetUpd_edge_req() { + this.upd_edge_req = null; + } + + // Returns true if field upd_edge_req is set (has been assigned a value) and false otherwise + public boolean isSetUpd_edge_req() { + return this.upd_edge_req != null; + } + + public void setUpd_edge_reqIsSet(boolean __value) { + if (!__value) { + this.upd_edge_req = null; + } + } + + public Map> getEdge_ver() { + return this.edge_ver; + } + + public InternalTxnRequest setEdge_ver(Map> edge_ver) { + this.edge_ver = edge_ver; + return this; + } + + public void unsetEdge_ver() { + this.edge_ver = null; + } + + // Returns true if field edge_ver is set (has been assigned a value) and false otherwise + public boolean isSetEdge_ver() { + return this.edge_ver != null; + } + + public void setEdge_verIsSet(boolean __value) { + if (!__value) { + this.edge_ver = null; + } + } + + @SuppressWarnings("unchecked") + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case TXN_ID: + if (__value == null) { + unsetTxn_id(); + } else { + setTxn_id((Long)__value); + } + break; + + case TERM_OF_PARTS: + if (__value == null) { + unsetTerm_of_parts(); + } else { + setTerm_of_parts((Map)__value); + } + break; + + case ADD_EDGE_REQ: + if (__value == null) { + unsetAdd_edge_req(); + } else { + setAdd_edge_req((AddEdgesRequest)__value); + } + break; + + case UPD_EDGE_REQ: + if (__value == null) { + unsetUpd_edge_req(); + } else { + setUpd_edge_req((UpdateEdgeRequest)__value); + } + break; + + case EDGE_VER: + if (__value == null) { + unsetEdge_ver(); + } else { + setEdge_ver((Map>)__value); + } + break; + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + public Object getFieldValue(int fieldID) { + switch (fieldID) { + case TXN_ID: + return new Long(getTxn_id()); + + case TERM_OF_PARTS: + return getTerm_of_parts(); + + case ADD_EDGE_REQ: + return getAdd_edge_req(); + + case UPD_EDGE_REQ: + return getUpd_edge_req(); + + case EDGE_VER: + return getEdge_ver(); + + default: + throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); + } + } + + @Override + public boolean equals(Object _that) { + if (_that == null) + return false; + if (this == _that) + return true; + if (!(_that instanceof InternalTxnRequest)) + return false; + InternalTxnRequest that = (InternalTxnRequest)_that; + + if (!TBaseHelper.equalsNobinary(this.txn_id, that.txn_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetTerm_of_parts(), that.isSetTerm_of_parts(), this.term_of_parts, that.term_of_parts)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetAdd_edge_req(), that.isSetAdd_edge_req(), this.add_edge_req, that.add_edge_req)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetUpd_edge_req(), that.isSetUpd_edge_req(), this.upd_edge_req, that.upd_edge_req)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetEdge_ver(), that.isSetEdge_ver(), this.edge_ver, that.edge_ver)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {txn_id, term_of_parts, add_edge_req, upd_edge_req, edge_ver}); + } + + public void read(TProtocol iprot) throws TException { + TField __field; + iprot.readStructBegin(metaDataMap); + while (true) + { + __field = iprot.readFieldBegin(); + if (__field.type == TType.STOP) { + break; + } + switch (__field.id) + { + case TXN_ID: + if (__field.type == TType.I64) { + this.txn_id = iprot.readI64(); + setTxn_idIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case TERM_OF_PARTS: + if (__field.type == TType.MAP) { + { + TMap _map333 = iprot.readMapBegin(); + this.term_of_parts = new HashMap(Math.max(0, 2*_map333.size)); + for (int _i334 = 0; + (_map333.size < 0) ? iprot.peekMap() : (_i334 < _map333.size); + ++_i334) + { + int _key335; + long _val336; + _key335 = iprot.readI32(); + _val336 = iprot.readI64(); + this.term_of_parts.put(_key335, _val336); + } + iprot.readMapEnd(); + } + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case ADD_EDGE_REQ: + if (__field.type == TType.STRUCT) { + this.add_edge_req = new AddEdgesRequest(); + this.add_edge_req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case UPD_EDGE_REQ: + if (__field.type == TType.STRUCT) { + this.upd_edge_req = new UpdateEdgeRequest(); + this.upd_edge_req.read(iprot); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case EDGE_VER: + if (__field.type == TType.MAP) { + { + TMap _map337 = iprot.readMapBegin(); + this.edge_ver = new HashMap>(Math.max(0, 2*_map337.size)); + for (int _i338 = 0; + (_map337.size < 0) ? iprot.peekMap() : (_i338 < _map337.size); + ++_i338) + { + int _key339; + List _val340; + _key339 = iprot.readI32(); + { + TList _list341 = iprot.readListBegin(); + _val340 = new ArrayList(Math.max(0, _list341.size)); + for (int _i342 = 0; + (_list341.size < 0) ? iprot.peekList() : (_i342 < _list341.size); + ++_i342) + { + long _elem343; + _elem343 = iprot.readI64(); + _val340.add(_elem343); + } + iprot.readListEnd(); + } + this.edge_ver.put(_key339, _val340); + } + iprot.readMapEnd(); + } + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + default: + TProtocolUtil.skip(iprot, __field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + + // check for required fields of primitive type, which can't be checked in the validate method + validate(); + } + + public void write(TProtocol oprot) throws TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(TXN_ID_FIELD_DESC); + oprot.writeI64(this.txn_id); + oprot.writeFieldEnd(); + if (this.term_of_parts != null) { + oprot.writeFieldBegin(TERM_OF_PARTS_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.I64, this.term_of_parts.size())); + for (Map.Entry _iter344 : this.term_of_parts.entrySet()) { + oprot.writeI32(_iter344.getKey()); + oprot.writeI64(_iter344.getValue()); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + if (this.add_edge_req != null) { + if (isSetAdd_edge_req()) { + oprot.writeFieldBegin(ADD_EDGE_REQ_FIELD_DESC); + this.add_edge_req.write(oprot); + oprot.writeFieldEnd(); + } + } + if (this.upd_edge_req != null) { + if (isSetUpd_edge_req()) { + oprot.writeFieldBegin(UPD_EDGE_REQ_FIELD_DESC); + this.upd_edge_req.write(oprot); + oprot.writeFieldEnd(); + } + } + if (this.edge_ver != null) { + if (isSetEdge_ver()) { + oprot.writeFieldBegin(EDGE_VER_FIELD_DESC); + { + oprot.writeMapBegin(new TMap(TType.I32, TType.LIST, this.edge_ver.size())); + for (Map.Entry> _iter345 : this.edge_ver.entrySet()) { + oprot.writeI32(_iter345.getKey()); + { + oprot.writeListBegin(new TList(TType.I64, _iter345.getValue().size())); + for (long _iter346 : _iter345.getValue()) { + oprot.writeI64(_iter346); + } + oprot.writeListEnd(); + } + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("InternalTxnRequest"); + sb.append(space); + sb.append("("); + sb.append(newLine); + boolean first = true; + + sb.append(indentStr); + sb.append("txn_id"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.getTxn_id(), indent + 1, prettyPrint)); + first = false; + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("term_of_parts"); + sb.append(space); + sb.append(":").append(space); + if (this.getTerm_of_parts() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getTerm_of_parts(), indent + 1, prettyPrint)); + } + first = false; + if (isSetAdd_edge_req()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("add_edge_req"); + sb.append(space); + sb.append(":").append(space); + if (this.getAdd_edge_req() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getAdd_edge_req(), indent + 1, prettyPrint)); + } + first = false; + } + if (isSetUpd_edge_req()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("upd_edge_req"); + sb.append(space); + sb.append(":").append(space); + if (this.getUpd_edge_req() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getUpd_edge_req(), indent + 1, prettyPrint)); + } + first = false; + } + if (isSetEdge_ver()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("edge_ver"); + sb.append(space); + sb.append(":").append(space); + if (this.getEdge_ver() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getEdge_ver(), indent + 1, prettyPrint)); + } + first = false; + } + sb.append(newLine + TBaseHelper.reduceIndent(indentStr)); + sb.append(")"); + return sb.toString(); + } + + public void validate() throws TException { + // check for required fields + } + +} + diff --git a/client/src/main/generated/com/vesoft/nebula/storage/KVAppendRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/KVAppendRequest.java new file mode 100644 index 000000000..afe2d64ec --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/storage/KVAppendRequest.java @@ -0,0 +1,396 @@ +/** + * 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 KVAppendRequest implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("KVAppendRequest"); + 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); + + public int space_id; + public Map> parts; + public static final int SPACE_ID = 1; + public static final int PARTS = 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(PARTS, new FieldMetaData("parts", TFieldRequirementType.DEFAULT, + new MapMetaData(TType.MAP, + new FieldValueMetaData(TType.I32), + new ListMetaData(TType.LIST, + new StructMetaData(TType.STRUCT, com.vesoft.nebula.KeyValue.class))))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(KVAppendRequest.class, metaDataMap); + } + + public KVAppendRequest() { + } + + public KVAppendRequest( + int space_id, + Map> parts) { + this(); + this.space_id = space_id; + setSpace_idIsSet(true); + this.parts = parts; + } + + public static class Builder { + private int space_id; + private Map> parts; + + 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 Builder setParts(final Map> parts) { + this.parts = parts; + return this; + } + + public KVAppendRequest build() { + KVAppendRequest result = new KVAppendRequest(); + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setParts(this.parts); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public KVAppendRequest(KVAppendRequest other) { + __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); + } + } + + public KVAppendRequest deepCopy() { + return new KVAppendRequest(this); + } + + public int getSpace_id() { + return this.space_id; + } + + public KVAppendRequest 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 Map> getParts() { + return this.parts; + } + + public KVAppendRequest 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.parts = null; + } + } + + @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 PARTS: + if (__value == null) { + unsetParts(); + } else { + setParts((Map>)__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 PARTS: + return getParts(); + + 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 KVAppendRequest)) + return false; + KVAppendRequest that = (KVAppendRequest)_that; + + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetParts(), that.isSetParts(), this.parts, that.parts)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {space_id, parts}); + } + + @Override + public int compareTo(KVAppendRequest 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(isSetParts()).compareTo(other.isSetParts()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(parts, other.parts); + 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 PARTS: + if (__field.type == TType.MAP) { + { + TMap _map273 = iprot.readMapBegin(); + this.parts = new HashMap>(Math.max(0, 2*_map273.size)); + for (int _i274 = 0; + (_map273.size < 0) ? iprot.peekMap() : (_i274 < _map273.size); + ++_i274) + { + int _key275; + List _val276; + _key275 = iprot.readI32(); + { + TList _list277 = iprot.readListBegin(); + _val276 = new ArrayList(Math.max(0, _list277.size)); + for (int _i278 = 0; + (_list277.size < 0) ? iprot.peekList() : (_i278 < _list277.size); + ++_i278) + { + com.vesoft.nebula.KeyValue _elem279; + _elem279 = new com.vesoft.nebula.KeyValue(); + _elem279.read(iprot); + _val276.add(_elem279); + } + iprot.readListEnd(); + } + this.parts.put(_key275, _val276); + } + 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(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.LIST, this.parts.size())); + for (Map.Entry> _iter280 : this.parts.entrySet()) { + oprot.writeI32(_iter280.getKey()); + { + oprot.writeListBegin(new TList(TType.STRUCT, _iter280.getValue().size())); + for (com.vesoft.nebula.KeyValue _iter281 : _iter280.getValue()) { + _iter281.write(oprot); + } + oprot.writeListEnd(); + } + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("KVAppendRequest"); + 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("parts"); + sb.append(space); + sb.append(":").append(space); + if (this.getParts() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getParts(), 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/RebuildIndexRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/RebuildIndexRequest.java index 43424a546..c2599c920 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 _list306 = iprot.readListBegin(); - this.parts = new ArrayList(Math.max(0, _list306.size)); - for (int _i307 = 0; - (_list306.size < 0) ? iprot.peekList() : (_i307 < _list306.size); - ++_i307) + TList _list315 = iprot.readListBegin(); + this.parts = new ArrayList(Math.max(0, _list315.size)); + for (int _i316 = 0; + (_list315.size < 0) ? iprot.peekList() : (_i316 < _list315.size); + ++_i316) { - int _elem308; - _elem308 = iprot.readI32(); - this.parts.add(_elem308); + int _elem317; + _elem317 = iprot.readI32(); + this.parts.add(_elem317); } 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 _iter309 : this.parts) { - oprot.writeI32(_iter309); + for (int _iter318 : this.parts) { + oprot.writeI32(_iter318); } oprot.writeListEnd(); } diff --git a/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeRequest.java index f40b6c844..6fae323cd 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/ScanEdgeRequest.java @@ -36,6 +36,9 @@ public class ScanEdgeRequest implements TBase, java.io.Serializable, Cloneable, private static final TField ONLY_LATEST_VERSION_FIELD_DESC = new TField("only_latest_version", TType.BOOL, (short)8); private static final TField ENABLE_READ_FROM_FOLLOWER_FIELD_DESC = new TField("enable_read_from_follower", TType.BOOL, (short)9); private static final TField COMMON_FIELD_DESC = new TField("common", TType.STRUCT, (short)10); + private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)11); + private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)12); + private static final TField NEED_AUTHENTICATE_FIELD_DESC = new TField("need_authenticate", TType.BOOL, (short)13); public int space_id; public Map parts; @@ -47,6 +50,9 @@ public class ScanEdgeRequest implements TBase, java.io.Serializable, Cloneable, public boolean only_latest_version; public boolean enable_read_from_follower; public RequestCommon common; + public byte[] username; + public byte[] password; + public boolean need_authenticate; public static final int SPACE_ID = 1; public static final int PARTS = 2; public static final int RETURN_COLUMNS = 3; @@ -57,6 +63,9 @@ public class ScanEdgeRequest implements TBase, java.io.Serializable, Cloneable, public static final int ONLY_LATEST_VERSION = 8; public static final int ENABLE_READ_FROM_FOLLOWER = 9; public static final int COMMON = 10; + public static final int USERNAME = 11; + public static final int PASSWORD = 12; + public static final int NEED_AUTHENTICATE = 13; // isset id assignments private static final int __SPACE_ID_ISSET_ID = 0; @@ -65,7 +74,8 @@ public class ScanEdgeRequest implements TBase, java.io.Serializable, Cloneable, private static final int __END_TIME_ISSET_ID = 3; private static final int __ONLY_LATEST_VERSION_ISSET_ID = 4; private static final int __ENABLE_READ_FROM_FOLLOWER_ISSET_ID = 5; - private BitSet __isset_bit_vector = new BitSet(6); + private static final int __NEED_AUTHENTICATE_ISSET_ID = 6; + private BitSet __isset_bit_vector = new BitSet(7); public static final Map metaDataMap; @@ -94,6 +104,12 @@ public class ScanEdgeRequest implements TBase, java.io.Serializable, Cloneable, new FieldValueMetaData(TType.BOOL))); tmpMetaDataMap.put(COMMON, new FieldMetaData("common", TFieldRequirementType.OPTIONAL, new StructMetaData(TType.STRUCT, RequestCommon.class))); + tmpMetaDataMap.put(USERNAME, new FieldMetaData("username", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(PASSWORD, new FieldMetaData("password", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(NEED_AUTHENTICATE, new FieldMetaData("need_authenticate", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -138,7 +154,10 @@ public ScanEdgeRequest( byte[] filter, boolean only_latest_version, boolean enable_read_from_follower, - RequestCommon common) { + RequestCommon common, + byte[] username, + byte[] password, + boolean need_authenticate) { this(); this.space_id = space_id; setSpace_idIsSet(true); @@ -156,6 +175,10 @@ public ScanEdgeRequest( this.enable_read_from_follower = enable_read_from_follower; setEnable_read_from_followerIsSet(true); this.common = common; + this.username = username; + this.password = password; + this.need_authenticate = need_authenticate; + setNeed_authenticateIsSet(true); } public static class Builder { @@ -169,8 +192,11 @@ public static class Builder { private boolean only_latest_version; private boolean enable_read_from_follower; private RequestCommon common; + private byte[] username; + private byte[] password; + private boolean need_authenticate; - BitSet __optional_isset = new BitSet(6); + BitSet __optional_isset = new BitSet(7); public Builder() { } @@ -231,6 +257,22 @@ public Builder setCommon(final RequestCommon common) { return this; } + public Builder setUsername(final byte[] username) { + this.username = username; + return this; + } + + public Builder setPassword(final byte[] password) { + this.password = password; + return this; + } + + public Builder setNeed_authenticate(final boolean need_authenticate) { + this.need_authenticate = need_authenticate; + __optional_isset.set(__NEED_AUTHENTICATE_ISSET_ID, true); + return this; + } + public ScanEdgeRequest build() { ScanEdgeRequest result = new ScanEdgeRequest(); if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { @@ -255,6 +297,11 @@ public ScanEdgeRequest build() { result.setEnable_read_from_follower(this.enable_read_from_follower); } result.setCommon(this.common); + result.setUsername(this.username); + result.setPassword(this.password); + if (__optional_isset.get(__NEED_AUTHENTICATE_ISSET_ID)) { + result.setNeed_authenticate(this.need_authenticate); + } return result; } } @@ -287,6 +334,13 @@ public ScanEdgeRequest(ScanEdgeRequest other) { if (other.isSetCommon()) { this.common = TBaseHelper.deepCopy(other.common); } + if (other.isSetUsername()) { + this.username = TBaseHelper.deepCopy(other.username); + } + if (other.isSetPassword()) { + this.password = TBaseHelper.deepCopy(other.password); + } + this.need_authenticate = TBaseHelper.deepCopy(other.need_authenticate); } public ScanEdgeRequest deepCopy() { @@ -527,6 +581,77 @@ public void setCommonIsSet(boolean __value) { } } + public byte[] getUsername() { + return this.username; + } + + public ScanEdgeRequest setUsername(byte[] username) { + this.username = username; + return this; + } + + public void unsetUsername() { + this.username = null; + } + + // Returns true if field username is set (has been assigned a value) and false otherwise + public boolean isSetUsername() { + return this.username != null; + } + + public void setUsernameIsSet(boolean __value) { + if (!__value) { + this.username = null; + } + } + + public byte[] getPassword() { + return this.password; + } + + public ScanEdgeRequest setPassword(byte[] password) { + this.password = password; + return this; + } + + public void unsetPassword() { + this.password = null; + } + + // Returns true if field password is set (has been assigned a value) and false otherwise + public boolean isSetPassword() { + return this.password != null; + } + + public void setPasswordIsSet(boolean __value) { + if (!__value) { + this.password = null; + } + } + + public boolean isNeed_authenticate() { + return this.need_authenticate; + } + + public ScanEdgeRequest setNeed_authenticate(boolean need_authenticate) { + this.need_authenticate = need_authenticate; + setNeed_authenticateIsSet(true); + return this; + } + + public void unsetNeed_authenticate() { + __isset_bit_vector.clear(__NEED_AUTHENTICATE_ISSET_ID); + } + + // Returns true if field need_authenticate is set (has been assigned a value) and false otherwise + public boolean isSetNeed_authenticate() { + return __isset_bit_vector.get(__NEED_AUTHENTICATE_ISSET_ID); + } + + public void setNeed_authenticateIsSet(boolean __value) { + __isset_bit_vector.set(__NEED_AUTHENTICATE_ISSET_ID, __value); + } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -610,6 +735,30 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case USERNAME: + if (__value == null) { + unsetUsername(); + } else { + setUsername((byte[])__value); + } + break; + + case PASSWORD: + if (__value == null) { + unsetPassword(); + } else { + setPassword((byte[])__value); + } + break; + + case NEED_AUTHENTICATE: + if (__value == null) { + unsetNeed_authenticate(); + } else { + setNeed_authenticate((Boolean)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -647,6 +796,15 @@ public Object getFieldValue(int fieldID) { case COMMON: return getCommon(); + case USERNAME: + return getUsername(); + + case PASSWORD: + return getPassword(); + + case NEED_AUTHENTICATE: + return new Boolean(isNeed_authenticate()); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -682,12 +840,18 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.isSetCommon(), that.isSetCommon(), this.common, that.common)) { return false; } + if (!TBaseHelper.equalsSlow(this.isSetUsername(), that.isSetUsername(), this.username, that.username)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetPassword(), that.isSetPassword(), this.password, that.password)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetNeed_authenticate(), that.isSetNeed_authenticate(), this.need_authenticate, that.need_authenticate)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, parts, return_columns, limit, start_time, end_time, filter, only_latest_version, enable_read_from_follower, common}); + return Arrays.deepHashCode(new Object[] {space_id, parts, return_columns, limit, start_time, end_time, filter, only_latest_version, enable_read_from_follower, common, username, password, need_authenticate}); } @Override @@ -782,6 +946,30 @@ public int compareTo(ScanEdgeRequest other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(username, other.username); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(password, other.password); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetNeed_authenticate()).compareTo(other.isSetNeed_authenticate()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(need_authenticate, other.need_authenticate); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -901,6 +1089,28 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case USERNAME: + if (__field.type == TType.STRING) { + this.username = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PASSWORD: + if (__field.type == TType.STRING) { + this.password = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case NEED_AUTHENTICATE: + if (__field.type == TType.BOOL) { + this.need_authenticate = iprot.readBool(); + setNeed_authenticateIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -977,6 +1187,25 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } } + if (this.username != null) { + if (isSetUsername()) { + oprot.writeFieldBegin(USERNAME_FIELD_DESC); + oprot.writeBinary(this.username); + oprot.writeFieldEnd(); + } + } + if (this.password != null) { + if (isSetPassword()) { + oprot.writeFieldBegin(PASSWORD_FIELD_DESC); + oprot.writeBinary(this.password); + oprot.writeFieldEnd(); + } + } + if (isSetNeed_authenticate()) { + oprot.writeFieldBegin(NEED_AUTHENTICATE_FIELD_DESC); + oprot.writeBool(this.need_authenticate); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1099,6 +1328,54 @@ public String toString(int indent, boolean prettyPrint) { } first = false; } + if (isSetUsername()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("username"); + sb.append(space); + sb.append(":").append(space); + if (this.getUsername() == null) { + sb.append("null"); + } else { + int __username_size = Math.min(this.getUsername().length, 128); + for (int i = 0; i < __username_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getUsername()[i]).length() > 1 ? Integer.toHexString(this.getUsername()[i]).substring(Integer.toHexString(this.getUsername()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getUsername()[i]).toUpperCase()); + } + if (this.getUsername().length > 128) sb.append(" ..."); + } + first = false; + } + if (isSetPassword()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("password"); + sb.append(space); + sb.append(":").append(space); + if (this.getPassword() == null) { + sb.append("null"); + } else { + int __password_size = Math.min(this.getPassword().length, 128); + for (int i = 0; i < __password_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getPassword()[i]).length() > 1 ? Integer.toHexString(this.getPassword()[i]).substring(Integer.toHexString(this.getPassword()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getPassword()[i]).toUpperCase()); + } + if (this.getPassword().length > 128) sb.append(" ..."); + } + first = false; + } + if (isSetNeed_authenticate()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("need_authenticate"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isNeed_authenticate(), 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/storage/ScanVertexRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/ScanVertexRequest.java index ec3424de1..3c8906dfd 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/ScanVertexRequest.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/ScanVertexRequest.java @@ -36,6 +36,9 @@ public class ScanVertexRequest implements TBase, java.io.Serializable, Cloneable private static final TField ONLY_LATEST_VERSION_FIELD_DESC = new TField("only_latest_version", TType.BOOL, (short)8); private static final TField ENABLE_READ_FROM_FOLLOWER_FIELD_DESC = new TField("enable_read_from_follower", TType.BOOL, (short)9); private static final TField COMMON_FIELD_DESC = new TField("common", TType.STRUCT, (short)10); + private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)11); + private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)12); + private static final TField NEED_AUTHENTICATE_FIELD_DESC = new TField("need_authenticate", TType.BOOL, (short)13); public int space_id; public Map parts; @@ -47,6 +50,9 @@ public class ScanVertexRequest implements TBase, java.io.Serializable, Cloneable public boolean only_latest_version; public boolean enable_read_from_follower; public RequestCommon common; + public byte[] username; + public byte[] password; + public boolean need_authenticate; public static final int SPACE_ID = 1; public static final int PARTS = 2; public static final int RETURN_COLUMNS = 3; @@ -57,6 +63,9 @@ public class ScanVertexRequest implements TBase, java.io.Serializable, Cloneable public static final int ONLY_LATEST_VERSION = 8; public static final int ENABLE_READ_FROM_FOLLOWER = 9; public static final int COMMON = 10; + public static final int USERNAME = 11; + public static final int PASSWORD = 12; + public static final int NEED_AUTHENTICATE = 13; // isset id assignments private static final int __SPACE_ID_ISSET_ID = 0; @@ -65,7 +74,8 @@ public class ScanVertexRequest implements TBase, java.io.Serializable, Cloneable private static final int __END_TIME_ISSET_ID = 3; private static final int __ONLY_LATEST_VERSION_ISSET_ID = 4; private static final int __ENABLE_READ_FROM_FOLLOWER_ISSET_ID = 5; - private BitSet __isset_bit_vector = new BitSet(6); + private static final int __NEED_AUTHENTICATE_ISSET_ID = 6; + private BitSet __isset_bit_vector = new BitSet(7); public static final Map metaDataMap; @@ -94,6 +104,12 @@ public class ScanVertexRequest implements TBase, java.io.Serializable, Cloneable new FieldValueMetaData(TType.BOOL))); tmpMetaDataMap.put(COMMON, new FieldMetaData("common", TFieldRequirementType.OPTIONAL, new StructMetaData(TType.STRUCT, RequestCommon.class))); + tmpMetaDataMap.put(USERNAME, new FieldMetaData("username", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(PASSWORD, new FieldMetaData("password", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.STRING))); + tmpMetaDataMap.put(NEED_AUTHENTICATE, new FieldMetaData("need_authenticate", TFieldRequirementType.OPTIONAL, + new FieldValueMetaData(TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } @@ -138,7 +154,10 @@ public ScanVertexRequest( byte[] filter, boolean only_latest_version, boolean enable_read_from_follower, - RequestCommon common) { + RequestCommon common, + byte[] username, + byte[] password, + boolean need_authenticate) { this(); this.space_id = space_id; setSpace_idIsSet(true); @@ -156,6 +175,10 @@ public ScanVertexRequest( this.enable_read_from_follower = enable_read_from_follower; setEnable_read_from_followerIsSet(true); this.common = common; + this.username = username; + this.password = password; + this.need_authenticate = need_authenticate; + setNeed_authenticateIsSet(true); } public static class Builder { @@ -169,8 +192,11 @@ public static class Builder { private boolean only_latest_version; private boolean enable_read_from_follower; private RequestCommon common; + private byte[] username; + private byte[] password; + private boolean need_authenticate; - BitSet __optional_isset = new BitSet(6); + BitSet __optional_isset = new BitSet(7); public Builder() { } @@ -231,6 +257,22 @@ public Builder setCommon(final RequestCommon common) { return this; } + public Builder setUsername(final byte[] username) { + this.username = username; + return this; + } + + public Builder setPassword(final byte[] password) { + this.password = password; + return this; + } + + public Builder setNeed_authenticate(final boolean need_authenticate) { + this.need_authenticate = need_authenticate; + __optional_isset.set(__NEED_AUTHENTICATE_ISSET_ID, true); + return this; + } + public ScanVertexRequest build() { ScanVertexRequest result = new ScanVertexRequest(); if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { @@ -255,6 +297,11 @@ public ScanVertexRequest build() { result.setEnable_read_from_follower(this.enable_read_from_follower); } result.setCommon(this.common); + result.setUsername(this.username); + result.setPassword(this.password); + if (__optional_isset.get(__NEED_AUTHENTICATE_ISSET_ID)) { + result.setNeed_authenticate(this.need_authenticate); + } return result; } } @@ -287,6 +334,13 @@ public ScanVertexRequest(ScanVertexRequest other) { if (other.isSetCommon()) { this.common = TBaseHelper.deepCopy(other.common); } + if (other.isSetUsername()) { + this.username = TBaseHelper.deepCopy(other.username); + } + if (other.isSetPassword()) { + this.password = TBaseHelper.deepCopy(other.password); + } + this.need_authenticate = TBaseHelper.deepCopy(other.need_authenticate); } public ScanVertexRequest deepCopy() { @@ -527,6 +581,77 @@ public void setCommonIsSet(boolean __value) { } } + public byte[] getUsername() { + return this.username; + } + + public ScanVertexRequest setUsername(byte[] username) { + this.username = username; + return this; + } + + public void unsetUsername() { + this.username = null; + } + + // Returns true if field username is set (has been assigned a value) and false otherwise + public boolean isSetUsername() { + return this.username != null; + } + + public void setUsernameIsSet(boolean __value) { + if (!__value) { + this.username = null; + } + } + + public byte[] getPassword() { + return this.password; + } + + public ScanVertexRequest setPassword(byte[] password) { + this.password = password; + return this; + } + + public void unsetPassword() { + this.password = null; + } + + // Returns true if field password is set (has been assigned a value) and false otherwise + public boolean isSetPassword() { + return this.password != null; + } + + public void setPasswordIsSet(boolean __value) { + if (!__value) { + this.password = null; + } + } + + public boolean isNeed_authenticate() { + return this.need_authenticate; + } + + public ScanVertexRequest setNeed_authenticate(boolean need_authenticate) { + this.need_authenticate = need_authenticate; + setNeed_authenticateIsSet(true); + return this; + } + + public void unsetNeed_authenticate() { + __isset_bit_vector.clear(__NEED_AUTHENTICATE_ISSET_ID); + } + + // Returns true if field need_authenticate is set (has been assigned a value) and false otherwise + public boolean isSetNeed_authenticate() { + return __isset_bit_vector.get(__NEED_AUTHENTICATE_ISSET_ID); + } + + public void setNeed_authenticateIsSet(boolean __value) { + __isset_bit_vector.set(__NEED_AUTHENTICATE_ISSET_ID, __value); + } + @SuppressWarnings("unchecked") public void setFieldValue(int fieldID, Object __value) { switch (fieldID) { @@ -610,6 +735,30 @@ public void setFieldValue(int fieldID, Object __value) { } break; + case USERNAME: + if (__value == null) { + unsetUsername(); + } else { + setUsername((byte[])__value); + } + break; + + case PASSWORD: + if (__value == null) { + unsetPassword(); + } else { + setPassword((byte[])__value); + } + break; + + case NEED_AUTHENTICATE: + if (__value == null) { + unsetNeed_authenticate(); + } else { + setNeed_authenticate((Boolean)__value); + } + break; + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -647,6 +796,15 @@ public Object getFieldValue(int fieldID) { case COMMON: return getCommon(); + case USERNAME: + return getUsername(); + + case PASSWORD: + return getPassword(); + + case NEED_AUTHENTICATE: + return new Boolean(isNeed_authenticate()); + default: throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!"); } @@ -682,12 +840,18 @@ public boolean equals(Object _that) { if (!TBaseHelper.equalsNobinary(this.isSetCommon(), that.isSetCommon(), this.common, that.common)) { return false; } + if (!TBaseHelper.equalsSlow(this.isSetUsername(), that.isSetUsername(), this.username, that.username)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetPassword(), that.isSetPassword(), this.password, that.password)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.isSetNeed_authenticate(), that.isSetNeed_authenticate(), this.need_authenticate, that.need_authenticate)) { return false; } + return true; } @Override public int hashCode() { - return Arrays.deepHashCode(new Object[] {space_id, parts, return_columns, limit, start_time, end_time, filter, only_latest_version, enable_read_from_follower, common}); + return Arrays.deepHashCode(new Object[] {space_id, parts, return_columns, limit, start_time, end_time, filter, only_latest_version, enable_read_from_follower, common, username, password, need_authenticate}); } @Override @@ -782,6 +946,30 @@ public int compareTo(ScanVertexRequest other) { if (lastComparison != 0) { return lastComparison; } + lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(username, other.username); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(password, other.password); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = Boolean.valueOf(isSetNeed_authenticate()).compareTo(other.isSetNeed_authenticate()); + if (lastComparison != 0) { + return lastComparison; + } + lastComparison = TBaseHelper.compareTo(need_authenticate, other.need_authenticate); + if (lastComparison != 0) { + return lastComparison; + } return 0; } @@ -901,6 +1089,28 @@ public void read(TProtocol iprot) throws TException { TProtocolUtil.skip(iprot, __field.type); } break; + case USERNAME: + if (__field.type == TType.STRING) { + this.username = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case PASSWORD: + if (__field.type == TType.STRING) { + this.password = iprot.readBinary(); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; + case NEED_AUTHENTICATE: + if (__field.type == TType.BOOL) { + this.need_authenticate = iprot.readBool(); + setNeed_authenticateIsSet(true); + } else { + TProtocolUtil.skip(iprot, __field.type); + } + break; default: TProtocolUtil.skip(iprot, __field.type); break; @@ -977,6 +1187,25 @@ public void write(TProtocol oprot) throws TException { oprot.writeFieldEnd(); } } + if (this.username != null) { + if (isSetUsername()) { + oprot.writeFieldBegin(USERNAME_FIELD_DESC); + oprot.writeBinary(this.username); + oprot.writeFieldEnd(); + } + } + if (this.password != null) { + if (isSetPassword()) { + oprot.writeFieldBegin(PASSWORD_FIELD_DESC); + oprot.writeBinary(this.password); + oprot.writeFieldEnd(); + } + } + if (isSetNeed_authenticate()) { + oprot.writeFieldBegin(NEED_AUTHENTICATE_FIELD_DESC); + oprot.writeBool(this.need_authenticate); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1099,6 +1328,54 @@ public String toString(int indent, boolean prettyPrint) { } first = false; } + if (isSetUsername()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("username"); + sb.append(space); + sb.append(":").append(space); + if (this.getUsername() == null) { + sb.append("null"); + } else { + int __username_size = Math.min(this.getUsername().length, 128); + for (int i = 0; i < __username_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getUsername()[i]).length() > 1 ? Integer.toHexString(this.getUsername()[i]).substring(Integer.toHexString(this.getUsername()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getUsername()[i]).toUpperCase()); + } + if (this.getUsername().length > 128) sb.append(" ..."); + } + first = false; + } + if (isSetPassword()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("password"); + sb.append(space); + sb.append(":").append(space); + if (this.getPassword() == null) { + sb.append("null"); + } else { + int __password_size = Math.min(this.getPassword().length, 128); + for (int i = 0; i < __password_size; i++) { + if (i != 0) sb.append(" "); + sb.append(Integer.toHexString(this.getPassword()[i]).length() > 1 ? Integer.toHexString(this.getPassword()[i]).substring(Integer.toHexString(this.getPassword()[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.getPassword()[i]).toUpperCase()); + } + if (this.getPassword().length > 128) sb.append(" ..."); + } + first = false; + } + if (isSetNeed_authenticate()) + { + if (!first) sb.append("," + newLine); + sb.append(indentStr); + sb.append("need_authenticate"); + sb.append(space); + sb.append(":").append(space); + sb.append(TBaseHelper.toString(this.isNeed_authenticate(), 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/storage/StorageAdminService.java b/client/src/main/generated/com/vesoft/nebula/storage/StorageAdminService.java index 3db7b24ef..a0c76f696 100644 --- a/client/src/main/generated/com/vesoft/nebula/storage/StorageAdminService.java +++ b/client/src/main/generated/com/vesoft/nebula/storage/StorageAdminService.java @@ -41,7 +41,7 @@ public interface Iface { public AdminExecResp memberChange(MemberChangeReq req) throws TException; - public AdminExecResp waitingForCatchUpData(CatchUpDataReq req) throws TException; + public CatchUpResp getCatchUpState(CatchUpDataReq req) throws TException; public CreateCPResp createCheckpoint(CreateCPRequest req) throws TException; @@ -59,6 +59,8 @@ public interface Iface { public ClearSpaceResp clearSpace(ClearSpaceReq req) throws TException; + public GetSyncProgressResp getSyncProgress(GetSyncProgressReq req) throws TException; + } public interface AsyncIface { @@ -73,7 +75,7 @@ public interface AsyncIface { public void memberChange(MemberChangeReq req, AsyncMethodCallback resultHandler) throws TException; - public void waitingForCatchUpData(CatchUpDataReq req, AsyncMethodCallback resultHandler) throws TException; + public void getCatchUpState(CatchUpDataReq req, AsyncMethodCallback resultHandler) throws TException; public void createCheckpoint(CreateCPRequest req, AsyncMethodCallback resultHandler) throws TException; @@ -91,6 +93,8 @@ public interface AsyncIface { public void clearSpace(ClearSpaceReq req, AsyncMethodCallback resultHandler) throws TException; + public void getSyncProgress(GetSyncProgressReq req, AsyncMethodCallback resultHandler) throws TException; + } public static class Client extends EventHandlerBase implements Iface, TClientIf { @@ -347,49 +351,49 @@ public AdminExecResp recv_memberChange() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "memberChange failed: unknown result"); } - public AdminExecResp waitingForCatchUpData(CatchUpDataReq req) throws TException + public CatchUpResp getCatchUpState(CatchUpDataReq req) throws TException { - ContextStack ctx = getContextStack("StorageAdminService.waitingForCatchUpData", null); + ContextStack ctx = getContextStack("StorageAdminService.getCatchUpState", null); this.setContextStack(ctx); - send_waitingForCatchUpData(req); - return recv_waitingForCatchUpData(); + send_getCatchUpState(req); + return recv_getCatchUpState(); } - public void send_waitingForCatchUpData(CatchUpDataReq req) throws TException + public void send_getCatchUpState(CatchUpDataReq req) throws TException { ContextStack ctx = this.getContextStack(); - super.preWrite(ctx, "StorageAdminService.waitingForCatchUpData", null); - oprot_.writeMessageBegin(new TMessage("waitingForCatchUpData", TMessageType.CALL, seqid_)); - waitingForCatchUpData_args args = new waitingForCatchUpData_args(); + super.preWrite(ctx, "StorageAdminService.getCatchUpState", null); + oprot_.writeMessageBegin(new TMessage("getCatchUpState", TMessageType.CALL, seqid_)); + getCatchUpState_args args = new getCatchUpState_args(); args.req = req; args.write(oprot_); oprot_.writeMessageEnd(); oprot_.getTransport().flush(); - super.postWrite(ctx, "StorageAdminService.waitingForCatchUpData", args); + super.postWrite(ctx, "StorageAdminService.getCatchUpState", args); return; } - public AdminExecResp recv_waitingForCatchUpData() throws TException + public CatchUpResp recv_getCatchUpState() throws TException { ContextStack ctx = super.getContextStack(); long bytes; TMessageType mtype; - super.preRead(ctx, "StorageAdminService.waitingForCatchUpData"); + super.preRead(ctx, "StorageAdminService.getCatchUpState"); TMessage msg = iprot_.readMessageBegin(); if (msg.type == TMessageType.EXCEPTION) { TApplicationException x = TApplicationException.read(iprot_); iprot_.readMessageEnd(); throw x; } - waitingForCatchUpData_result result = new waitingForCatchUpData_result(); + getCatchUpState_result result = new getCatchUpState_result(); result.read(iprot_); iprot_.readMessageEnd(); - super.postRead(ctx, "StorageAdminService.waitingForCatchUpData", result); + super.postRead(ctx, "StorageAdminService.getCatchUpState", result); if (result.isSetSuccess()) { return result.success; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "waitingForCatchUpData failed: unknown result"); + throw new TApplicationException(TApplicationException.MISSING_RESULT, "getCatchUpState failed: unknown result"); } public CreateCPResp createCheckpoint(CreateCPRequest req) throws TException @@ -752,6 +756,51 @@ public ClearSpaceResp recv_clearSpace() throws TException throw new TApplicationException(TApplicationException.MISSING_RESULT, "clearSpace failed: unknown result"); } + public GetSyncProgressResp getSyncProgress(GetSyncProgressReq req) throws TException + { + ContextStack ctx = getContextStack("StorageAdminService.getSyncProgress", null); + this.setContextStack(ctx); + send_getSyncProgress(req); + return recv_getSyncProgress(); + } + + public void send_getSyncProgress(GetSyncProgressReq req) throws TException + { + ContextStack ctx = this.getContextStack(); + super.preWrite(ctx, "StorageAdminService.getSyncProgress", null); + oprot_.writeMessageBegin(new TMessage("getSyncProgress", TMessageType.CALL, seqid_)); + getSyncProgress_args args = new getSyncProgress_args(); + args.req = req; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + super.postWrite(ctx, "StorageAdminService.getSyncProgress", args); + return; + } + + public GetSyncProgressResp recv_getSyncProgress() throws TException + { + ContextStack ctx = super.getContextStack(); + long bytes; + TMessageType mtype; + super.preRead(ctx, "StorageAdminService.getSyncProgress"); + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + getSyncProgress_result result = new getSyncProgress_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + super.postRead(ctx, "StorageAdminService.getSyncProgress", result); + + if (result.isSetSuccess()) { + return result.success; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSyncProgress failed: unknown result"); + } + } public static class AsyncClient extends TAsyncClient implements AsyncIface { public static class Factory implements TAsyncClientFactory { @@ -770,17 +819,17 @@ public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientM super(protocolFactory, clientManager, transport); } - public void transLeader(TransLeaderReq req, AsyncMethodCallback resultHandler479) throws TException { + public void transLeader(TransLeaderReq req, AsyncMethodCallback resultHandler523) throws TException { checkReady(); - transLeader_call method_call = new transLeader_call(req, resultHandler479, this, ___protocolFactory, ___transport); + transLeader_call method_call = new transLeader_call(req, resultHandler523, 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 resultHandler480, TAsyncClient client476, TProtocolFactory protocolFactory477, TNonblockingTransport transport478) throws TException { - super(client476, protocolFactory477, transport478, resultHandler480, false); + public transLeader_call(TransLeaderReq req, AsyncMethodCallback resultHandler524, TAsyncClient client520, TProtocolFactory protocolFactory521, TNonblockingTransport transport522) throws TException { + super(client520, protocolFactory521, transport522, resultHandler524, false); this.req = req; } @@ -802,17 +851,17 @@ public AdminExecResp getResult() throws TException { } } - public void addPart(AddPartReq req, AsyncMethodCallback resultHandler484) throws TException { + public void addPart(AddPartReq req, AsyncMethodCallback resultHandler528) throws TException { checkReady(); - addPart_call method_call = new addPart_call(req, resultHandler484, this, ___protocolFactory, ___transport); + addPart_call method_call = new addPart_call(req, resultHandler528, 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 resultHandler485, TAsyncClient client481, TProtocolFactory protocolFactory482, TNonblockingTransport transport483) throws TException { - super(client481, protocolFactory482, transport483, resultHandler485, false); + public addPart_call(AddPartReq req, AsyncMethodCallback resultHandler529, TAsyncClient client525, TProtocolFactory protocolFactory526, TNonblockingTransport transport527) throws TException { + super(client525, protocolFactory526, transport527, resultHandler529, false); this.req = req; } @@ -834,17 +883,17 @@ public AdminExecResp getResult() throws TException { } } - public void addLearner(AddLearnerReq req, AsyncMethodCallback resultHandler489) throws TException { + public void addLearner(AddLearnerReq req, AsyncMethodCallback resultHandler533) throws TException { checkReady(); - addLearner_call method_call = new addLearner_call(req, resultHandler489, this, ___protocolFactory, ___transport); + addLearner_call method_call = new addLearner_call(req, resultHandler533, 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 resultHandler490, TAsyncClient client486, TProtocolFactory protocolFactory487, TNonblockingTransport transport488) throws TException { - super(client486, protocolFactory487, transport488, resultHandler490, false); + public addLearner_call(AddLearnerReq req, AsyncMethodCallback resultHandler534, TAsyncClient client530, TProtocolFactory protocolFactory531, TNonblockingTransport transport532) throws TException { + super(client530, protocolFactory531, transport532, resultHandler534, false); this.req = req; } @@ -866,17 +915,17 @@ public AdminExecResp getResult() throws TException { } } - public void removePart(RemovePartReq req, AsyncMethodCallback resultHandler494) throws TException { + public void removePart(RemovePartReq req, AsyncMethodCallback resultHandler538) throws TException { checkReady(); - removePart_call method_call = new removePart_call(req, resultHandler494, this, ___protocolFactory, ___transport); + removePart_call method_call = new removePart_call(req, resultHandler538, 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 resultHandler495, TAsyncClient client491, TProtocolFactory protocolFactory492, TNonblockingTransport transport493) throws TException { - super(client491, protocolFactory492, transport493, resultHandler495, false); + public removePart_call(RemovePartReq req, AsyncMethodCallback resultHandler539, TAsyncClient client535, TProtocolFactory protocolFactory536, TNonblockingTransport transport537) throws TException { + super(client535, protocolFactory536, transport537, resultHandler539, false); this.req = req; } @@ -898,17 +947,17 @@ public AdminExecResp getResult() throws TException { } } - public void memberChange(MemberChangeReq req, AsyncMethodCallback resultHandler499) throws TException { + public void memberChange(MemberChangeReq req, AsyncMethodCallback resultHandler543) throws TException { checkReady(); - memberChange_call method_call = new memberChange_call(req, resultHandler499, this, ___protocolFactory, ___transport); + memberChange_call method_call = new memberChange_call(req, resultHandler543, 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 resultHandler500, TAsyncClient client496, TProtocolFactory protocolFactory497, TNonblockingTransport transport498) throws TException { - super(client496, protocolFactory497, transport498, resultHandler500, false); + public memberChange_call(MemberChangeReq req, AsyncMethodCallback resultHandler544, TAsyncClient client540, TProtocolFactory protocolFactory541, TNonblockingTransport transport542) throws TException { + super(client540, protocolFactory541, transport542, resultHandler544, false); this.req = req; } @@ -930,49 +979,49 @@ public AdminExecResp getResult() throws TException { } } - public void waitingForCatchUpData(CatchUpDataReq req, AsyncMethodCallback resultHandler504) throws TException { + public void getCatchUpState(CatchUpDataReq req, AsyncMethodCallback resultHandler548) throws TException { checkReady(); - waitingForCatchUpData_call method_call = new waitingForCatchUpData_call(req, resultHandler504, this, ___protocolFactory, ___transport); + getCatchUpState_call method_call = new getCatchUpState_call(req, resultHandler548, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class waitingForCatchUpData_call extends TAsyncMethodCall { + public static class getCatchUpState_call extends TAsyncMethodCall { private CatchUpDataReq req; - public waitingForCatchUpData_call(CatchUpDataReq req, AsyncMethodCallback resultHandler505, TAsyncClient client501, TProtocolFactory protocolFactory502, TNonblockingTransport transport503) throws TException { - super(client501, protocolFactory502, transport503, resultHandler505, false); + public getCatchUpState_call(CatchUpDataReq req, AsyncMethodCallback resultHandler549, TAsyncClient client545, TProtocolFactory protocolFactory546, TNonblockingTransport transport547) throws TException { + super(client545, protocolFactory546, transport547, resultHandler549, false); this.req = req; } public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("waitingForCatchUpData", TMessageType.CALL, 0)); - waitingForCatchUpData_args args = new waitingForCatchUpData_args(); + prot.writeMessageBegin(new TMessage("getCatchUpState", TMessageType.CALL, 0)); + getCatchUpState_args args = new getCatchUpState_args(); args.setReq(req); args.write(prot); prot.writeMessageEnd(); } - public AdminExecResp getResult() throws TException { + public CatchUpResp 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_waitingForCatchUpData(); + return (new Client(prot)).recv_getCatchUpState(); } } - public void createCheckpoint(CreateCPRequest req, AsyncMethodCallback resultHandler509) throws TException { + public void createCheckpoint(CreateCPRequest req, AsyncMethodCallback resultHandler553) throws TException { checkReady(); - createCheckpoint_call method_call = new createCheckpoint_call(req, resultHandler509, this, ___protocolFactory, ___transport); + createCheckpoint_call method_call = new createCheckpoint_call(req, resultHandler553, 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 resultHandler510, TAsyncClient client506, TProtocolFactory protocolFactory507, TNonblockingTransport transport508) throws TException { - super(client506, protocolFactory507, transport508, resultHandler510, false); + public createCheckpoint_call(CreateCPRequest req, AsyncMethodCallback resultHandler554, TAsyncClient client550, TProtocolFactory protocolFactory551, TNonblockingTransport transport552) throws TException { + super(client550, protocolFactory551, transport552, resultHandler554, false); this.req = req; } @@ -994,17 +1043,17 @@ public CreateCPResp getResult() throws TException { } } - public void dropCheckpoint(DropCPRequest req, AsyncMethodCallback resultHandler514) throws TException { + public void dropCheckpoint(DropCPRequest req, AsyncMethodCallback resultHandler558) throws TException { checkReady(); - dropCheckpoint_call method_call = new dropCheckpoint_call(req, resultHandler514, this, ___protocolFactory, ___transport); + dropCheckpoint_call method_call = new dropCheckpoint_call(req, resultHandler558, 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 resultHandler515, TAsyncClient client511, TProtocolFactory protocolFactory512, TNonblockingTransport transport513) throws TException { - super(client511, protocolFactory512, transport513, resultHandler515, false); + public dropCheckpoint_call(DropCPRequest req, AsyncMethodCallback resultHandler559, TAsyncClient client555, TProtocolFactory protocolFactory556, TNonblockingTransport transport557) throws TException { + super(client555, protocolFactory556, transport557, resultHandler559, false); this.req = req; } @@ -1026,17 +1075,17 @@ public DropCPResp getResult() throws TException { } } - public void blockingWrites(BlockingSignRequest req, AsyncMethodCallback resultHandler519) throws TException { + public void blockingWrites(BlockingSignRequest req, AsyncMethodCallback resultHandler563) throws TException { checkReady(); - blockingWrites_call method_call = new blockingWrites_call(req, resultHandler519, this, ___protocolFactory, ___transport); + blockingWrites_call method_call = new blockingWrites_call(req, resultHandler563, 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 resultHandler520, TAsyncClient client516, TProtocolFactory protocolFactory517, TNonblockingTransport transport518) throws TException { - super(client516, protocolFactory517, transport518, resultHandler520, false); + public blockingWrites_call(BlockingSignRequest req, AsyncMethodCallback resultHandler564, TAsyncClient client560, TProtocolFactory protocolFactory561, TNonblockingTransport transport562) throws TException { + super(client560, protocolFactory561, transport562, resultHandler564, false); this.req = req; } @@ -1058,17 +1107,17 @@ public BlockingSignResp getResult() throws TException { } } - public void getLeaderParts(GetLeaderReq req, AsyncMethodCallback resultHandler524) throws TException { + public void getLeaderParts(GetLeaderReq req, AsyncMethodCallback resultHandler568) throws TException { checkReady(); - getLeaderParts_call method_call = new getLeaderParts_call(req, resultHandler524, this, ___protocolFactory, ___transport); + getLeaderParts_call method_call = new getLeaderParts_call(req, resultHandler568, 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 resultHandler525, TAsyncClient client521, TProtocolFactory protocolFactory522, TNonblockingTransport transport523) throws TException { - super(client521, protocolFactory522, transport523, resultHandler525, false); + public getLeaderParts_call(GetLeaderReq req, AsyncMethodCallback resultHandler569, TAsyncClient client565, TProtocolFactory protocolFactory566, TNonblockingTransport transport567) throws TException { + super(client565, protocolFactory566, transport567, resultHandler569, false); this.req = req; } @@ -1090,17 +1139,17 @@ public GetLeaderPartsResp getResult() throws TException { } } - public void checkPeers(CheckPeersReq req, AsyncMethodCallback resultHandler529) throws TException { + public void checkPeers(CheckPeersReq req, AsyncMethodCallback resultHandler573) throws TException { checkReady(); - checkPeers_call method_call = new checkPeers_call(req, resultHandler529, this, ___protocolFactory, ___transport); + checkPeers_call method_call = new checkPeers_call(req, resultHandler573, 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 resultHandler530, TAsyncClient client526, TProtocolFactory protocolFactory527, TNonblockingTransport transport528) throws TException { - super(client526, protocolFactory527, transport528, resultHandler530, false); + public checkPeers_call(CheckPeersReq req, AsyncMethodCallback resultHandler574, TAsyncClient client570, TProtocolFactory protocolFactory571, TNonblockingTransport transport572) throws TException { + super(client570, protocolFactory571, transport572, resultHandler574, false); this.req = req; } @@ -1122,17 +1171,17 @@ public AdminExecResp getResult() throws TException { } } - public void addAdminTask(AddTaskRequest req, AsyncMethodCallback resultHandler534) throws TException { + public void addAdminTask(AddTaskRequest req, AsyncMethodCallback resultHandler578) throws TException { checkReady(); - addAdminTask_call method_call = new addAdminTask_call(req, resultHandler534, this, ___protocolFactory, ___transport); + addAdminTask_call method_call = new addAdminTask_call(req, resultHandler578, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addAdminTask_call extends TAsyncMethodCall { private AddTaskRequest req; - public addAdminTask_call(AddTaskRequest req, AsyncMethodCallback resultHandler535, TAsyncClient client531, TProtocolFactory protocolFactory532, TNonblockingTransport transport533) throws TException { - super(client531, protocolFactory532, transport533, resultHandler535, false); + public addAdminTask_call(AddTaskRequest req, AsyncMethodCallback resultHandler579, TAsyncClient client575, TProtocolFactory protocolFactory576, TNonblockingTransport transport577) throws TException { + super(client575, protocolFactory576, transport577, resultHandler579, false); this.req = req; } @@ -1154,17 +1203,17 @@ public AddTaskResp getResult() throws TException { } } - public void stopAdminTask(StopTaskRequest req, AsyncMethodCallback resultHandler539) throws TException { + public void stopAdminTask(StopTaskRequest req, AsyncMethodCallback resultHandler583) throws TException { checkReady(); - stopAdminTask_call method_call = new stopAdminTask_call(req, resultHandler539, this, ___protocolFactory, ___transport); + stopAdminTask_call method_call = new stopAdminTask_call(req, resultHandler583, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class stopAdminTask_call extends TAsyncMethodCall { private StopTaskRequest req; - public stopAdminTask_call(StopTaskRequest req, AsyncMethodCallback resultHandler540, TAsyncClient client536, TProtocolFactory protocolFactory537, TNonblockingTransport transport538) throws TException { - super(client536, protocolFactory537, transport538, resultHandler540, false); + public stopAdminTask_call(StopTaskRequest req, AsyncMethodCallback resultHandler584, TAsyncClient client580, TProtocolFactory protocolFactory581, TNonblockingTransport transport582) throws TException { + super(client580, protocolFactory581, transport582, resultHandler584, false); this.req = req; } @@ -1186,17 +1235,17 @@ public StopTaskResp getResult() throws TException { } } - public void clearSpace(ClearSpaceReq req, AsyncMethodCallback resultHandler544) throws TException { + public void clearSpace(ClearSpaceReq req, AsyncMethodCallback resultHandler588) throws TException { checkReady(); - clearSpace_call method_call = new clearSpace_call(req, resultHandler544, this, ___protocolFactory, ___transport); + clearSpace_call method_call = new clearSpace_call(req, resultHandler588, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearSpace_call extends TAsyncMethodCall { private ClearSpaceReq req; - public clearSpace_call(ClearSpaceReq req, AsyncMethodCallback resultHandler545, TAsyncClient client541, TProtocolFactory protocolFactory542, TNonblockingTransport transport543) throws TException { - super(client541, protocolFactory542, transport543, resultHandler545, false); + public clearSpace_call(ClearSpaceReq req, AsyncMethodCallback resultHandler589, TAsyncClient client585, TProtocolFactory protocolFactory586, TNonblockingTransport transport587) throws TException { + super(client585, protocolFactory586, transport587, resultHandler589, false); this.req = req; } @@ -1218,6 +1267,38 @@ public ClearSpaceResp getResult() throws TException { } } + public void getSyncProgress(GetSyncProgressReq req, AsyncMethodCallback resultHandler593) throws TException { + checkReady(); + getSyncProgress_call method_call = new getSyncProgress_call(req, resultHandler593, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getSyncProgress_call extends TAsyncMethodCall { + private GetSyncProgressReq req; + public getSyncProgress_call(GetSyncProgressReq req, AsyncMethodCallback resultHandler594, TAsyncClient client590, TProtocolFactory protocolFactory591, TNonblockingTransport transport592) throws TException { + super(client590, protocolFactory591, transport592, resultHandler594, false); + this.req = req; + } + + public void write_args(TProtocol prot) throws TException { + prot.writeMessageBegin(new TMessage("getSyncProgress", TMessageType.CALL, 0)); + getSyncProgress_args args = new getSyncProgress_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetSyncProgressResp 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_getSyncProgress(); + } + } + } public static class Processor implements TProcessor { @@ -1231,7 +1312,7 @@ public Processor(Iface iface) processMap_.put("addLearner", new addLearner()); processMap_.put("removePart", new removePart()); processMap_.put("memberChange", new memberChange()); - processMap_.put("waitingForCatchUpData", new waitingForCatchUpData()); + processMap_.put("getCatchUpState", new getCatchUpState()); processMap_.put("createCheckpoint", new createCheckpoint()); processMap_.put("dropCheckpoint", new dropCheckpoint()); processMap_.put("blockingWrites", new blockingWrites()); @@ -1240,6 +1321,7 @@ public Processor(Iface iface) processMap_.put("addAdminTask", new addAdminTask()); processMap_.put("stopAdminTask", new stopAdminTask()); processMap_.put("clearSpace", new clearSpace()); + processMap_.put("getSyncProgress", new getSyncProgress()); } protected static interface ProcessFunction { @@ -1377,23 +1459,23 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } - private class waitingForCatchUpData implements ProcessFunction { + private class getCatchUpState implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException { - Object handler_ctx = event_handler_.getContext("StorageAdminService.waitingForCatchUpData", server_ctx); - waitingForCatchUpData_args args = new waitingForCatchUpData_args(); - event_handler_.preRead(handler_ctx, "StorageAdminService.waitingForCatchUpData"); + Object handler_ctx = event_handler_.getContext("StorageAdminService.getCatchUpState", server_ctx); + getCatchUpState_args args = new getCatchUpState_args(); + event_handler_.preRead(handler_ctx, "StorageAdminService.getCatchUpState"); args.read(iprot); iprot.readMessageEnd(); - event_handler_.postRead(handler_ctx, "StorageAdminService.waitingForCatchUpData", args); - waitingForCatchUpData_result result = new waitingForCatchUpData_result(); - result.success = iface_.waitingForCatchUpData(args.req); - event_handler_.preWrite(handler_ctx, "StorageAdminService.waitingForCatchUpData", result); - oprot.writeMessageBegin(new TMessage("waitingForCatchUpData", TMessageType.REPLY, seqid)); + event_handler_.postRead(handler_ctx, "StorageAdminService.getCatchUpState", args); + getCatchUpState_result result = new getCatchUpState_result(); + result.success = iface_.getCatchUpState(args.req); + event_handler_.preWrite(handler_ctx, "StorageAdminService.getCatchUpState", result); + oprot.writeMessageBegin(new TMessage("getCatchUpState", TMessageType.REPLY, seqid)); result.write(oprot); oprot.writeMessageEnd(); oprot.getTransport().flush(); - event_handler_.postWrite(handler_ctx, "StorageAdminService.waitingForCatchUpData", result); + event_handler_.postWrite(handler_ctx, "StorageAdminService.getCatchUpState", result); } } @@ -1566,6 +1648,27 @@ public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionCont } + private class getSyncProgress implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot, TConnectionContext server_ctx) throws TException + { + Object handler_ctx = event_handler_.getContext("StorageAdminService.getSyncProgress", server_ctx); + getSyncProgress_args args = new getSyncProgress_args(); + event_handler_.preRead(handler_ctx, "StorageAdminService.getSyncProgress"); + args.read(iprot); + iprot.readMessageEnd(); + event_handler_.postRead(handler_ctx, "StorageAdminService.getSyncProgress", args); + getSyncProgress_result result = new getSyncProgress_result(); + result.success = iface_.getSyncProgress(args.req); + event_handler_.preWrite(handler_ctx, "StorageAdminService.getSyncProgress", result); + oprot.writeMessageBegin(new TMessage("getSyncProgress", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + event_handler_.postWrite(handler_ctx, "StorageAdminService.getSyncProgress", result); + } + + } + } public static class transLeader_args implements TBase, java.io.Serializable, Cloneable, Comparable { @@ -3743,8 +3846,8 @@ public void validate() throws TException { } - public static class waitingForCatchUpData_args implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("waitingForCatchUpData_args"); + public static class getCatchUpState_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getCatchUpState_args"); private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); public CatchUpDataReq req; @@ -3762,13 +3865,13 @@ public static class waitingForCatchUpData_args implements TBase, java.io.Seriali } static { - FieldMetaData.addStructMetaDataMap(waitingForCatchUpData_args.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getCatchUpState_args.class, metaDataMap); } - public waitingForCatchUpData_args() { + public getCatchUpState_args() { } - public waitingForCatchUpData_args( + public getCatchUpState_args( CatchUpDataReq req) { this(); this.req = req; @@ -3777,21 +3880,21 @@ public waitingForCatchUpData_args( /** * Performs a deep copy on other. */ - public waitingForCatchUpData_args(waitingForCatchUpData_args other) { + public getCatchUpState_args(getCatchUpState_args other) { if (other.isSetReq()) { this.req = TBaseHelper.deepCopy(other.req); } } - public waitingForCatchUpData_args deepCopy() { - return new waitingForCatchUpData_args(this); + public getCatchUpState_args deepCopy() { + return new getCatchUpState_args(this); } public CatchUpDataReq getReq() { return this.req; } - public waitingForCatchUpData_args setReq(CatchUpDataReq req) { + public getCatchUpState_args setReq(CatchUpDataReq req) { this.req = req; return this; } @@ -3842,9 +3945,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof waitingForCatchUpData_args)) + if (!(_that instanceof getCatchUpState_args)) return false; - waitingForCatchUpData_args that = (waitingForCatchUpData_args)_that; + getCatchUpState_args that = (getCatchUpState_args)_that; if (!TBaseHelper.equalsNobinary(this.isSetReq(), that.isSetReq(), this.req, that.req)) { return false; } @@ -3857,7 +3960,7 @@ public int hashCode() { } @Override - public int compareTo(waitingForCatchUpData_args other) { + public int compareTo(getCatchUpState_args other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -3934,7 +4037,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("waitingForCatchUpData_args"); + StringBuilder sb = new StringBuilder("getCatchUpState_args"); sb.append(space); sb.append("("); sb.append(newLine); @@ -3961,11 +4064,11 @@ public void validate() throws TException { } - public static class waitingForCatchUpData_result implements TBase, java.io.Serializable, Cloneable, Comparable { - private static final TStruct STRUCT_DESC = new TStruct("waitingForCatchUpData_result"); + public static class getCatchUpState_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getCatchUpState_result"); private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - public AdminExecResp success; + public CatchUpResp success; public static final int SUCCESS = 0; // isset id assignments @@ -3975,19 +4078,19 @@ public static class waitingForCatchUpData_result implements TBase, java.io.Seria static { Map tmpMetaDataMap = new HashMap(); tmpMetaDataMap.put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, AdminExecResp.class))); + new StructMetaData(TType.STRUCT, CatchUpResp.class))); metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); } static { - FieldMetaData.addStructMetaDataMap(waitingForCatchUpData_result.class, metaDataMap); + FieldMetaData.addStructMetaDataMap(getCatchUpState_result.class, metaDataMap); } - public waitingForCatchUpData_result() { + public getCatchUpState_result() { } - public waitingForCatchUpData_result( - AdminExecResp success) { + public getCatchUpState_result( + CatchUpResp success) { this(); this.success = success; } @@ -3995,21 +4098,21 @@ public waitingForCatchUpData_result( /** * Performs a deep copy on other. */ - public waitingForCatchUpData_result(waitingForCatchUpData_result other) { + public getCatchUpState_result(getCatchUpState_result other) { if (other.isSetSuccess()) { this.success = TBaseHelper.deepCopy(other.success); } } - public waitingForCatchUpData_result deepCopy() { - return new waitingForCatchUpData_result(this); + public getCatchUpState_result deepCopy() { + return new getCatchUpState_result(this); } - public AdminExecResp getSuccess() { + public CatchUpResp getSuccess() { return this.success; } - public waitingForCatchUpData_result setSuccess(AdminExecResp success) { + public getCatchUpState_result setSuccess(CatchUpResp success) { this.success = success; return this; } @@ -4035,7 +4138,7 @@ public void setFieldValue(int fieldID, Object __value) { if (__value == null) { unsetSuccess(); } else { - setSuccess((AdminExecResp)__value); + setSuccess((CatchUpResp)__value); } break; @@ -4060,9 +4163,9 @@ public boolean equals(Object _that) { return false; if (this == _that) return true; - if (!(_that instanceof waitingForCatchUpData_result)) + if (!(_that instanceof getCatchUpState_result)) return false; - waitingForCatchUpData_result that = (waitingForCatchUpData_result)_that; + getCatchUpState_result that = (getCatchUpState_result)_that; if (!TBaseHelper.equalsNobinary(this.isSetSuccess(), that.isSetSuccess(), this.success, that.success)) { return false; } @@ -4075,7 +4178,7 @@ public int hashCode() { } @Override - public int compareTo(waitingForCatchUpData_result other) { + public int compareTo(getCatchUpState_result other) { if (other == null) { // See java.lang.Comparable docs throw new NullPointerException(); @@ -4110,7 +4213,7 @@ public void read(TProtocol iprot) throws TException { { case SUCCESS: if (__field.type == TType.STRUCT) { - this.success = new AdminExecResp(); + this.success = new CatchUpResp(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, __field.type); @@ -4151,7 +4254,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("waitingForCatchUpData_result"); + StringBuilder sb = new StringBuilder("getCatchUpState_result"); sb.append(space); sb.append("("); sb.append(newLine); @@ -7658,4 +7761,439 @@ public void validate() throws TException { } + public static class getSyncProgress_args implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getSyncProgress_args"); + private static final TField REQ_FIELD_DESC = new TField("req", TType.STRUCT, (short)1); + + public GetSyncProgressReq 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, GetSyncProgressReq.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getSyncProgress_args.class, metaDataMap); + } + + public getSyncProgress_args() { + } + + public getSyncProgress_args( + GetSyncProgressReq req) { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public getSyncProgress_args(getSyncProgress_args other) { + if (other.isSetReq()) { + this.req = TBaseHelper.deepCopy(other.req); + } + } + + public getSyncProgress_args deepCopy() { + return new getSyncProgress_args(this); + } + + public GetSyncProgressReq getReq() { + return this.req; + } + + public getSyncProgress_args setReq(GetSyncProgressReq 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((GetSyncProgressReq)__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 getSyncProgress_args)) + return false; + getSyncProgress_args that = (getSyncProgress_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(getSyncProgress_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 GetSyncProgressReq(); + 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("getSyncProgress_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 getSyncProgress_result implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("getSyncProgress_result"); + private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); + + public GetSyncProgressResp 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, GetSyncProgressResp.class))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(getSyncProgress_result.class, metaDataMap); + } + + public getSyncProgress_result() { + } + + public getSyncProgress_result( + GetSyncProgressResp success) { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getSyncProgress_result(getSyncProgress_result other) { + if (other.isSetSuccess()) { + this.success = TBaseHelper.deepCopy(other.success); + } + } + + public getSyncProgress_result deepCopy() { + return new getSyncProgress_result(this); + } + + public GetSyncProgressResp getSuccess() { + return this.success; + } + + public getSyncProgress_result setSuccess(GetSyncProgressResp 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((GetSyncProgressResp)__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 getSyncProgress_result)) + return false; + getSyncProgress_result that = (getSyncProgress_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(getSyncProgress_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 GetSyncProgressResp(); + 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("getSyncProgress_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/SyncDataRequest.java b/client/src/main/generated/com/vesoft/nebula/storage/SyncDataRequest.java new file mode 100644 index 000000000..19dd11b80 --- /dev/null +++ b/client/src/main/generated/com/vesoft/nebula/storage/SyncDataRequest.java @@ -0,0 +1,477 @@ +/** + * 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 SyncDataRequest implements TBase, java.io.Serializable, Cloneable, Comparable { + private static final TStruct STRUCT_DESC = new TStruct("SyncDataRequest"); + private static final TField CLUSTER_FIELD_DESC = new TField("cluster", TType.I64, (short)1); + private static final TField SPACE_ID_FIELD_DESC = new TField("space_id", TType.I32, (short)2); + private static final TField PARTS_FIELD_DESC = new TField("parts", TType.MAP, (short)3); + + public long cluster; + public int space_id; + public Map> parts; + public static final int CLUSTER = 1; + public static final int SPACE_ID = 2; + public static final int PARTS = 3; + + // isset id assignments + private static final int __CLUSTER_ISSET_ID = 0; + private static final int __SPACE_ID_ISSET_ID = 1; + private BitSet __isset_bit_vector = new BitSet(2); + + public static final Map metaDataMap; + + static { + Map tmpMetaDataMap = new HashMap(); + tmpMetaDataMap.put(CLUSTER, new FieldMetaData("cluster", TFieldRequirementType.DEFAULT, + new FieldValueMetaData(TType.I64))); + 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 ListMetaData(TType.LIST, + new FieldValueMetaData(TType.STRING))))); + metaDataMap = Collections.unmodifiableMap(tmpMetaDataMap); + } + + static { + FieldMetaData.addStructMetaDataMap(SyncDataRequest.class, metaDataMap); + } + + public SyncDataRequest() { + } + + public SyncDataRequest( + long cluster, + int space_id, + Map> parts) { + this(); + this.cluster = cluster; + setClusterIsSet(true); + this.space_id = space_id; + setSpace_idIsSet(true); + this.parts = parts; + } + + public static class Builder { + private long cluster; + private int space_id; + private Map> parts; + + BitSet __optional_isset = new BitSet(2); + + public Builder() { + } + + public Builder setCluster(final long cluster) { + this.cluster = cluster; + __optional_isset.set(__CLUSTER_ISSET_ID, true); + return this; + } + + 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; + } + + public SyncDataRequest build() { + SyncDataRequest result = new SyncDataRequest(); + if (__optional_isset.get(__CLUSTER_ISSET_ID)) { + result.setCluster(this.cluster); + } + if (__optional_isset.get(__SPACE_ID_ISSET_ID)) { + result.setSpace_id(this.space_id); + } + result.setParts(this.parts); + return result; + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Performs a deep copy on other. + */ + public SyncDataRequest(SyncDataRequest other) { + __isset_bit_vector.clear(); + __isset_bit_vector.or(other.__isset_bit_vector); + this.cluster = TBaseHelper.deepCopy(other.cluster); + this.space_id = TBaseHelper.deepCopy(other.space_id); + if (other.isSetParts()) { + this.parts = TBaseHelper.deepCopy(other.parts); + } + } + + public SyncDataRequest deepCopy() { + return new SyncDataRequest(this); + } + + public long getCluster() { + return this.cluster; + } + + public SyncDataRequest 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 int getSpace_id() { + return this.space_id; + } + + public SyncDataRequest 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 Map> getParts() { + return this.parts; + } + + public SyncDataRequest 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.parts = null; + } + } + + @SuppressWarnings("unchecked") + public void setFieldValue(int fieldID, Object __value) { + switch (fieldID) { + case CLUSTER: + if (__value == null) { + unsetCluster(); + } else { + setCluster((Long)__value); + } + break; + + case SPACE_ID: + if (__value == null) { + unsetSpace_id(); + } else { + setSpace_id((Integer)__value); + } + break; + + case PARTS: + if (__value == null) { + unsetParts(); + } else { + setParts((Map>)__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 SPACE_ID: + return new Integer(getSpace_id()); + + case PARTS: + return getParts(); + + 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 SyncDataRequest)) + return false; + SyncDataRequest that = (SyncDataRequest)_that; + + if (!TBaseHelper.equalsNobinary(this.cluster, that.cluster)) { return false; } + + if (!TBaseHelper.equalsNobinary(this.space_id, that.space_id)) { return false; } + + if (!TBaseHelper.equalsSlow(this.isSetParts(), that.isSetParts(), this.parts, that.parts)) { return false; } + + return true; + } + + @Override + public int hashCode() { + return Arrays.deepHashCode(new Object[] {cluster, space_id, parts}); + } + + @Override + public int compareTo(SyncDataRequest 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(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(parts, other.parts); + 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 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 _map324 = iprot.readMapBegin(); + this.parts = new HashMap>(Math.max(0, 2*_map324.size)); + for (int _i325 = 0; + (_map324.size < 0) ? iprot.peekMap() : (_i325 < _map324.size); + ++_i325) + { + int _key326; + List _val327; + _key326 = iprot.readI32(); + { + TList _list328 = iprot.readListBegin(); + _val327 = new ArrayList(Math.max(0, _list328.size)); + for (int _i329 = 0; + (_list328.size < 0) ? iprot.peekList() : (_i329 < _list328.size); + ++_i329) + { + byte[] _elem330; + _elem330 = iprot.readBinary(); + _val327.add(_elem330); + } + iprot.readListEnd(); + } + this.parts.put(_key326, _val327); + } + 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(CLUSTER_FIELD_DESC); + oprot.writeI64(this.cluster); + oprot.writeFieldEnd(); + 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.LIST, this.parts.size())); + for (Map.Entry> _iter331 : this.parts.entrySet()) { + oprot.writeI32(_iter331.getKey()); + { + oprot.writeListBegin(new TList(TType.STRING, _iter331.getValue().size())); + for (byte[] _iter332 : _iter331.getValue()) { + oprot.writeBinary(_iter332); + } + oprot.writeListEnd(); + } + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + return toString(1, true); + } + + @Override + public String toString(int indent, boolean prettyPrint) { + String indentStr = prettyPrint ? TBaseHelper.getIndentedString(indent) : ""; + String newLine = prettyPrint ? "\n" : ""; + String space = prettyPrint ? " " : ""; + StringBuilder sb = new StringBuilder("SyncDataRequest"); + 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("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.getParts() == null) { + sb.append("null"); + } else { + sb.append(TBaseHelper.toString(this.getParts(), 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/StorageClient.java b/client/src/main/java/com/vesoft/nebula/client/storage/StorageClient.java index 42fe38c56..120800de7 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/StorageClient.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/StorageClient.java @@ -41,6 +41,9 @@ public class StorageClient implements Serializable { private boolean enableSSL = false; private SSLParam sslParam = null; + private String user = null; + private String password = null; + /** * Get a Nebula Storage client that executes the scan query to get NebulaGraph's data with * one server host. @@ -108,6 +111,16 @@ public boolean connect() throws Exception { return true; } + public StorageClient setUser(String user) { + this.user = user; + return this; + } + + public StorageClient setPassword(String password) { + this.password = password; + return this; + } + /** * scan vertex of all parts with specific return cols, if returnCols is an empty list, then @@ -619,6 +632,8 @@ private ScanVertexResultIterator doScanVertex(String spaceName, .withSpaceName(spaceName) .withTagName(tagName) .withPartSuccess(allowPartSuccess) + .withUser(user) + .withPassword(password) .build(); } 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 ead2b54dc..b82e644ce 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 @@ -6,6 +6,7 @@ package com.vesoft.nebula.client.storage.scan; import com.facebook.thrift.TException; +import com.google.common.base.Charsets; import com.vesoft.nebula.DataSet; import com.vesoft.nebula.client.graph.data.HostAddress; import com.vesoft.nebula.client.meta.MetaManager; @@ -41,9 +42,11 @@ private ScanEdgeResultIterator(MetaManager metaManager, ScanEdgeRequest request, String spaceName, String labelName, - boolean partSuccess) { + boolean partSuccess, + String user, + String password) { super(metaManager, pool, new PartScanQueue(partScanInfoList), addresses, spaceName, - labelName, partSuccess); + labelName, partSuccess, user, password); this.request = request; } @@ -95,6 +98,11 @@ public ScanEdgeResult next() throws Exception { cursorMap.put(partInfo.getPart(), partInfo.getCursor()); ScanEdgeRequest partRequest = new ScanEdgeRequest(request); partRequest.setParts(cursorMap); + if (user != null && password != null) { + partRequest.setUsername(user.getBytes(Charsets.UTF_8)); + partRequest.setPassword(password.getBytes(Charsets.UTF_8)); + } + partRequest.setNeed_authenticate(true); try { response = connection.scanEdge(partRequest); } catch (TException e) { @@ -170,6 +178,8 @@ public static class ScanEdgeResultBuilder { String spaceName; String edgeName; boolean partSuccess = false; + String user = null; + String password = null; public ScanEdgeResultBuilder withMetaClient(MetaManager metaManager) { this.metaManager = metaManager; @@ -211,6 +221,15 @@ public ScanEdgeResultBuilder withPartSuccess(boolean partSuccess) { return this; } + public ScanEdgeResultBuilder withUser(String user) { + this.user = user; + return this; + } + + public ScanEdgeResultBuilder withPassword(String password) { + this.password = password; + return this; + } public ScanEdgeResultIterator build() { return new ScanEdgeResultIterator( @@ -221,7 +240,9 @@ public ScanEdgeResultIterator build() { request, spaceName, edgeName, - partSuccess); + partSuccess, + user, + password); } } } diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanResultIterator.java b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanResultIterator.java index b826a8760..78b0a298a 100644 --- a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanResultIterator.java +++ b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanResultIterator.java @@ -38,9 +38,13 @@ public class ScanResultIterator implements Serializable { protected final String labelName; protected final boolean partSuccess; + protected final String user; + protected final String password; + protected ScanResultIterator(MetaManager metaManager, StorageConnPool pool, PartScanQueue partScanQueue, List addresses, - String spaceName, String labelName, boolean partSuccess) { + String spaceName, String labelName, boolean partSuccess, + String user, String password) { this.metaManager = metaManager; this.pool = pool; this.partScanQueue = partScanQueue; @@ -49,6 +53,8 @@ protected ScanResultIterator(MetaManager metaManager, StorageConnPool pool, this.labelName = labelName; this.partSuccess = partSuccess; this.partCursor = new HashMap<>(partScanQueue.size()); + this.user = user; + this.password = password; } @@ -121,10 +127,10 @@ protected void handleFailedResult(ScanResponse response, PartScanInfo partInfo, freshLeader(spaceName, partInfo.getPart(), partResult.getLeader()); partInfo.setLeader(getLeader(partResult.getLeader())); } else { - int code = partResult.getCode().getValue(); - LOGGER.error(String.format("part scan failed, error code=%d", code)); + ErrorCode code = partResult.getCode(); + LOGGER.error(String.format("part scan failed, error code=%s", code)); partScanQueue.dropPart(partInfo); - exceptions.add(new Exception(String.format("part scan, error code=%d", code))); + exceptions.add(new Exception(String.format("part scan, error code=%s", code))); } } } diff --git a/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanVertexResultIterator.java b/client/src/main/java/com/vesoft/nebula/client/storage/scan/ScanVertexResultIterator.java index 5c599dbd5..4b825c1f6 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 @@ -6,6 +6,7 @@ package com.vesoft.nebula.client.storage.scan; import com.facebook.thrift.TException; +import com.google.common.base.Charsets; import com.vesoft.nebula.DataSet; import com.vesoft.nebula.client.graph.data.HostAddress; import com.vesoft.nebula.client.meta.MetaManager; @@ -44,9 +45,11 @@ private ScanVertexResultIterator(MetaManager metaManager, ScanVertexRequest request, String spaceName, String labelName, - boolean partSuccess) { + boolean partSuccess, + String user, + String password) { super(metaManager, pool, new PartScanQueue(partScanInfoList), addresses, spaceName, - labelName, partSuccess); + labelName, partSuccess, user, password); this.request = request; } @@ -97,6 +100,11 @@ public ScanVertexResult next() throws Exception { cursorMap.put(partInfo.getPart(), partInfo.getCursor()); ScanVertexRequest partRequest = new ScanVertexRequest(request); partRequest.setParts(cursorMap); + if (user != null && password != null) { + partRequest.setUsername(user.getBytes(Charsets.UTF_8)); + partRequest.setPassword(password.getBytes(Charsets.UTF_8)); + } + partRequest.setNeed_authenticate(true); try { response = connection.scanVertex(partRequest); } catch (TException e) { @@ -158,9 +166,6 @@ public ScanVertexResult next() throws Exception { } - - - /** * builder to build {@link ScanVertexResult} */ @@ -175,6 +180,9 @@ public static class ScanVertexResultBuilder { String tagName; boolean partSuccess = false; + String user = null; + String password = null; + public ScanVertexResultBuilder withMetaClient(MetaManager metaManager) { this.metaManager = metaManager; return this; @@ -215,6 +223,16 @@ public ScanVertexResultBuilder withPartSuccess(boolean partSuccess) { return this; } + public ScanVertexResultBuilder withUser(String user) { + this.user = user; + return this; + } + + public ScanVertexResultBuilder withPassword(String password) { + this.password = password; + return this; + } + public ScanVertexResultIterator build() { return new ScanVertexResultIterator( metaManager, @@ -224,7 +242,9 @@ public ScanVertexResultIterator build() { request, spaceName, tagName, - partSuccess); + partSuccess, + user, + password); } } } diff --git a/examples/src/main/java/com/vesoft/nebula/examples/StorageClientExample.java b/examples/src/main/java/com/vesoft/nebula/examples/StorageClientExample.java index 66e1498ce..269a36d7e 100644 --- a/examples/src/main/java/com/vesoft/nebula/examples/StorageClientExample.java +++ b/examples/src/main/java/com/vesoft/nebula/examples/StorageClientExample.java @@ -45,8 +45,7 @@ public static void main(String[] args) { public static void scanVertex(StorageClient client) { ScanVertexResultIterator iterator = client.scanVertex( "test", - "person", - Arrays.asList("name", "age")); + "player"); while (iterator.hasNext()) { ScanVertexResult result = null;