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_); } { int dataSize = 0; for (int i = 0; i < authenticationMechanisms_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(authenticationMechanisms_.getByteString(i)); } size += dataSize; size += 1 * getAuthenticationMechanismsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
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_); } { int dataSize = 0; for (int i = 0; i < authenticationMechanisms_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(authenticationMechanisms_.getByteString(i)); } size += dataSize; size += 1 * getAuthenticationMechanismsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@Override protected List<String> validateHandshake(BitServerHandshake handshake) throws RpcException { return BitRpcUtility.validateHandshake(handshake.getRpcVersion(), handshake.getAuthenticationMechanismsList(), DataRpcConfig.RPC_VERSION, connection, config, this); }
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.BitData.BitServerHandshake message) throws java.io.IOException { if(message.hasRpcVersion()) output.writeInt32(1, message.getRpcVersion(), false); for(String authenticationMechanisms : message.getAuthenticationMechanismsList()) output.writeString(2, authenticationMechanisms, true); } public boolean isInitialized(org.apache.drill.exec.proto.BitData.BitServerHandshake message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.BitData.BitServerHandshake message) throws java.io.IOException { if(message.hasRpcVersion()) output.writeInt32(1, message.getRpcVersion(), false); for(String authenticationMechanisms : message.getAuthenticationMechanismsList()) output.writeString(2, authenticationMechanisms, true); } public boolean isInitialized(org.apache.drill.exec.proto.BitData.BitServerHandshake message)