/** * Creates a Builder by copying an existing HandshakeResponse instance * @param other The existing instance to copy. */ private Builder(org.apache.avro.ipc.HandshakeResponse other) { super(SCHEMA$); if (isValidValue(fields()[0], other.match)) { this.match = data().deepCopy(fields()[0].schema(), other.match); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.serverProtocol)) { this.serverProtocol = data().deepCopy(fields()[1].schema(), other.serverProtocol); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.serverHash)) { this.serverHash = data().deepCopy(fields()[2].schema(), other.serverHash); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.meta)) { this.meta = data().deepCopy(fields()[3].schema(), other.meta); fieldSetFlags()[3] = true; } }
/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(org.apache.avro.ipc.HandshakeResponse.Builder other) { super(other); if (isValidValue(fields()[0], other.match)) { this.match = data().deepCopy(fields()[0].schema(), other.match); fieldSetFlags()[0] = other.fieldSetFlags()[0]; } if (isValidValue(fields()[1], other.serverProtocol)) { this.serverProtocol = data().deepCopy(fields()[1].schema(), other.serverProtocol); fieldSetFlags()[1] = other.fieldSetFlags()[1]; } if (isValidValue(fields()[2], other.serverHash)) { this.serverHash = data().deepCopy(fields()[2].schema(), other.serverHash); fieldSetFlags()[2] = other.fieldSetFlags()[2]; } if (isValidValue(fields()[3], other.meta)) { this.meta = data().deepCopy(fields()[3].schema(), other.meta); fieldSetFlags()[3] = other.fieldSetFlags()[3]; } }
/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(org.apache.avro.ipc.HandshakeResponse.Builder other) { super(other); if (isValidValue(fields()[0], other.match)) { this.match = data().deepCopy(fields()[0].schema(), other.match); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.serverProtocol)) { this.serverProtocol = data().deepCopy(fields()[1].schema(), other.serverProtocol); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.serverHash)) { this.serverHash = data().deepCopy(fields()[2].schema(), other.serverHash); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.meta)) { this.meta = data().deepCopy(fields()[3].schema(), other.meta); fieldSetFlags()[3] = true; } }
/** * Creates a Builder by copying an existing HandshakeResponse instance * @param other The existing instance to copy. */ private Builder(org.apache.avro.ipc.HandshakeResponse other) { super(SCHEMA$); if (isValidValue(fields()[0], other.match)) { this.match = data().deepCopy(fields()[0].schema(), other.match); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.serverProtocol)) { this.serverProtocol = data().deepCopy(fields()[1].schema(), other.serverProtocol); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.serverHash)) { this.serverHash = data().deepCopy(fields()[2].schema(), other.serverHash); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.meta)) { this.meta = data().deepCopy(fields()[3].schema(), other.meta); fieldSetFlags()[3] = true; } }