public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, rpcVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, channel_.getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, rpcVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, channel_.getNumber()); } getUnknownFields().writeTo(output); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, rpcVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, channel_.getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, rpcVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, channel_.getNumber()); } getUnknownFields().writeTo(output); }
public Builder mergeFrom(org.apache.drill.exec.proto.BitData.BitClientHandshake other) { if (other == org.apache.drill.exec.proto.BitData.BitClientHandshake.getDefaultInstance()) return this; if (other.hasRpcVersion()) { setRpcVersion(other.getRpcVersion()); } if (other.hasChannel()) { setChannel(other.getChannel()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.drill.exec.proto.BitData.BitClientHandshake other) { if (other == org.apache.drill.exec.proto.BitData.BitClientHandshake.getDefaultInstance()) return this; if (other.hasRpcVersion()) { setRpcVersion(other.getRpcVersion()); } if (other.hasChannel()) { setChannel(other.getChannel()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }