public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, rpcVersion_); } for (int i = 0; i < authenticationMechanisms_.size(); i++) { output.writeBytes(2, authenticationMechanisms_.getByteString(i)); } 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_); } { 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 Builder mergeFrom(org.apache.drill.exec.proto.BitData.BitServerHandshake other) { if (other == org.apache.drill.exec.proto.BitData.BitServerHandshake.getDefaultInstance()) return this; if (other.hasRpcVersion()) { setRpcVersion(other.getRpcVersion()); } if (!other.authenticationMechanisms_.isEmpty()) { if (authenticationMechanisms_.isEmpty()) { authenticationMechanisms_ = other.authenticationMechanisms_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.addAll(other.authenticationMechanisms_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
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 Builder mergeFrom(org.apache.drill.exec.proto.BitData.BitServerHandshake other) { if (other == org.apache.drill.exec.proto.BitData.BitServerHandshake.getDefaultInstance()) return this; if (other.hasRpcVersion()) { setRpcVersion(other.getRpcVersion()); } if (!other.authenticationMechanisms_.isEmpty()) { if (authenticationMechanisms_.isEmpty()) { authenticationMechanisms_ = other.authenticationMechanisms_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.addAll(other.authenticationMechanisms_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, rpcVersion_); } for (int i = 0; i < authenticationMechanisms_.size(); i++) { output.writeBytes(2, authenticationMechanisms_.getByteString(i)); } getUnknownFields().writeTo(output); }