public Builder mergeFrom( com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResponseProtocol .DSUpdatedCallbackResponse other) { if (other == com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResponseProtocol .DSUpdatedCallbackResponse.getDefaultInstance()) return this; if (other.hasCallbackId()) { setCallbackId(other.getCallbackId()); } if (other.hasOpCode()) { setOpCode(other.getOpCode()); } if (!other.result_.isEmpty()) { if (result.result_.isEmpty()) { result.result_ = new java.util.ArrayList< com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResultProtocol .DSUpdatedCallbackResult>(); } result.result_.addAll(other.result_); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder addResult( com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResultProtocol .DSUpdatedCallbackResult.Builder builderForValue) { if (result.result_.isEmpty()) { result.result_ = new java.util.ArrayList< com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResultProtocol .DSUpdatedCallbackResult>(); } result.result_.add(builderForValue.build()); return this; }
public Builder addAllResult( java.lang.Iterable< ? extends com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResultProtocol .DSUpdatedCallbackResult> values) { if (result.result_.isEmpty()) { result.result_ = new java.util.ArrayList< com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResultProtocol .DSUpdatedCallbackResult>(); } super.addAll(values, result.result_); return this; }
public com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResponseProtocol .DSUpdatedCallbackResponse buildPartial() { if (result == null) { throw new IllegalStateException("build() has already been called on this Builder."); } if (result.result_ != java.util.Collections.EMPTY_LIST) { result.result_ = java.util.Collections.unmodifiableList(result.result_); } com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResponseProtocol .DSUpdatedCallbackResponse returnMe = result; result = null; return returnMe; }
public Builder addResult( com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResultProtocol .DSUpdatedCallbackResult value) { if (value == null) { throw new NullPointerException(); } if (result.result_.isEmpty()) { result.result_ = new java.util.ArrayList< com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResultProtocol .DSUpdatedCallbackResult>(); } result.result_.add(value); return this; }
public com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResultProtocol .DSUpdatedCallbackResult getResult(int index) { return result.getResult(index); }
public int getResultCount() { return result.getResultCount(); }
public Builder clearOpCode() { result.hasOpCode = false; result.opCode_ = 0; return this; }
public Builder setOpCode(int value) { result.hasOpCode = true; result.opCode_ = value; return this; }
public int getOpCode() { return result.getOpCode(); }
public com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResponseProtocol .DSUpdatedCallbackResponse getDefaultInstanceForType() { return com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResponseProtocol .DSUpdatedCallbackResponse.getDefaultInstance(); }
public Builder setCallbackId(int value) { result.hasCallbackId = true; result.callbackId_ = value; return this; }
public int getCallbackId() { return result.getCallbackId(); }
// optional sint32 callbackId = 1; public boolean hasCallbackId() { return result.hasCallbackId(); }
public boolean isInitialized() { return result.isInitialized(); }
public Builder clearCallbackId() { result.hasCallbackId = false; result.callbackId_ = 0; return this; }
// optional int32 opCode = 2; public boolean hasOpCode() { return result.hasOpCode(); }
public Builder clearResult() { result.result_ = java.util.Collections.emptyList(); return this; }
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResponseProtocol .DSUpdatedCallbackResponse.getDescriptor(); }